浏览代码

bug 修复

lilei 4 年之前
父节点
当前提交
51ef538f98
共有 1 个文件被更改,包括 6 次插入5 次删除
  1. 6 5
      pagesA/luckDraw/luckDraw.vue

+ 6 - 5
pagesA/luckDraw/luckDraw.vue

@@ -255,13 +255,14 @@ export default {
 						// 查询免费次数
 						this.getCustomerTimes()
 						this.prizeList = this.requestPrizeList()
-						this.isFirstLoad = true
 					}else{
 						uni.showModal({
 							showCancel: false,
 							title: '活动已结束',
 							success() {
-								uni.navigateBack()
+								uni.reLaunch({
+									url: '/pages/index/index'
+								})
 							}
 						})
 					}
@@ -270,11 +271,12 @@ export default {
 						showCancel: false,
 						title: '活动已结束',
 						success() {
-							uni.navigateBack()
+							uni.reLaunch({
+								url: '/pages/index/index'
+							})
 						}
 					})
 				}
-				uni.hideLoading()
 			})
 		},
 		// 格式化数据
@@ -292,7 +294,6 @@ export default {
 					isPrizeLimit: item.isPrizeLimit
 				})
 			})
-			
 			return temp
 		},
 		// 获取免费抽奖次数