update:h5跳转过来或微信小程序跳转兼容opt参数
This commit is contained in:
parent
867d86c244
commit
c9e36050d4
|
@ -278,7 +278,6 @@ export default {
|
||||||
proOrder(param)
|
proOrder(param)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
console.log(res.payUrl, "7878");
|
|
||||||
let datas = JSON.parse(res.payUrl);
|
let datas = JSON.parse(res.payUrl);
|
||||||
console.log(datas);
|
console.log(datas);
|
||||||
uni.navigateToMiniProgram({
|
uni.navigateToMiniProgram({
|
||||||
|
@ -308,7 +307,13 @@ export default {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
onLoad(opt) {
|
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.promotionCode = opt.promotionCode
|
||||||
this.maidian();
|
this.maidian();
|
||||||
this.ntext = showTel();
|
this.ntext = showTel();
|
||||||
|
|
Loading…
Reference in New Issue