From 9becc8d199d95c4ddeea9cbcfd28ab735a31e0ad Mon Sep 17 00:00:00 2001 From: zsk <710162063@qq.com> Date: Tue, 18 Mar 2025 10:34:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=90=E4=B8=BA=E4=BB=A3=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/tobeAgency/index.js | 27 ++++++++++++++++----------- pages/tobeAgency/index.wxml | 6 +++--- project.private.config.json | 7 +++++++ 3 files changed, 26 insertions(+), 14 deletions(-) diff --git a/pages/tobeAgency/index.js b/pages/tobeAgency/index.js index 6ccfe16..628dfda 100644 --- a/pages/tobeAgency/index.js +++ b/pages/tobeAgency/index.js @@ -176,18 +176,23 @@ Page({ success: function (res) { console.log(res); if (res.data.status == 200) { - wx.showToast({ - title: "提交成功", - icon: "success", - duration: 2000, - success () { - setTimeout(() => { - wx.navigateBack({ - delta: 1, - }); - }, 1000); - }, + wx.hideLoading({ + success(){ + wx.showToast({ + title: "提交成功", + icon: "success", + duration: 1000, + success () { + setTimeout(() => { + wx.switchTab({ + url: '../mine/index', + }) + }, 1200); + }, + }); + } }); + } else if (res.data.status == 2002) { app.logout().then(() => { wx.reLaunch({ diff --git a/pages/tobeAgency/index.wxml b/pages/tobeAgency/index.wxml index d7077f2..6bb19ab 100644 --- a/pages/tobeAgency/index.wxml +++ b/pages/tobeAgency/index.wxml @@ -59,15 +59,15 @@ 营业执照 - + - + 门头照片 - + diff --git a/project.private.config.json b/project.private.config.json index 9554eed..2e8f286 100644 --- a/project.private.config.json +++ b/project.private.config.json @@ -8,6 +8,13 @@ "condition": { "miniprogram": { "list": [ + { + "name": "pages/tobe", + "pathName": "pages/tobeAgency/index", + "query": "", + "launchMode": "default", + "scene": null + }, { "name": "pages/wodeBillDetail/index", "pathName": "pages/wodeBillDetail/index",