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