Browse Source

bug 修复

lilei 4 years ago
parent
commit
2fc4005949
2 changed files with 9 additions and 2 deletions
  1. 8 1
      pagesA/luckDraw/luckDraw.vue
  2. 1 1
      pagesA/luckDraw/myJp.vue

+ 8 - 1
pagesA/luckDraw/luckDraw.vue

@@ -205,7 +205,7 @@ export default {
 			weightTotal: 0,
 			weightTotal: 0,
 			// 权重数组
 			// 权重数组
 			weightArr: [],
 			weightArr: [],
-			isFirstLoad: false
+			isSocktOut: false // 是否正在抽奖
 		};
 		};
 	},
 	},
 	watch: {
 	watch: {
@@ -315,6 +315,9 @@ export default {
 		},
 		},
 		// 本次抽奖开始
 		// 本次抽奖开始
 		handleDrawStart() {
 		handleDrawStart() {
+			if(this.isSocktOut){
+				return
+			}
 			this.targetName = '';
 			this.targetName = '';
 			this.targetPrize = null;
 			this.targetPrize = null;
 			// 抽奖次数用完了
 			// 抽奖次数用完了
@@ -333,6 +336,7 @@ export default {
 				})
 				})
 				return
 				return
 			}
 			}
+			this.isSocktOut = true
 			this.getTakeOut()
 			this.getTakeOut()
 		},
 		},
 		getTakeOut(){
 		getTakeOut(){
@@ -383,6 +387,9 @@ export default {
 			this.getCustomerTimes()
 			this.getCustomerTimes()
 			this.getDrawList()
 			this.getDrawList()
 			this.showLottery = true
 			this.showLottery = true
+			setTimeout(()=>{
+				this.isSocktOut = false
+			},100)
 		},
 		},
 		// 抽奖转盘绘制完成
 		// 抽奖转盘绘制完成
 		handleDrawFinish(res) {
 		handleDrawFinish(res) {

+ 1 - 1
pagesA/luckDraw/myJp.vue

@@ -2,7 +2,7 @@
 	<view class="page-cont">
 	<view class="page-cont">
 		<view class="list" v-for="(item,index) in list" :key="item.id">
 		<view class="list" v-for="(item,index) in list" :key="item.id">
 			<view class="no">奖品{{index+1}}</view>
 			<view class="no">奖品{{index+1}}</view>
-			<view class="names">{{item.prizeDesc}}</view>
+			<view class="names">{{item.prizeType == 'GOODS'?item.prizeDesc:(item.prizeDesc+'乐豆')}}</view>
 			<view class="lingjiang" v-if="item.state == 'WAIT_RECEIVE'" @click="lingjiang(item)">领奖</view>
 			<view class="lingjiang" v-if="item.state == 'WAIT_RECEIVE'" @click="lingjiang(item)">领奖</view>
 			<view class="viewsDetail" v-else @click="viewsDetail(item)">查看详情</view>
 			<view class="viewsDetail" v-else @click="viewsDetail(item)">查看详情</view>
 		</view>
 		</view>