提交 2a493ba3 编写于 作者: guangjun.yang's avatar guangjun.yang

定位问题等

上级 a8dc1879
...@@ -362,7 +362,7 @@ export default { ...@@ -362,7 +362,7 @@ export default {
this.fixedFlag = scrollTop > 200 ? true : false; this.fixedFlag = scrollTop > 200 ? true : false;
} else { } else {
h = catalogue.offsetTop - 600; h = catalogue.offsetTop - 600;
this.fixedFlag = scrollTop > 360 ? true : false; this.fixedFlag = scrollTop > 300 ? true : false;
} }
this.tabFlag = scrollTop > h ? false : true; this.tabFlag = scrollTop > h ? false : true;
}, },
...@@ -459,7 +459,8 @@ export default { ...@@ -459,7 +459,8 @@ export default {
if (this.isWeb) { if (this.isWeb) {
h = intro.offsetTop - title.offsetHeight; h = intro.offsetTop - title.offsetHeight;
} else { } else {
h = intro.offsetTop - 75 - title.offsetHeight; h = intro.offsetTop - 85 - title.offsetHeight;
// h = intro.offsetTop - 75 - title.offsetHeight;
} }
window.scrollTo(0, h); window.scrollTo(0, h);
this.isBlack = true; this.isBlack = true;
...@@ -636,86 +637,6 @@ export default { ...@@ -636,86 +637,6 @@ export default {
return 1; return 1;
} }
} }
// 获取单个模块信息
// getComponentInfoById(componentId) {
// let _this = this;
// let param = {
// componentId: componentId,
// token: _this.userInfo.userToken,
// setEntry: true
// };
// this.GET("portal/portalApp/component", param).then(res => {
// if (res.code == "000000") {
// _this.attachmentUrl = res.data.imageUrl;
// _this.projectIntro = res.data.introduce;
// _this.projectName = res.data.name;
// }
// });
// },
// 获取单个项目信息
// getCoopInfo(projectId) {
// let _this = this;
// let param = {
// portalProjectId: projectId,
// token: _this.userInfo.userToken,
// setEntry: true
// };
// this.GET("portal/portalApp/queryProjectParticulars", param).then(res => {
// if (res.code == "000000") {
// // 先设置视频URL再显示视频组件 ------------ BEGIN
// if (res.data.attachmentType == 2) {
// _this.videoOptions.mp4 = res.data.attachmentUrl;
// } else {
// _this.attachmentUrl = res.data.attachmentUrl;
// }
// _this.bannerType = res.data.attachmentType;
// if(_this.bannerType == 2) {
// _this.clientType = __isWeb ? 1 : __isAndroid ? 2 : 3;
// }
// // 先设置视频URL再显示视频组件 ------------ END
// _this.projectIntro = res.data.projectIntro;
// _this.projectName = res.data.projectName;
// _this.pStatus = res.data.status;
// }
// });
// },
// setContent(data) {
// let list = data;
// for(let i=0;i<list.length;i++) {
// let len = vueFilters.strLength(list[i].name);
// let certificate = list[i].certificateFlag;
// if(len > 30 && certificate == 2) {
// list[i].height = "2";
// } else if (len > 30 && certificate != 2) {
// list[i].height = 2;
// } else if (len <= 30 && certificate == 2) {
// list[i].height = "1";
// } else if(len <= 30 && certificate != 2) {
// list[i].height = 1;
// }
// }
// console.log('contentList!',list);
// return list;
// },
// 获取内容列表
// getContentList(moduleId) {
// let _this = this;
// let param = {
// moduleId: _this.moduleId,
// token: _this.userInfo.userToken,
// setEntry: true,
// projectId: _this.projectId,
// };
// _this.showLoading = true;
// this.GET("portal/portalApp/contentList", param).then(res => {
// // _this.showLoading = false;
// if (res.code == "000000") {
// _this.contentList = _this.setContent(res.data.contentList);
// }
// });
// },
} }
}; };
</script> </script>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册