lilei 3 anni fa
parent
commit
7d7da060ab
2 ha cambiato i file con 9 aggiunte e 7 eliminazioni
  1. 2 2
      App.vue
  2. 7 5
      pages/index/index.vue

+ 2 - 2
App.vue

@@ -1,8 +1,8 @@
 <script>
 	export default {
 		globalData: {
-			baseUrl: 'http://192.168.16.156:9110/saas/clz/', // 本地
-			// baseUrl: 'http://md.test.zyucgj.com/saas/clz/', // 预发布
+			// baseUrl: 'http://192.168.16.156:9110/saas/clz/', // 本地
+			baseUrl: 'https://md.test.zyucgj.com/saas/clz/', // 预发布
 			// baseUrl: 'https://car.zyucgj.com/saas/clz/' // 生产
 		},
 		onLaunch: function() {

+ 7 - 5
pages/index/index.vue

@@ -104,11 +104,13 @@
 			this.getLookUpList('PAY_PROCUCT_TYPE', 'vuex_paymentTypeList');
 		},
 		onShow() {
-			// 查询是否有数字货架
-			this.getStoreShelf()
-			// 获取扫描记录
-			this.getVinLog()
-			this.getScrollLog()
+			if(this.hasLogin){
+				// 查询是否有数字货架
+				this.getStoreShelf()
+				// 获取扫描记录
+				this.getVinLog()
+				this.getScrollLog()
+			}
 		},
 		methods: {
 			//  获取数据字典