index.wxml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <wux-popup position="bottom" visible="{{ in }}" bind:close="hide">
  2. <view class="wux-class {{ classes.wrap }}">
  3. <view class="{{ classes.hd }}" wx:if="{{ inputText }}">{{ inputText }}</view>
  4. <view class="{{ classes.bd }}">
  5. <block wx:for="{{ keys }}" wx:key="index" wx:if="{{ maxlength !== -1 }}">
  6. <view class="{{ classes.label }}">
  7. <view class="{{ classes.password }} {{ password ? prefixCls + '__password--dot' : '' }} {{ value.length >= (index + 1) ? prefixCls + '__password--active' : '' }}">
  8. {{ !password ? value[index] : '' }}
  9. </view>
  10. </view>
  11. </block>
  12. <block wx:if="{{ maxlength === -1 }}">
  13. <input class="{{ classes.input }}" type="text" value="{{ value }}" password="{{ password }}" disabled></input>
  14. </block>
  15. </view>
  16. <view class="{{ classes.ft }}">
  17. <view class="{{ classes.title }}" wx:if="{{ titleText }}">{{ titleText }}</view>
  18. <view class="{{ classes.numbers }}">
  19. <block wx:for="{{ nums }}" wx:for-item="n" wx:key="index">
  20. <view class="{{ classes.number }}" wx:if="{{ index === 3 }}">
  21. <view class="{{ classes.text }}" hover-class="{{ classes.hover }}" hover-start-time="20" hover-stay-time="170" wx:if="{{ showCancel }}" bindtap="hide">{{ cancelText }}</view>
  22. <view class="{{ classes.text }}" hover-class="{{ classes.hover }}" hover-start-time="20" hover-stay-time="170" wx:else></view>
  23. <block wx:for="{{ n }}" wx:for-item="m" wx:key="index">
  24. <view class="{{ classes.text }}" hover-class="{{ classes.hover }}" hover-start-time="20" hover-stay-time="170" data-value="{{ m }}" bindtap="increase">{{ m }}</view>
  25. </block>
  26. <view class="{{ classes.text }}" bindtap="decrease">×</view>
  27. </view>
  28. <view class="{{ classes.number }}" wx:else>
  29. <block wx:for="{{ n }}" wx:for-item="m" wx:key="index">
  30. <view class="{{ classes.text }}" hover-class="{{ classes.hover }}" hover-start-time="20" hover-stay-time="170" data-value="{{ m }}" bindtap="increase">{{ m }}</view>
  31. </block>
  32. </view>
  33. </block>
  34. </view>
  35. </view>
  36. </view>
  37. </wux-popup>