12345678910111213141516171819 |
- <!--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" catch:tap="click">
- <!-- 按钮内容,比如图标或文字 -->
- <!-- <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="#3f395c" class="count">
- <text wx:if="{{count>=max}}" class="num">{{count - 1}}+</text>
- <text wx:else>{{count}}</text>
- </van-tag> -->
- </view>
- </view>
|