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
提交
3631ec6d
提交
3631ec6d
编写于
7月 26, 2024
作者:
xinglee23
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: add activity check
上级
93b38936
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
30 行增加
和
2 行删除
+30
-2
entitlement.js
src/api/entitlement.js
+9
-0
index.vue
src/views/sh-public/index.vue
+21
-2
未找到文件。
src/api/entitlement.js
浏览文件 @
3631ec6d
...
@@ -54,3 +54,12 @@ export const getInsProjectInfo = (params) => {
...
@@ -54,3 +54,12 @@ export const getInsProjectInfo = (params) => {
withCredentials
:
true
,
withCredentials
:
true
,
});
});
};
};
export
const
getActivityInfo
=
(
params
)
=>
{
return
request
({
url
:
'/activity/act/check'
,
method
:
'post'
,
params
,
withCredentials
:
true
,
});
};
src/views/sh-public/index.vue
浏览文件 @
3631ec6d
...
@@ -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'"
@
click=
"handleActivityRemind"
v-if=
"picaWechat !== 'wechat' || errorMsg"
>
>
<span>
预约权益
</span>
<span>
预约权益
</span>
<!--
<img
<!--
<img
...
@@ -76,7 +77,7 @@
...
@@ -76,7 +77,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
getInsProjectInfo
}
from
'@/api/entitlement'
;
import
{
getInsProjectInfo
,
getActivityInfo
}
from
'@/api/entitlement'
;
import
{
isWeixin
,
isMobile
}
from
'@/utils/index'
;
import
{
isWeixin
,
isMobile
}
from
'@/utils/index'
;
export
default
{
export
default
{
...
@@ -101,6 +102,7 @@ export default {
...
@@ -101,6 +102,7 @@ export default {
descList
:
[],
descList
:
[],
descBottomList
:
[],
descBottomList
:
[],
},
},
errorMsg
:
null
,
};
};
},
},
created
()
{
created
()
{
...
@@ -132,6 +134,7 @@ export default {
...
@@ -132,6 +134,7 @@ export default {
},
},
async
mounted
()
{
async
mounted
()
{
document
.
title
=
this
.
headerInfo
.
title
;
document
.
title
=
this
.
headerInfo
.
title
;
const
{
rightsNo
}
=
this
.
$route
.
query
;
const
{
rightsNo
}
=
this
.
$route
.
query
;
const
result
=
await
getInsProjectInfo
({
rightsNo
});
const
result
=
await
getInsProjectInfo
({
rightsNo
});
...
@@ -142,6 +145,7 @@ export default {
...
@@ -142,6 +145,7 @@ export default {
this
.
openWebAppConfigPositive
.
path
=
`pagesInsurance/exclusively-activity/submit?rightsNo=
${
rightsNo
}
&source=h5`
;
this
.
openWebAppConfigPositive
.
path
=
`pagesInsurance/exclusively-activity/submit?rightsNo=
${
rightsNo
}
&source=h5`
;
this
.
activityCheck
(
rightsNo
);
this
.
$sendBuriedData
(
this
.
$sendBuriedData
(
{
{
action
:
'ACTION_WEB_ENTER'
,
action
:
'ACTION_WEB_ENTER'
,
...
@@ -154,6 +158,21 @@ export default {
...
@@ -154,6 +158,21 @@ export default {
);
);
},
},
methods
:
{
methods
:
{
activityCheck
(
rightsNo
)
{
const
activity
=
getActivityInfo
({
unionId
:
''
,
rightsNo
});
if
(
activity
.
code
===
'000000'
)
{
this
.
errorMsg
=
activity
.
data
.
errorMsg
;
}
if
(
this
.
errorMsg
)
{
return
this
.
$toast
(
this
.
errorMsg
);
}
},
handleActivityRemind
()
{
if
(
!
this
.
errorMsg
)
return
;
this
.
$toast
(
this
.
errorMsg
);
},
handleErrorFn
(
e
)
{
handleErrorFn
(
e
)
{
console
.
log
(
'handleErrorFn'
,
e
);
console
.
log
(
'handleErrorFn'
,
e
);
},
},
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录