xz_angren/pages/shop/shopcategory.wxml

31 lines
1.7 KiB
Plaintext
Raw Normal View History

2023-02-12 19:42:12 +08:00
<view class="container-box" wx:if="{{isHidePageLoading}}">
2023-02-13 17:59:45 +08:00
<scroll-view class="left" scroll-y="true">
2023-02-12 19:42:12 +08:00
<view bindtap="chooseOne" data-index="{{index}}" class="{{currentIndex==index ? 'category-item-active':'category-item-default'}}" wx:for="{{categoryOneList}}" wx:for-index="index" wx:for-item="item" wx:key="index">
<view wx:if="{{currentIndex==index}}" class="line"></view>
<view class="category-one-name">{{item.name}}</view>
</view>
2023-02-13 17:59:45 +08:00
</scroll-view>
<scroll-view class="right" scroll-y="true">
2023-02-12 19:42:12 +08:00
<view class="category-card" wx:for="{{categorySeconList}}" wx:for-index="index" wx:for-item="item" wx:key="index">
<view class="category-two-name" bindtap="goList" data-id="{{item.id}}">
<view>{{item.name}}</view>
<view>></view>
</view>
<view class="category-thrid-box" wx:if="{{item.subList.length > 0}}">
<view class="category-thrid-item" wx:for="{{item.subList}}" wx:for-index="i" wx:for-item="it" wx:key="i" bindtap="goList" data-id="{{it.id}}">
2023-02-18 21:02:06 +08:00
<image src="{{it.icon==''? '/images/ic_goods_type_default.png':imgUrl+it.icon}}"></image>
2023-02-12 19:42:12 +08:00
<view>{{it.name}}</view>
</view>
</view>
<view class="category-empty" wx:else>
<image src="../../images/ic_empty_data.png" mode="scaleToFill"></image>
<text>暂无数据</text>
</view>
</view>
2023-02-13 17:59:45 +08:00
</scroll-view>
2023-02-14 18:02:57 +08:00
<view class="car-box" bindtap="showCar">
2023-02-18 21:02:06 +08:00
<image src="/images/ic_shop_car_icon.png" mode="scaleToFill"></image>
2023-02-14 18:02:57 +08:00
<text>购物车</text>
</view>
2023-02-12 19:42:12 +08:00
</view>
<page-loading wx:else></page-loading>