Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-insurance
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.frontend
pica-insurance
提交
49fb9cf4
提交
49fb9cf4
编写于
9月 06, 2024
作者:
zhongyao.qiao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat 跳转小程序方式更换
上级
cd6b5d16
变更
2
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
67 行增加
和
34 行删除
+67
-34
index.vue
src/views/sh-public/index.vue
+34
-18
index.vue
src/views/sz-public-new/index.vue
+33
-16
未找到文件。
src/views/sh-public/index.vue
浏览文件 @
49fb9cf4
...
@@ -19,13 +19,9 @@
...
@@ -19,13 +19,9 @@
<div
<div
class=
"wx-btn"
class=
"wx-btn"
@
click=
"handleActivityRemind"
@
click=
"handleActivityRemind"
v-if=
"
picaWechat !== 'wechat' || errorMsg
"
v-if=
"
true
"
>
>
<span>
预约权益
</span>
<span>
预约权益
</span>
<!-- <img
:src="insuranceInfo.descBottomList[0]"
alt=""
/> -->
</div>
</div>
<wx-open-launch-weapp
<wx-open-launch-weapp
v-else
v-else
...
@@ -89,6 +85,12 @@ export default {
...
@@ -89,6 +85,12 @@ export default {
descBottomList
:
[],
descBottomList
:
[],
},
},
errorMsg
:
null
,
errorMsg
:
null
,
appletConfig
:
{
appid
:
'wx180ede0978486102'
,
path
:
'pagesInsurance/exclusively-activity/submit'
,
query
:
''
,
env_version
:
'trial'
,
},
};
};
},
},
created
()
{
created
()
{
...
@@ -99,23 +101,23 @@ export default {
...
@@ -99,23 +101,23 @@ export default {
.
alert
({
.
alert
({
type
:
'warning'
,
type
:
'warning'
,
title
:
'提示'
,
title
:
'提示'
,
message
:
'请使用手机
微信
打开!'
,
message
:
'请使用手机
浏览器
打开!'
,
confirmButtonText
:
'我知道了'
,
confirmButtonText
:
'我知道了'
,
})
})
.
then
(()
=>
{
.
then
(()
=>
{
// on close
// on close
});
});
}
else
if
(
!
isWeixin
())
{
}
else
if
(
!
isWeixin
())
{
this
.
$dialog
//
this.$dialog
.
alert
({
//
.alert({
type
:
'warning'
,
//
type: 'warning',
title
:
'提示'
,
//
title: '提示',
message
:
'请在微信中扫码打开!'
,
//
message: '请在微信中扫码打开!',
confirmButtonText
:
'我知道了'
,
//
confirmButtonText: '我知道了',
})
//
})
.
then
(()
=>
{
//
.then(() => {
// on close
//
// on close
});
//
});
}
}
},
},
async
mounted
()
{
async
mounted
()
{
...
@@ -130,6 +132,7 @@ export default {
...
@@ -130,6 +132,7 @@ export default {
}
}
this
.
openWebAppConfigPositive
.
path
=
`pagesInsurance/exclusively-activity/submit?rightsNo=
${
rightsNo
}
&channelId=
${
channelId
}
&source=h5&channel=hot_act`
;
this
.
openWebAppConfigPositive
.
path
=
`pagesInsurance/exclusively-activity/submit?rightsNo=
${
rightsNo
}
&channelId=
${
channelId
}
&source=h5&channel=hot_act`
;
this
.
appletConfig
.
query
=
`rightsNo=
${
rightsNo
}
&channelId=
${
channelId
}
&source=h5&channel=hot_act`
;
this
.
activityCheck
(
rightsNo
);
this
.
activityCheck
(
rightsNo
);
this
.
$sendBuriedData
(
this
.
$sendBuriedData
(
...
@@ -144,6 +147,15 @@ export default {
...
@@ -144,6 +147,15 @@ export default {
);
);
},
},
methods
:
{
methods
:
{
appletUrl
()
{
const
{
appid
,
path
,
query
,
env_version
}
=
this
.
appletConfig
;
let
url
=
'weixin://dl/business/?'
;
url
+=
`appid=
${
appid
}
`
;
url
+=
`&path=
${
path
}
`
;
url
+=
`&query=
${
encodeURIComponent
(
query
)}
`
;
url
+=
`&env_version=
${
env_version
}
`
;
return
url
;
},
activityCheck
(
rightsNo
)
{
activityCheck
(
rightsNo
)
{
getActivityInfo
({
unionId
:
''
,
rightsNo
}).
then
((
res
)
=>
{
getActivityInfo
({
unionId
:
''
,
rightsNo
}).
then
((
res
)
=>
{
if
(
res
.
code
===
'000000'
)
{
if
(
res
.
code
===
'000000'
)
{
...
@@ -156,9 +168,13 @@ export default {
...
@@ -156,9 +168,13 @@ export default {
});
});
},
},
handleActivityRemind
()
{
handleActivityRemind
()
{
if
(
!
this
.
errorMsg
)
return
;
if
(
this
.
errorMsg
)
return
this
.
$toast
(
this
.
errorMsg
)
;
this
.
$toast
(
this
.
errorMsg
);
const
isProd
=
process
.
env
.
NODE_ENV
===
'production'
;
if
(
isProd
)
{
this
.
appletConfig
.
env_version
=
'release'
;
}
location
.
href
=
this
.
appletUrl
();
},
},
handleErrorFn
(
e
)
{
handleErrorFn
(
e
)
{
console
.
log
(
'handleErrorFn'
,
e
);
console
.
log
(
'handleErrorFn'
,
e
);
...
...
src/views/sz-public-new/index.vue
浏览文件 @
49fb9cf4
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
<div
class=
"fixed-btn"
>
<div
class=
"fixed-btn"
>
<div
<div
class=
"wx-btn"
class=
"wx-btn"
v-if=
"
picaWechat !== 'wechat' || hideWeApp
"
v-if=
"
true
"
@
click=
"handleClick"
@
click=
"handleClick"
>
>
<span>
领取权益
</span>
<span>
领取权益
</span>
...
@@ -107,6 +107,12 @@ export default {
...
@@ -107,6 +107,12 @@ export default {
descBottomList
:
[],
descBottomList
:
[],
},
},
hideWeApp
:
false
,
hideWeApp
:
false
,
appletConfig
:
{
appid
:
'wx180ede0978486102'
,
path
:
'pagesInsurance/my-right/index'
,
query
:
''
,
env_version
:
'trial'
,
},
};
};
},
},
created
()
{
created
()
{
...
@@ -117,23 +123,19 @@ export default {
...
@@ -117,23 +123,19 @@ export default {
.
alert
({
.
alert
({
type
:
'warning'
,
type
:
'warning'
,
title
:
'提示'
,
title
:
'提示'
,
message
:
'请使用手机
微信
打开!'
,
message
:
'请使用手机
浏览器
打开!'
,
confirmButtonText
:
'我知道了'
,
confirmButtonText
:
'我知道了'
,
})
})
.
then
(()
=>
{
.
then
(()
=>
{});
// on close
});
}
else
if
(
!
isWeixin
())
{
}
else
if
(
!
isWeixin
())
{
this
.
$dialog
// this.$dialog
.
alert
({
// .alert({
type
:
'warning'
,
// type: 'warning',
title
:
'提示'
,
// title: '提示',
message
:
'请在微信中扫码打开!'
,
// message: '请在微信中扫码打开!',
confirmButtonText
:
'我知道了'
,
// confirmButtonText: '我知道了',
})
// })
.
then
(()
=>
{
// .then(() => {});
// on close
});
}
}
},
},
async
mounted
()
{
async
mounted
()
{
...
@@ -178,7 +180,7 @@ export default {
...
@@ -178,7 +180,7 @@ export default {
this
.
handleInsuranceStatusCheck
(
projectEquityNo
,
rightsNo
);
this
.
handleInsuranceStatusCheck
(
projectEquityNo
,
rightsNo
);
// this.openWebAppConfigPositive.path = `pagesInsurance/health-card/index?channelCode=${channelCode}&projectEquityNo=${projectEquityNo}&externalOrderNo=${externalOrderNo}&rightsNo=${rightsNo}&userInfo=${userInfo}&identity=${identity}&token=${token}&cardNo=${cardNo}`;
// this.openWebAppConfigPositive.path = `pagesInsurance/health-card/index?channelCode=${channelCode}&projectEquityNo=${projectEquityNo}&externalOrderNo=${externalOrderNo}&rightsNo=${rightsNo}&userInfo=${userInfo}&identity=${identity}&token=${token}&cardNo=${cardNo}`;
this
.
openWebAppConfigPositive
.
path
=
`/pagesInsurance/my-right/index?channelCode=
${
channelCode
}
&projectEquityNo=
${
projectEquityNo
}
&externalOrderNo=
${
externalOrderNo
}
&rightsNo=
${
rightsNo
}
&userInfo=
${
userInfo
}
&identity=
${
identity
}
&token=
${
token
}
&cardNo=
${
cardNo
}
`
;
this
.
openWebAppConfigPositive
.
path
=
`/pagesInsurance/my-right/index?channelCode=
${
channelCode
}
&projectEquityNo=
${
projectEquityNo
}
&externalOrderNo=
${
externalOrderNo
}
&rightsNo=
${
rightsNo
}
&userInfo=
${
userInfo
}
&identity=
${
identity
}
&token=
${
token
}
&cardNo=
${
cardNo
}
`
;
this
.
appletConfig
.
query
=
`channelCode=
${
channelCode
}
&projectEquityNo=
${
projectEquityNo
}
&externalOrderNo=
${
externalOrderNo
}
&rightsNo=
${
rightsNo
}
&userInfo=
${
userInfo
}
&identity=
${
identity
}
&token=
${
token
}
&cardNo=
${
cardNo
}
`
;
if
(
channelCode
)
uploadPointData
({
channelCode
});
if
(
channelCode
)
uploadPointData
({
channelCode
});
this
.
$sendBuriedData
(
this
.
$sendBuriedData
(
{
{
...
@@ -199,6 +201,15 @@ export default {
...
@@ -199,6 +201,15 @@ export default {
);
);
},
},
methods
:
{
methods
:
{
appletUrl
()
{
const
{
appid
,
path
,
query
,
env_version
}
=
this
.
appletConfig
;
let
url
=
'weixin://dl/business/?'
;
url
+=
`appid=
${
appid
}
`
;
url
+=
`&path=
${
path
}
`
;
url
+=
`&query=
${
encodeURIComponent
(
query
)}
`
;
url
+=
`&env_version=
${
env_version
}
`
;
return
url
;
},
handleInsuranceStatusCheck
(
projectEquityNo
,
rightsNo
)
{
handleInsuranceStatusCheck
(
projectEquityNo
,
rightsNo
)
{
insuranceStatusCheck
({
projectEquityNo
,
rightsNo
}).
then
((
res
)
=>
{
insuranceStatusCheck
({
projectEquityNo
,
rightsNo
}).
then
((
res
)
=>
{
if
(
res
.
code
===
'000000'
)
{
if
(
res
.
code
===
'000000'
)
{
...
@@ -241,6 +252,12 @@ export default {
...
@@ -241,6 +252,12 @@ export default {
handleClick
()
{
handleClick
()
{
if
(
this
.
hideWeApp
)
{
if
(
this
.
hideWeApp
)
{
this
.
$toast
(
'活动已结束'
);
this
.
$toast
(
'活动已结束'
);
}
else
{
const
isProd
=
process
.
env
.
NODE_ENV
===
'production'
;
if
(
isProd
)
{
this
.
appletConfig
.
env_version
=
'release'
;
}
location
.
href
=
this
.
appletUrl
();
}
}
},
},
},
},
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录