提交 9f03cc32 编写于 作者: guangjun.yang's avatar guangjun.yang

新需求部分改动

上级 f54e9e4c
此差异已折叠。
...@@ -33,13 +33,12 @@ ...@@ -33,13 +33,12 @@
</div> </div>
<span <span
@click="gotoExamOrCourse(item)" @click="gotoExamOrCourse(item)"
v-show="hasBindCard"
class="text-action" class="text-action"
:class="{'text-action-no': item.useFlag == 2}" :class="{'text-action-no': item.useFlag == 2}"
> >
{{getActionText(item.status)}} {{getActionText(item.status)}}
</span> </span>
<img @click="toastToBuy" class="key" v-show="!hasBindCard" src="../../images/cme/phrase2/key.png" alt=""> <!-- <img @click="toastToBuy" class="key" v-show="!hasBindCard" src="../../images/cme/phrase2/key.png" alt=""> -->
<div class="foot-line" <div class="foot-line"
v-if="index+1 < portalModule.contentList.length && portalModule.contentList[index].templetId == portalModule.contentList[index+1].templetId"> v-if="index+1 < portalModule.contentList.length && portalModule.contentList[index].templetId == portalModule.contentList[index+1].templetId">
</div> </div>
...@@ -117,6 +116,10 @@ export default { ...@@ -117,6 +116,10 @@ export default {
courseRequire: { courseRequire: {
type: Number | String, type: Number | String,
default: 0, default: 0,
},
limitTimes: {
type: Number | String,
default: 0,
} }
}, },
computed: { computed: {
...@@ -154,11 +157,11 @@ export default { ...@@ -154,11 +157,11 @@ export default {
} }
let appVersion = getAppVersion(this.userInfo.appVersion); let appVersion = getAppVersion(this.userInfo.appVersion);
if (item.useFlag == 2) return; if (item.useFlag == 2) return;
if (window.__isWeb) { // if (window.__isWeb) {
// this.$refs.toastTitle.toast("请您下载App"); // // this.$refs.toastTitle.toast("请您下载App");
Toast('请您下载App'); // Toast('请您下载App');
return; // return;
} // }
if (item.type == 1) { if (item.type == 1) {
if (appVersion <= 300) { if (appVersion <= 300) {
// this.$refs.toastTitle.toast("请您下载新版本App"); // this.$refs.toastTitle.toast("请您下载新版本App");
...@@ -174,6 +177,19 @@ export default { ...@@ -174,6 +177,19 @@ export default {
// 跳转到课程 // 跳转到课程
gotoCourse: function(courseId) { gotoCourse: function(courseId) {
let appVersion = getAppVersion(this.userInfo.appVersion);
// 弹框提示下载新版本可以试看
if(appVersion < 343) {
this.$dialog.confirm({
className: 'con-dialog',
showCancelButton: false,
message: '升级最新版本可试看课程',
confirmButtonText: '我知道了',
}).then(res => {
})
return;
}
let paramList = [] let paramList = []
paramList = [ paramList = [
{ {
...@@ -200,6 +216,18 @@ export default { ...@@ -200,6 +216,18 @@ export default {
type: 4, type: 4,
seqNo: 1 seqNo: 1
}, },
{
key: "limitTimes",
value: this.limitTimes - 0,
type: 4,
seqNo: 1
},
{
key: "hasBindCard",
value: this.hasBindCard ? 1 : 0,
type: 4,
seqNo: 1
},
]; ];
rocNative.dispatchEventByModuleCode({ rocNative.dispatchEventByModuleCode({
modeCode: "M200", modeCode: "M200",
......
...@@ -91,6 +91,7 @@ ...@@ -91,6 +91,7 @@
:detailNum="detailNum" :detailNum="detailNum"
:courseRequire="courseRequire" :courseRequire="courseRequire"
:hasBindCard="hasBindCard" :hasBindCard="hasBindCard"
:limitTimes="limitTimes"
/> />
</div> </div>
</div> </div>
...@@ -239,6 +240,7 @@ export default { ...@@ -239,6 +240,7 @@ export default {
// currentProgress>1时考试按钮显示并可用 // currentProgress>1时考试按钮显示并可用
}, },
hasBindCard: false, // 是否绑定过学习卡或激活过 没有绑定,则显示绑定按钮 hasBindCard: false, // 是否绑定过学习卡或激活过 没有绑定,则显示绑定按钮
limitTimes: 60,
projectLeader: {}, projectLeader: {},
doctorList: [], doctorList: [],
from: "inner", from: "inner",
...@@ -937,6 +939,7 @@ export default { ...@@ -937,6 +939,7 @@ export default {
// 如果 hasBindCard 为false,则获取卡信息 0:未绑卡 1:已绑卡 // 如果 hasBindCard 为false,则获取卡信息 0:未绑卡 1:已绑卡
_this.hasBindCard = res.data.cardStatus == 0 ? false : true; _this.hasBindCard = res.data.cardStatus == 0 ? false : true;
_this.limitTimes = res.data.trySeeTime || 60;
if (!_this.hasBindCard) { if (!_this.hasBindCard) {
_this.preJumper(); _this.preJumper();
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册