Fly il y a 1 an
Parent
commit
84c9fc8ab7
1 fichiers modifiés avec 7 ajouts et 2 suppressions
  1. 7 2
      pages/game/Lottery.vue

+ 7 - 2
pages/game/Lottery.vue

@@ -29,7 +29,7 @@
 					<almost-lottery :lotteryBg="lotteryBg" :actionBg="pointerBg" :strFontColors="['#542f10']"
 						:strFontSize="28" :strMarginOutside="40" :imgMarginStr="40" :colors="colors"
 						:canvasMarginOutside="100" :lottery-size="673" pointerPosition="middle" :ring-count="8"
-						:duration="5" :imgDrawed="true" :canvasCached="false" :prize-list="prizeList"
+						:duration="5" :imgDrawed="false" :canvasCached="false" :prize-list="prizeList"
 						:prize-index="prizeIndex" @draw-before="handleDrawBefore" @reset-index="prizeIndex = -1"
 						@draw-start="handleDrawStart" @draw-end="handleDrawEnd" @finish="handleDrawFinish" />
 				</template>
@@ -480,13 +480,18 @@
 			},
 			// 本次抽奖开始
 			handleDrawStart() {
+				// if (this.activityInfo.areaLimit) {
+
+				// }
+				console.log('this.activityInfo.areaLimit = ' , this.activityInfo.areaLimit)
+				const c_y = this.location?.city || undefined
 				// console.log('本次抽奖开始')
 				// 这里需要处理你的抽奖逻辑,并得出中奖物品的 prizeIndex
 				// 请查看示例项目中的代码 
 				this.activityJoinRecordId = null;
 				getActivityLottery({
 					activityId: this.activityId,
-					cityName: this.location.city || undefined
+					cityName: c_y
 				}).then(res => {
 					const val = res.data;
 					try {