Compare commits

...

2 Commits

Author SHA1 Message Date
wangsiyuan 9aef1d6e52 更新 login.js 2024-01-06 11:33:40 +08:00
wangsiyuan 5ed9d81c55 更新 app.json 2024-01-06 11:33:38 +08:00
2 changed files with 5 additions and 19 deletions

View File

@ -14,20 +14,6 @@
"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": {

View File

@ -1,5 +1,5 @@
import { requestUrl } from '../../utils/config.js';
function showTost(title){
function showToast(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)
showTost("登录成功")
showToast("登录成功")
// wx.redirectTo({
// url: 'pages/home/home',
// })
wx.switchTab({
url: 'pages/home/home'
wx.redirectTo({
url: '/pages/home/home'
})
} else {
showTost(res.data.msg)
showToasst(res.data.msg)
console.log("登录失败",res.data)
}
},