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

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

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