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

新部署及验证

上级 0c886a43
...@@ -16,8 +16,8 @@ import clipboard from 'clipboard'; ...@@ -16,8 +16,8 @@ import clipboard from 'clipboard';
//注册到vue原型上 //注册到vue原型上
Vue.prototype.clipboard = clipboard; Vue.prototype.clipboard = clipboard;
if (!(process.env.BUILD_ENV === 'uat' || process.env.BUILD_ENV === 'pro')) { // if (!(process.env.BUILD_ENV === 'uat' || process.env.BUILD_ENV === 'pro')) {
// if(!(process.env.BUILD_ENV === 'pro')) { if(!(process.env.BUILD_ENV === 'pro')) {
let vConsole = new VConsole() // 初始化 let vConsole = new VConsole() // 初始化
} }
......
...@@ -226,7 +226,7 @@ export default { ...@@ -226,7 +226,7 @@ export default {
bannerType: 1, // 1 图片 2视频 bannerType: 1, // 1 图片 2视频
videoOptions: { videoOptions: {
mp4: "", mp4: "",
autoplay: false, //iOS下safari浏览器,以及大部分移动端浏览器是不开放视频自动播放这个能力的 autoplay: true, //iOS下safari浏览器,以及大部分移动端浏览器是不开放视频自动播放这个能力的
coverpic: require("../images/video-cover.png"), coverpic: require("../images/video-cover.png"),
width: "415", //视频的显示宽度,请尽量使用视频分辨率宽度 width: "415", //视频的显示宽度,请尽量使用视频分辨率宽度
height: "210" //视频的显示高度,请尽量使用视频分辨率高度 height: "210" //视频的显示高度,请尽量使用视频分辨率高度
...@@ -736,6 +736,7 @@ export default { ...@@ -736,6 +736,7 @@ export default {
_this.showLoading = true; _this.showLoading = true;
this.NEW_GET(`cme/project/${_this.projectId}/info`, param).then(res => { this.NEW_GET(`cme/project/${_this.projectId}/info`, param).then(res => {
if (res.code == "000000") { if (res.code == "000000") {
_this.hasBindCard = res.data.cardStatus == 0 ? false : true;
if(videoUrl) { if(videoUrl) {
_this.videoOptions.mp4 = videoUrl; _this.videoOptions.mp4 = videoUrl;
this.limitTimes = this.$route.query.trySeeTime || 300000; this.limitTimes = this.$route.query.trySeeTime || 300000;
...@@ -743,7 +744,7 @@ export default { ...@@ -743,7 +744,7 @@ 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;
} }
if(this.hasBindCard) { if(_this.hasBindCard) {
_this.videoOptions.trySeeTime = 300000; _this.videoOptions.trySeeTime = 300000;
_this.videoOptions.autoplay = false; _this.videoOptions.autoplay = false;
} }
...@@ -824,7 +825,6 @@ export default { ...@@ -824,7 +825,6 @@ export default {
}, 800); }, 800);
// 如果 hasBindCard 为false,则获取卡信息 0:未绑卡 1:已绑卡 // 如果 hasBindCard 为false,则获取卡信息 0:未绑卡 1:已绑卡
_this.hasBindCard = res.data.cardStatus == 0 ? false : true;
_this.limitTimes = res.data.trySeeTime; _this.limitTimes = res.data.trySeeTime;
if (!_this.hasBindCard) { if (!_this.hasBindCard) {
_this.preJumper(); _this.preJumper();
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册