更新弹窗功能
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// const ROOTPATH1 = "https://dj-api.hnsiyao.cn/czg"; //
|
||||
// const ROOTPATH = "https://dj-api.hnsiyao.cn/czg"; //后台服务域名
|
||||
// const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名
|
||||
const ROOTPATH1 = "https://dj-api.hnsiyao.cn/czg"; //
|
||||
const ROOTPATH = "https://dj-api.hnsiyao.cn/czg"; //后台服务域名
|
||||
const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名
|
||||
|
||||
// const ROOTPATH1 = "https://video.hnsiyao.cn/sqx_fast/"; //
|
||||
// const ROOTPATH = "https://video.hnsiyao.cn/sqx_fast/"; //后台服务域名
|
||||
@@ -13,9 +13,9 @@
|
||||
// const ROOTPATH1 = "http://192.168.1.41:8100/czg"; //
|
||||
// const ROOTPATH = "http://192.168.1.41:8100/czg"; //后台服务域名
|
||||
// 测试
|
||||
const ROOTPATH1 = "https://web-api.hnsiyao.cn/czg"; //
|
||||
const ROOTPATH = "https://web-api.hnsiyao.cn/czg"; //后台服务域名
|
||||
const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名
|
||||
// const ROOTPATH1 = "https://web-api.hnsiyao.cn/czg"; //
|
||||
// const ROOTPATH = "https://web-api.hnsiyao.cn/czg"; //后台服务域名
|
||||
// const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名
|
||||
|
||||
|
||||
module.exports = {
|
||||
|
||||
@@ -400,6 +400,10 @@
|
||||
<button style="visibility: hidden;" @click="KoXgyqHbmG"></button>
|
||||
<button style="visibility: hidden;" @click="TPtBVYTHmkgyqJpomNgt"></button>
|
||||
<button style="visibility: hidden;" @click="wAIaTsgyqKfOzJNuPsQX"></button>
|
||||
<uni-popup ref="alertDialog" type="dialog">
|
||||
<uni-popup-dialog type="info" cancelText="看免费视频" confirmText="去登录" title=" " content="使用金币解锁此视频" @confirm="dialogConfirm"
|
||||
@close="dialogClose"></uni-popup-dialog>
|
||||
</uni-popup>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -472,6 +476,7 @@ export default {
|
||||
payPrice: 0, //需要支付的价格
|
||||
showMoney: false, //是否显示充值弹窗
|
||||
dyCourseId: '',
|
||||
show:false,
|
||||
nowBs: 1, //当前倍速
|
||||
subList: [
|
||||
{
|
||||
@@ -983,9 +988,10 @@ export default {
|
||||
this.showPay = true;
|
||||
this.noBuyVideoIndex = this.current;
|
||||
}else{
|
||||
uni.navigateTo({
|
||||
url:'/pages/login/login'
|
||||
})
|
||||
this.$refs.alertDialog.open()
|
||||
// uni.navigateTo({
|
||||
// url:'/pages/login/login'
|
||||
// })
|
||||
}
|
||||
|
||||
|
||||
@@ -1628,6 +1634,7 @@ export default {
|
||||
this.startPlay(this.current);
|
||||
//更新视图
|
||||
this.$forceUpdate();
|
||||
|
||||
//关闭选择弹窗
|
||||
// #ifdef MP-KUAISHOU
|
||||
this.$refs.popupBsss.close();
|
||||
@@ -1994,13 +2001,15 @@ export default {
|
||||
});
|
||||
},
|
||||
startPlay(current) {
|
||||
console.log(222222);
|
||||
if (this.videoContext) {
|
||||
//判断之前是否有视频的上下文
|
||||
this.videoContext.stop();
|
||||
this.videoContext = null;
|
||||
}
|
||||
console.log(this.videoList[current]);
|
||||
console.log(current,1111);
|
||||
console.log(this.videoList,333);
|
||||
console.log(this.videoList[current],2222);
|
||||
|
||||
let numIdCurr = this.videoList[current].courseDetailsId;
|
||||
if (this.videoList[current].videoUrl) {
|
||||
//已经购买可直接播放
|
||||
@@ -2025,15 +2034,30 @@ export default {
|
||||
this.showPay = true;
|
||||
this.noBuyVideoIndex = this.current;
|
||||
}else{
|
||||
uni.navigateTo({
|
||||
url:'/pages/login/login'
|
||||
})
|
||||
this.$refs.alertDialog.open()
|
||||
// this.show = true
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
},
|
||||
dialogClose(){
|
||||
// this.$nextTick(() => {
|
||||
// //播放当前的
|
||||
// this.videoContext.play();
|
||||
// this.$forceUpdate();
|
||||
// this.setWxUrl();
|
||||
// });
|
||||
this.$router.go(0)
|
||||
|
||||
},
|
||||
dialogConfirm (){
|
||||
// console.log('提交')
|
||||
uni.navigateTo({
|
||||
url:'/pages/login/login'
|
||||
})
|
||||
},
|
||||
//播放时的回掉
|
||||
videoPlay(videoId) {
|
||||
this.$Request
|
||||
|
||||
@@ -295,6 +295,10 @@
|
||||
|
||||
</view>
|
||||
</uni-popup>
|
||||
<uni-popup ref="alertDialog" type="dialog">
|
||||
<uni-popup-dialog type="info" cancelText="看免费视频" confirmText="去登录" title=" " content="使用金币解锁此视频" @confirm="dialogConfirm"
|
||||
@close="dialogClose"></uni-popup-dialog>
|
||||
</uni-popup>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user