浏览代码

bug 修复

lilei 4 年之前
父节点
当前提交
69d8b4ab77
共有 1 个文件被更改,包括 7 次插入6 次删除
  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')