mall-laonong/unpackage/dist/dev/mp-weixin/components/tabbar/tabbar.wxml

1 line
1.1 KiB
Plaintext
Raw Normal View History

2022-08-02 05:51:36 +00:00
<block wx:if="{{isLoading}}"><view class="tabbar-box border-box pad-sx40 background-white pad-zy20 flex"><view class="content background-grey border-box color-ff flex"><block wx:for="{{footBarList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block wx:if="{{current==index}}"><view data-event-opts="{{[['tap',[['chooseFootTab',[index]]]]]}}" class="nav flex" bindtap="__e"><image style="{{'width:'+([39,32][index]+'rpx')+';'+('height:'+([40,38][index]+'rpx')+';')}}" src="{{item.iconPath}}" mode="widthFix"></image><view class="{{['title','fon24',current==index?'active':'']}}">{{item.title}}</view></view></block></block><view class="price font60"><view><text>¥</text>{{cartPrice>0?$root.g0:'0'}}</view></view></view><view data-event-opts="{{[['tap',[['goCart',['$event']]]]]}}" class="cart background-orange font36 color-48 flex" bindtap="__e"><text>购物车</text><block wx:if="{{cartNum*1<=99}}"><view class="amount font26">(<text>{{cartNum}}</text>)</view></block><block wx:if="{{cartNum*1>99}}"><view class="amount font26">(<text>99</text>)</view></block></view></view></block>