Commit 1a900fb4 authored by Mac's avatar Mac

修改跳转

parent b9eb95c9
...@@ -450,7 +450,8 @@ ...@@ -450,7 +450,8 @@
uni.hideNavigationBarLoading(); uni.hideNavigationBarLoading();
}, 500); }, 500);
this.mainColor = this.$uiConfig.mainColor; this.mainColor = this.$uiConfig.mainColor;
this.init(); // this.init();
this.getIsOpenReserve();
}, },
methods: { methods: {
......
...@@ -188,19 +188,19 @@ ...@@ -188,19 +188,19 @@
uni.setStorageSync("storeId", {storeId:item.Id}); uni.setStorageSync("storeId", {storeId:item.Id});
this.currentChosen = item.Id this.currentChosen = item.Id
let pages = getCurrentPages(); // 当前页面 // let pages = getCurrentPages(); // 当前页面
let beforePage = pages[pages.length - 2]; // 前一个页面 // let beforePage = pages[pages.length - 2]; // 前一个页面
setTimeout(()=>{ // setTimeout(()=>{
uni.navigateBack({ // uni.navigateBack({
delta:1, // delta:1,
success: function() { // success: function() {
beforePage.$vm.getCurrentStore(); // 执行前一个页面的方法 // beforePage.$vm.getCurrentStore(); // 执行前一个页面的方法
} // }
});
},100)
// uni.navigateTo({
// url: "/pages/reserve/storeDetails?id="+item.Id,
// }); // });
// },100)
uni.navigateTo({
url: "/pages/reserve/storeDetails?id="+item.Id,
});
}, },
radioChange(e){ radioChange(e){
uni.setStorageSync("storeId", {storeId:this.currentChosen}); uni.setStorageSync("storeId", {storeId:this.currentChosen});
......
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