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 @@
...
@@ -854,87 +854,85 @@
}
}
return
text
;
return
text
;
},
},
<<<<<<<
HEAD
// async jumpPage(url, id) {
// const _this = this;
async
jumpPage
(
url
,
id
)
{
// if (!!url) {
const
_this
=
this
;
// // 判断是否有跳转
if
(
!!
url
)
{
// const { token, isWeb } = _this;
// 判断是否有跳转
// _this.videoWatchTime = 0;
const
{
token
,
isWeb
}
=
_this
;
// _this.widgetId = id;
_this
.
videoWatchTime
=
0
;
// const { data } = await selectAppModuleParam({
_this
.
widgetId
=
id
;
// id: url,
const
{
data
}
=
await
selectAppModuleParam
({
// token
id
:
url
,
// });
token
// const itemData = data.model;
});
// this.$sendBuriedData({ // 积木组件点击埋点
const
itemData
=
data
.
model
;
// url: this.baseUrl + "/file/log/trace1",
this
.
$sendBuriedData
({
// 积木组件点击埋点
// action: 'ACTION_CLICK',
url
:
this
.
baseUrl
+
"/file/log/trace1"
,
// component_tag: `200#${_this.tempId}#0#${_this.widgetId}`
action
:
'ACTION_CLICK'
,
// });
component_tag
:
`200#
${
_this
.
tempId
}
#0#
${
_this
.
widgetId
}
`
// if (isWeb) {
});
// // TODO: //如果在 web 中在这里写
if
(
isWeb
)
{
// if (itemData.code == 'M300') {
// TODO: //如果在 web 中在这里写
// let paramList = setEventByModuleCode(itemData);
if
(
itemData
.
code
==
'M300'
)
{
// if (
let
paramList
=
setEventByModuleCode
(
itemData
);
// paramList[0].value.search('crrspt.') != -1
if
(
// ) {
paramList
[
0
].
value
.
search
(
'crrspt.'
)
!=
-
1
// // 患者招募
)
{
// paramList[0].value =
// 患者招募
// paramList[0].value + '?' + this.paramString;
paramList
[
0
].
value
=
// }
paramList
[
0
].
value
+
'?'
+
this
.
paramString
;
// if (paramList[0].value.search('/wjdc/') != -1) {
}
// // 问卷调查
if
(
paramList
[
0
].
value
.
search
(
'/wjdc/'
)
!=
-
1
)
{
// //console.log(paramList[0].value + '&pageUrl=' + window.location.href)
// 问卷调查
// location.href =
//console.log(paramList[0].value + '&pageUrl=' + window.location.href)
// paramList[0].value +
location
.
href
=
// '&pageUrl=' +
paramList
[
0
].
value
+
// window.location.href;
'&pageUrl='
+
// return;
window
.
location
.
href
;
// }
return
;
// location.href = paramList[0].value;
}
// } else {
location
.
href
=
paramList
[
0
].
value
;
// this.$dialog
}
else
{
// .confirm({
this
.
$dialog
// message: '请下载最新app',
.
confirm
({
// confirmButtonText: '去下载',
message
:
'请下载最新app'
,
// className: 'go-down-msg-box'
confirmButtonText
:
'去下载'
,
// })
className
:
'go-down-msg-box'
// .then(() => {
})
// location.href =
.
then
(()
=>
{
// 'https://www.yunqueyi.com/mobile/share_pica.html?hideQrcode=true';
location
.
href
=
// })
'https://www.yunqueyi.com/mobile/share_pica.html?hideQrcode=true'
;
// .catch(() => {});
})
// }
.
catch
(()
=>
{});
// } else {
}
// // 增加点击图片时候,是否有loginFlag参数,有,则校验并登录。如未登录去登录,已登录,老逻辑。
}
else
{
// const loginFlag = this.checkLoginFlag(itemData.paramList);
// 增加点击图片时候,是否有loginFlag参数,有,则校验并登录。如未登录去登录,已登录,老逻辑。
// if(loginFlag){
const
loginFlag
=
this
.
checkLoginFlag
(
itemData
.
paramList
);
// _this.refreshFlag = true;
if
(
loginFlag
){
// _this.$rocNative.getToken().then(res => {
_this
.
refreshFlag
=
true
;
// const { userToken } = res;
_this
.
$rocNative
.
getToken
().
then
(
res
=>
{
// // alert('APP拿到的token=:'+userToken)
const
{
userToken
}
=
res
;
// checkToken({ token: userToken }).then(res=>{
// alert('APP拿到的token=:'+userToken)
// if(res.code == '200000' || res.code == '200006') {
checkToken
({
token
:
userToken
}).
then
(
res
=>
{
// _this.$rocNative.gotoLogin();
if
(
res
.
code
==
'200000'
||
res
.
code
==
'200006'
)
{
// }else{
_this
.
$rocNative
.
gotoLogin
();
// _this.oldJumpHandle(itemData, userToken);
}
else
{
// }
_this
.
oldJumpHandle
(
itemData
,
userToken
);
// })
}
// });
})
// }else{
});
// _this.oldJumpHandle(itemData, _this.token);
}
else
{
// }
_this
.
oldJumpHandle
(
itemData
,
_this
.
token
);
// }
}
// }
}
// },
}
},
getHeaderHeight
(
val
){
getHeaderHeight
(
val
){
this
.
padTop
=
val
;
this
.
padTop
=
val
;
},
},
},
},
}
}
</
script
>
>
</
script
>
<
style
lang=
"less"
>
<
style
lang=
"less"
>
@import '../assets/style/in-activity.less';
@import '../assets/style/in-activity.less';
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录