From 0b9758ff3bf67fad7cf8ffa499f5a6e32208aa0e Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Mon, 20 May 2024 15:43:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/shopListPopup.vue | 333 ++++++------- main.js | 2 +- pages/login/login.vue | 23 +- pagesOrder/settle/settle.vue | 881 ++++++++++++++++++----------------- 4 files changed, 642 insertions(+), 597 deletions(-) diff --git a/components/shopListPopup.vue b/components/shopListPopup.vue index a4d6521..5f8a236 100644 --- a/components/shopListPopup.vue +++ b/components/shopListPopup.vue @@ -1,189 +1,208 @@ \ No newline at end of file diff --git a/main.js b/main.js index 9b4f788..3ce6225 100644 --- a/main.js +++ b/main.js @@ -20,7 +20,7 @@ export function createApp() { const app = createSSRApp(App) // 创建Pinia实例 // 将pinia实例挂载到vue实例上 app.use(Pinia.createPinia()); - app.use(uviewPlus) + app.use(uviewPlus); return { app, Pinia, // 此处必须将 Pinia 返回 diff --git a/pages/login/login.vue b/pages/login/login.vue index 75cce46..99f28d8 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -95,16 +95,19 @@ const showOfficial = ref(false); const navToIndex = () => { - if (!userStore.userInfo.supplier) uni.reLaunch({ - url: '/pages/index/index' - }) - else if (userStore.userInfo.supplier && !userStore.userInfo.supplier.openid) { - return showOfficial.value = true; - } else { - uni.reLaunch({ - url: '/pageQuota/quotation/index' - }) - } + if (userStore.userInfo && userStore.token) uni.reLaunch({ + url: '/pages/index/index' + }) + // if (!userStore.userInfo.supplier) uni.reLaunch({ + // url: '/pages/index/index' + // }) + // else if (userStore.userInfo.supplier && !userStore.userInfo.supplier.openid) { + // return showOfficial.value = true; + // } else { + // uni.reLaunch({ + // url: '/pageQuota/quotation/index' + // }) + // } } // 微信公众号绑定 diff --git a/pagesOrder/settle/settle.vue b/pagesOrder/settle/settle.vue index e31f40e..1369592 100644 --- a/pagesOrder/settle/settle.vue +++ b/pagesOrder/settle/settle.vue @@ -1,99 +1,103 @@ \ No newline at end of file