Browse Source

bug 修复

lilei 4 years ago
parent
commit
69d8b4ab77
1 changed files with 7 additions and 6 deletions
  1. 7 6
      pages/index/index.vue

+ 7 - 6
pages/index/index.vue

@@ -83,12 +83,6 @@
 			}
 		},
 		onLoad() {
-			// 获取订单状态数据字典
-			this.getCodeList('RUBBISH_TYPE','vuex_rubbishType')
-			// 获取顶部轮播图
-			this.getbannerList()
-			//  获取经纬度
-			this.getLocation()
 			// 查询购物车列表
 			this.getCartList()
 			// 刷新购物车列表
@@ -113,6 +107,13 @@
 			})
 		},
 		onShow() {
+			// 获取订单状态数据字典
+			this.getCodeList('RUBBISH_TYPE','vuex_rubbishType')
+			// 获取顶部轮播图
+			this.getbannerList()
+			//  获取经纬度
+			this.getLocation()
+			
 			// 是否登录
 			checkLogin().then(res => {
 				console.log(res,'checkLogin')