classify.wxml
3.7 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<view class="pinlist">
<view class="pinitem {{kindshow==true?'pinitemactive':''}}" bindtap="selkind">分类</view>
<view class="pinitem {{kindshow==false?'pinitemactive':''}}" bindtap="selpinpai">品牌</view>
</view>
<!-- 分类 -->
<view class='page' wx:if="{{kindshow}}">
<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 flexone'>
<view class='left'>
<view class='left_item {{status == index?"active":""}}' id='Nav{{index}}' wx:for='{{nav_arr}}' wx:key='index' bindtap='{{item.id!=""?"click_category":"seltaocan"}}' data-index='{{index}}' data-id='{{item.id}}' wx:if="{{item.child.length>0}}">{{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="nodata" wx:if="{{good_arr.length==0}}">暂无数据</view>
<view wx:else>
<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.name}}</view>
<text decode='{{true}}' catchtap="look_more" data-id="{{item.id}}" data-title="{{item.name}}">查看全部 ></text>
</view>
<view class='right_goods'>
<view class='goods' wx:for="{{item.goods}}" 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>
<view class="right" wx:else>
<view clas="nodata" wx:if="{{taocanlist.length==0}}">暂无数据</view>
<view class="right_item" wx:else>
<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>
<!-- 品牌 -->
<view class='city_box' wx:else>
<view class='city_left'>
<scroll-view scroll-y style='width:100%;height:100%;' scroll-with-animation scroll-into-view='{{cityListId}}' scroll-top="{{scrollHeight}}">
<view class='city_list_box'>
<block wx:for='{{citylist}}' wx:key='this' wx:for-item='letterItem' wx:for-index='letterIndex'>
<view class='city_first_letter' id='{{letterItem.letter}}'>{{letterItem.letter}}</view>
<view class="citybox">
<view class='city_name' wx:for='{{letterItem.data}}' wx:key='this' data-types='list' catchtap='cityTap' data-index='{{index}}' data-val='{{item}}' data-id="{{item.id}}">
<view class='goods_img'>
<image src='{{item.image}}'></image>
</view>
<view class='goods_name'>{{item.name}}</view>
</view>
</view>
</block>
</view>
</scroll-view>
</view>
<view class='city_right'>
<scroll-view scroll-y style='width:100%;height:100%;' scroll-with-animation >
<text class='letter_item' wx:for='{{letter}}' wx:key='this' catchtap='letterTap' data-item='{{item}}'>{{item}}</text>
</scroll-view>
</view>
</view>