Compare commits
No commits in common. "9aef1d6e52b53b59d9d6cbdb2e4332fa642962a2" and "8909923dda3ae4a0aac99dfcce550ef8af41335e" have entirely different histories.
9aef1d6e52
...
8909923dda
14
app.json
14
app.json
|
|
@ -14,6 +14,20 @@
|
|||
"navigationBarTitleText": "万名群众进城镇",
|
||||
"navigationBarBackgroundColor": "#2b4b6b"
|
||||
},
|
||||
"tabBar": {
|
||||
"list": [{
|
||||
"pagePath": "pages/home/home",
|
||||
"text": "首页",
|
||||
"iconPath": "/assets/images/icon/home-off.png",
|
||||
"selectedIconPath": "/assets/images/icon/home-on.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/personal/personal",
|
||||
"text": "个人",
|
||||
"iconPath": "/assets/images/icon/personal-off.png",
|
||||
"selectedIconPath": "/assets/images/icon/personal-on.png"
|
||||
}]
|
||||
},
|
||||
"style": "v2",
|
||||
"rendererOptions": {
|
||||
"skyline": {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { requestUrl } from '../../utils/config.js';
|
||||
function showToast(title){
|
||||
function showTost(title){
|
||||
wx.showToast({
|
||||
title: title,
|
||||
icon: "none",
|
||||
|
|
@ -36,15 +36,15 @@ Page({
|
|||
success(res) {
|
||||
if (res.data.code == 0 && res.data.msg == "ok"){
|
||||
console.log("登录成功",res.data.code)
|
||||
showToast("登录成功")
|
||||
showTost("登录成功")
|
||||
// wx.redirectTo({
|
||||
// url: 'pages/home/home',
|
||||
// })
|
||||
wx.redirectTo({
|
||||
url: '/pages/home/home'
|
||||
wx.switchTab({
|
||||
url: 'pages/home/home'
|
||||
})
|
||||
} else {
|
||||
showToasst(res.data.msg)
|
||||
showTost(res.data.msg)
|
||||
console.log("登录失败",res.data)
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Reference in New Issue