This commit is contained in:
scorpio 2025-10-17 21:29:19 +08:00
parent c7aabd0fef
commit d4aa739966
3 changed files with 14 additions and 5 deletions

View File

@ -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',
})
}
}
})
},

View File

@ -1,4 +1,7 @@
/* pages/login/index.wxss */
page {
background-color: white;
}
.bg {
height: 60vh;
width: 90vw;

View File

@ -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",