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
提交
618a1778
提交
618a1778
编写于
8月 07, 2024
作者:
xingli.wu
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'feature/wxl' into 'release'
feat: 保险入口页新增活动过期提醒、跳转路径修改 See merge request
!296
上级
e0a2e688
e51375ae
变更
2
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
37 行增加
和
4 行删除
+37
-4
entitlement.js
src/api/entitlement.js
+9
-0
index.vue
src/views/sz-public-new/index.vue
+28
-4
未找到文件。
src/api/entitlement.js
浏览文件 @
618a1778
...
@@ -63,3 +63,12 @@ export const getActivityInfo = (params) => {
...
@@ -63,3 +63,12 @@ export const getActivityInfo = (params) => {
withCredentials
:
true
,
withCredentials
:
true
,
});
});
};
};
export
const
insuranceStatusCheck
=
(
params
)
=>
{
return
request
({
url
:
'/tis/insurance/merchant/check/projectOpened'
,
method
:
'get'
,
params
,
withCredentials
:
true
,
});
};
src/views/sz-public-new/index.vue
浏览文件 @
618a1778
...
@@ -32,7 +32,8 @@
...
@@ -32,7 +32,8 @@
<div
class=
"fixed-btn"
>
<div
class=
"fixed-btn"
>
<div
<div
class=
"wx-btn"
class=
"wx-btn"
v-if=
"picaWechat != 'wechat'"
v-if=
"picaWechat !== 'wechat' || hideWeApp"
@
click=
"handleClick"
>
>
<span>
领取权益
</span>
<span>
领取权益
</span>
</div>
</div>
...
@@ -72,7 +73,11 @@
...
@@ -72,7 +73,11 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
getBanner
,
getRequestParm
}
from
'@/api/entitlement'
;
import
{
getBanner
,
getRequestParm
,
insuranceStatusCheck
,
}
from
'@/api/entitlement'
;
import
{
uploadPointData
}
from
'@/api/question'
;
import
{
uploadPointData
}
from
'@/api/question'
;
import
{
isWeixin
,
isMobile
}
from
'@/utils/index'
;
import
{
isWeixin
,
isMobile
}
from
'@/utils/index'
;
...
@@ -90,7 +95,7 @@ export default {
...
@@ -90,7 +95,7 @@ export default {
envVersion
:
process
.
env
.
VUE_APP_MINI_PROGRAM_ENV
,
envVersion
:
process
.
env
.
VUE_APP_MINI_PROGRAM_ENV
,
openWebAppConfigPositive
:
{
openWebAppConfigPositive
:
{
username
:
'gh_e92f58174364'
,
// 小程序唯一username 1.gh_80d54796f2d5 云鹊助手 2. gh_e92f58174364 云鹊健康
username
:
'gh_e92f58174364'
,
// 小程序唯一username 1.gh_80d54796f2d5 云鹊助手 2. gh_e92f58174364 云鹊健康
path
:
'pagesInsurance/
health-card
/index'
,
// 打开页面
path
:
'pagesInsurance/
my-right
/index'
,
// 打开页面
extraData
:
JSON
.
stringify
({}),
extraData
:
JSON
.
stringify
({}),
},
},
bgPath
:
''
,
bgPath
:
''
,
...
@@ -101,6 +106,7 @@ export default {
...
@@ -101,6 +106,7 @@ export default {
descList
:
[],
descList
:
[],
descBottomList
:
[],
descBottomList
:
[],
},
},
hideWeApp
:
false
,
};
};
},
},
created
()
{
created
()
{
...
@@ -148,6 +154,7 @@ export default {
...
@@ -148,6 +154,7 @@ export default {
projectEquityNo
===
'YX202306161001636491'
||
projectEquityNo
===
'YX202306161001636491'
||
projectEquityNo
===
'YX202302271000328363'
projectEquityNo
===
'YX202302271000328363'
)
{
)
{
this
.
handleInsuranceStatusCheck
(
projectEquityNo
,
rightsNo
);
const
url
=
`
${
window
.
location
.
origin
}
/pica-insurance/sz-public-new2?projectEquityNo=
${
projectEquityNo
}
&externalOrderNo=
${
externalOrderNo
}
`
;
const
url
=
`
${
window
.
location
.
origin
}
/pica-insurance/sz-public-new2?projectEquityNo=
${
projectEquityNo
}
&externalOrderNo=
${
externalOrderNo
}
`
;
window
.
location
.
href
=
url
;
window
.
location
.
href
=
url
;
return
;
return
;
...
@@ -168,8 +175,10 @@ export default {
...
@@ -168,8 +175,10 @@ export default {
this
.
getBanner
(
7
,
rightsNo
||
projectEquityNo
);
this
.
getBanner
(
7
,
rightsNo
||
projectEquityNo
);
this
.
getBanner2
(
36
,
rightsNo
||
projectEquityNo
);
this
.
getBanner2
(
36
,
rightsNo
||
projectEquityNo
);
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/my-right/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
}
`
;
if
(
channelCode
)
uploadPointData
({
channelCode
});
if
(
channelCode
)
uploadPointData
({
channelCode
});
this
.
$sendBuriedData
(
this
.
$sendBuriedData
(
{
{
...
@@ -190,6 +199,16 @@ export default {
...
@@ -190,6 +199,16 @@ export default {
);
);
},
},
methods
:
{
methods
:
{
handleInsuranceStatusCheck
(
projectEquityNo
,
rightsNo
)
{
insuranceStatusCheck
({
projectEquityNo
,
rightsNo
}).
then
((
res
)
=>
{
if
(
res
.
code
===
'000000'
)
{
this
.
hideWeApp
=
res
.
data
===
0
?
true
:
false
;
if
(
this
.
hideWeApp
)
{
return
this
.
$toast
(
'活动已结束'
);
}
}
});
},
getBanner
(
pageType
,
yunOrderNo
)
{
getBanner
(
pageType
,
yunOrderNo
)
{
this
.
$loading
.
show
();
this
.
$loading
.
show
();
getBanner
(
pageType
,
yunOrderNo
).
then
((
res
)
=>
{
getBanner
(
pageType
,
yunOrderNo
).
then
((
res
)
=>
{
...
@@ -219,6 +238,11 @@ export default {
...
@@ -219,6 +238,11 @@ export default {
console
.
log
(
'index'
,
index
);
console
.
log
(
'index'
,
index
);
window
.
location
.
href
=
this
.
staticINFO2
.
descBottomList
[
index
];
window
.
location
.
href
=
this
.
staticINFO2
.
descBottomList
[
index
];
},
},
handleClick
()
{
if
(
this
.
hideWeApp
)
{
this
.
$toast
(
'活动已结束'
);
}
},
},
},
};
};
</
script
>
</
script
>
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录