提交 42f01763 编写于 作者: guangjun.yang's avatar guangjun.yang

学完全部课程,可参加考试

上级 b7f5ba80
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
<van-popup <van-popup
v-model="isShow" v-model="isShow"
position="center" position="center"
@click-overlay="clickOverlay"
> >
<article class="content"> <article class="content">
<p class="title">学分项目必须使用学习卡</p> <p class="title">学分项目必须使用学习卡</p>
...@@ -52,6 +53,9 @@ export default { ...@@ -52,6 +53,9 @@ export default {
} }
}, },
methods: { methods: {
clickOverlay() {
this.$emit('clickOverlay');
},
cancle() { cancle() {
this.$emit('cancle'); this.$emit('cancle');
}, },
......
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
:btnText="project.currentProgress > 1 ? '参加考试' : '学完全部课程,可参加考试'" :btnText="project.currentProgress > 1 ? '参加考试' : '学完全部课程,可参加考试'"
:type="project.currentProgress > 1 ? 'primary' : 'disabled'"></ExjumperButton> :type="project.currentProgress > 1 ? 'primary' : 'disabled'"></ExjumperButton>
<div v-if="project.cmeType == 2" style="padding-top: 30px"></div> <div v-if="project.cmeType == 2" style="padding-top: 30px"></div>
<CardPopup :cardInfo="cardInfo" :isShow="isShowPopup" @cancle="jumpToCardList()" @confirm="confirm"></CardPopup> <CardPopup :cardInfo="cardInfo" :isShow="isShowPopup" @clickOverlay="clickOverlay" @cancle="jumpToCardList()" @confirm="confirm"></CardPopup>
<Loading v-show="showLoading" /> <Loading v-show="showLoading" />
</div> </div>
</template> </template>
...@@ -315,6 +315,12 @@ export default { ...@@ -315,6 +315,12 @@ export default {
methods: { methods: {
...mapActions(["setUserInfo"]), ...mapActions(["setUserInfo"]),
// 点击弹层
clickOverlay() {
console.log('clickOverlay');
this.isShowPopup = false;
},
// 点击“参与考试” // 点击“参与考试”
beforeJumpToExam() { beforeJumpToExam() {
// 如果是首次,则弹出弹框 // 如果是首次,则弹出弹框
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册