update:h5跳转过来或微信小程序跳转兼容opt参数
This commit is contained in:
parent
867d86c244
commit
c9e36050d4
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue