lilei il y a 4 ans
Parent
commit
51ef538f98
1 fichiers modifiés avec 6 ajouts et 5 suppressions
  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
 		},
 		// 获取免费抽奖次数