From 498bdeb742de8c7a4cbc6276adda2237c690d9dc Mon Sep 17 00:00:00 2001
From: 陶杰 <1378534974@qq.com>
Date: 星期六, 14 九月 2024 15:35:34 +0800
Subject: [PATCH] 1.首页优惠券弹框自定义背景图片

---
 pages/home/home.vue |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/pages/home/home.vue b/pages/home/home.vue
index 25ec768..ba2436c 100644
--- a/pages/home/home.vue
+++ b/pages/home/home.vue
@@ -78,7 +78,10 @@
 		<uni-popup ref="coupon_home" type="center" border-radius="10px 10px 0 0">
 			<view class="coupon-container" style="width: 690rpx;">
 				<view class="coupont-item all">
-					<view class="flex container img100">
+					<!-- <view class="flex container img100"> -->
+					<!-- <view class="flex container img100"	:style="{ backgroundImage: `url(${dto_home_coupon.imageUrl})`, backgroundSize: 'cover', backgroundPosition: 'center', backgroundRepeat: 'no-repeat' }"> -->
+					<view class="flex container img100"	:style="{ backgroundImage: `url(${dto_home_coupon.imageUrl})`, backgroundSize: 'contain', backgroundPosition: 'center', backgroundRepeat: 'no-repeat' }">
+						<!-- <view class="flex container img100"	:style="{ backgroundImage: `url(${dto_home_coupon.imageUrl})`, backgroundSize: '100%', backgroundPosition: 'center', backgroundRepeat: 'no-repeat' }"> -->
 						<view class="info-price">
 							<view class="price1">
 								{{dto_home_coupon.maxDiscountAmount?(`${dto_home_coupon.maxDiscountAmount}折`):(`¥${dto_home_coupon.couponDiscountValue}`)}}

--
Gitblit v1.9.3