|
@@ -4,11 +4,11 @@
|
|
<view class="label">优惠券:</view>
|
|
<view class="label">优惠券:</view>
|
|
<view class="coupon-tags">
|
|
<view class="coupon-tags">
|
|
<template v-for="(item, index) in couponList">
|
|
<template v-for="(item, index) in couponList">
|
|
- <view class="tag" v-if="index < 2" :key="item.couponId">
|
|
|
|
|
|
+ <view class="tag" :key="item.couponId" v-if="index < 2">
|
|
<view class="coupon-label" v-text="item.couponTitle"></view>
|
|
<view class="coupon-label" v-text="item.couponTitle"></view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
- <text class="ellipsis" v-if="couponList.length > 2">...</text>
|
|
|
|
|
|
+ <!-- <text class="ellipsis" v-if="couponList.length > 2">...</text> -->
|
|
</view>
|
|
</view>
|
|
<view class="iconfont icon-chakangengduo more"></view>
|
|
<view class="iconfont icon-chakangengduo more"></view>
|
|
</view>
|
|
</view>
|
|
@@ -43,6 +43,9 @@ export default {
|
|
flex: 1;
|
|
flex: 1;
|
|
text-align: right;
|
|
text-align: right;
|
|
margin-right: 24rpx;
|
|
margin-right: 24rpx;
|
|
|
|
+ white-space: nowrap;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ text-overflow: clip;
|
|
.tag {
|
|
.tag {
|
|
display: inline-block;
|
|
display: inline-block;
|
|
height: 30rpx;
|
|
height: 30rpx;
|