e.wxml
5.6 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
<block wx:if='{{nav===item.id}}' wx:for='{{category}}' wx:key='{{item.id}}'>
<swiper previous-margin='40rpx' next-margin='40rpx' circular='true' display-multiple-items='1' class='swiper_banner_box'>
<swiper-item>
<image src='{{two_banner}}'></image>
</swiper-item>
</swiper>
<!-- <view class='safe_box'> -->
<swiper class='swiper_nav_boxs' display-multiple-items='{{count}}'>
<swiper-item class='swiper_items' wx:for='{{goods}}' wx:key='{{item.id}}'>
<view class='{{erji===item.id?"active":""}}'>{{item.name}}</view>
</swiper-item>
</swiper>
<!-- </view> -->
<view class='nav_type_box'>
<view class='nav_type_left'>
<view class='nav_type type_active'>
<text class='iconfont icon-liebiao'></text>
<text>列表</text>
</view>
<view class='nav_type'>
<text class='iconfont icon-wangge'></text>
<text>网格</text>
</view>
<view class='nav_type'>
<text class='iconfont icon-datu'></text>
<text>大图</text>
</view>
</view>
<view class='nav_type_right' bindtap='select'>
<text class='iconfont icon-shaixuan'></text>
<text>筛选</text>
</view>
</view>
<block wx:for='{{goods}}' wx:key='{{item.id}}'>
<view class='classfy' style='padding-top:40rpx;'>
<image src='{{item.more.banner}}' bindtap='get_contant'></image>
</view>
<view class='goodbox'>
<view class='good_item' bindtap='get_goodsDetial' wx:for='{{goods[0].child}}' wx:key='{{item.id}}'>
<view class='good_img'>
<image src='{{item.image[0]}}'></image>
</view>
<view class='good_right'>
<view class='good_name'>{{item.title}}</view>
<view class='good_stand'>量大好吃无限回购</view>
<view>
<text class='good_pprice'><text class='rmb'>¥</text>{{item.price}}</text>
<text class='good_oprice'><text class='rmb'>¥</text>{{item.old_price}}</text>
</view>
<view>
<view class='good_vipbox'>
<view class='good_vipbox_left'>
<text class='good_vip'><text class='rmb'>¥</text> {{item.vip_price}}</text>
<view class='good_vip_spec'>会员专享</view>
</view>
<view class='good_btn'>
<view class='iconfont icon-gouwuche'></view>
</view>
</view>
</view>
</view>
</view>
</view>
<view class='ad_box' bindtap='show_ad' wx:if='{{showad}}'>
<image src='../imgs/atan@2x.png' mode='widthFix' catchtap='goad'></image>
<view class='iconfont icon-quxiao'></view>
</view>
</block>
<!-- 筛选弹窗LXY -->
<view class='masx_box' wx:if='{{flag}}'>
<view class='popup_box'>
<view class='popup_content' wx:for='{{select}}' wx:key='{{item.id}}'>
<view class='popup_title'>{{item.name}}</view>
<view class='popup_item'>
<view class='popup_item_content' wx:for='{{item.item}}' wx:key='{{item.attribute_value}}'>{{item.attribute_value}}</view>
</view>
</view>
<view class='popup_hint' wx:if='{{select.length>5}}'>菜系(↓往下轮播可筛选更多属性)</view>
<view class='popup_btn'>
<view class='btn1'>重置</view>
<view class='btn2' bindtap='close_all'>完成</view>
</view>
</view>
</view>
</block>