lilei 3 anos atrás
pai
commit
a605e83708
3 arquivos alterados com 30 adições e 29 exclusões
  1. 0 28
      pages/index/index.vue
  2. 1 1
      pages/login/login.vue
  3. 29 0
      pages/stock/index.vue

+ 0 - 28
pages/index/index.vue

@@ -36,34 +36,6 @@
 			// 设置底部tabbar 样式
 			const theme = getApp().globalData.theme
 			this.theme = theme
-			uni.setTabBarItem({
-			  "index": 0,
-			  "iconPath": "static/"+theme+"/tabbar/home.png",
-			  "selectedIconPath": "static/"+theme+"/tabbar/home-active.png",
-			})
-			uni.setTabBarItem({
-			  "index": 1,
-			  "iconPath": "static/"+theme+"/tabbar/stock.png",
-			  "selectedIconPath": "static/"+theme+"/tabbar/stock-active.png",
-			})
-			uni.setTabBarItem({
-			  "index": 2,
-			  "iconPath": "static/"+theme+"/tabbar/shelf.png",
-			  "selectedIconPath": "static/"+theme+"/tabbar/shelf-active.png",
-			})
-			uni.setTabBarItem({
-			  "index": 3,
-			  "iconPath": "static/"+theme+"/tabbar/user.png",
-			  "selectedIconPath": "static/"+theme+"/tabbar/user-active.png",
-			})
-			uni.setTabBarStyle({
-			  color: this.$config("topBarTitleColors"),
-			  selectedColor: this.$config("primaryColor"),
-			  borderStyle: 'white',
-			  complete: function(res){
-				console.log(res)
-			  }
-			})
 			// 数字货架导航按钮
 			this.storageRacksNavList = [
 				{

+ 1 - 1
pages/login/login.vue

@@ -165,7 +165,7 @@ export default {
 		toMain() {
 			// 跳转到首页
 			uni.switchTab({
-				url: '/pages/sales/index'
+				url: '/pages/stock/index'
 			});
 		},
 		//  忘记密码

+ 29 - 0
pages/stock/index.vue

@@ -80,6 +80,35 @@
 			}
 		},
 		onLoad() {
+			const theme = getApp().globalData.theme
+			uni.setTabBarItem({
+			  "index": 0,
+			  "iconPath": "static/"+theme+"/tabbar/home.png",
+			  "selectedIconPath": "static/"+theme+"/tabbar/home-active.png",
+			})
+			uni.setTabBarItem({
+			  "index": 1,
+			  "iconPath": "static/"+theme+"/tabbar/stock.png",
+			  "selectedIconPath": "static/"+theme+"/tabbar/stock-active.png",
+			})
+			uni.setTabBarItem({
+			  "index": 2,
+			  "iconPath": "static/"+theme+"/tabbar/shelf.png",
+			  "selectedIconPath": "static/"+theme+"/tabbar/shelf-active.png",
+			})
+			uni.setTabBarItem({
+			  "index": 3,
+			  "iconPath": "static/"+theme+"/tabbar/user.png",
+			  "selectedIconPath": "static/"+theme+"/tabbar/user-active.png",
+			})
+			uni.setTabBarStyle({
+			  color: this.$config("topBarTitleColors"),
+			  selectedColor: this.$config("primaryColor"),
+			  borderStyle: 'white',
+			  complete: function(res){
+				console.log(res)
+			  }
+			})
 			this.getTotal()
 		},
 		methods: {