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();