提交 32528f18 编写于 作者: tao.wu's avatar tao.wu

加入页面边距样式 冲突

上级 c2ee2f11
......@@ -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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册