This commit is contained in:
weipengfei 2024-01-26 14:45:28 +08:00
parent 9363d3a413
commit 3d983049e8
9 changed files with 111 additions and 80 deletions

View File

@ -94,7 +94,7 @@
}, { }, {
name: '充值记录' name: '充值记录'
}], }],
changeList: [10, 15, 20, 50, 100], changeList: [0.01, 15, 20, 50, 100],
nowChange: 0, nowChange: 0,
nowPrice: 0, nowPrice: 0,
priceCount: 1, priceCount: 1,
@ -162,6 +162,7 @@
clickTab1(e) { clickTab1(e) {
this.curNow = e.index; this.curNow = e.index;
if (e.index == 1) { if (e.index == 1) {
this.recordList = [];
this.where.page = 1; this.where.page = 1;
this.getCommissionInfo(); this.getCommissionInfo();
} }
@ -277,13 +278,17 @@
brokerage: parseFloat(value), brokerage: parseFloat(value),
}).then(res => { }).then(res => {
// that.$set(that, 'userInfo.now_money', that.$util.$h.Add(value, that.userInfo.now_money)) // that.$set(that, 'userInfo.now_money', that.$util.$h.Add(value, that.userInfo.now_money))
return that.$util.Tips({ uni.showToast({
title: '转入成功', icon:'success',
icon: 'success' title:'转入成功'
}, { })
tab: 5, // return that.$util.Tips({
url: '/pages/users/user_money/index' // title: '',
}); // icon: 'success'
// }, {
// tab: 5,
// url: '/pages/users/user_money/index'
// });
}).catch(err => { }).catch(err => {
return that.$util.Tips({ return that.$util.Tips({
title: err title: err
@ -367,30 +372,35 @@
case 'PAY_ERROR': case 'PAY_ERROR':
case 'error': case 'error':
uni.hideLoading(); uni.hideLoading();
return that.$util.Tips({ Toast(res.message)
title: res.message // return that.$util.Tips({
}, { // title: res.message
tab: 5, // }, {
url: goPages // tab: 5,
}); // url: goPages
// });
break; break;
case 'success': case 'success':
uni.hideLoading(); uni.hideLoading();
if (that.seckillId) uni.showToast({
return that.$util.Tips({ icon:'success',
title: res.message, title:res.message
icon: 'success' })
}, { // if (that.seckillId)
tab: 4, // return that.$util.Tips({
url: goPages // title: res.message,
}); // icon: 'success'
return that.$util.Tips({ // }, {
title: res.message, // tab: 4,
icon: 'success' // url: goPages
}, { // });
tab: 5, // return that.$util.Tips({
url: goPages // title: res.message,
}); // icon: 'success'
// }, {
// tab: 5,
// url: goPages
// });
break; break;
case 'alipay': case 'alipay':
case "alipayQr": case "alipayQr":
@ -410,20 +420,28 @@
jsConfig.timeStamp = jsConfig.timestamp; jsConfig.timeStamp = jsConfig.timestamp;
// #ifndef APP-PLUS // #ifndef APP-PLUS
that.$wechat.pay(jsConfig).then(res => { that.$wechat.pay(jsConfig).then(res => {
return that.$util.Tips({ uni.showToast({
title: res.message, icon:'success',
icon: 'success' title:res.message
}, { })
tab: 4, // return that.$util.Tips({
url: goPages // title: res.message,
}); // icon: 'success'
// }, {
// tab: 4,
// url: goPages
// });
}).catch(res => { }).catch(res => {
if (res.errMsg == 'chooseWXPay:cancel') return that.$util.Tips({ uni.showToast({
title: '取消支付' icon:'success',
}, { title: '取消支付'
tab: 5, })
url: goPages // if (res.errMsg == 'chooseWXPay:cancel') return that.$util.Tips({
}); // title: ''
// }, {
// tab: 5,
// url: goPages
// });
}) })
// #endif // #endif
// #ifdef APP-PLUS // #ifdef APP-PLUS
@ -437,14 +455,19 @@
provider: 'wxpay', provider: 'wxpay',
orderInfo: jsConfig, orderInfo: jsConfig,
success: (e) => { success: (e) => {
let url = '/pages/users/user_money/money'; this.getUserInfo()
return that.$util.Tips({ uni.showToast({
title: '支付成功', icon: 'success',
icon: 'success' title: '支付成功'
}, { })
tab: 4, // let url = '/pages/users/user_money/money';
url: url // return that.$util.Tips({
}); // title: '',
// icon: 'success'
// }, {
// tab: 4,
// url: url
// });
}, },
fail: (e) => { fail: (e) => {
console.log(e); console.log(e);
@ -452,10 +475,7 @@
content: "支付失败", content: "支付失败",
showCancel: false, showCancel: false,
success: function(res) { success: function(res) {
let url = '/pages/users/user_money/money';
uni.redirectTo({
url: url
})
} }
}) })
}, },
@ -482,22 +502,27 @@
that.getUserInfo(); that.getUserInfo();
that.getRecharge(); that.getRecharge();
// console.log('12323424') // console.log('12323424')
return that.$util.Tips({ uni.showToast({
title: '支付成功', icon:'success',
icon: 'success' title:'支付成功'
}, { })
tab: 5, // return that.$util.Tips({
url: goPages // title: '',
}); // icon: 'success'
// }, {
// tab: 5,
// url: goPages
// });
}, },
fail: function(e) { fail: function(e) {
uni.hideLoading(); uni.hideLoading();
return that.$util.Tips({ Toast('取消支付')
title: '取消支付' // return that.$util.Tips({
}, { // title: ''
tab: 5, // }, {
url: goPages // tab: 5,
}); // url: goPages
// });
}, },
}) })
break; break;
@ -505,12 +530,13 @@
case "balance": case "balance":
uni.hideLoading(); uni.hideLoading();
// //
return that.$util.Tips({ Toast(res.msg)
title: res.msg // return that.$util.Tips({
}, { // title: res.msg
tab: 5, // }, {
url: goPages // tab: 5,
}); // url: goPages
// });
break; break;
// #ifdef H5 // #ifdef H5
case 'h5': case 'h5':
@ -530,13 +556,18 @@
provider: 'alipay', provider: 'alipay',
orderInfo: jsConfig, orderInfo: jsConfig,
success: (e) => { success: (e) => {
return that.$util.Tips({ this.getUserInfo()
title: '支付成功', uni.showToast({
icon: 'success' icon:'success',
}, { title:'支付成功'
tab: 5, })
url: goPages // return that.$util.Tips({
}); // title: '',
// icon: 'success'
// }, {
// tab: 5,
// url: goPages
// });
}, },
fail: (e) => { fail: (e) => {
uni.showModal({ uni.showModal({

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

After

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.0 KiB

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

After

Width:  |  Height:  |  Size: 8.5 KiB