modal.wxml 745 B

1234567891011121314151617181920212223
  1. <view>
  2. <view class='Modal' wx:if="{{ShowModal}}">
  3. <view class='Modal_title'>
  4. {{title}}
  5. </view>
  6. <slot>
  7. <view class='Modal_info' wx:if="{{ModalType === 'text'}}">
  8. {{content}}
  9. </view>
  10. <view class='Modal_info Modal_input' wx:elif="{{ModalType === 'input'}}">
  11. <view>{{content}}</view>
  12. <view class='input'>
  13. <text>手机号:</text>
  14. <input placeholder='输入您的手机号码' placeholder-style='color: #CCCCCC;' bindinput='inputPhone'></input>
  15. </view>
  16. </view>
  17. </slot>
  18. <view class='Modal_btn'>
  19. <button bindtap='saveFun'>{{btnText}}</button>
  20. </view>
  21. </view>
  22. <view class='mask' bindtap='saveFun' wx:if="{{ShowModal}}"></view>
  23. </view>