From 630e2d1d62e73c098a5bf15c0b8d4c2400b337e8 Mon Sep 17 00:00:00 2001
From: xiebin <123456>
Date: Wed, 28 Sep 2022 17:58:04 +0800
Subject: [PATCH] 登录跳转

---
 pages.json    |  141 +++++++++++++++++++++++++---------------------
 utils/func.js |    3 
 2 files changed, 78 insertions(+), 66 deletions(-)

diff --git a/pages.json b/pages.json
index 132c21b..8288740 100644
--- a/pages.json
+++ b/pages.json
@@ -1,67 +1,78 @@
 {
-	"easycom": {
-		"^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue"
-	},
-	"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
-		{
-			"path": "pages/login/login-account",
-			"style": {
-				"navigationBarTitleText": "登录",
-				"enablePullDownRefresh": false,
-				"navigationStyle": "custom"
-			}
-		},
-		{
-			"path": "pages/service/service",
-			"style": {
-				"navigationBarTitleText": "首页",
-				"enablePullDownRefresh": false,
-				"navigationStyle": "custom"
-			}
-		},
-		{
-			"path": "pages/taskinfo/list",
-			"style": {
-				"navigationBarTitleText": "任务列表",
-				"enablePullDownRefresh": false
-			}
-
-		}
-	],
-	"globalStyle": {
-		"navigationBarTextStyle": "black",
-		"navigationBarTitleText": "",
-		"navigationBarBackgroundColor": "#fff",
-		"backgroundColor": "#F7F7F7"
-	},
-	"tabBar": {
-		"color": "#A6ABB5",
-		"selectedColor": "#0BB9C8",
-		"borderStyle": "white",
-		"backgroundColor": "#ffffff",
-		"list": [{
-			"pagePath": "pages/service/service",
-			"iconPath": "static/images/tabbar/home.png",
-			"selectedIconPath": "static/images/tabbar/home_selected.png",
-			"text": "首页"
-		}, {
-			"pagePath": "pages/demo/demo",
-			"iconPath": "static/images/tabbar/demo.png",
-			"selectedIconPath": "static/images/tabbar/demo_selected.png",
-			"text": "示例"
-		}, {
-			"pagePath": "pages/user/center",
-			"iconPath": "static/images/tabbar/user.png",
-			"selectedIconPath": "static/images/tabbar/user_selected.png",
-			"text": "我的"
-		}]
-	},
-	"condition": { //模式配置,仅开发期间生效
-		"current": 0, //当前激活的模式(list 的索引项)
-		"list": [{
-			"name": "", //模式名称
-			"path": "", //启动页面,必选
-			"query": "" //启动参数,在页面的onLoad函数里面得到
-		}]
-	}
+    "easycom" : {
+        "^u-(.*)" : "@/uview-ui/components/u-$1/u-$1.vue"
+    },
+    "pages" : [
+        //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
+        {
+            "path" : "pages/login/login-account",
+            "style" : {
+                "navigationBarTitleText" : "登录",
+                "enablePullDownRefresh" : false,
+                "navigationStyle" : "custom"
+            }
+        },
+        {
+            "path" : "pages/service/service",
+            "style" : {
+                "navigationBarTitleText" : "首页",
+                "enablePullDownRefresh" : false,
+                "navigationStyle" : "custom"
+            }
+        },
+        {
+            "path" : "pages/taskinfo/list",
+            "style" : {
+                "navigationBarTitleText" : "任务列表",
+                "enablePullDownRefresh" : false
+            }
+        },
+        {
+            "path" : "pages/home/home",
+            "style" : {}
+        }
+    ],
+    "globalStyle" : {
+        "navigationBarTextStyle" : "black",
+        "navigationBarTitleText" : "",
+        "navigationBarBackgroundColor" : "#fff",
+        "backgroundColor" : "#F7F7F7"
+    },
+    "tabBar" : {
+        "color" : "#A6ABB5",
+        "selectedColor" : "#0BB9C8",
+        "borderStyle" : "white",
+        "backgroundColor" : "#ffffff",
+        "list" : [
+            {
+                "pagePath" : "pages/service/service",
+                "iconPath" : "static/images/tabbar/home.png",
+                "selectedIconPath" : "static/images/tabbar/home_selected.png",
+                "text" : "首页"
+            },
+            {
+                "pagePath" : "pages/demo/demo",
+                "iconPath" : "static/images/tabbar/demo.png",
+                "selectedIconPath" : "static/images/tabbar/demo_selected.png",
+                "text" : "示例"
+            },
+            {
+                "pagePath" : "pages/user/center",
+                "iconPath" : "static/images/tabbar/user.png",
+                "selectedIconPath" : "static/images/tabbar/user_selected.png",
+                "text" : "我的"
+            }
+        ]
+    },
+    "condition" : {
+        //模式配置,仅开发期间生效
+        "current" : 0, //当前激活的模式(list 的索引项)
+        "list" : [
+            {
+                "name" : "", //模式名称
+                "path" : "", //启动页面,必选
+                "query" : "" //启动参数,在页面的onLoad函数里面得到
+            }
+        ]
+    }
 }
diff --git a/utils/func.js b/utils/func.js
index 435be48..d40408b 100644
--- a/utils/func.js
+++ b/utils/func.js
@@ -6,8 +6,9 @@
 		vm.$u.vuex('userInfo', userInfo)
 		vm.$u.vuex('accessToken', userInfo.access_token)
 		vm.$u.vuex('isLogin', true)
+		console.log(111111)
 		uni.switchTab({
-			url: '/pages/home/home'
+			url: '/pages/service/service'
 		})
 	}
 

--
Gitblit v1.9.3