陶杰
2024-09-14 498bdeb742de8c7a4cbc6276adda2237c690d9dc
1.首页优惠券弹框自定义背景图片
已修改1个文件
5 ■■■■ 文件已修改
pages/home/home.vue 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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}`)}}