闫增涛
2024-02-23 fdfb3ca757ecd6c396632ed276ff354671d3a7e5
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
<t-popup
 visible="{{show}}"
 placement="bottom"
 bind:visible-change="onCancel"
 close-btn="{{showCloseButton}}"
>
    <view class="popup-content">
        <view class="header">
            {{title}}
        </view>
        <view class="options">
            <t-cell
             wx:for="{{_options}}"
             wx:key="title"
             t-class="cell"
             title="{{item.title}}"
             bindclick="onOptionTap"
             data-index="{{index}}"
             border="{{false}}"
            >
                <view slot="right-icon">
                    <t-icon
                     name="check-circle-filled"
                     size="36rpx"
                     color="#fa4126"
                     wx:if="{{item.checked}}"
                    />
                    <t-icon
                     name="circle"
                     size="36rpx"
                     color="#C7C7C7"
                     wx:else
                    />
                </view>
            </t-cell>
        </view>
        <view class="button-bar" wx:if="{{showConfirmButton}}">
            <t-button
             class="btnWrapper"
             wx:if="{{showConfirmButton}}"
             t-class="btn"
             bindtap="onConfirm"
            >
                {{confirmButtonText}}
            </t-button>
        </view>
    </view>
</t-popup>
<t-toast id="t-toast" />