From 7b7c263cc298f93e423a6d7a62f4b4e475121fe2 Mon Sep 17 00:00:00 2001 From: vee <897831508@qq.com> Date: Mon, 5 Sep 2022 18:12:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/recharge/recharge.vue | 4 ++-- pages/subscription/details.vue | 30 ++++++++++++++++++++++++++---- 2 files changed, 28 insertions(+), 6 deletions(-) diff --git a/pages/recharge/recharge.vue b/pages/recharge/recharge.vue index bcdba11..d15a68d 100644 --- a/pages/recharge/recharge.vue +++ b/pages/recharge/recharge.vue @@ -167,8 +167,8 @@ // #ifdef APP-PLUS plus.runtime.openURL(res.msg); // #endif - // #ifdef H5 - window.location.href = res.msg + // #ifdef H5 + window.open(res.msg, '_blank'); // #endif } if (res.code == 1) { diff --git a/pages/subscription/details.vue b/pages/subscription/details.vue index e19011d..9d4fe74 100644 --- a/pages/subscription/details.vue +++ b/pages/subscription/details.vue @@ -48,7 +48,7 @@ {{ i18n.ProjectDetails }} - {{ i18n.Video }} + {{ i18n.Video }} {{ i18n.WhiteBook }} @@ -62,7 +62,8 @@ {{i18n.TotalCirculation+deinfo.sysCoinInfo.issueAmount}} {{i18n.ICOPrice+deinfo.sysCoinInfo.initalPrice}} USDT {{i18n.ICOTime+deinfo.sysCoinInfo.initialReleasePhase}} - + @@ -97,6 +98,9 @@ hr: '', min: '', sec: '', + videoPlayer:null, + videoUrl:'', + videoShow:false }; }, computed: { @@ -128,8 +132,25 @@ this.getDetail(res.id); // console.log(this.$t('login.emailInputMessage')); }, - onShow() {}, + onShow() { + this.videoPlayer = uni.createVideoContext(`video`, this); + }, methods: { + ifStopVideo(e) { + if (e.detail.fullScreen) { + this.videoPlayer.play() + } else { + this.videoShow = false + this.videoPlayer.pause() + } + }, + playVideo(data) { + this.videoUrl = data; + this.videoShow = true; + this.videoPlayer.requestFullScreen({ + direction: 0 + }) + }, //提交申购订单 subscribe() { api.exchangeCoin({ @@ -177,11 +198,12 @@ } else { url = this.deinfo.sysCoinInfo.whitePaperWebsite } + // #ifdef APP-PLUS plus.runtime.openURL(url); // #endif // #ifdef H5 - window.location.href = url + window.open(url, '_blank'); // #endif }, // 申购详情