j1ack 3 years ago
parent
commit
b2b831ba70
  1. 4
      pages/recharge/recharge.vue
  2. 30
      pages/subscription/details.vue

4
pages/recharge/recharge.vue

@ -167,8 +167,8 @@
// #ifdef APP-PLUS // #ifdef APP-PLUS
plus.runtime.openURL(res.msg); plus.runtime.openURL(res.msg);
// #endif // #endif
// #ifdef H5 // #ifdef H5
window.location.href = res.msg window.open(res.msg, '_blank');
// #endif // #endif
} }
if (res.code == 1) { if (res.code == 1) {

30
pages/subscription/details.vue

@ -48,7 +48,7 @@
<!-- ProjectDetails --> <!-- ProjectDetails -->
<view class="contentTitle"> <view class="contentTitle">
<view class="ProjectDetails">{{ i18n.ProjectDetails }}</view> <view class="ProjectDetails">{{ i18n.ProjectDetails }}</view>
<view class="videoBtn" @click="getContact('video')">{{ i18n.Video }}</view> <view class="videoBtn" @click="playVideo(deinfo.sysCoinInfo.videoWebsite)">{{ i18n.Video }}</view>
<view class="whiteBook" @click="getContact('book')">{{ i18n.WhiteBook }}</view> <view class="whiteBook" @click="getContact('book')">{{ i18n.WhiteBook }}</view>
</view> </view>
@ -62,7 +62,8 @@
<view class="content">{{i18n.TotalCirculation+deinfo.sysCoinInfo.issueAmount}}</view> <view class="content">{{i18n.TotalCirculation+deinfo.sysCoinInfo.issueAmount}}</view>
<view class="content">{{i18n.ICOPrice+deinfo.sysCoinInfo.initalPrice}} USDT</view> <view class="content">{{i18n.ICOPrice+deinfo.sysCoinInfo.initalPrice}} USDT</view>
<view class="content">{{i18n.ICOTime+deinfo.sysCoinInfo.initialReleasePhase}}</view> <view class="content">{{i18n.ICOTime+deinfo.sysCoinInfo.initialReleasePhase}}</view>
<video class="video" v-show="videoShow" id="video" :enable-progress-gesture="false" autoplay="true"
:src="videoUrl" controls x5-video-player-type="h5-page" @fullscreenchange="ifStopVideo"></video>
</view> </view>
</view> </view>
</template> </template>
@ -97,6 +98,9 @@
hr: '', hr: '',
min: '', min: '',
sec: '', sec: '',
videoPlayer:null,
videoUrl:'',
videoShow:false
}; };
}, },
computed: { computed: {
@ -128,8 +132,25 @@
this.getDetail(res.id); this.getDetail(res.id);
// console.log(this.$t('login.emailInputMessage')); // console.log(this.$t('login.emailInputMessage'));
}, },
onShow() {}, onShow() {
this.videoPlayer = uni.createVideoContext(`video`, this);
},
methods: { 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() { subscribe() {
api.exchangeCoin({ api.exchangeCoin({
@ -177,11 +198,12 @@
} else { } else {
url = this.deinfo.sysCoinInfo.whitePaperWebsite url = this.deinfo.sysCoinInfo.whitePaperWebsite
} }
// #ifdef APP-PLUS // #ifdef APP-PLUS
plus.runtime.openURL(url); plus.runtime.openURL(url);
// #endif // #endif
// #ifdef H5 // #ifdef H5
window.location.href = url window.open(url, '_blank');
// #endif // #endif
}, },
// //

Loading…
Cancel
Save