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

激活/购买后可参加考试

上级 8a1da1b6
...@@ -166,6 +166,10 @@ export default { ...@@ -166,6 +166,10 @@ export default {
component_tag: `882#88216#${item.id}#${item.name}` component_tag: `882#88216#${item.id}#${item.name}`
}); });
} }
// 在浏览器中
if(!isWeiXin()) {
// 没有绑定则提示去购买/激活
if(!this.hasBindCard) { if(!this.hasBindCard) {
if(item.type == 1) { if(item.type == 1) {
Toast('激活/购买后可参加考试'); Toast('激活/购买后可参加考试');
...@@ -173,9 +177,8 @@ export default { ...@@ -173,9 +177,8 @@ export default {
Toast('激活/购买后可学习完整课程'); Toast('激活/购买后可学习完整课程');
} }
return; return;
} // 已经绑定则前往云鹊医APP
} else {
if(!isWeiXin()) {
if(item.type == 1) { if(item.type == 1) {
Toast('请前往云鹊医APP参加考试'); Toast('请前往云鹊医APP参加考试');
} else if(item.type == 2){ } else if(item.type == 2){
...@@ -183,6 +186,7 @@ export default { ...@@ -183,6 +186,7 @@ export default {
} }
return; return;
} }
}
if(!this.logged) { if(!this.logged) {
if(item.type == 1) { if(item.type == 1) {
......
...@@ -87,9 +87,12 @@ export default { ...@@ -87,9 +87,12 @@ export default {
margin-left: 1px; margin-left: 1px;
margin-right: 4px; margin-right: 4px;
} }
& > span {
font-size: 12px;
color: #979899; color: #979899;
} }
} }
}
.right { .right {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
......
...@@ -90,9 +90,12 @@ export default { ...@@ -90,9 +90,12 @@ export default {
margin-left: 1px; margin-left: 1px;
margin-right: 4px; margin-right: 4px;
} }
& > span {
font-size: 12px;
color: #979899; color: #979899;
} }
} }
}
.right { .right {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
......
...@@ -561,7 +561,7 @@ export default { ...@@ -561,7 +561,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.name}”,是否用此卡绑定并激活当前课程。学习卡激活码一旦使用,不可更改不可退回` this.subContent = `您已购买“${this.cardInfo.goodsName}”,是否用此卡绑定并激活当前课程。学习卡激活码一旦使用,不可更改不可退回`
} }
}); });
}, },
......
...@@ -546,7 +546,7 @@ export default { ...@@ -546,7 +546,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.name}”,是否用此卡绑定并激活当前课程。学习卡激活码一旦使用,不可更改不可退回` this.subContent = `您已购买“${this.cardInfo.goodsName}”,是否用此卡绑定并激活当前课程。学习卡激活码一旦使用,不可更改不可退回`
} }
}); });
}, },
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册