floatButton.wxml 848 B

12345678910111213141516171819
  1. <!--myComponents/floatButton/floatButton.wxml-->
  2. <view wx:if="{{count>0}}" class="float-btn-container" style="top:{{top}}px;left: {{left}};" catchtouchmove="onButtonMove" catchtouchstart="onButtonTouchStart" catchtouchend="onButtonTouchEnd" catch:tap="click">
  3. <!-- 按钮内容,比如图标或文字 -->
  4. <!-- <wux-badge count="{{10}}">
  5. <text class="iconfont {{icon}}"></text>
  6. </wux-badge> -->
  7. <view class="badge">
  8. <view class="iconfont {{icon}}"></view>
  9. <view class="count">
  10. <text wx:if="{{count>=max}}" class="num">{{count - 1}}+</text>
  11. <text wx:else>{{count}}</text>
  12. </view>
  13. <!-- <van-tag round color="#3f395c" class="count">
  14. <text wx:if="{{count>=max}}" class="num">{{count - 1}}+</text>
  15. <text wx:else>{{count}}</text>
  16. </van-tag> -->
  17. </view>
  18. </view>