🐛 fix: 修复bug

This commit is contained in:
wangsongsole 2023-11-22 09:34:41 +08:00
parent a29efbccdf
commit 3cb2da6591
2 changed files with 6 additions and 9 deletions

View File

@ -200,7 +200,7 @@ body {
text-align: center;
}
.disable {
background-color: rgb(253, 138, 142) !important;
background-color: rgb(103, 164, 235) !important;
}
.information {
text-align: center;

View File

@ -44,9 +44,8 @@
<div class="form">
<div v-show="goods.available!==9">
<p class="form-label">云闪付账号</p>
<input class="form-input" maxlength="6" v-model="form.receive_name" type="text"
placeholder="请输入真实姓名" />
<input class="form-input mt0" v-model="form.receive_account" type="text" placeholder="请输入支付宝账号" />
<input class="form-input" v-model="form.confirm" type="text" placeholder="请输入支付宝账号" />
<input class="form-input mt0" v-model="form.receive_account" type="text" placeholder="请再次输入支付宝账号" />
<p class="form-note">
您可在支付宝的个人信息中查看【支付宝账号】
</p>
@ -118,7 +117,7 @@
is: false,
loading: false,
form: {
receive_name: null,
confirm: null,
receive_account: null
}
};
@ -149,10 +148,10 @@
methods: {
/* 立即领取 */
submit () {
const { receive_name, receive_account } = this.form;
const { confirm, receive_account } = this.form;
if (this.goods.available !== 1) return;
if (this.loading) return;
if (!receive_name) return this.tips('请输入真实姓名');
if (confirm !== receive_account) return this.tips('支付宝账号不一致');
if ((phoneReg.test(receive_account) || emailReg.test(receive_account))) {
this.finalSubmit();
} else {
@ -186,13 +185,11 @@
/* 核销支付宝立减金 */
verificationYsf ({ order_number }) {
console.log(order_number);
let params = {
order_number,
channel: "3", //立减金发放渠道1支付宝2微信 3云闪付
receive_mode: 2, /* 领取方式 1:支付宝 2:H5 */
channel_user_id: this.form.receive_account,
real_name: this.form.receive_name,
};
req.axiosPost("/voucher/grant", params)
.then(({ code, message }) => {