riku
2025-04-22 45be153eaef9e1c1a3fe21515e9cbd785fba8e1f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<view class="patrol-record-wrap {{item.ledgerFinished ? 'patrol-finished' : 'patrol-unfinished'}}">
  <view class="patrol-record-text-wrap">
    <view> {{indexText}} </view>
    <view style="display: flex; flex-direction: column; justify-content: space-between">
      <view class="patrol-record-text">{{item.ledgerName}}</view>
      <view class="patrol-record-tag">{{item.updateDate ? item.updateDate : '未提交'}}</view>
    </view>
  </view>
  <view class="patrol-record-img-wrap">
    <t-image
      wx:if="{{item.path1 == null}}"
      t-class="t-class-image"
      src="{{'/res/nodata.png'}}"
      mode="aspectFit"
      width="80rpx"
      height="80rpx"
      shape="round"
    >
      <text slot="error">未提交</text>
    </t-image>
    <block wx:else>
      <t-image
        wx:for="{{item.path1}}"
        wx:key="index"
        wx:for-item="urlItem"
        t-class="t-class-image"
        src="{{urlItem}}"
        mode="aspectFill"
        width="80rpx"
        height="80rpx"
        shape="round"
        aria-label="{{item.ledgerName}}"
      />
    </block>
  </view>
</view>