- <!--myComponents/floatButton/floatButton.wxml-->
- <view wx:if="{{count>0}}" class="float-btn-container" style="top:{{top}}px;left: {{left}};" catchtouchmove="onButtonMove" catchtouchstart="onButtonTouchStart" catchtouchend="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>
- </view>
- </view>
|