index.wxml 1.1 KB

12345678910111213141516171819202122
  1. <view class="l-class container-count">
  2. <view class="symbol {{result<=min|| disabled?'disabled l-disabled-class':'abled l-symbol-class'}}"
  3. catchtap="{{result<=min|| disabled?'doNothing':'reduceTap'}}"
  4. data-type="overflow_min"
  5. hover-class="{{isHover?'count-hover':''}}">
  6. <view class="l-icon l-icon-reduce" style="font-size:{{iconSize}};color:{{iconColor}}"></view>
  7. </view>
  8. <input wx:if="{{focus}}"
  9. class="l-count-class count"
  10. disabled="{{disabled}}"
  11. type="number"
  12. focus="{{focus}}"
  13. value="{{result}}"
  14. bindblur="onBlur"></input>
  15. <view wx:else class="l-count-class count" bindtap="onCount">{{result}}</view>
  16. <view class="symbol {{result>=max|| disabled?'disabled l-disabled-class':'abled l-symbol-class'}}"
  17. catchtap="{{result>=max|| disabled?'doNothing':'addTap'}}"
  18. data-type="overflow_max"
  19. hover-class="{{isHover?'count-hover':''}}">
  20. <view class="l-icon l-icon-add" style="font-size:{{iconSize}};color:{{iconColor}}"></view>
  21. </view>
  22. </view>