fix(duiquan): 调整输入框样式及启动成功后的跳转逻辑
调整输入框的样式,增加高度和行高,并修改启动成功后的跳转逻辑,使用 `redirectTo` 替代 `navigateTo`,避免页面堆栈问题
This commit is contained in:
@@ -36,12 +36,12 @@ Page({
|
||||
},
|
||||
selectItem: function (t) {
|
||||
|
||||
|
||||
|
||||
// 1. 提示用户先绑定设备, isScan
|
||||
if (!this.data.isScan) return wx.showModal({
|
||||
title: "提示",
|
||||
content: "请先扫码设备~"
|
||||
}),!1;
|
||||
}), !1;
|
||||
|
||||
|
||||
var e = t.currentTarget.dataset, a = (e.index, e.code);
|
||||
@@ -124,6 +124,9 @@ Page({
|
||||
}), e.request('/miniprogram/machine/carwashcodestartup', {
|
||||
washcode: a.data.selectID
|
||||
}, !0).then(function (t) {
|
||||
// 成功后返回提示
|
||||
wx.showToast({ title: t.message || '启动成功', icon: 'success' });
|
||||
// 成功后跳转
|
||||
a.isSubmit = !1, wx.hideLoading(), 200 == t.code && wx.redirectTo({
|
||||
url: "/pages/user/user"
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user