🦀️ fix: 修复bug
This commit is contained in:
parent
7302e14ac6
commit
b63e7b4388
|
@ -56,7 +56,7 @@
|
||||||
<input :type="acctype" onkeyup="this.value=this.value.replace(/\D/g,'')"
|
<input :type="acctype" onkeyup="this.value=this.value.replace(/\D/g,'')"
|
||||||
:disabled="goodsDetail.available!=1"
|
:disabled="goodsDetail.available!=1"
|
||||||
onKeypress="return(/[\d]/.test(String.fromCharCode(event.keyCode)))" :maxlength="11"
|
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>
|
||||||
<p>
|
<p>
|
||||||
<span>验证码:</span>
|
<span>验证码:</span>
|
||||||
|
@ -514,6 +514,7 @@
|
||||||
if (this.goodInfo.is_e_card && this.goodInfo.product_type === 1) {
|
if (this.goodInfo.is_e_card && this.goodInfo.product_type === 1) {
|
||||||
if (this.computedExChange) {
|
if (this.computedExChange) {
|
||||||
localStorage.setItem('account', this.account);
|
localStorage.setItem('account', this.account);
|
||||||
|
localStorage.setItem('jd_code', this.jd_code);
|
||||||
window.location.href = './settlement.html';
|
window.location.href = './settlement.html';
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -290,7 +290,8 @@
|
||||||
"goods_id": this.goodInfo.goods_id,
|
"goods_id": this.goodInfo.goods_id,
|
||||||
"account": this.account, /* 卡密时默认账号 */
|
"account": this.account, /* 卡密时默认账号 */
|
||||||
"pay_type": payType == 2 ? 1 : 5,
|
"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) => {
|
return new Promise((resolve, reject) => {
|
||||||
req.axiosPost('/key/createCouponOrder', data).then(res => {
|
req.axiosPost('/key/createCouponOrder', data).then(res => {
|
||||||
|
|
|
@ -60,7 +60,7 @@
|
||||||
<input :type="acctype" onkeyup="this.value=this.value.replace(/\D/g,'')"
|
<input :type="acctype" onkeyup="this.value=this.value.replace(/\D/g,'')"
|
||||||
:disabled="goodsDetail.available!=1"
|
:disabled="goodsDetail.available!=1"
|
||||||
onKeypress="return(/[\d]/.test(String.fromCharCode(event.keyCode)))" :maxlength="11" v-model="account"
|
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>
|
||||||
<p>
|
<p>
|
||||||
<span>验证码:</span>
|
<span>验证码:</span>
|
||||||
|
@ -388,7 +388,8 @@
|
||||||
"goods_id": this.goodInfo.goods_id,
|
"goods_id": this.goodInfo.goods_id,
|
||||||
"account": this.account,
|
"account": this.account,
|
||||||
"code_batch_id": this.goodInfo.code_batch_id,
|
"code_batch_id": this.goodInfo.code_batch_id,
|
||||||
"token": localStorage.getItem('token')
|
"token": localStorage.getItem('token'),
|
||||||
|
'jd_code': this.jd_code
|
||||||
};
|
};
|
||||||
self.popboxshow = false;
|
self.popboxshow = false;
|
||||||
req.axiosPost('/key/usage', data).then(res => {
|
req.axiosPost('/key/usage', data).then(res => {
|
||||||
|
|
Loading…
Reference in New Issue