Files
sphc/pages/classify/classify.wxml
2024-05-06 15:34:15 +08:00

54 lines
1.9 KiB
Plaintext

<view class="top_fi">
<view class="top">
<view class="search">
<image src="/icon/search.png"></image>
<input placeholder="搜索商品" bindfocus="search" placeholder-style="color:#aaa;"></input>
</view>
<view catchtap='search' class="sear">搜索</view>
</view>
</view>
<view class="class_" style="height:{{winHeight}}px;">
<scroll-view style="height:100%;" scroll-y="true" class="scroller class_scroller">
<block wx:for="{{typeParentList}}" wx:key='index'>
<view class="cla_box" catchtap="getSelOne" data-index="{{index}}">
<view class="c-title dispaly_A_C dispaly_J_C">
{{item.typeName}}
<image class="c-title__r" src="/icon/{{item.oneType?'c-down':'c-up'}}.png"></image>
<view class="c-title__l"></view>
</view>
<view wx:if='{{item.oneType}}'>
<view
class="c-two GStitleOne {{twoItem.twoType?'c-two__active':''}}"
wx:for="{{item.goodsTypeList}}"
wx:key='index'
wx:for-index="twoIndex"
wx:for-item="twoItem"
catchtap="getSelTwo"
data-dindex="{{index}}"
data-index="{{twoIndex}}">{{twoItem.typeName}}</view>
</view>
</view>
</block>
</scroll-view>
</view>
<!-- 主体 -->
<view class="mid_" style="height:{{winHeight}}px;">
<scroll-view scroll-y="true" style="height:100%;" bindscrolltolower='searchScrollLower' class="scroller mid_scroller" scroll-top="{{scrolltop}}">
<view class="pic_tur">
<view class="mid_topimg">
<image src="{{topImg[0].bannerImage}}"></image>
</view>
<view class="mid_data" style='min-height:{{rightHeight}}px;'>
<view class="empty" wx:if="{{goodsList.length==0}}">暂无分类信息~</view>
<block wx:for="{{goodsList}}" wx:key='index'>
<view class="pic_box" catchtap="toShopDetail" data-id="{{item.id}}" data-name="{{item.typeName}}">
<image src="{{item.typePhoto}}"></image>
<view class="pic_r GStitleOne">{{item.typeName}}</view>
</view>
</block>
</view>
</view>
</scroll-view>
</view>