修改金豆为金币

This commit is contained in:
2024-12-12 16:18:20 +08:00
parent 679df05a66
commit e39688ab9f
11 changed files with 61 additions and 47 deletions

View File

@@ -6,14 +6,14 @@
<!-- <view class="money"> <!-- <view class="money">
<view class="money-l flex align-center"> <view class="money-l flex align-center">
账号余额: 账号余额:
<text>{{moneyNum}}</text> <text>{{moneyNum}}</text>
<view class="money-l-go" @click="goWallet('/me/wallet/wallet')"> <view class="money-l-go" @click="goWallet('/me/wallet/wallet')">
查看明细 查看明细
</view> </view>
</view> </view>
<view class="money-r"> <view class="money-r">
解锁价格: 解锁价格:
<text>{{payPrice}}</text> <text>{{payPrice}}</text>
</view> </view>
</view> --> </view> -->
<!-- <scroll-view scroll-y="true" class="payLists"> <!-- <scroll-view scroll-y="true" class="payLists">
@@ -31,10 +31,10 @@
</view> --> </view> -->
<!-- #endif --> <!-- #endif -->
<!-- <view class="payList-item-dou"> <!-- <view class="payList-item-dou">
{{item.money}} {{item.money}}
</view> </view>
<view class="payList-item-duo" v-if="item.giveMoney>0"> <view class="payList-item-duo" v-if="item.giveMoney>0">
多送{{item.giveMoney}} 多送{{item.giveMoney}}
</view> </view>
<view class="payList-item-hui" v-if="item.remarks"> <view class="payList-item-hui" v-if="item.remarks">
{{item.remarks}} {{item.remarks}}
@@ -136,7 +136,7 @@
type: Number, type: Number,
default: null default: null
}, },
//需要支付的金 //需要支付的金
payPrice: { payPrice: {
type: Number, type: Number,
default: 0 default: 0

View File

@@ -316,6 +316,8 @@
export default { export default {
data() { data() {
return { return {
//可抽奖次数
freeNum:0,
showBack:false, showBack:false,
noBuyVideoIndex:null, noBuyVideoIndex:null,
// 奖品列表, // 奖品列表,
@@ -1194,6 +1196,13 @@
// },1000) // },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} courseId 总id
* @param {Number} courseDetailsId 当前视频id * @param {Number} courseDetailsId 当前视频id
@@ -1245,6 +1254,7 @@
} }
}) })
}) })
getCount
if(this.noBuyVideoIndex!==null){ if(this.noBuyVideoIndex!==null){
this.noBuyVideoIndex=null this.noBuyVideoIndex=null
this.videoContext.stop() this.videoContext.stop()
@@ -1274,8 +1284,12 @@
this); this);
if(this.noBuyVideoIndex!=null&&this.videoList[this.noBuyVideoIndex].videoUrl){ if(this.noBuyVideoIndex!=null&&this.videoList[this.noBuyVideoIndex].videoUrl){
this.videoContext.stop(); this.videoContext.stop();
uni.navigateTo({ this.getCount(res).then(res=>{
url:'/me/choujiang/choujiang' if(res.count>=1){
uni.navigateTo({
url:'/me/choujiang/choujiang'
})
}
}) })
this.noBuyVideoIndex=null this.noBuyVideoIndex=null
}else{ }else{

View File

@@ -1210,7 +1210,7 @@
closeMoney(data) { closeMoney(data) {
this.showMoney = data this.showMoney = data
}, },
//使用金购买 //使用金购买
submitPay(type) { submitPay(type) {
let data = { let data = {
courseId: this.courseId courseId: this.courseId

View File

@@ -197,7 +197,7 @@
账号余额: 账号余额:
</text> </text>
<text class="popuppay-money-l-jd"> <text class="popuppay-money-l-jd">
{{moneyNum}}金 {{moneyNum}}金
</text> </text>
<text class="popuppay-money-l-mx" @click="goWallet('/me/wallet/wallet')"> <text class="popuppay-money-l-mx" @click="goWallet('/me/wallet/wallet')">
查看明细 查看明细
@@ -208,7 +208,7 @@
解锁价格: 解锁价格:
</text> </text>
<text class="popuppay-money-jd"> <text class="popuppay-money-jd">
{{payPrice}}金 {{payPrice}}金
</text> </text>
</view> </view>
</view> --> </view> -->
@@ -225,12 +225,12 @@
</view> </view>
<view class="payList-item-dou"> <view class="payList-item-dou">
<text class="payList-item-dous"> <text class="payList-item-dous">
{{item.money}}金 {{item.money}}金
</text> </text>
</view> </view>
<view class="payList-item-duo" v-if="item.giveMoney>0"> <view class="payList-item-duo" v-if="item.giveMoney>0">
<text class="payList-item-duos"> <text class="payList-item-duos">
多送{{item.giveMoney}}金 多送{{item.giveMoney}}金
</text> </text>
</view> </view>
<view class="payList-item-hui" v-if="item.remarks"> <view class="payList-item-hui" v-if="item.remarks">
@@ -925,7 +925,7 @@
}) })
} }
}, },
//使用金购买 //使用金购买
submitPay(type) { submitPay(type) {
let data = { let data = {
courseId: this.courseId courseId: this.courseId

View File

@@ -128,7 +128,7 @@
}, },
{ {
imgurl: '/static/images/pay/lingqian.png', imgurl: '/static/images/pay/lingqian.png',
name: '金支付', name: '金支付',
payAway: 3 payAway: 3
} }
] ]
@@ -138,7 +138,7 @@
if (checkIosPay === '是') { if (checkIosPay === '是') {
this.payList = [{ this.payList = [{
imgurl: '/static/images/pay/lingqian.png', imgurl: '/static/images/pay/lingqian.png',
name: '金支付', name: '金支付',
payAway: 3 payAway: 3
}] }]
this.payAway = 3 this.payAway = 3
@@ -155,7 +155,7 @@
}, },
{ {
imgurl: '/static/images/pay/lingqian.png', imgurl: '/static/images/pay/lingqian.png',
name: '金支付', name: '金支付',
payAway: 3 payAway: 3
} }
] ]
@@ -166,7 +166,7 @@
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
this.payList = [{ this.payList = [{
imgurl: '/static/images/pay/lingqian.png', imgurl: '/static/images/pay/lingqian.png',
name: '金支付', name: '金支付',
payAway: 3 payAway: 3
}] }]
this.payAway = 3 this.payAway = 3
@@ -181,7 +181,7 @@
}, },
{ {
imgurl: '/static/images/pay/lingqian.png', imgurl: '/static/images/pay/lingqian.png',
name: '金支付', name: '金支付',
payAway: 3 payAway: 3
} }
] ]
@@ -194,7 +194,7 @@
}, },
{ {
imgurl: '/static/images/pay/lingqian.png', imgurl: '/static/images/pay/lingqian.png',
name: '金支付', name: '金支付',
payAway: 3 payAway: 3
} }
] ]
@@ -209,7 +209,7 @@
}, },
{ {
imgurl: '/static/images/pay/lingqian.png', imgurl: '/static/images/pay/lingqian.png',
name: '金支付', name: '金支付',
payAway: 3 payAway: 3
} }
] ]
@@ -225,7 +225,7 @@
}, },
{ {
imgurl: '/static/images/pay/lingqian.png', imgurl: '/static/images/pay/lingqian.png',
name: '金支付', name: '金支付',
payAway: 3 payAway: 3
} }
] ]
@@ -233,7 +233,7 @@
} else { } else {
this.payList = [{ this.payList = [{
imgurl: '/static/images/pay/lingqian.png', imgurl: '/static/images/pay/lingqian.png',
name: '金支付', name: '金支付',
payAway: 3 payAway: 3
}] }]
this.payAway = 3 this.payAway = 3
@@ -385,7 +385,7 @@
} }
}) })
} else { } else {
switch (this.payAway) { //1:微信支付,2:支付宝支付 3:金支付 switch (this.payAway) { //1:微信支付,2:支付宝支付 3:金支付
case 1: //微信支付 case 1: //微信支付
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
that.$Request.postT("/app/wxPay/wxPayJsApiOrder", { that.$Request.postT("/app/wxPay/wxPayJsApiOrder", {

View File

@@ -5,14 +5,14 @@
<view class="money-top"> <view class="money-top">
<image src="../../static/images/me/moneyBanner.png" mode=""></image> <image src="../../static/images/me/moneyBanner.png" mode=""></image>
<view class="money-top-title"> <view class="money-top-title">
当前剩余金 当前剩余金
</view> </view>
<view class="money-top-money"> <view class="money-top-money">
{{formatNumber(moneyNum)}} {{formatNumber(moneyNum)}}
</view> </view>
</view> </view>
<view @click="goNav('/me/wallet/mingxi')" class="money-bto flex align-center justify-between"> <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> <u-icon name="arrow-right" color="#ff7581" size="40"></u-icon>
</view> </view>
</view> </view>
@@ -41,7 +41,7 @@
</view> </view>
</view> </view>
<view class="moneycz-bom"> <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>
</view> </view>
<u-radio :name="index"></u-radio> <u-radio :name="index"></u-radio>

View File

@@ -5,14 +5,14 @@
<view class="money-top"> <view class="money-top">
<image src="../../static/images/me/moneyBanner.png" mode=""></image> <image src="../../static/images/me/moneyBanner.png" mode=""></image>
<view class="money-top-title"> <view class="money-top-title">
当前剩余金 当前剩余金
</view> </view>
<view class="money-top-money"> <view class="money-top-money">
{{formatNumber(moneyNum)}} {{formatNumber(moneyNum)}}
</view> </view>
</view> </view>
<view @click="goNav('/me/wallet/mingxi')" class="money-bto flex align-center justify-between"> <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> <u-icon name="arrow-right" color="#6696ff" size="40"></u-icon>
</view> </view>
</view> </view>
@@ -34,7 +34,7 @@
</view> </view>
</view> </view>
<view class="moneycz-bom"> <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>
</view> </view>
<u-radio :name="index"></u-radio> <u-radio :name="index"></u-radio>

View File

@@ -494,14 +494,14 @@
}, { }, {
"path": "wallet/wallet", "path": "wallet/wallet",
"style": { "style": {
"navigationBarTitleText": "金充值", "navigationBarTitleText": "金充值",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, { }, {
"path": "wallet/mingxi", "path": "wallet/mingxi",
"style": { "style": {
"navigationBarTitleText": "金明细", "navigationBarTitleText": "金明细",
"enablePullDownRefresh": true "enablePullDownRefresh": true
} }

View File

@@ -139,7 +139,7 @@
src="https://dj-api.hnsiyao.cn/file/uploadPath/2024/02/22/cee2fcdc4c4ebe31ab4ce2c3c3a3d183.png" src="https://dj-api.hnsiyao.cn/file/uploadPath/2024/02/22/cee2fcdc4c4ebe31ab4ce2c3c3a3d183.png"
mode=""></image> mode=""></image>
<view class="zl-titles"> <view class="zl-titles">
{{xxJDNum}} <text></text> {{xxJDNum}} <text></text>
</view> </view>
</view> </view>
</u-popup> </u-popup>
@@ -382,7 +382,7 @@
this.$Request.postT('/app/user/getNewUserRed').then(res => { this.$Request.postT('/app/user/getNewUserRed').then(res => {
if (res.code == 0) { if (res.code == 0) {
this.xxPopu = false; this.xxPopu = false;
this.$queue.showToast('领取成功,金已到账!'); this.$queue.showToast('领取成功,金已到账!');
} else { } else {
this.$queue.showToast(res.msg) this.$queue.showToast(res.msg)
} }

View File

@@ -166,7 +166,7 @@
src="https://dj-api.hnsiyao.cn/file/uploadPath/2024/02/22/cee2fcdc4c4ebe31ab4ce2c3c3a3d183.png" src="https://dj-api.hnsiyao.cn/file/uploadPath/2024/02/22/cee2fcdc4c4ebe31ab4ce2c3c3a3d183.png"
mode=""></image> mode=""></image>
<view class="zl-titles"> <view class="zl-titles">
{{xxJDNum}} <text></text> {{xxJDNum}} <text></text>
</view> </view>
</view> </view>
</u-popup> </u-popup>
@@ -545,7 +545,7 @@
this.$Request.postT('/app/user/getNewUserRed').then(res => { this.$Request.postT('/app/user/getNewUserRed').then(res => {
if (res.code == 0) { if (res.code == 0) {
this.xxPopu = false; this.xxPopu = false;
this.$queue.showToast('领取成功,金已到账!'); this.$queue.showToast('领取成功,金已到账!');
} else { } else {
this.$queue.showToast(res.msg) this.$queue.showToast(res.msg)
} }

View File

@@ -16,13 +16,13 @@
<view class="flex justify-between margin-bottom" v-for="(item, index) in VIPlist" :key="index"> <view class="flex justify-between margin-bottom" v-for="(item, index) in VIPlist" :key="index">
<view> <view>
<view class="u-font-40"> <view class="u-font-40">
{{item.money}}<text style="font-size: 22rpx;margin-right: 16rpx;"></text> {{item.money}}<text style="font-size: 22rpx;margin-right: 16rpx;"></text>
<!-- #ifdef MP-TOUTIAO --> <!-- #ifdef MP-TOUTIAO -->
/ {{item.payDiamond}}<text style="font-size: 22rpx;"></text> / {{item.payDiamond}}<text style="font-size: 22rpx;"></text>
<!-- #endif --> <!-- #endif -->
</view> </view>
<view class="" style="color: #7F8299;">{{item.type}} <view class="" style="color: #7F8299;">{{item.type}}
{{item.money}}/ {{item.money}}/
<!-- #ifdef MP-TOUTIAO --> <!-- #ifdef MP-TOUTIAO -->
{{item.payDiamond}}钻石/ {{item.payDiamond}}钻石/
<!-- #endif --> <!-- #endif -->
@@ -53,7 +53,7 @@
</view> </view>
<view @click="goMoney" class="flex align-center justify-end" style="margin-right: 20rpx;color: #ff7581;"> <view @click="goMoney" class="flex align-center justify-end" style="margin-right: 20rpx;color: #ff7581;">
<view class="" style="color: #666666;"> <view class="" style="color: #666666;">
不足 不足
</view> </view>
去充值 去充值
</view> </view>
@@ -141,7 +141,7 @@
id: 2 id: 2
}, { }, {
image: '/static/images/pay/lingqian.png', image: '/static/images/pay/lingqian.png',
text: '金支付', text: '金支付',
id: 3 id: 3
}] }]
this.openWay = 1; this.openWay = 1;
@@ -150,7 +150,7 @@
if (checkIosPay === '是') { if (checkIosPay === '是') {
this.openLists = [{ this.openLists = [{
image: '/static/images/pay/lingqian.png', image: '/static/images/pay/lingqian.png',
text: '金支付', text: '金支付',
id: 3 id: 3
}]; }];
this.openWay = 3; this.openWay = 3;
@@ -165,7 +165,7 @@
id: 2 id: 2
}, { }, {
image: '/static/images/pay/lingqian.png', image: '/static/images/pay/lingqian.png',
text: '金支付', text: '金支付',
id: 3 id: 3
}]; }];
this.openWay = 1; this.openWay = 1;
@@ -183,7 +183,7 @@
// }, // },
{ {
image: '/static/images/pay/lingqian.png', image: '/static/images/pay/lingqian.png',
text: '金支付', text: '金支付',
id: 3 id: 3
} }
], ],
@@ -199,7 +199,7 @@
id: 1 id: 1
}, { }, {
image: '/static/images/pay/lingqian.png', image: '/static/images/pay/lingqian.png',
text: '金支付', text: '金支付',
id: 3 id: 3
}], }],
this.openWay = 1; this.openWay = 1;
@@ -210,7 +210,7 @@
id: 2 id: 2
}, { }, {
image: '/static/images/pay/lingqian.png', image: '/static/images/pay/lingqian.png',
text: '金支付', text: '金支付',
id: 3 id: 3
}], }],
this.openWay = 2; this.openWay = 2;
@@ -224,7 +224,7 @@
id: 4 id: 4
}, { }, {
image: '/static/images/pay/lingqian.png', image: '/static/images/pay/lingqian.png',
text: '金支付', text: '金支付',
id: 3 id: 3
}] }]
this.openWay = 4; this.openWay = 4;
@@ -237,14 +237,14 @@
id: 5 id: 5
}, { }, {
image: '/static/images/pay/lingqian.png', image: '/static/images/pay/lingqian.png',
text: '金支付', text: '金支付',
id: 3 id: 3
}] }]
this.openWay = 5 this.openWay = 5
} else { } else {
this.openLists = [{ this.openLists = [{
image: '/static/images/pay/lingqian.png', image: '/static/images/pay/lingqian.png',
text: '金支付', text: '金支付',
id: 3 id: 3
}] }]
this.openWay = 3 this.openWay = 3