Ver Fonte

bug 修复

lilei há 4 anos atrás
pai
commit
d118907596
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      pages/index/index.vue

+ 2 - 2
pages/index/index.vue

@@ -108,8 +108,6 @@
 		onLoad() {
 			// 检查更新
 			this.checkUpdate()
-			// 判断是否有抽奖活动
-			this.getLuckDraw()
 			// 查询购物车列表
 			this.getCartList()
 			// 刷新购物车列表
@@ -144,6 +142,8 @@
 			console.log(res)
 		},
 		onShow() {
+			// 判断是否有抽奖活动
+			this.getLuckDraw()
 			// 获取订单状态数据字典
 			// this.getCodeList('RUBBISH_TYPE','vuex_rubbishType')
 			// 获取顶部轮播图