[仅供测试]重写navigateTo方法,解决微信小程序中超过10个页面栈时会出现的bug

This commit is contained in:
学习很差啦
2022-07-20 18:24:49 +08:00
parent cbd73ae638
commit 09485747a6
58 changed files with 472 additions and 421 deletions

View File

@@ -340,7 +340,7 @@ export default {
* 替换onLoad下代码即可
*/
let status = Number(options.status);
this.status = status;
this.status = status;
this.tabCurrentIndex = status;
// if (status == 0) {
@@ -364,14 +364,14 @@ export default {
methods: {
// 售后
applyService(order) {
uni.navigateTo({
this.$navigateTo({
url: `/pages/order/afterSales/afterSales?orderSn=${order.sn}`,
});
},
// 店铺详情
navigateToStore(val) {
uni.navigateTo({
this.$navigateTo({
url: "/pages/product/shopPage?id=" + val.storeId,
});
},
@@ -423,7 +423,7 @@ export default {
}).pay();
// #endif
// #ifndef MP-WEIXIN
uni.navigateTo({
this.$navigateTo({
url: "/pages/cart/payment/payOrder?order_sn=" + val.sn,
});
// #endif
@@ -522,7 +522,7 @@ export default {
* 跳转到订单详情
*/
navigateToOrderDetail(sn) {
uni.navigateTo({
this.$navigateTo({
url: "./orderDetail?sn=" + sn,
});
},
@@ -588,7 +588,7 @@ export default {
* 评价商品
*/
onComment(sn) {
uni.navigateTo({
this.$navigateTo({
url: "./evaluate/myEvaluate",
});
},
@@ -599,7 +599,7 @@ export default {
reBuy(order) {
console.log(order);
return;
uni.navigateTo({
this.$navigateTo({
url:
"/pages/product/goods?id=" + order.id + "&goodsId=" + order.goodsId,
});
@@ -609,7 +609,7 @@ export default {
* 查看物流
*/
navigateToLogistics(order) {
uni.navigateTo({
this.$navigateTo({
url:
"/pages/mine/msgTips/packageMsg/logisticsDetail?order_sn=" + order.sn,
});