diff --git a/coupon/details.html b/coupon/details.html index 1bddad6..0701538 100644 --- a/coupon/details.html +++ b/coupon/details.html @@ -56,7 +56,7 @@ + v-model="account" placeholder="请输入手机号" @focus="(e)=>focusFn(e)">

验证码: @@ -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; diff --git a/coupon/settlement.html b/coupon/settlement.html index 0497c7f..5ce9a21 100644 --- a/coupon/settlement.html +++ b/coupon/settlement.html @@ -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 => { diff --git a/exchange.html b/exchange.html index eb6f034..134f73d 100644 --- a/exchange.html +++ b/exchange.html @@ -60,7 +60,7 @@ + placeholder="请输入手机号" @focus="(e)=>focusFn(e)">

验证码: @@ -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 => {