feat(master): 新增订单服务图片展示并优化布局
- 在订单卡片左侧增加服务图片展示 - 调整布局为flex布局,优化信息展示 - 为标签添加自动换行处理,避免溢出
这个提交包含在:
@@ -69,18 +69,21 @@
|
||||
</view>
|
||||
|
||||
<view class="bd">
|
||||
<view class="info-line">
|
||||
<image class="info-ico" src="/static/icons/master/order-loc.svg" mode="aspectFit" />
|
||||
<text class="addr-txt">{{ o.address }}</text>
|
||||
</view>
|
||||
<view class="info-line">
|
||||
<image class="info-ico" src="/static/icons/master/order-time.svg" mode="aspectFit" />
|
||||
<text class="meta-txt">预约时间:{{ o.appoint_text }}</text>
|
||||
</view>
|
||||
<view class="meta-tags">
|
||||
<text class="tag">楼层 {{ o.floor || 1 }} 层</text>
|
||||
<text class="tag">{{ Number(o.has_elevator) ? '有电梯' : '步梯无电梯' }}</text>
|
||||
<text class="tag" v-if="o.goods_model">规格:{{ o.goods_model }}</text>
|
||||
<image v-if="o.service_image" class="order-thumb" :src="o.service_image" mode="aspectFill" lazy-load />
|
||||
<view class="order-info">
|
||||
<view class="info-line">
|
||||
<image class="info-ico" src="/static/icons/master/order-loc.svg" mode="aspectFit" />
|
||||
<text class="addr-txt">{{ o.address }}</text>
|
||||
</view>
|
||||
<view class="info-line">
|
||||
<image class="info-ico" src="/static/icons/master/order-time.svg" mode="aspectFit" />
|
||||
<text class="meta-txt">预约时间:{{ o.appoint_text }}</text>
|
||||
</view>
|
||||
<view class="meta-tags">
|
||||
<text class="tag">楼层 {{ o.floor || 1 }} 层</text>
|
||||
<text class="tag">{{ Number(o.has_elevator) ? '有电梯' : '步梯无电梯' }}</text>
|
||||
<text class="tag" v-if="o.goods_model">规格:{{ o.goods_model }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -508,6 +511,22 @@
|
||||
.bd {
|
||||
padding: 20rpx 0;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 20rpx;
|
||||
}
|
||||
|
||||
.order-thumb {
|
||||
width: 120rpx;
|
||||
height: 120rpx;
|
||||
flex-shrink: 0;
|
||||
border-radius: 12rpx;
|
||||
background: $yjyf-bg-page;
|
||||
}
|
||||
|
||||
.order-info {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12rpx;
|
||||
}
|
||||
@@ -546,6 +565,9 @@
|
||||
}
|
||||
|
||||
.tag {
|
||||
max-width: 100%;
|
||||
box-sizing: border-box;
|
||||
overflow-wrap: anywhere;
|
||||
padding: 4rpx 14rpx;
|
||||
border-radius: 8rpx;
|
||||
background: $yjyf-bg-page;
|
||||
|
||||
在新工单中引用
屏蔽一个用户