Commit 172fcd2a by huyue

修改兑换券样式

1 parent 6d2683a1
......@@ -51,7 +51,7 @@
<view :class="['coupon-bg', `${TYPE_LIST[item.couponState]}-bg`]">
<image v-if="item.couponState == 2" class="claimed-left" :src="require('@/assets/images/point/claimed-left.png')" alt="" />
<view class="coupon-img">
<image class="img" :src="item.couUrl || require('@/assets/images/point/default-coupon.png')" alt="" />
<image class="img" mode="aspectFill" :src="item.couUrl || require('@/assets/images/point/default-coupon.png')" alt="" />
</view>
<view class="coupon-info">
<view :class="['coupon-name', { 'gray-name': item.couponState == 3 }]">{{ item.couponName}}
......@@ -567,13 +567,13 @@ export default {
align-items: center;
justify-content: center;
background-color: #fff;
width: toRpx(152);
width: toRpx(240);
height: toRpx(152);
margin: toRpx(40) auto;
border-radius: toRpx(32);
.img {
width: toRpx(152);
width: toRpx(240);
height: toRpx(152);
border-radius: toRpx(32);
}
......@@ -1049,9 +1049,9 @@ export default {
.coupon-tips {
display: flex;
align-items: center;
justify-content: center;
color: #EF6F2C;
font-size: toRpx(28);
padding-left: toRpx(36);
}
.coupon-qrcode {
width: 100%;
......@@ -1092,7 +1092,7 @@ export default {
}
}
.redeem-code {
padding: 0 toRpx(132);
padding: 0 toRpx(40);
margin: toRpx(48) 0 toRpx(80);
.redeem-item {
display: flex;
......@@ -1176,7 +1176,7 @@ export default {
color: #020305;
font-weight: 500;
margin-bottom: toRpx(16);
padding: 0 toRpx(32);
padding: 0 toRpx(26);
}
.usage-notice {
background-color: #F5F7FA;
......
......@@ -52,7 +52,9 @@
<template v-if="couponCount">
<view class="coupon-card">
<view v-for="item in couponList" :key="item.id" class="card-bg" :class="item.isclaimed ? 'claimed-bg' : 'unclaimed-bg'">
<view class="coupon-img"></view>
<view class="coupon-img">
<image mode="aspectFit" :src="item.couUrl || require('@/assets/images/point/default-coupon.png')" alt="" />
</view>
<view class="coupon-right">
<view :class="['coupon-name', item.couponState == 2 ? 'unclaimed-name':'']">{{ item.couponName }}</view>
<view :class="['coupon-price', item.couponState == 2 ? 'unclaimed-price':'']">价值¥{{ item.lineationPrice }}</view>
......@@ -370,6 +372,11 @@ export default {
width: toRpx(88);
height: toRpx(112);
border-radius: toRpx(16);
image {
width: toRpx(88);
height: toRpx(112);
border-radius: toRpx(16);
}
}
.coupon-right {
margin-left: toRpx(24);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!