This commit is contained in:
YeMingfei666 2024-12-09 15:10:49 +08:00
commit f1728def4e
2 changed files with 19 additions and 9 deletions

View File

@ -49,16 +49,14 @@
<view class="number">1</view> <view class="number">1</view>
<view class="text"> <view class="text">
<text>抽奖细则</text> <text>抽奖细则</text>
<text>人每天最多拥有{{ freeNumDay }}抽奖机会</text> <text>日前{{ freeNumDay }}付款均可获得抽奖机会</text>
</view> </view>
</view> </view>
<view class="item item-rule"> <view class="item item-rule">
<view class="number">2</view> <view class="number">2</view>
<view class="text"> <view class="text">
<text>奖励说明</text> <text>奖励说明红包奖励将自动发放到红包余额已绑定支付宝账号将会自动发起提现其余奖品则需联系客服领取</text>
<text>a.现金奖系统会即时转入红包余额可提现</text>
<!-- <text>b.金币奖系统会即时转入金币账户可在平台内使用</text> --> <!-- <text>b.金币奖系统会即时转入金币账户可在平台内使用</text> -->
<text>b.实物奖中奖后需联系客服领取</text>
</view> </view>
</view> </view>
<!-- <template > <!-- <template >
@ -143,7 +141,7 @@
// //
goldNum: 20, goldNum: 20,
// //
freeNumDay: 10 freeNumDay: 0
} }
}, },
computed: { computed: {
@ -529,6 +527,7 @@
const res=await this.$Request.getT('app/discSpinning/drawCount') const res=await this.$Request.getT('app/discSpinning/drawCount')
if(res.code==0){ if(res.code==0){
this.freeNum=res.count||0 this.freeNum=res.count||0
this.freeNumDay=res.sum||0
} }
}, },
lingquClose(){ lingquClose(){

View File

@ -1111,7 +1111,6 @@
this.videoContextId = 'myVideo' + numIdCurr; this.videoContextId = 'myVideo' + numIdCurr;
this.videoContext = uni.createVideoContext(this.videoContextId, this); this.videoContext = uni.createVideoContext(this.videoContextId, this);
console.log('走更新了') console.log('走更新了')
this.$nextTick(() => { this.$nextTick(() => {
//播放当前的 //播放当前的
this.videoContext.play(); this.videoContext.play();
@ -1173,6 +1172,7 @@
//菜单数组 //菜单数组
this.meunList = arr; this.meunList = arr;
console.log(type) console.log(type)
console.log('this.noBuyVideoIndex',this.noBuyVideoIndex)
if (type == true) { //购买视频后返回的 if (type == true) { //购买视频后返回的
console.log('购买视频后返回的') console.log('购买视频后返回的')
let courseDetailsIds = this.videoList[this.current].courseDetailsId; let courseDetailsIds = this.videoList[this.current].courseDetailsId;
@ -1193,13 +1193,14 @@
if(this.noBuyVideoIndex!==null){ if(this.noBuyVideoIndex!==null){
this.noBuyVideoIndex=null this.noBuyVideoIndex=null
this.videoContext.stop() this.videoContext.stop()
return uni.navigateTo({ uni.navigateTo({
url:'/me/choujiang/choujiang' url:'/me/choujiang/choujiang'
}) })
} }
console.log('this.noBuyVideoIndex',this.noBuyVideoIndex)
} else { //直接跳转进来的 } else { //直接跳转进来的
this.videoList = this.meunList this.videoList = this.meunList
this.$nextTick(() => { this.$nextTick(() => {
let indexss = indexs > 0 ? indexs : 0 let indexss = indexs > 0 ? indexs : 0
//滚动到记录视频的位置(如果有记录) //滚动到记录视频的位置(如果有记录)
@ -1207,13 +1208,23 @@
console.log(indexs, '有记录吗?') console.log(indexs, '有记录吗?')
this.goListPosition(this.videoList[indexs].courseDetailsId) this.goListPosition(this.videoList[indexs].courseDetailsId)
} }
console.log('this.noBuyVideoIndex',this.noBuyVideoIndex)
if(this.noBuyVideoIndex!==null){
uni.navigateTo({
url:'/me/choujiang/choujiang'
})
}
if (this.videoList[indexss].videoUrl) { //有播放权限 if (this.videoList[indexss].videoUrl) { //有播放权限
let numIdCurr = this.videoList[indexss].courseDetailsId; let numIdCurr = this.videoList[indexss].courseDetailsId;
this.videoContextId = 'myVideo' + numIdCurr; this.videoContextId = 'myVideo' + numIdCurr;
this.videoContext = uni.createVideoContext(this this.videoContext = uni.createVideoContext(this
.videoContextId, .videoContextId,
this); this);
this.videoContext.play(); if(this.noBuyVideoIndex!=null){
this.noBuyVideoIndex=null
}else{
this.videoContext.play();
}
} else { //没有播放权限打开购买弹窗 } else { //没有播放权限打开购买弹窗
this.openPay() this.openPay()
} }