提交 57992b97 编写于 作者: 张平's avatar 张平

Merge branch 'dev-hotfix(3p)-0308' into 'release'

CME迭代优化-前端 code reviewer: 张平

CME迭代优化-前端 code reviewer: 张平

See merge request !7
......@@ -89,7 +89,7 @@ const actionMap = {
12: "再考一次",
13: "已通过",
14: "已完成",
15: "去刷分",
15: "已通过",
16: "未通过",
21: "去学习",
22: "继续学习",
......
......@@ -51,7 +51,7 @@ const actionMap = {
12: "再考一次",
13: "已通过",
14: "已完成",
15: "去刷分",
15: "已通过",
16: "未通过",
21: "去学习",
22: "继续学习",
......
......@@ -74,7 +74,7 @@ export default {
default: ""
},
projectId: {
type: String,
type: String | Number,
default: "1"
},
inScope: {
......
......@@ -32,6 +32,7 @@
:subject="project.subject"
/>
<!-- 步骤条 -->
<div ref="cmeStepRef">
<CmeStep
:currentProgress="project.currentProgress"
:studyProgress="project.studyProgress"
......@@ -43,6 +44,7 @@
:certificateId="project.certificateId"
@applicationCredit="applicationCredit"
/>
</div>
<!-- 简介和目录 -->
<div class="intro-catalogue-container">
<div id="content-title" class="title" :class="{'fixed-title-1': (fixedFlag && !isWeb), 'fixed-title-2': (fixedFlag && isWeb)}">
......@@ -410,8 +412,8 @@ export default {
_this.clientType = __isWeb ? 1 : __isAndroid ? 2 : 3;
}
// 先设置视频URL再显示视频组件 ------------ END
_this.project = res.data;
if(_this.project.projectIntro) {
_this.textContent = _this.project.projectIntro.length > 70 ? _this.project.projectIntro.slice(0, 70) + "..." : this.project.projectIntro;
}
......@@ -432,6 +434,15 @@ export default {
_this.premissionFlag = true;
_this.permission(); // 提示是否有机构和在申请范围内
}
// TODO Add by Anndy Yang
if(_this.project.currentProgress == 2) {
this.$nextTick( () => {
window.scrollTo(0, 0);
// window.scrollTo(0, this.$refs.cmeStepRef.offsetTop - 100);
// window.scrollTo(0, this.$refs.cmeStepRef.offsetTop - 100);
})
}
}
//_this.showLoading = false;
});
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册