Fix:2476 【商城小程序】康养旅居页面点击返回按钮的问题

This commit is contained in:
modendeveloper
2024-10-11 23:20:30 +08:00
parent f3e036b9be
commit cf868ccebe
2 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -210,7 +210,7 @@ export default {
}); });
}, },
toSanctun() { toSanctun() {
uni.navigateTo({ uni.redirectTo({
url: url:
"/pkg_product/views/healthSanctum?city=" + "/pkg_product/views/healthSanctum?city=" +
this.cityId + this.cityId +
+6 -1
View File
@@ -104,6 +104,11 @@ export default {
}) })
this.getTop() this.getTop()
}, },
onUnload() {
// uni.navigateBack({
// delta: 0
// })
},
methods: { methods: {
handleTab(index, tab) { handleTab(index, tab) {
this.actived = index this.actived = index
@@ -111,7 +116,7 @@ export default {
this.getList() this.getList()
}, },
toFoods() { toFoods() {
uni.navigateTo({ uni.redirectTo({
url: '/pkg_product/views/healthFoods?city=' + this.cityId + '&cityName=' + this.cityName url: '/pkg_product/views/healthFoods?city=' + this.cityId + '&cityName=' + this.cityName
}) })
}, },