| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- <pop-manager
- show="{{ show }}"
- type="center"
- >
- <view class="zan-dialog--container">
- <view
- wx:if="{{ title }}"
- class="zan-dialog__header"
- >{{ title }}</view>
- <view
- class="zan-dialog__content {{ title ? 'zan-dialog__content--title' : '' }}"
- >
- <text>{{ message }}</text>
- </view>
- <view
- class="zan-dialog__footer {{ buttonsShowVertical ? 'zan-dialog__footer--vertical' : 'zan-dialog__footer--horizon' }}"
- >
- <block
- wx:for="{{ buttons }}"
- wx:key="{{ item.text }}-{{ item.type }}"
- >
- <zan-button
- class="zan-dialog__button"
- custom-class="{{ index === 0 ? 'zan-dialog__button-inside--first' : 'zan-dialog__button-inside' }}"
- data-type="{{ item.type }}"
- data-open-type="{{ item.openType }}"
- open-type="{{ item.openType }}"
- bind:btnclick="handleButtonClick"
- bind:getuserinfo="handleUserInfoResponse"
- bind:getphonenumber="handlePhoneResponse"
- bind:opensetting="handleOpenSettingResponse"
- >
- <view
- style="color: {{ item.color || '#333' }}"
- >{{ item.text }}</view>
- </zan-button>
- </block>
- </view>
- </view>
- </pop-manager>
|