index.wxml 1.3 KB

12345678910111213141516
  1. <view class="i-class i-input-number i-input-number-size-{{size}}">
  2. <view class="i-input-number-minus i-input-number-view i-number-view {{value<=min?'i-input-number-disabled':''}}" wx:if="{{value==0}}">
  3. <image class='img i-number-img' src="../../images/icon-spu-reduce-disabled.png"></image>
  4. </view>
  5. <view catchtap="handleMinus" class="i-input-number-minus i-input-number-view i-number-view {{value<=min?'i-input-number-disabled':''}}" wx:else>
  6. <text class="iconfont icon-jian img i-number-img" style="color:{{skin.color}}"></text>
  7. </view>
  8. <input bindblur="handleBlur" bindfocus="handleFocus" catchtap="returnTap" class="i-class-number-text i-input-number-text {{min>=max?'i-input-number-disabled':''}}" disabled="{{min>=max}}" type="number" value="{{value}}" disabled></input>
  9. <view wx:if="{{max==0}}" class="i-input-number-plus i-input-number-view i-number-view {{value>=max?'i-input-number-disabled':''}}">
  10. <image class='img i-number-img' src="../../images/icon-spu-add-disabled.png"></image>
  11. </view>
  12. <view wx:else catchtap="handlePlus" class="i-input-number-plus i-input-number-view i-number-view {{value>=max?'i-input-number-disabled':''}}">
  13. <text class="iconfont icon-jia img i-number-img" style="color:{{skin.color}}"></text>
  14. <!-- <image class='img i-number-img' src="{{addImage}}"></image> -->
  15. </view>
  16. </view>