Commit 457787e2 by cen

fix: 省略样式

1 parent 4c541026
...@@ -7,12 +7,10 @@ ...@@ -7,12 +7,10 @@
</view> </view>
</view> </view>
<view class="order-card-top-box flex justify-between"> <view class="order-card-top-box flex justify-between">
<view class="flex item-center"> <view class="flex item-center order-value-single flex-shrink0 flex-1">
<text class="mr-20">{{ orderCardDetail.goodName }}</text> <text class="mr-20 order-value-single">{{ orderCardDetail.goodName }}</text>
</view> </view>
<!-- 待上传合同协议且是已支付的订单 --> <view class="status text-center min-width0" :style="{ color: status[orderCardDetail.orderStatus].color, 'background-color': status[orderCardDetail.orderStatus].background }">
<view class="status text-center" :style="{ color: status[0].color, 'background-color': status[0].background }" v-if="orderCardDetail.zyPayStatus == 1 && (orderCardDetail.orderStatus == 3 || orderCardDetail.orderStatus == 4 || orderCardDetail.orderStatus == 7)">待上传</view>
<view v-else class="status text-center" :style="{ color: status[orderCardDetail.orderStatus].color, 'background-color': status[orderCardDetail.orderStatus].background }">
{{ status[orderCardDetail.orderStatus].text }} {{ status[orderCardDetail.orderStatus].text }}
</view> </view>
</view> </view>
...@@ -21,10 +19,10 @@ ...@@ -21,10 +19,10 @@
<!-- <image class="status-icon" src="/packageEquity/images/equity-{{ item.orderStatus }}.png" /> --> <!-- <image class="status-icon" src="/packageEquity/images/equity-{{ item.orderStatus }}.png" /> -->
<view class="order-list align-center" v-for="(item, sindex) in orderObj" :key="sindex"> <view class="order-list align-center" v-for="(item, sindex) in orderObj" :key="sindex">
<view class="flex" :class="['order', orderObj.length == sindex + 1 ? '' : 'm-b-16']"> <view class="flex" :class="['order', orderObj.length == sindex + 1 ? '' : 'm-b-16']">
<view class="order-label">{{ item.label }}</view> <view class="order-label order-value-single">{{ item.label }}</view>
<view class="order-value"> <view class="order-value">
<view v-if="item.key == 'ywly'">车损升级</view> <view v-if="item.key == 'ywly'">车损升级</view>
<view v-else>{{ orderCardDetail[item.key] || '' }}{{ item.suffix || '' }}</view> <view v-else class="order-value-single">{{ orderCardDetail[item.key] || '' }}{{ item.suffix || '' }}</view>
</view> </view>
</view> </view>
</view> </view>
...@@ -603,14 +601,6 @@ export default { ...@@ -603,14 +601,6 @@ export default {
min-width: 0; min-width: 0;
} }
.order-value-single,
.order-value-item {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
min-width: 0;
}
.value-text { .value-text {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
...@@ -818,4 +808,17 @@ export default { ...@@ -818,4 +808,17 @@ export default {
.updateInfo.isHide { .updateInfo.isHide {
display: none; display: none;
} }
.flex-shrink0 {
flex-shrink: 0;
}
.min-width0 {
min-width: 0;
}
.order-value-single,
.order-value-item {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
min-width: 0;
}
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!