forked from nsjcy/frontEnd/nsjcy

LAPTOP-RI7D261L\Mr Ke
2020-02-13 a2789abb73725738127b03d95c95081b66954916
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
<wux-popup
    visible="{{ in }}"
    z-index="{{ zIndex }}"
    closable="{{ closable }}"
    mask="{{ mask }}"
    mask-closable="{{ maskClosable }}"
    bind:close="onClose"
    bind:closed="onClosed"
>
    <view slot="header">{{ title }}</view>
    <view wx:if="{{ content || prompt }}">
        <text>{{ content }}</text>
        <view class="{{ classes.prompt }}" wx:if="{{ prompt }}">
            <label>
                <input
                    type="{{ prompt.fieldtype }}"
                    class="{{ classes.input }}"
                    value="{{ prompt.response }}"
                    password="{{ prompt.password }}"
                    placeholder="{{ prompt.placeholder }}"
                    maxlength="{{ maxlength }}"
                    bindinput="bindinput"
                />
            </label>
        </view>
    </view>
    <view slot="footer" class="{{ classes.buttons }}">
        <block wx:for="{{ buttons }}" wx:for-item="button" wx:key="">
            <button
                class="{{ classes.button[index].wrap }}"
                disabled="{{ button.disabled }}"
                open-type="{{ button.openType }}"
                hover-class="{{ !button.disabled ? classes.button[index].hover : 'none' }}"
                hover-stop-propagation="{{ button.hoverStopPropagation }}"
                hover-start-time="{{ button.hoverStartTime || 20 }}"
                hover-stay-time="{{ button.hoverStayTime || 70 }}"
                lang="{{ button.lang || 'en' }}"
                bindgetuserinfo="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 }}"
                bindcontact="bindcontact"
                bindgetphonenumber="bindgetphonenumber"
                app-parameter="{{ button.appParameter }}"
                binderror="onError"
                bindopensetting="bindopensetting"
                data-index="{{ index }}"
                bindtap="buttonTapped"
            >
                {{ button.text }}
            </button>
        </block>
    </view>
</wux-popup>