提交 25ebff74 编写于 作者: guangjun.yang's avatar guangjun.yang

文案与提示等

上级 22b19e1a
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
</div> </div>
<div class="bottom"> <div class="bottom">
<img src="../../images/cme/phrase2/info.png" /> <img src="../../images/cme/phrase2/info.png" />
<span>激活或购买后可学习课程</span> <span>{{desc}}</span>
</div> </div>
</article> </article>
<article class="right"> <article class="right">
...@@ -24,6 +24,10 @@ export default { ...@@ -24,6 +24,10 @@ export default {
cardInfo: { cardInfo: {
type: Object, type: Object,
default: () => {} default: () => {}
},
desc: {
type: String,
default: "激活或购买后可学习课程"
} }
}, },
data() { data() {
......
<template> <template>
<div class="free-tips-wrapper"> <div class="free-tips-wrapper" @click="buyCard">
<div class="left"> <div class="left">
<img src="../../images/question/warning-h.png" alt /> <img src="../../images/question/warning-h.png" alt />
<span class="text">免费练习{{total}}题,解锁全部题目需完成购买</span> <span class="text">免费练习{{total}}题,解锁全部题目需完成购买</span>
</div> </div>
<img class="right" @click="buyCard" src="../../images/question/arror-right.png" alt /> <img class="right" src="../../images/question/arror-right.png" alt />
</div> </div>
</template> </template>
<script> <script>
......
...@@ -132,6 +132,12 @@ export default { ...@@ -132,6 +132,12 @@ export default {
setEntry: true setEntry: true
}; };
this.currentQuestion.favorFlag = this.currentQuestion.favorFlag == 0 ? 1 : 0; this.currentQuestion.favorFlag = this.currentQuestion.favorFlag == 0 ? 1 : 0;
let operateText = "收藏成功";
if(param.operateType == 2) {
operateText = "取消收藏";
}
Toast(operateText);
this.POST("onlineexam/collectExamTitle", param).then(res => { this.POST("onlineexam/collectExamTitle", param).then(res => {
if (res.code == "000000") { if (res.code == "000000") {
if(res.data) { if(res.data) {
......
...@@ -149,7 +149,7 @@ ...@@ -149,7 +149,7 @@
<CourseDialog <CourseDialog
:subContent="subContent" :subContent="subContent"
confirmBtnText="激活并去学习" confirmBtnText="激活"
needSubContent needSubContent
:isShowDialog="showBindCardTips" :isShowDialog="showBindCardTips"
@handlerAction="handlerAction" @handlerAction="handlerAction"
...@@ -566,7 +566,7 @@ export default { ...@@ -566,7 +566,7 @@ export default {
if (res.code == "000000") { if (res.code == "000000") {
this.showLoading = false; this.showLoading = false;
this.cardInfo = (res.data && res.data[0]) || { id: 0, name: "职称考精讲课程卡" }; this.cardInfo = (res.data && res.data[0]) || { id: 0, name: "职称考精讲课程卡" };
this.subContent = `您已购买“${this.cardInfo.goodsName}”,是否用此卡绑定并激活当前课程。学习卡激活码一旦使用,不可更改不可退回` this.subContent = `您已购买“${this.cardInfo.goodsName}”,是否使用此卡绑定并激活当前内容?一旦使用,不可更改或退回`
} }
}); });
}, },
......
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
<BindCardButton <BindCardButton
v-if="!bindStatus" v-if="!bindStatus"
:cardInfo="cardInfo" :cardInfo="cardInfo"
desc="激活或购买后可做题"
@changeClick="changeClick" @changeClick="changeClick"
@gotoBuy="confirm" @gotoBuy="confirm"
></BindCardButton> ></BindCardButton>
...@@ -51,7 +52,7 @@ ...@@ -51,7 +52,7 @@
</ChangeCard> </ChangeCard>
<CourseDialog <CourseDialog
:subContent="subContent" :subContent="subContent"
confirmBtnText="激活并去习" confirmBtnText="激活并去习"
needSubContent needSubContent
:isShowDialog="showBindCardTips" :isShowDialog="showBindCardTips"
@handlerAction="handlerAction" @handlerAction="handlerAction"
...@@ -238,7 +239,7 @@ export default { ...@@ -238,7 +239,7 @@ export default {
if (res.code == "000000") { if (res.code == "000000") {
// this.showLoading = false; // this.showLoading = false;
this.cardInfo = (res.data && res.data[0]) || { id: 0, name: "职称考精讲课程卡" }; this.cardInfo = (res.data && res.data[0]) || { id: 0, name: "职称考精讲课程卡" };
this.subContent = `您已购买“${this.cardInfo.goodsName}”,是否用此卡绑定并激活当前课程。学习卡激活码一旦使用,不可更改不可退回` this.subContent = `您已购买“${this.cardInfo.goodsName}”,是否使用此卡绑定并激活当前内容?一旦使用,不可更改或退回`
} }
}); });
}, },
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<!-- 主动提示:激活并去学习 --> <!-- 主动提示:激活并去学习 -->
<CourseDialog <CourseDialog
:subContent="subContent" :subContent="subContent"
confirmBtnText="激活并去练习" confirmBtnText="激活"
needSubContent needSubContent
:isShowDialog="showBindCardTips" :isShowDialog="showBindCardTips"
@handlerAction="handlerAction" @handlerAction="handlerAction"
...@@ -474,7 +474,7 @@ export default { ...@@ -474,7 +474,7 @@ export default {
id: 0, id: 0,
name: "题库卡" name: "题库卡"
}; };
this.subContent = `您已购买${this.cardInfo.goodsName}”,是否用此卡绑定并激活当前题库。题库卡激活码一旦使用,不可更改不可退回`; this.subContent = `您已购买${this.cardInfo.goodsName}”,是否使用此卡绑定并激活当前内容?一旦使用,不可更改或退回`;
} }
}); });
}, },
......
...@@ -161,7 +161,7 @@ ...@@ -161,7 +161,7 @@
<!-- 主动提示:激活并去学习 --> <!-- 主动提示:激活并去学习 -->
<CourseDialog <CourseDialog
:subContent="subContent" :subContent="subContent"
confirmBtnText="激活并去学习" confirmBtnText="激活"
needSubContent needSubContent
:isShowDialog="showBindCardTips" :isShowDialog="showBindCardTips"
@handlerAction="handlerAction" @handlerAction="handlerAction"
...@@ -553,7 +553,7 @@ export default { ...@@ -553,7 +553,7 @@ export default {
if (res.code == "000000") { if (res.code == "000000") {
this.showLoading = false; this.showLoading = false;
this.cardInfo = (res.data && res.data[0]) || { id: 0, name: "职称考精讲课程卡" }; this.cardInfo = (res.data && res.data[0]) || { id: 0, name: "职称考精讲课程卡" };
this.subContent = `您已购买“${this.cardInfo.goodsName}”,是否用此卡绑定并激活当前课程。学习卡激活码一旦使用,不可更改不可退回` this.subContent = `您已购买“${this.cardInfo.goodsName}”,是否使用此卡绑定并激活当前内容?一旦使用,不可更改或退回`
} }
}); });
}, },
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册