Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
Y
year-end-activitiy
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.foundation.frontend
year-end-activitiy
提交
32528f18
提交
32528f18
编写于
12月 05, 2019
作者:
tao.wu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
加入页面边距样式 冲突
上级
c2ee2f11
变更
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
74 行增加
和
76 行删除
+74
-76
in-activity.vue
pages/in-activity.vue
+74
-76
未找到文件。
pages/in-activity.vue
浏览文件 @
32528f18
...
...
@@ -854,87 +854,85 @@
}
return
text
;
},
<<<<<<<
HEAD
async
jumpPage
(
url
,
id
)
{
const
_this
=
this
;
if
(
!!
url
)
{
// 判断是否有跳转
const
{
token
,
isWeb
}
=
_this
;
_this
.
videoWatchTime
=
0
;
_this
.
widgetId
=
id
;
const
{
data
}
=
await
selectAppModuleParam
({
id
:
url
,
token
});
const
itemData
=
data
.
model
;
this
.
$sendBuriedData
({
// 积木组件点击埋点
url
:
this
.
baseUrl
+
"/file/log/trace1"
,
action
:
'ACTION_CLICK'
,
component_tag
:
`200#
${
_this
.
tempId
}
#0#
${
_this
.
widgetId
}
`
});
if
(
isWeb
)
{
// TODO: //如果在 web 中在这里写
if
(
itemData
.
code
==
'M300'
)
{
let
paramList
=
setEventByModuleCode
(
itemData
);
if
(
paramList
[
0
].
value
.
search
(
'crrspt.'
)
!=
-
1
)
{
// 患者招募
paramList
[
0
].
value
=
paramList
[
0
].
value
+
'?'
+
this
.
paramString
;
}
if
(
paramList
[
0
].
value
.
search
(
'/wjdc/'
)
!=
-
1
)
{
// 问卷调查
//console.log(paramList[0].value + '&pageUrl=' + window.location.href)
location
.
href
=
paramList
[
0
].
value
+
'&pageUrl='
+
window
.
location
.
href
;
return
;
}
location
.
href
=
paramList
[
0
].
value
;
}
else
{
this
.
$dialog
.
confirm
({
message
:
'请下载最新app'
,
confirmButtonText
:
'去下载'
,
className
:
'go-down-msg-box'
})
.
then
(()
=>
{
location
.
href
=
'https://www.yunqueyi.com/mobile/share_pica.html?hideQrcode=true'
;
})
.
catch
(()
=>
{});
}
}
else
{
// 增加点击图片时候,是否有loginFlag参数,有,则校验并登录。如未登录去登录,已登录,老逻辑。
const
loginFlag
=
this
.
checkLoginFlag
(
itemData
.
paramList
);
if
(
loginFlag
){
_this
.
refreshFlag
=
true
;
_this
.
$rocNative
.
getToken
().
then
(
res
=>
{
const
{
userToken
}
=
res
;
// alert('APP拿到的token=:'+userToken)
checkToken
({
token
:
userToken
}).
then
(
res
=>
{
if
(
res
.
code
==
'200000'
||
res
.
code
==
'200006'
)
{
_this
.
$rocNative
.
gotoLogin
();
}
else
{
_this
.
oldJumpHandle
(
itemData
,
userToken
);
}
})
});
}
else
{
_this
.
oldJumpHandle
(
itemData
,
_this
.
token
);
}
}
}
},
// async jumpPage(url, id) {
// const _this = this;
// if (!!url) {
// // 判断是否有跳转
// const { token, isWeb } = _this;
// _this.videoWatchTime = 0;
// _this.widgetId = id;
// const { data } = await selectAppModuleParam({
// id: url,
// token
// });
// const itemData = data.model;
// this.$sendBuriedData({ // 积木组件点击埋点
// url: this.baseUrl + "/file/log/trace1",
// action: 'ACTION_CLICK',
// component_tag: `200#${_this.tempId}#0#${_this.widgetId}`
// });
// if (isWeb) {
// // TODO: //如果在 web 中在这里写
// if (itemData.code == 'M300') {
// let paramList = setEventByModuleCode(itemData);
// if (
// paramList[0].value.search('crrspt.') != -1
// ) {
// // 患者招募
// paramList[0].value =
// paramList[0].value + '?' + this.paramString;
// }
// if (paramList[0].value.search('/wjdc/') != -1) {
// // 问卷调查
// //console.log(paramList[0].value + '&pageUrl=' + window.location.href)
// location.href =
// paramList[0].value +
// '&pageUrl=' +
// window.location.href;
// return;
// }
// location.href = paramList[0].value;
// } else {
// this.$dialog
// .confirm({
// message: '请下载最新app',
// confirmButtonText: '去下载',
// className: 'go-down-msg-box'
// })
// .then(() => {
// location.href =
// 'https://www.yunqueyi.com/mobile/share_pica.html?hideQrcode=true';
// })
// .catch(() => {});
// }
// } else {
// // 增加点击图片时候,是否有loginFlag参数,有,则校验并登录。如未登录去登录,已登录,老逻辑。
// const loginFlag = this.checkLoginFlag(itemData.paramList);
// if(loginFlag){
// _this.refreshFlag = true;
// _this.$rocNative.getToken().then(res => {
// const { userToken } = res;
// // alert('APP拿到的token=:'+userToken)
// checkToken({ token: userToken }).then(res=>{
// if(res.code == '200000' || res.code == '200006') {
// _this.$rocNative.gotoLogin();
// }else{
// _this.oldJumpHandle(itemData, userToken);
// }
// })
// });
// }else{
// _this.oldJumpHandle(itemData, _this.token);
// }
// }
// }
// },
getHeaderHeight
(
val
){
this
.
padTop
=
val
;
},
},
}
</
script
>
>
</
script
>
<
style
lang=
"less"
>
@import '../assets/style/in-activity.less';
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录