From c240de40967ec78071446126f0872c1b7723c2ac Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Thu, 3 Nov 2022 17:46:11 +0800 Subject: [PATCH] =?UTF-8?q?style=EF=BC=9A=E5=88=A0=E9=99=A4=E7=BB=93?= =?UTF-8?q?=E7=AE=97=E9=A1=B5=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- coupon/settlement.html | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/coupon/settlement.html b/coupon/settlement.html index 6ce959b..13e6b7e 100644 --- a/coupon/settlement.html +++ b/coupon/settlement.html @@ -126,15 +126,10 @@ if (isWx()) { this.getweixin(); } - var searchHref = window.location.search.replace('?', ''); - var params = searchHref.split('&'); - var returnParam = {}; - params.forEach(function (param) { - var paramSplit = param.split('='); - returnParam[paramSplit[0]] = paramSplit[1]; - }); + this.orderNumber = this.getQueryString('orderNumber') - this.payType = Number(this.getQueryString('payType')) === 5 ? 1 : 2 + const payType = Number(this.getQueryString('payType')) + payType && this.payType === 5 ? 1 : 2 }, methods: {