Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-annual-summary
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-annual-summary
提交
cad60580
提交
cad60580
编写于
9月 02, 2020
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
通用token校验
上级
5a35c6d9
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
37 行增加
和
14 行删除
+37
-14
mixins.js
src/utils/mixins.js
+17
-1
share-merge-detail.vue
src/views/share-merge-detail.vue
+20
-13
未找到文件。
src/utils/mixins.js
浏览文件 @
cad60580
...
...
@@ -212,7 +212,23 @@ module.exports = {
return
null
},
onAvatarError
(
e
)
{
e
.
target
.
src
=
'https://file.yunqueyi.com/File/doctor_default.png'
;
e
.
target
.
src
=
'https://file.yunqueyi.com/File/doctor_default.png'
;
},
// 通用token校验
commonCheckToken
(
noLoggedCallback
)
{
let
param
=
{
token
:
this
.
token
,
setEntry
:
true
};
this
.
GET
(
"campaign/admin/task/checkToken"
,
param
).
then
(
res
=>
{
if
(
res
.
code
!==
"000000"
)
{
this
.
goLogin
();
}
else
{
noLoggedCallback
&&
noLoggedCallback
()
}
});
}
}
}
src/views/share-merge-detail.vue
浏览文件 @
cad60580
...
...
@@ -132,7 +132,7 @@
:changeErrorMsg=
"changeCardErrorMsg"
:isShow=
"showChangeCard"
@
cancle=
"cancleChangeCard"
@
confirm=
"
c
hangeCardAction"
@
confirm=
"
beforeC
hangeCardAction"
></ChangeCard>
<Loading
v-show=
"showLoading"
/>
<div>
...
...
@@ -392,7 +392,7 @@ export default {
this
.
GET
(
`portal/shareParam/queryByUuid`
,
param
).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
)
{
this
.
shareParam
=
JSON
.
parse
(
res
.
data
||
"{}"
);
this
.
projectId
=
this
.
shareParam
.
projectId
||
797
;
// 797
this
.
projectId
=
this
.
shareParam
.
projectId
||
812
;
// 797 812
this
.
getProjectInfoById
();
console
.
log
(
'queryByUuid'
,
res
);
}
...
...
@@ -445,12 +445,20 @@ export default {
this
.
showChangeCard
=
false
;
},
// 激活 返回值:0绑定失败,1绑定成功
// 激活前
beforeChangeCardAction
(
cardKey
)
{
this
.
commonCheckToken
(
()
=>
{
this
.
changeCardAction
(
cardKey
);
})
},
// 激活Action 返回值:0绑定失败,1绑定成功
changeCardAction
(
cardKey
)
{
let
_this
=
this
;
let
param
=
{
cardKey
:
cardKey
,
cardType
:
3
,
channel
:
3
,
portalProjectId
:
this
.
projectId
,
setEntry
:
true
};
...
...
@@ -526,9 +534,10 @@ export default {
// this.$sendBuriedData({
// component_tag: `882#88203`
// });
let
jumpUrl
=
getWebPageUrl
(
`profexam/#/goods-detail?goodsId=
${
this
.
goodsId
}
&token=
${
this
.
token
}
`
);
window
.
location
.
href
=
jumpUrl
;
// "https://a.app.qq.com/o/simple.jsp?pkgname=com.picahealth.yunque";
this
.
commonCheckToken
(
()
=>
{
let
jumpUrl
=
getWebPageUrl
(
`profexam/#/goods-detail?goodsId=
${
this
.
cardInfo
.
id
}
&token=
${
this
.
token
}
`
);
window
.
location
.
href
=
jumpUrl
;
})
},
// 首次进入考试时记录(点击‘我知道了’时调用)
...
...
@@ -547,14 +556,12 @@ export default {
);
},
//去激活
changeClick
(
msg
)
{
console
.
log
(
"in changeClick"
);
this
.
showChangeCard
=
true
;
// this.$sendBuriedData({
// component_tag: `882#88202`
// });
//去激活
changeClick
()
{
this
.
commonCheckToken
(
()
=>
{
this
.
showChangeCard
=
true
;
})
},
scrollFun
()
{
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录