修改金豆为金币
This commit is contained in:
@@ -316,6 +316,8 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
//可抽奖次数
|
||||
freeNum:0,
|
||||
showBack:false,
|
||||
noBuyVideoIndex:null,
|
||||
// 奖品列表,
|
||||
@@ -1194,6 +1196,13 @@
|
||||
// },1000)
|
||||
})
|
||||
},
|
||||
async getCount(){
|
||||
const res=await this.$Request.getT('app/discSpinning/drawCount')
|
||||
if(res.code==0){
|
||||
this.freeNum=res.count||0
|
||||
}
|
||||
return res
|
||||
},
|
||||
/**
|
||||
* @param {Number} courseId 总id
|
||||
* @param {Number} courseDetailsId 当前视频id
|
||||
@@ -1245,6 +1254,7 @@
|
||||
}
|
||||
})
|
||||
})
|
||||
getCount
|
||||
if(this.noBuyVideoIndex!==null){
|
||||
this.noBuyVideoIndex=null
|
||||
this.videoContext.stop()
|
||||
@@ -1274,8 +1284,12 @@
|
||||
this);
|
||||
if(this.noBuyVideoIndex!=null&&this.videoList[this.noBuyVideoIndex].videoUrl){
|
||||
this.videoContext.stop();
|
||||
uni.navigateTo({
|
||||
url:'/me/choujiang/choujiang'
|
||||
this.getCount(res).then(res=>{
|
||||
if(res.count>=1){
|
||||
uni.navigateTo({
|
||||
url:'/me/choujiang/choujiang'
|
||||
})
|
||||
}
|
||||
})
|
||||
this.noBuyVideoIndex=null
|
||||
}else{
|
||||
|
||||
Reference in New Issue
Block a user