从weui中获得灵感,稍微改造,效果还不错
在消息数量为1-99时正常显示即可,而大于99时显示99+。使用wx:if搞定
wxml部分:
<view class="buttom">
<view class="but_list" wx:for="{
{listt}}" wx:key="*this">
<image src="{
{item.img}}"></image>
<text>{
{item.tet}}</text
从weui中获得灵感,稍微改造,效果还不错
在消息数量为1-99时正常显示即可,而大于99时显示99+。使用wx:if搞定
wxml部分:
<view class="buttom">
<view class="but_list" wx:for="{
{listt}}" wx:key="*this">
<image src="{
{item.img}}"></image>
<text>{
{item.tet}}</text