parent
fddc80e039
commit
a2baf98908
|
@ -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 // 获取中国区月份
|
||||||
|
|
Loading…
Reference in New Issue