1.修改商品详情,优惠券在支付宝小程序换行错位问题

master
sws 2024-05-08 09:59:21 +08:00
parent fe372bb1ec
commit 5720a3ce87
2 changed files with 9 additions and 3 deletions

View File

@ -907,6 +907,12 @@ button[disabled].bg-grey {
.warp { .warp {
word-break: break-all; word-break: break-all;
} }
/**
*
*/
.nowrap {
white-space: nowrap;
}
/** /**
* *

View File

@ -226,9 +226,9 @@
<block v-for="(item, index) in plugins_coupon_data.data" :key="index"> <block v-for="(item, index) in plugins_coupon_data.data" :key="index">
<view class="coupon-padding margin-right-xs"> <view class="coupon-padding margin-right-xs">
<view class="oh"> <view class="oh">
<view class="item margin-vertical-xs mini-coupon" :class="item.status_type === 2 ? 'received-coupon mini-coupon-br' : 'not-received-coupon'"> <view class="item margin-vertical-xs mini-coupon flex-row flex-nowrap" :class="item.status_type === 2 ? 'received-coupon mini-coupon-br' : 'not-received-coupon'">
<text @tap="popup_coupon_event">{{ item.desc || item.name }}</text> <text class="nowrap" @tap="popup_coupon_event">{{ item.desc || item.name }}</text>
<text class="dis-inline-block margin-left-sm padding-left-sm divider-l" @tap="coupon_receive_event(index, item.id)">{{ item.status_operable_name }}</text> <text class="dis-inline-block nowrap margin-left-sm padding-left-sm divider-l" @tap="coupon_receive_event(index, item.id)">{{ item.status_operable_name }}</text>
</view> </view>
</view> </view>
</view> </view>