<!--myComponents/floatButton/floatButton.wxml-->
<view wx:if="{{count>0}}" class="float-btn-container" style="top:{{top}}px;left: {{left}}; " catchtap="clickbtn" bindtouchmove="onButtonMove" bindtouchstart="onButtonTouchStart" bindtouchend="onButtonTouchEnd" > 

    <!-- 按钮内容，比如图标或文字 -->  
    <!-- <wux-badge count="{{10}}">
      <text class="iconfont {{icon}}"></text>  
    </wux-badge> -->
    <view class="badge" >
      <view class="iconfont {{icon}}"></view>
      <!-- <view class="count">
        <text wx:if="{{count>=max}}" class="num">{{count - 1}}+</text>
        <text wx:else>{{count}}</text>
      </view> -->
      <van-tag round color="red" size="medium" class="count">
        <text wx:if="{{count>=max}}" class="num">{{count - 1}}+</text>
        <text wx:else>{{count}}</text>
      </van-tag>
    </view>
</view>