From 106fc09e267f67bb35a279ed1bf71068a61e73c4 Mon Sep 17 00:00:00 2001
From: Jacob <hlnie@tohours.com>
Date: 星期五, 23 十月 2026 13:26:24 +0800
Subject: [PATCH] Merge branch 'dev' into sit

---
 pages/zone/index.vue |   16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/pages/zone/index.vue b/pages/zone/index.vue
index ae51d38..d55a838 100644
--- a/pages/zone/index.vue
+++ b/pages/zone/index.vue
@@ -89,7 +89,8 @@
 					</view>
 				</view>
 			</view>
-			<view @click="goLottery" class="lottery_banner" v-if="info && info.isLottery && info.lotteryBanner">
+			<view @click="goLottery" class="lottery_banner"
+				v-if="info && info.isLottery && info.lotteryBanner && lotteryBannerReady">
 				<image class="lottery_bannerImg" :src="info.lotteryBanner" mode="widthFix"
 					:style="{ height: lotteryBannerHeight }">
 				</image>
@@ -644,6 +645,7 @@
 			urlOption: {},
 			homeTop: '200',
 			lotteryBannerHeight: '', //鎶藉banner棰勮绠楅珮搴︼紙rpx锛夛紝绌哄瓧绗︿覆琛ㄧず鏈彇鍒帮紝鎸夊師閫昏緫鑷�傚簲
+			lotteryBannerReady: false, //鏄惁宸叉嬁鍒癰anner灏哄锛堟垨宸茬‘璁ゆ嬁涓嶅埌锛夛紝鏈氨缁墠涓嶆覆鏌擄紝閬垮厤棣栧抚鎾戦珮
 			hasNewPop: false,
 			leftCoupon: {},
 			rightCoupon: {},
@@ -1486,15 +1488,23 @@
 		setLotteryBannerSize(info) {
 			let that = this
 			that.lotteryBannerHeight = ''
-			if (!info || !info.isLottery || !info.lotteryBanner) return
+			that.lotteryBannerReady = false
+			if (!info || !info.isLottery || !info.lotteryBanner) {
+				that.lotteryBannerReady = true
+				return
+			}
 			uni.getImageInfo({
 				src: info.lotteryBanner,
 				success: (img) => {
 					if (img.width > 0 && img.height > 0) {
 						that.lotteryBannerHeight = (690 * img.height / img.width).toFixed(2) + 'rpx'
 					}
+					that.lotteryBannerReady = true
 				},
-				fail: () => { }
+				fail: (err) => {
+					console.warn('鎶藉banner灏哄棰勫彇澶辫触锛屽洖閫�涓鸿嚜閫傚簲', err)
+					that.lotteryBannerReady = true
+				}
 			})
 		},
 		getZoneDetail: function () {

--
Gitblit v1.4.0