纸通宝小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

27 lines
2.3 KiB

<wux-popup visible="{{ in }}" z-index="{{ zIndex }}" closable="{{ closable }}" mask="{{ mask }}" mask-closable="{{ maskClosable }}" bind:close="onClose" bind:closed="onClosed">
<view slot="header" class="text-xl">{{ title }}</view>
<view wx:if="{{ content || prompt }}">
<view class="{{ classes.prompt }}" wx:if="{{ prompt && !offer }}">
<label>
<input type="{{ prompt.fieldtype }}" class="{{ classes.input }}" value="{{ prompt.response }}" password="{{ prompt.password }}" placeholder="{{ prompt.placeholder }}" maxlength="{{ maxlength }}" bindinput="bindinput" />
</label>
</view>
<view wx:if="{{prompt && content && !offer}}" style="display: flex;margin-top:16rpx">
<text class="text-df text-blue">{{ content }}</text>
</view>
<view wx:elif="{{prompt && content && offer }}" style="display: flex;margin-top:16rpx;justify-content: center">
<text class="text-df text-black">{{ content }}</text>
</view>
<text wx:else>{{ content }}</text>
<view style="display: flex;margin-top:24rpx;margin-bottom:12rpx;justify-content: center;" wx:if="{{ prompt && offer }}">
<wux-input-number value="{{ prompt.response }}" controlled longpress="{{true}}" offer="true" disabled="{{false}}" min="{{min}}" step="{{ step }}" bind:change="onNumChange" />
</view>
</view>
<view slot="footer" class="{{ classes.buttons }}">
<block wx:for="{{ buttons }}" wx:for-item="button" wx:key="index">
<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>