riku
2024-11-07 5a678cce1b157411f20fbddfaed49c7bc8d9fba7
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<view class="page">
  <view class="page-header">
    <view class="flex-h">
      <text class="title">查看记录</text>
      <picker bindchange="bindYearChange" data-type="year" value="{{year}}" mode="date" fields="year" end="{{maxYear}}">
        <view class="fyui-selector">
          {{year}}年
          <t-icon name="chevron-down" color="black" size="12"></t-icon>
        </view>
      </picker>
    </view>
    <view class="horizal-list">
      <view
        class="{{selectedMonIndex == index ? 'tag_selected':'tag_unselected'}} {{item.hasData ? 'tag_has_data':''}}"
        wx:for="{{months}}"
        wx:key="month"
        bindtap="selectMonth"
        data-index="{{index}}"
        >{{item.month}}月</view
      >
    </view>
  </view>
  <view class="page-container" style="margin-top: {{marginTop}};">
    <t-loading
      wx:if="{{pageLoading}}"
      theme="circular"
      size="40rpx"
      text="加载中..."
      loading
      t-class="fy-loading"
      t-class-indicator="fy-loading-indicator"
      t-class-text="fy-loading-text"
    >
    </t-loading>
    <block wx:if="{{recordList.length > 0}}">
      <view wx:for="{{recordList}}" wx:key="index" wx:for-index="i1" class="fyui-panel">
        <view class="flex-h">
          <view class="ledger-type">{{item.ledgerType}}</view>
          <view class="ledger-type_2">({{item.ledgers.length}} / {{item.total}})</view>
        </view>
        <view class="ledger-group">
          <view
            wx:for="{{item.ledgers}}"
            wx:for-item="ledger"
            wx:for-index="i2"
            wx:key="i2"
            class="ledger-group_item"
            bindtap="previewImage"
            data-index="{{i1}},{{i2}}"
          >
            <image class="" src="{{ledger.path1[0]}}" mode="aspectFill"></image>
            <view>{{ledger.ledgerName}}</view>
          </view>
        </view>
      </view>
    </block>
  </view>
  <view class="page-footer"></view>
</view>
<my-gallery
  hide-on-click="{{true}}"
  show-delete="{{false}}"
  show="{{showPreview}}"
  img-urls="{{previewImageUrls}}"
  current="{{previewCurrent}}"
  title="{{ledgerTitle}}"
  remark="{{ledgerRemark}}"
></my-gallery>