update:h5跳转过来或微信小程序跳转兼容opt参数

This commit is contained in:
wwxin 2024-10-12 09:53:08 +08:00
parent 867d86c244
commit c9e36050d4
1 changed files with 7 additions and 2 deletions

View File

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