From d4aa7399663a4f815c7e277a2449ed23f4cacceb Mon Sep 17 00:00:00 2001 From: scorpio Date: Fri, 17 Oct 2025 21:29:19 +0800 Subject: [PATCH] 0.0.1 --- pages/add/info.js | 12 +++++++++--- pages/login/index.wxss | 3 +++ project.private.config.json | 4 ++-- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/pages/add/info.js b/pages/add/info.js index 1049aa2..a8dc716 100644 --- a/pages/add/info.js +++ b/pages/add/info.js @@ -77,9 +77,15 @@ Page({ } api('/plant/plantByLibrary', 'GET', data).then(res => { if (res.code === 200) { - wx.navigateTo({ - url: '../about/index?type=1', - }) + if (user.mpOpenId.length > 0){ + wx.switchTab({ + url: '../index/index', + }) + } else { + wx.navigateTo({ + url: '../about/index?type=1', + }) + } } }) }, diff --git a/pages/login/index.wxss b/pages/login/index.wxss index 5301e22..75929d2 100644 --- a/pages/login/index.wxss +++ b/pages/login/index.wxss @@ -1,4 +1,7 @@ /* pages/login/index.wxss */ +page { + background-color: white; +} .bg { height: 60vh; width: 90vw; diff --git a/project.private.config.json b/project.private.config.json index db9afdb..7350aec 100644 --- a/project.private.config.json +++ b/project.private.config.json @@ -27,8 +27,8 @@ "name": "pages/about/index", "pathName": "pages/about/index", "query": "", - "scene": null, - "launchMode": "default" + "launchMode": "default", + "scene": null }, { "name": "pages/index/info",