Commit 8a1193e8 authored by 罗超's avatar 罗超

支持scene传参

parent c53b2af6
......@@ -1094,6 +1094,7 @@ export default {
},
created() {},
onLoad(option) {
if(!option.scene){
if (option.tcid) {
this.delMsg.tcid = option.tcid;
}
......@@ -1103,6 +1104,19 @@ export default {
if (option.cityId) {
this.delMsg.cityId = option.cityId;
}
}else{
let t=decodeURIComponent(option.scene).split('&')
t.forEach(x=>{
let item = x.split('=')
if(item.length===2){
if(item[0]==='tcid'){
this.delMsg.tcid = item[1]
}else if(item[0]==='configId'){
this.delMsg.configId = item[1]
}
}
})
}
this.getDetails();
this.U = uni.getStorageSync("mall_UserInfo");
if (this.U) {
......@@ -1275,6 +1289,7 @@ export default {
this.delMsg,
(res) => {
if (res.resultCode == 1) {
try{
res.data.tempImgCover = JSON.parse(res.data.imgCover);
// let tempPrice= res.data.priceList.filter(x=>x.remainNum>0)
// res.data.priceList=tempPrice
......@@ -1343,6 +1358,14 @@ export default {
);
}
// #endif
}catch(e){
//TODO handle the exception
uni.showToast({
icon:"none",
title:'团队信息不完善,无法完成显示'
})
}
} else {
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment