优化显示

This commit is contained in:
ChuShiZ 2024-08-23 18:47:29 +08:00
parent 20ea352398
commit 2d31688dc0
2 changed files with 3 additions and 3 deletions

View File

@ -30,10 +30,10 @@
<view class="box-title" v-else-if="detailsinfo.rescueInfo.rescueStatus == 2">您的订单处于待开始请耐心等待</view> <view class="box-title" v-else-if="detailsinfo.rescueInfo.rescueStatus == 2">您的订单处于待开始请耐心等待</view>
<view v-else class="box-title" style="display: flex;column-gap: 2px;align-items: center;"> <view v-else class="box-title" style="display: flex;column-gap: 2px;align-items: center;">
<text>{{detailsinfo.rescueInfo.driverCarNum}}</text> <text>{{detailsinfo.rescueInfo.driverCarNum}}</text>
<text>|</text> <!-- <text>|</text>
<text></text> <text></text>
<text>|</text> <text>|</text>
<text></text> <text></text> -->
</view> </view>
<!-- <view class="box-title" style="display: flex;column-gap: 2px;align-items: center;" <!-- <view class="box-title" style="display: flex;column-gap: 2px;align-items: center;"
v-if="detailsinfo.rescueInfo.rescueStatus == 3"> v-if="detailsinfo.rescueInfo.rescueStatus == 3">

View File

@ -111,7 +111,7 @@ import dayjs from '../../uni_modules/uview-ui/libs/util/dayjs';
noticeGroupByCreateTime(list) { noticeGroupByCreateTime(list) {
if (list && list.length > 0) { if (list && list.length > 0) {
list.forEach((item) => { list.forEach((item) => {
const day = dayjs(item.createTime).format('MM-DD HH:mm') const day = item.createTime ? dayjs(item.createTime).format('MM-DD HH:mm') : ''
const find = this.groupArr.find(f => f.date === day) const find = this.groupArr.find(f => f.date === day)
if (find) { if (find) {
find.noticeList.push(item) find.noticeList.push(item)