riku
2025-04-21 0746b7bbe6aa3d9f02e03654a2cd4fde2081c335
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
69
70
71
72
73
74
75
76
77
78
79
<import src="/behaviors/picker/template-selector.wxml" />
 
<view class="page popup-block">
  <view class="page-header">
    <view class="popup-btn-group">
      <t-button
        block="{{false}}"
        t-class="t-class-button"
        theme="{{selectedList.length > 0 ? 'danger' : 'default'}}"
        size="extra-small"
        bindtap="onCancel"
        >{{selectedList.length > 0 ? '清空' : '取消'}}</t-button
      >
      <t-button
        block="{{false}}"
        t-class="t-class-button"
        theme="primary"
        size="extra-small"
        bindtap="onConfirm"
        >{{selectedList.length > 0 ? '(' + selectedList.length + ')' : ''}}确定</t-button
      >
    </view>
    <view class="filter-wrap">
      <template
        is="picker-selector"
        data="{{key: 'scene', value: sceneText}}"
      />
      <template
        is="picker-selector"
        data="{{key: 'district', value: districtText}}"
      />
      <template is="picker-selector" data="{{key: 'town', value: townText}}" />
    </view>
    <t-search
      placeholder="{{placeholder}}"
      model:value="{{searchValue}}"
      bind:submit="_startLoad"
      bind:clear="_startLoad"
    >
    </t-search>
  </view>
  <view class="page-container">
    <scroll-view
      style="height: 70vh"
      scroll-y="{{true}}"
      bindscrolltolower="_loadMore"
    >
      <t-checkbox
        wx:for="{{list}}"
        wx:key="index"
        t-class-label="t-class-checkbox-label"
        label="{{item.realname}}"
        data-index="{{index}}"
        checked="{{item.checked}}"
        bind:change="onCheckBoxChange"
      />
      <load-more
        list-is-empty="{{!list.length}}"
        status="{{loadStatus}}"
        bind:retry="_startLoad"
      />
    </scroll-view>
  </view>
  <!-- <view class="footer">
    <view>已选择{{selectedList.length}}</view>
    <t-button
      block="{{false}}"
      t-class="t-class-button"
      theme="default"
      size="extra-small"
      bindtap="onCancel"
      >清空</t-button
    >
  </view> -->
</view>
 
<include src="/behaviors/picker/scene/template-scene.wxml" />
<include src="/behaviors/picker/district/template-district.wxml" />
<include src="/behaviors/picker/town/template-town.wxml" />