negotiation-summary-section.wxml
1.38 KB
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
37
38
39
40
<view class="summary-repeater">
<view class="summary-repeater__title">{{ label }}</view>
<view wx:if="{{ recordRows.length }}" class="summary-repeater__nav">
<view
class="summary-repeater__nav-btn {{ recordRows.length <= 1 || activeIndex <= 0 ? 'is-disabled' : '' }}"
data-direction="-1"
bindtap="onNav"
>
<image class="summary-repeater__nav-icon" src="{{ navIconLeft }}" mode="aspectFit" />
</view>
<view class="summary-repeater__nav-text">{{ activeIndex + 1 }}/{{ recordRows.length }}</view>
<view
class="summary-repeater__nav-btn {{ !recordRows.length || activeIndex + 1 >= recordRows.length ? 'is-disabled' : '' }}"
data-direction="1"
bindtap="onNav"
>
<image class="summary-repeater__nav-icon" src="{{ navIconRight }}" mode="aspectFit" />
</view>
</view>
<view wx:if="{{ recordRows.length }}" class="summary-repeater__card">
<view class="summary-repeater__card-hd">
<text class="summary-repeater__row-label">第{{ activeIndex + 1 }}行</text>
</view>
<view class="summary-repeater__fields">
<view
class="summary-repeater__field-item"
wx:for="{{ visibleFields }}"
wx:for-index="fieldIndex"
wx:key="fieldIndex"
>
<view class="form-info-row is-disabled">
<view class="form-info-row__label">{{ item.label }}</view>
<view class="form-info-row__value">{{ item.value }}</view>
</view>
</view>
</view>
</view>
</view>