riku
2024-08-13 1a0e4972f80278bfa9e53283374b745b6c968341
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
<block wx:if="{{noticeMode == 0}}">
<t-picker
  visible="{{noticeVisible}}"
  value="{{noticeValue}}"
  data-key="notice"
  title="选择通知类型"
  cancelBtn="取消"
  confirmBtn="确认"
  bindchange="onPickerChange"
  bindcancel="onPickerCancel"
>
  <t-picker-item options="{{noticeTypes}}"></t-picker-item>
</t-picker>
</block>
<block wx:else>
  <t-grid t-class="t-class-grid" column="{{4}}" layout="horizontal">
    <t-grid-item
      wx:for="{{noticeTypes}}"
      wx:for-index="index"
      wx:key="index"
      data-index="{{index}}"
      data-key="notice"
      t-class="t-class-grid-item"
      t-class-text="t-class-grid-item-text {{noticeIndex == index ? 't-class-grid-item-text__active' : ''}}"
      text="{{item.label}}"
      bindtap="onGridChange"
    />
  </t-grid>
</block>