Commit 172fcd2a by huyue

修改兑换券样式

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