From c9e36050d4a2d35f3ffcf57eefc8d424168fd801 Mon Sep 17 00:00:00 2001 From: wwxin <2463926940@qq.com> Date: Sat, 12 Oct 2024 09:53:08 +0800 Subject: [PATCH] =?UTF-8?q?update:h5=E8=B7=B3=E8=BD=AC=E8=BF=87=E6=9D=A5?= =?UTF-8?q?=E6=88=96=E5=BE=AE=E4=BF=A1=E5=B0=8F=E7=A8=8B=E5=BA=8F=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E5=85=BC=E5=AE=B9opt=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/home.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/pages/home.vue b/src/pages/home.vue index 7284f7a..818f2e3 100644 --- a/src/pages/home.vue +++ b/src/pages/home.vue @@ -278,7 +278,6 @@ export default { proOrder(param) .then((res) => { uni.hideLoading(); - console.log(res.payUrl, "7878"); let datas = JSON.parse(res.payUrl); console.log(datas); uni.navigateToMiniProgram({ @@ -308,7 +307,13 @@ export default { }, }, onLoad(opt) { - this.getdataQuery(opt.miniAplaiayId) + if(opt.miniAplaiayId){ + this.getdataQuery(opt.miniAplaiayId) + }else{ + this.queryString = Object.keys(opt) + .map(key => `${key}=${opt[key]}`) + .join('&'); + } this.promotionCode = opt.promotionCode this.maidian(); this.ntext = showTel();