From ffcfda1f4b78bc75ca87f8aa5e0992254c865f0e Mon Sep 17 00:00:00 2001 From: XiaoMo Date: Wed, 30 Apr 2025 15:50:25 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=B0=86=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=BB=8E=E7=94=A8=E6=88=B7=E9=A1=B5=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E6=B4=97=E8=BD=A6=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将多个页面中的跳转链接从"/pages/user/user"修改为"/pages/washing/washing",以优化用户体验,确保用户直接进入洗车相关页面。同时,将洗车券列表中的显示内容从`item.code`改为`item.title`,使其更直观。 --- pages/duiquan/duiquan.js | 2 +- pages/index/index.js | 2 +- pages/washCodeList/washCodeList.js | 2 +- pages/washCodeList/washCodeList.wxml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/duiquan/duiquan.js b/pages/duiquan/duiquan.js index 53b393c..8ce47d9 100644 --- a/pages/duiquan/duiquan.js +++ b/pages/duiquan/duiquan.js @@ -43,7 +43,7 @@ Page({ wx.showToast({ title: startRes.message || '启动成功', icon: 'success' }); // 跳转到洗车券列表页面 wx.redirectTo({ - url: "/pages/user/user" + url: "/pages/washing/washing" }) } else { wx.redirectTo({ diff --git a/pages/index/index.js b/pages/index/index.js index 2c0bc09..1f6c7b2 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -212,7 +212,7 @@ Page({ title: "", content: e.message }), a.data.tmplIds.length > 0 && a.requestSubscribeMessage(), wx.redirectTo({ - url: "/pages/user/user" + url: "/pages/washing/washing" }), a.isneedUpload = !0), 888 == e.code && (wx.navigateTo({ url: "/pages/voucher/voucher" }), a.isneedUpload = !0); diff --git a/pages/washCodeList/washCodeList.js b/pages/washCodeList/washCodeList.js index ce4a16d..6ba1312 100644 --- a/pages/washCodeList/washCodeList.js +++ b/pages/washCodeList/washCodeList.js @@ -128,7 +128,7 @@ Page({ wx.showToast({ title: t.message || '启动成功', icon: 'success' }); // 成功后跳转 a.isSubmit = !1, wx.hideLoading(), 200 == t.code && wx.redirectTo({ - url: "/pages/user/user" + url: "/pages/washing/washing" }); }).catch(function (t) { a.isSubmit = !1, wx.hideLoading(); diff --git a/pages/washCodeList/washCodeList.wxml b/pages/washCodeList/washCodeList.wxml index c18e1f9..2dae3e1 100644 --- a/pages/washCodeList/washCodeList.wxml +++ b/pages/washCodeList/washCodeList.wxml @@ -5,7 +5,7 @@ - {{item.code}} + {{item.title}} 可使用网点: