<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>
|