Browse Source

bug 修复

lilei 3 years ago
parent
commit
6f23d5c417
4 changed files with 33 additions and 34 deletions
  1. 1 3
      config/index.js
  2. 1 1
      pages/login/login.vue
  3. 31 1
      pages/sales/index.vue
  4. 0 29
      pages/stock/index.vue

+ 1 - 3
config/index.js

@@ -6,9 +6,7 @@ const getConfig = (theme) => {
 			themePath: 'default',
 			pro_URL: 'https://iscm.360arrow.com/qpls-md/', // 生产地址
 			uat_URL: 'http://p.iscm.360arrow.com/qpls-md/', // 预发布地址
-			// dev_URL: 'http://192.168.16.107:7300/mock/61aad8ea5688cb3878d81e39/qpls-md/', // 本地地址
-			// dev_URL: 'http://frps.chelingzhu.com:7800/qpls-md/', // 本地地址
-			dev_URL: 'http://1982177cu2.iask.in/qpls-md/', // 本地地址
+			dev_URL: 'http://192.168.16.151:8503/qpls-md/', // 本地地址
 			appName: 'iSCM智慧供应链', // app 名称
 			company: '陕西山海高科信息技术有限公司',
 			loadText:{

+ 1 - 1
pages/login/login.vue

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

+ 31 - 1
pages/sales/index.vue

@@ -63,13 +63,43 @@
 		},
 		onLoad() {
 			const _this = this
-			this.theme = getApp().globalData.theme
 			this.$nextTick(function(){
 				// 监听整改完成后刷新事件
 				uni.$on('refreshBL', function(data){
 					_this.$refs.salesList.getList(1)
 				})
 			})
+			
+			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)
+			  }
+			})
 		},
 		onUnload() {
 			uni.$off('refreshBL')

+ 0 - 29
pages/stock/index.vue

@@ -80,35 +80,6 @@
 			}
 		},
 		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: {