classify.wxml
2.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<view class='page'>
<view class='top'>
<navigator class='search_box' url="/pages/search/search">
<view class='search_icon'>
<image src='/images/search.png'></image>
</view>
<input class='real_search' placeholder='搜索您想要的商品' disabled="true" />
</navigator>
</view>
<view class='center'>
<scroll-view scroll-y class='scroll-view' scroll-into-view="NAV{{status}}">
<view class='center_child'>
<view class='left'>
<view class='left_item {{status == index?"active":""}}' id='Nav{{index}}' wx:for='{{nav_arr}}' wx:key='index' bindtap='click_category' data-index='{{index}}' data-id='{{item.id}}'>{{item.name}}</view>
<view class='left_item {{taocan == true?"active":""}}' bindtap="seltaocan">套餐专区</view>
</view>
<view class='fake_left'></view>
<view class='right' wx:if="{{remain}}">
<view class='right_item' id='NAV{{index}}' wx:for='{{good_arr}}' wx:key='index' wx:if="{{good_arr[index].products.length>0}}">
<view class='right_item_top'>
<view class='right_left'>{{item.title}}</view>
<text decode='{{true}}' catchtap="look_more" data-id="{{item.id}}" data-title="{{item.title}}">查看全部 ></text>
</view>
<view class='right_goods'>
<view class='goods' wx:for="{{item.products}}" wx:for-item="zitem" wx:for-index="zindex" wx:key="zindex" data-id="{{zitem.id}}" catchtap="look_detail">
<view class='goods_img'>
<image src='{{zitem.image}}'></image>
</view>
<view class='goods_name'>{{zitem.name}}</view>
</view>
</view>
</view>
</view>
<view class="right" wx:else>
<view class="right_item">
<view class='right_goods'>
<view class='goods' wx:for="{{taocanlist}}" wx:key="zindex" data-id="{{item.id}}" catchtap="look_detailk">
<view class='goods_img'>
<image src='{{item.image}}'></image>
</view>
<view class='goods_name'>{{item.name}}</view>
</view>
</view>
</view>
</view>
</view>
</scroll-view>
</view>
</view>