fix(duiquan): 调整输入框样式及启动成功后的跳转逻辑

调整输入框的样式,增加高度和行高,并修改启动成功后的跳转逻辑,使用 `redirectTo` 替代 `navigateTo`,避免页面堆栈问题
This commit is contained in:
2025-04-17 12:01:25 +08:00
parent 7b5e501e6c
commit 0fd71a66ec
3 changed files with 16 additions and 6 deletions

View File

@@ -40,11 +40,15 @@ Page({
// 已扫码,启动机器
t.request('/miniprogram/machine/carwashcodestartup', { devicecode: getApp().globalData.devicecode, washcode: this.data.code }, !0).then((startRes) => {
if (startRes.code == 200) {
wx.showToast({ title: '启动成功', icon: 'success' });
wx.showToast({ title: startRes.message || '启动成功', icon: 'success' });
// 跳转到洗车券列表页面
wx.navigateTo({ url: '/pages/washCodeList/washCodeList' });
wx.redirectTo({
url: "/pages/user/user"
})
} else {
wx.navigateTo({ url: '/pages/washCodeList/washCodeList' });
wx.redirectTo({
url: "/pages/washCodeList/washCodeList"
});
wx.showToast({ title: startRes.message || '启动失败', icon: 'none' });
}
});