From b63e7b4388a3887db1a43d3c8267c89b3eb34778 Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Fri, 23 Feb 2024 11:37:59 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=80=EF=B8=8F=20fix:=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- coupon/details.html | 3 ++- coupon/settlement.html | 3 ++- exchange.html | 5 +++-- 3 files changed, 7 insertions(+), 4 deletions(-) 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 => {