🦀️ fix: 修复bug

This commit is contained in:
wangsongsole 2024-02-23 11:37:59 +08:00
parent 7302e14ac6
commit b63e7b4388
3 changed files with 7 additions and 4 deletions

View File

@ -56,7 +56,7 @@
<input :type="acctype" onkeyup="this.value=this.value.replace(/\D/g,'')"
:disabled="goodsDetail.available!=1"
onKeypress="return(/[\d]/.test(String.fromCharCode(event.keyCode)))" :maxlength="11"
v-model="account" :placeholder="placeholder" @focus="(e)=>focusFn(e)">
v-model="account" placeholder="请输入手机号" @focus="(e)=>focusFn(e)">
</p>
<p>
<span>验证码:</span>
@ -514,6 +514,7 @@
if (this.goodInfo.is_e_card && this.goodInfo.product_type === 1) {
if (this.computedExChange) {
localStorage.setItem('account', this.account);
localStorage.setItem('jd_code', this.jd_code);
window.location.href = './settlement.html';
}
return;

View File

@ -290,7 +290,8 @@
"goods_id": this.goodInfo.goods_id,
"account": this.account, /* 卡密时默认账号 */
"pay_type": payType == 2 ? 1 : 5,
"pay_amount": this.goodsDetail.coupon_price
"pay_amount": this.goodsDetail.coupon_price,
'jd_code': sessionStorage.getItem('jd_code') || null
};
return new Promise((resolve, reject) => {
req.axiosPost('/key/createCouponOrder', data).then(res => {

View File

@ -60,7 +60,7 @@
<input :type="acctype" onkeyup="this.value=this.value.replace(/\D/g,'')"
:disabled="goodsDetail.available!=1"
onKeypress="return(/[\d]/.test(String.fromCharCode(event.keyCode)))" :maxlength="11" v-model="account"
:placeholder="placeholder" @focus="(e)=>focusFn(e)">
placeholder="请输入手机号" @focus="(e)=>focusFn(e)">
</p>
<p>
<span>验证码:</span>
@ -388,7 +388,8 @@
"goods_id": this.goodInfo.goods_id,
"account": this.account,
"code_batch_id": this.goodInfo.code_batch_id,
"token": localStorage.getItem('token')
"token": localStorage.getItem('token'),
'jd_code': this.jd_code
};
self.popboxshow = false;
req.axiosPost('/key/usage', data).then(res => {