riku
2026-04-02 3282e95db0207ee133d1e98d9771dec9d83b0fc4
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
<view bind:tap="showPopUp" class='topic-text'>
  <text>专题管理:{{selectedTopics[searchOptions.sceneType].topicText}}</text>
  <t-icon name="caret-down-small" size="36rpx" color="black'" />
</view>
 
<t-popup visible="{{popupVisible}}" bind:visible-change="onPopupVisibleChange" placement="bottom">
  <view class="popup-btn-group">
    <t-button block="{{false}}" t-class="t-class-button" theme="default" size="extra-small" bindtap="closePatrolList">取消
    </t-button>
    <view style="display: flex; align-items: center">
      <t-checkbox t-class="t-class-checkbox" t-class-border="t-class-border-checkbox"
        t-class-content="t-class-content-checkbox" t-class-label="t-class-label-checkbox" placement="right" borderless
        icon="rectangle" block="{{true}}" label="全选" checked="{{selectedTopics[searchOptions.sceneType].checkAll}}"
        bind:change="onCheckAll" />
      <t-button block="{{false}}" t-class="t-class-button" theme="primary" size="extra-small"
        bindtap="onLedgerPickerChange">
        {{selectedTopics[searchOptions.sceneType].selectedCount > 0 ? '(' + selectedTopics[searchOptions.sceneType].selectedCount + ')' : ''}}
        确定
      </t-button>
    </view>
  </view>
  <scroll-view style="height: 70vh" scroll-y="{{true}}">
    <t-grid column="{{4}}" theme="card">
      <t-grid-item wx:for="{{selectedTopics[searchOptions.sceneType].allLedgerTypes}}" wx:key="index"
        class="{{item.selected ? 'patrol-task-item-selected' : 'patrol-task-item'}}" badge-props="{{ item.selected }}"
        text="{{item.ledgerName}}" image="{{item.iconUrl}}" data-index="{{index}}" bindtap="choseLedgerType" />
    </t-grid>
  </scroll-view>
</t-popup>