44 lines
1.7 KiB
Plaintext
44 lines
1.7 KiB
Plaintext
|
<van-nav-bar fixed class="navBar" title="报修管理" custom-style="background-color:#1989FA;color:#fff;z-index:9;" title-class="titleCss" placeholder />
|
||
|
|
||
|
<scroll-view scroll-y="{{true}}" bindrefresherrefresh="refresh" refresher-triggered="{{isTriggered}}" class="viewList" refresher-enabled="{{true}}">
|
||
|
<view class="emptyButton" wx:if="{{list.length==0}}">
|
||
|
<van-empty description="暂无报修订单">
|
||
|
</van-empty>
|
||
|
<van-button round type="danger" block class="bottom-button" bind:tap="addReport">一键报修</van-button>
|
||
|
</view>
|
||
|
<view wx:else>
|
||
|
|
||
|
<van-cell-group inset>
|
||
|
<van-cell title="{{item.createTime}}" wx:for="{{list}}" wx:key="orderId" use-label-slot>
|
||
|
<view slot="right-icon" bind:tap="itemDetail" data-item="{{item}}">
|
||
|
|
||
|
<van-tag wx:if="{{item.orderStatus<5}}" type="{{orderStatus[item.orderStatus].type}}">{{orderStatus[item.orderStatus].label}}</van-tag>
|
||
|
<van-tag type="success" wx:else>已完成</van-tag>
|
||
|
</view>
|
||
|
<view slot="label" style="width: 100%;">
|
||
|
<view class="tips" bind:tap="itemDetail" data-item="{{item}}">
|
||
|
问题描述:{{item.faultDesc}}
|
||
|
</view>
|
||
|
<view>
|
||
|
故障图片:
|
||
|
<com-img wx:for="{{item.faultImg}}" src="{{item}}" mode="cover" width="80rpx" height="80rpx" style="margin-left: 10rpx;" wx:key="item"></com-img>
|
||
|
|
||
|
</view>
|
||
|
|
||
|
</view>
|
||
|
</van-cell>
|
||
|
</van-cell-group>
|
||
|
|
||
|
|
||
|
|
||
|
</view>
|
||
|
<!-- 底部加载更多提示 -->
|
||
|
<view wx:if="{{showLoading}}" class="load-more">加载中...</view>
|
||
|
|
||
|
</scroll-view>
|
||
|
|
||
|
|
||
|
|
||
|
<view class="fab">
|
||
|
<van-icon name="plus" size="46rpx" color="#fff" bind:tap="addReport" />
|
||
|
</view>
|