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

调用有没有绑定卡

上级 4e0b92ff
......@@ -809,7 +809,6 @@ export default {
this.NEW_GET(`cme/project/${_this.projectId}/info`, param).then(res => {
// _this.showLoading = false;
if (res.code == "000000") {
console.log(111111);
if(videoUrl) {
_this.limitTimes = this.$route.query.trySeeTime || 300000;
_this.videoOptions.mp4 = videoUrl;
......@@ -819,23 +818,16 @@ export default {
_this.videoOptions.mp4 = res.data.attachmentUrl;
_this.videoOptions.trySeeTime = res.data.trySeeTime || 300000;
}
console.log(222222);
_this.hasBindCard = res.data.cardStatus == 0 ? false : true;
if(_this.hasBindCard) {
_this.videoOptions.trySeeTime = 300000;
_this.videoOptions.autoplay = false;
// 如果没有绑定卡,则查询是否有未绑定的卡
} else {
_this.hasNoUsedCardAction();
}
console.log(33333);
let mp4Url = _this.videoOptions.mp4;
// 判断是否是mp4
if(mp4Url.lastIndexOf('.mp4') > 0) {
_this.bannerType = 2;
// // TODO test
// _this.videoOptions.mp4 += 2;
} else {
if (res.data.attachmentType == 2) {
_this.videoOptions.mp4 = res.data.attachmentUrl;
......@@ -914,12 +906,13 @@ export default {
// 如果 hasBindCard 为false,则获取卡信息 0:未绑卡 1:已绑卡
if (!_this.hasBindCard) {
_this.preJumper();
_this.hasNoUsedCardAction();
}
// 请求成功后统计,获取项目名
this.$sendBuriedData({
component_tag: `882#88201#${_this.projectId}#${_this.project.projectName}`
});
});
}
});
},
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册