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