Files
CompanyProject/衣莎项目/源码/YiShaXiYi/mall/auth/auth.wxml
2024-09-27 01:32:49 +08:00

36 lines
1.7 KiB
Plaintext

<!-- mall/auth/auth.wxml -->
<view class="auth">
<index wx:if="{{ index == 1 }}"></index>
<!-- <shopcart wx:if="{{ index == 2 }}" ></shopcart> -->
</view>
<view class="TabBar">
<view class="cu-bar tabbar bg-white">
<view data-index="1" bind:tap="tabSwitch" class="action">
<view class="cuIcon-cu-image">
<image src="{{ index == 1 ? '/static/img/icon/scs.png' : '/static/img/icon/scs1.png' }}"></image>
</view>
<view class="{{ index == 1 ? 'text-green' : 'text-gray' }} mt10">商城</view>
</view>
<view data-index="2" bind:tap="tabSwitch" class="action">
<view class="cuIcon-cu-image">
<image src="{{ index == 2 ? '/static/img/icon/gwcs.png' : '/static/img/icon/gwcs1.png' }}"></image>
<view wx:if="{{ cartNum > 0 }}" class="cu-tag badge">{{ cartNum }}</view>
</view>
<view class="{{ index == 2 ? 'text-green' : 'text-gray' }} mt10">购物车</view>
</view>
<view data-index="3" bind:tap="tabSwitch" class="action">
<view class="cuIcon-cu-image">
<image src="{{ index == 3 ? '/static/img/icon/dd1.png' : '/static/img/icon/dd.png' }}"></image>
</view>
<view class="{{ index == 3 ? 'text-green' : 'text-gray' }} mt10">订单</view>
</view>
<view data-index="4" bind:tap="tabSwitch" class="action">
<view class="cuIcon-cu-image">
<image src="{{ index == 4 ? '/static/img/icon/syxz.png' : '/static/img/icon/sy.png' }}"></image>
</view>
<view class="{{ index == 4 ? 'text-green' : 'text-gray' }} mt10">返回首页</view>
</view>
</view>
</view>
<!-- toasta提示 -->
<i-toast id="toast" />