修改金豆为金币
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{
|
||||
|
||||
@@ -1210,7 +1210,7 @@
|
||||
closeMoney(data) {
|
||||
this.showMoney = data
|
||||
},
|
||||
//使用金豆购买
|
||||
//使用金币购买
|
||||
submitPay(type) {
|
||||
let data = {
|
||||
courseId: this.courseId
|
||||
|
||||
@@ -197,7 +197,7 @@
|
||||
账号余额:
|
||||
</text>
|
||||
<text class="popuppay-money-l-jd">
|
||||
{{moneyNum}}金豆
|
||||
{{moneyNum}}金币
|
||||
</text>
|
||||
<text class="popuppay-money-l-mx" @click="goWallet('/me/wallet/wallet')">
|
||||
查看明细
|
||||
@@ -208,7 +208,7 @@
|
||||
解锁价格:
|
||||
</text>
|
||||
<text class="popuppay-money-jd">
|
||||
{{payPrice}}金豆
|
||||
{{payPrice}}金币
|
||||
</text>
|
||||
</view>
|
||||
</view> -->
|
||||
@@ -225,12 +225,12 @@
|
||||
</view>
|
||||
<view class="payList-item-dou">
|
||||
<text class="payList-item-dous">
|
||||
{{item.money}}金豆
|
||||
{{item.money}}金币
|
||||
</text>
|
||||
</view>
|
||||
<view class="payList-item-duo" v-if="item.giveMoney>0">
|
||||
<text class="payList-item-duos">
|
||||
多送{{item.giveMoney}}金豆
|
||||
多送{{item.giveMoney}}金币
|
||||
</text>
|
||||
</view>
|
||||
<view class="payList-item-hui" v-if="item.remarks">
|
||||
@@ -925,7 +925,7 @@
|
||||
})
|
||||
}
|
||||
},
|
||||
//使用金豆购买
|
||||
//使用金币购买
|
||||
submitPay(type) {
|
||||
let data = {
|
||||
courseId: this.courseId
|
||||
|
||||
@@ -128,7 +128,7 @@
|
||||
},
|
||||
{
|
||||
imgurl: '/static/images/pay/lingqian.png',
|
||||
name: '金豆支付',
|
||||
name: '金币支付',
|
||||
payAway: 3
|
||||
}
|
||||
]
|
||||
@@ -138,7 +138,7 @@
|
||||
if (checkIosPay === '是') {
|
||||
this.payList = [{
|
||||
imgurl: '/static/images/pay/lingqian.png',
|
||||
name: '金豆支付',
|
||||
name: '金币支付',
|
||||
payAway: 3
|
||||
}]
|
||||
this.payAway = 3
|
||||
@@ -155,7 +155,7 @@
|
||||
},
|
||||
{
|
||||
imgurl: '/static/images/pay/lingqian.png',
|
||||
name: '金豆支付',
|
||||
name: '金币支付',
|
||||
payAway: 3
|
||||
}
|
||||
]
|
||||
@@ -166,7 +166,7 @@
|
||||
// #ifdef MP-WEIXIN
|
||||
this.payList = [{
|
||||
imgurl: '/static/images/pay/lingqian.png',
|
||||
name: '金豆支付',
|
||||
name: '金币支付',
|
||||
payAway: 3
|
||||
}]
|
||||
this.payAway = 3
|
||||
@@ -181,7 +181,7 @@
|
||||
},
|
||||
{
|
||||
imgurl: '/static/images/pay/lingqian.png',
|
||||
name: '金豆支付',
|
||||
name: '金币支付',
|
||||
payAway: 3
|
||||
}
|
||||
]
|
||||
@@ -194,7 +194,7 @@
|
||||
},
|
||||
{
|
||||
imgurl: '/static/images/pay/lingqian.png',
|
||||
name: '金豆支付',
|
||||
name: '金币支付',
|
||||
payAway: 3
|
||||
}
|
||||
]
|
||||
@@ -209,7 +209,7 @@
|
||||
},
|
||||
{
|
||||
imgurl: '/static/images/pay/lingqian.png',
|
||||
name: '金豆支付',
|
||||
name: '金币支付',
|
||||
payAway: 3
|
||||
}
|
||||
]
|
||||
@@ -225,7 +225,7 @@
|
||||
},
|
||||
{
|
||||
imgurl: '/static/images/pay/lingqian.png',
|
||||
name: '金豆支付',
|
||||
name: '金币支付',
|
||||
payAway: 3
|
||||
}
|
||||
]
|
||||
@@ -233,7 +233,7 @@
|
||||
} else {
|
||||
this.payList = [{
|
||||
imgurl: '/static/images/pay/lingqian.png',
|
||||
name: '金豆支付',
|
||||
name: '金币支付',
|
||||
payAway: 3
|
||||
}]
|
||||
this.payAway = 3
|
||||
@@ -385,7 +385,7 @@
|
||||
}
|
||||
})
|
||||
} else {
|
||||
switch (this.payAway) { //1:微信支付,2:支付宝支付 3:金豆支付
|
||||
switch (this.payAway) { //1:微信支付,2:支付宝支付 3:金币支付
|
||||
case 1: //微信支付
|
||||
// #ifdef MP-WEIXIN
|
||||
that.$Request.postT("/app/wxPay/wxPayJsApiOrder", {
|
||||
|
||||
@@ -5,14 +5,14 @@
|
||||
<view class="money-top">
|
||||
<image src="../../static/images/me/moneyBanner.png" mode=""></image>
|
||||
<view class="money-top-title">
|
||||
当前剩余金豆
|
||||
当前剩余金币
|
||||
</view>
|
||||
<view class="money-top-money">
|
||||
{{formatNumber(moneyNum)}}
|
||||
</view>
|
||||
</view>
|
||||
<view @click="goNav('/me/wallet/mingxi')" class="money-bto flex align-center justify-between">
|
||||
金豆明细
|
||||
金币明细
|
||||
<u-icon name="arrow-right" color="#ff7581" size="40"></u-icon>
|
||||
</view>
|
||||
</view>
|
||||
@@ -41,7 +41,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="moneycz-bom">
|
||||
{{item.money}}金豆<text v-if="item.giveMoney>0">+{{item.giveMoney}}赠豆</text>
|
||||
{{item.money}}金币<text v-if="item.giveMoney>0">+{{item.giveMoney}}赠豆</text>
|
||||
</view>
|
||||
</view>
|
||||
<u-radio :name="index"></u-radio>
|
||||
|
||||
@@ -5,14 +5,14 @@
|
||||
<view class="money-top">
|
||||
<image src="../../static/images/me/moneyBanner.png" mode=""></image>
|
||||
<view class="money-top-title">
|
||||
当前剩余金豆
|
||||
当前剩余金币
|
||||
</view>
|
||||
<view class="money-top-money">
|
||||
{{formatNumber(moneyNum)}}
|
||||
</view>
|
||||
</view>
|
||||
<view @click="goNav('/me/wallet/mingxi')" class="money-bto flex align-center justify-between">
|
||||
金豆明细
|
||||
金币明细
|
||||
<u-icon name="arrow-right" color="#6696ff" size="40"></u-icon>
|
||||
</view>
|
||||
</view>
|
||||
@@ -34,7 +34,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="moneycz-bom">
|
||||
{{item.money}}金豆<text v-if="item.giveMoney>0">+{{item.giveMoney}}赠豆</text>
|
||||
{{item.money}}金币<text v-if="item.giveMoney>0">+{{item.giveMoney}}赠豆</text>
|
||||
</view>
|
||||
</view>
|
||||
<u-radio :name="index"></u-radio>
|
||||
|
||||
Reference in New Issue
Block a user