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

调用有没有绑定卡

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