feat(washing): 调整页面跳转逻辑和提示时长
修改了 `washing` 页面的跳转逻辑,将 `switchTab` 和 `reLaunch` 替换为 `redirectTo`,以改善用户体验。同时,调整了提示信息的显示时长,确保用户有足够的时间阅读提示。
This commit is contained in:
parent
a5fc1f38f6
commit
9c1ec1ef2a
@ -23,13 +23,14 @@ Page({
|
||||
wx.showToast({
|
||||
title: '没有进行中的订单',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
duration: 3000
|
||||
});
|
||||
setTimeout(() => {
|
||||
wx.switchTab({
|
||||
// 跳转到首页
|
||||
wx.redirectTo({
|
||||
url: '/pages/index/index'
|
||||
});
|
||||
}, 2000);
|
||||
}, 1000);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -54,10 +55,10 @@ Page({
|
||||
duration: 2000
|
||||
});
|
||||
setTimeout(() => {
|
||||
wx.switchTab({
|
||||
wx.redirectTo({
|
||||
url: '/pages/index/index'
|
||||
});
|
||||
}, 2000);
|
||||
}, 1000);
|
||||
});
|
||||
},
|
||||
|
||||
@ -126,7 +127,7 @@ Page({
|
||||
});
|
||||
setTimeout(() => {
|
||||
wx.removeStorageSync('progressorder');
|
||||
wx.reLaunch({
|
||||
wx.redirectTo({
|
||||
url: '/pages/index/index'
|
||||
});
|
||||
}, 2000);
|
||||
|
@ -8,6 +8,13 @@
|
||||
"condition": {
|
||||
"miniprogram": {
|
||||
"list": [
|
||||
{
|
||||
"name": "pages/washing/washing",
|
||||
"pathName": "pages/washing/washing",
|
||||
"query": "",
|
||||
"launchMode": "default",
|
||||
"scene": null
|
||||
},
|
||||
{
|
||||
"name": "pages/washCodeDetail/washCodeDetail",
|
||||
"pathName": "pages/washCodeDetail/washCodeDetail",
|
||||
|
Loading…
x
Reference in New Issue
Block a user