```feat(user): 添加导航至充值页面的按钮

用户余额页面现在包含一个“充值”按钮,点击后将导向充值页面,以提升用户交互体验。
```
master
wxy 2024-08-25 16:48:09 +08:00
parent fddc80e039
commit a2baf98908
1 changed files with 8 additions and 7 deletions

View File

@ -2,7 +2,8 @@
<el-card class="box-card"> <el-card class="box-card">
<ul class="msg-box"> <ul class="msg-box">
<li> <li>
<h4>我要支付</h4> <h4 style="margin-bottom: 15px;">充值说明</h4>
<h4>你敢充钱,我就敢让你没钱</h4>
</li> </li>
<li> <li>
<h4 style="margin-bottom: 15px;">支付金额</h4> <h4 style="margin-bottom: 15px;">支付金额</h4>
@ -75,15 +76,15 @@ export default {
} else if (this.rechargeParams.paymentType === '1') { } else if (this.rechargeParams.paymentType === '1') {
let praem = { let praem = {
// 便 // 便
outTradeNo:this.getProjectNum() + Math.floor(Math.random() * 10000), outTradeNo: this.getProjectNum() + Math.floor(Math.random() * 10000),
// //
totalAmount:this.rechargeParams.totalAmt, totalAmount: this.rechargeParams.totalAmt,
// //
returnUrl:this.returnUrl, returnUrl: this.returnUrl,
// //
subject:'支付金额', subject: '支付金额',
// //
productCode:'FAST_INSTANT_TRADE_PAY' productCode: 'FAST_INSTANT_TRADE_PAY'
} }
userRecharge(praem).then(code => { userRecharge(praem).then(code => {
if (code.code === 200) { if (code.code === 200) {
@ -103,7 +104,7 @@ export default {
} }
}, },
// //
getProjectNum () { getProjectNum() {
const projectTime = new Date() // const projectTime = new Date() //
const Year = projectTime.getFullYear() // IE. const Year = projectTime.getFullYear() // IE.
const Month = projectTime.getMonth() + 1 // const Month = projectTime.getMonth() + 1 //