31 lines
1.7 KiB
Plaintext
31 lines
1.7 KiB
Plaintext
<view class="container-box" wx:if="{{isHidePageLoading}}">
|
|
<scroll-view class="left" scroll-y="true">
|
|
<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>
|
|
</scroll-view>
|
|
<scroll-view class="right" scroll-y="true">
|
|
<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}}">
|
|
<image src="{{it.icon==''? '/images/ic_goods_type_default.png':imgUrl+it.icon}}"></image>
|
|
<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>
|
|
</scroll-view>
|
|
<view class="car-box" bindtap="showCar">
|
|
<image src="/images/ic_shop_car_icon.png" mode="scaleToFill"></image>
|
|
<text>购物车</text>
|
|
</view>
|
|
</view>
|
|
<page-loading wx:else></page-loading> |