|
@@ -4,7 +4,9 @@
|
|
|
<view class="label">优惠券:</view>
|
|
|
<view class="coupon-tags">
|
|
|
<template v-for="(item, index) in couponList">
|
|
|
- <view class="tag" v-text="item.couponTitle" v-if="index < 2" :key="item.couponId"></view>
|
|
|
+ <view class="tag" v-if="index < 2" :key="item.couponId">
|
|
|
+ <view class="coupon-label" v-text="item.couponTitle"></view>
|
|
|
+ </view>
|
|
|
</template>
|
|
|
<text class="ellipsis" v-if="couponList.length > 2">...</text>
|
|
|
</view>
|
|
@@ -49,16 +51,21 @@ export default {
|
|
|
background: #fff3f7;
|
|
|
border: 1rpx solid #ff457b;
|
|
|
border-radius: 4rpx;
|
|
|
- color: #ff457b;
|
|
|
- font-size: 22rpx;
|
|
|
- max-width: 250rpx;
|
|
|
- overflow: hidden;
|
|
|
- text-overflow: ellipsis;
|
|
|
- white-space: nowrap;
|
|
|
+ vertical-align: middle;
|
|
|
+
|
|
|
+ .coupon-label {
|
|
|
+ font-size: 22rpx;
|
|
|
+ max-width: 236rpx;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ white-space: nowrap;
|
|
|
+ color: #ff457b;
|
|
|
|
|
|
- &::before {
|
|
|
- content: '券 |';
|
|
|
- margin: 0 6rpx;
|
|
|
+ &::before {
|
|
|
+ content: '券 |';
|
|
|
+ margin: 0 6rpx;
|
|
|
+ margin-left: 0;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
&:first-child {
|