index.wxml 2.6 KB
Newer Older
5
520MianXiangDuiXiang520 已提交
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 50 51 52 53 54 55 56 57 58
<view class="wux-class {{ classes.wrap }}">
    <view class="{{ classes.hd }}">
        <view wx:if="{{ resultIcon }}" class="{{ classes.icon }}">
            <icon type="{{ resultIcon.type }}" size="{{ resultIcon.size }}" color="{{ resultIcon.color }}" />
        </view>
        <block wx:else>
            <slot name="header"></slot>
        </block>
    </view>
    <view class="{{ classes.bd }}">
        <view wx:if="{{ title }}" class="{{ classes.title }}">{{ title }}</view>
        <view wx:if="{{ label }}" class="{{ classes.desc }}">{{ label }}</view>
        <view wx:if="{{ buttons.length }}" class="{{ classes.buttons }}">
            <block wx:for="{{ buttons }}" wx:for-item="button" wx:key="index">
                <wux-button
                    type="{{ button.type }}"
                    clear="{{ button.clear }}"
                    block="{{ button.block }}"
                    full="{{ button.full }}"
                    outline="{{ button.outline }}"
                    size="{{ button.size }}"
                    disabled="{{ button.disabled }}"
                    loading="{{ button.loading }}"
                    form-type="{{ button.formType }}"
                    open-type="{{ button.openType }}"
                    hover-stop-propagation="{{ button.hoverStopPropagation }}"
                    hover-start-time="{{ button.hoverStartTime }}"
                    hover-stay-time="{{ button.hoverStayTime }}"
                    lang="{{ button.lang }}"
                    bind:getuserinfo="bindgetuserinfo"
                    session-from="{{ button.sessionFrom }}"
                    send-message-title="{{ button.sendMessageTitle }}"
                    send-message-path="{{ button.sendMessagePath }}"
                    send-message-img="{{ button.sendMessageImg }}"
                    show-message-card="{{ button.showMessageCard }}"
                    bind:contact="bindcontact"
                    bind:getphonenumber="bindgetphonenumber"
                    app-parameter="{{ button.appParameter }}"
                    binderror="onError"
                    bindopensetting="bindopensetting"
                    data-index="{{ index }}"
                    bind:click="onClick"
                >
                    {{ button.text }}
                </wux-button>
            </block>
        </view>
        <slot></slot>
    </view>
    <view class="{{ classes.ft }}">
        <block wx:if="{{ extra }}">
            <text>{{ extra }}</text>
        </block>
        <block wx:else>
            <slot name="footer"></slot>
        </block>
    </view>
</view>