瀏覽代碼

bug 修复

lilei 4 年之前
父節點
當前提交
0011b72c42
共有 1 個文件被更改,包括 7 次插入9 次删除
  1. 7 9
      pagesA/luckDraw/luckDraw.vue

+ 7 - 9
pagesA/luckDraw/luckDraw.vue

@@ -211,7 +211,7 @@ export default {
 	watch: {
 		showLottery(newValue, oldValue) {
 			if(!newValue&&(this.winTypes=='win_0'||this.winTypes=='win_2'||this.winTypes=='win_3')){
-				// this.$refs.lottery.resetAngle()
+				// this.$refs.lottery.onRotateStart()
 			}
 		}
 	},
@@ -311,7 +311,7 @@ export default {
 			this.showLottery = true
 			this.winTypes = winTypes
 			this.prizeIndex = -1
-			clearCacheFile()
+			// clearCacheFile()
 		},
 		// 本次抽奖开始
 		handleDrawStart() {
@@ -333,8 +333,10 @@ export default {
 				})
 				return
 			}
+			this.getTakeOut()
+		},
+		getTakeOut(){
 			let list = [...this.prizeList];
-			
 			takeOut({id: this.luckDraw.luckyDrawNo}).then(res => {
 				if(res.status == 200){
 					console.log(res)
@@ -401,12 +403,8 @@ export default {
 			buyDrawTimes(params).then(res => {
 				if(res.status == 200){
 					this.showLottery = false
-					uni.showToast({
-						icon: 'none',
-						title: '点击开始抽奖'
-					})
-					// 查询免费抽奖次数
-					this.getCustomerTimes()
+					// 开始抽奖
+					this.getTakeOut()
 				}
 			})
 		},