小程序预约详情支持图片预览、编辑预约与完成收款拆分
This commit is contained in:
@@ -10,7 +10,8 @@ Component({
|
||||
layout: 'column',
|
||||
editable: false,
|
||||
placeholderText: '',
|
||||
inputValue: ''
|
||||
inputValue: '',
|
||||
inputType: 'text'
|
||||
},
|
||||
|
||||
methods: {
|
||||
@@ -27,7 +28,8 @@ Component({
|
||||
layout: options.layout || (options.cancelText ? 'row' : 'column'),
|
||||
editable: options.editable === true,
|
||||
placeholderText: options.placeholderText || '',
|
||||
inputValue: ''
|
||||
inputValue: options.inputValue === undefined || options.inputValue === null ? '' : String(options.inputValue),
|
||||
inputType: options.inputType || 'text'
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<view wx:if="{{icon}}" class="action-modal-icon {{icon}}">{{icon === 'warning' ? '!' : 'i'}}</view>
|
||||
<text class="action-modal-title">{{title}}</text>
|
||||
<text wx:if="{{content}}" class="action-modal-content">{{content}}</text>
|
||||
<input wx:if="{{editable}}" class="action-modal-input" value="{{inputValue}}" maxlength="60" placeholder="{{placeholderText}}" bindinput="onInput" />
|
||||
<input wx:if="{{editable}}" class="action-modal-input" type="{{inputType}}" value="{{inputValue}}" maxlength="60" placeholder="{{placeholderText}}" bindinput="onInput" />
|
||||
<view class="action-modal-actions {{layout === 'row' ? 'row' : ''}}">
|
||||
<button wx:if="{{cancelText}}" class="action-modal-btn secondary" bindtap="onCancel">{{cancelText}}</button>
|
||||
<button class="action-modal-btn {{confirmType === 'danger' ? 'danger' : 'primary'}}" bindtap="onConfirm">{{confirmText}}</button>
|
||||
|
||||
Reference in New Issue
Block a user