|
|
<view class='page'>
|
|
|
<view class='index_top'>
|
|
|
<view class='index_add' bindtap='chooseAdress'>
|
|
|
<view class='iconfont icon-location'></view>
|
|
|
<text class='city_box'>{{city}}</text>
|
|
|
</view>
|
|
|
<view class='index_input' bindtap='search'>
|
|
|
<input placeholder='有机红颜草莓' placeholder-class='holder'></input>
|
|
|
<icon type='search' size='16' color='#222'></icon>
|
|
|
</view>
|
|
|
<view class='iconfont icon-message' bindtap='toMessage'></view>
|
|
|
</view>
|
|
|
<view class='nav_box'>
|
|
|
<swiper display-multiple-items='{{num}}' class='swiper_nav_box'>
|
|
|
<swiper-item>
|
|
|
<text class='font-nav {{nav===0?"nav_swiper_active":""}}' bindtap='changeNav1'>
|
|
|
推荐
|
|
|
</text>
|
|
|
</swiper-item>
|
|
|
<swiper-item bindtap='active_btn' wx:for='{{category}}' wx:key='{{item.id}}' class='swiper_item'>
|
|
|
<text class='font-nav {{nav===item.id?"nav_swiper_active":""}}' bindtap='changeNav2' data-id='{{item.id}}'>{{item.name}}</text>
|
|
|
</swiper-item>
|
|
|
</swiper>
|
|
|
<view class='nav_text' bindtap='operation_all'>
|
|
|
<text class='iconfont icon-fenlei'></text>
|
|
|
</view>
|
|
|
</view>
|
|
|
<block wx:if='{{nav===0}}'>
|
|
|
<swiper previous-margin='40rpx' next-margin='40rpx' circular='true' display-multiple-items='1' class='swiper_banner_box'>
|
|
|
<swiper-item wx:for='{{special}}' wx:key='{{item.id}}'>
|
|
|
<image src='{{item.image}}' class="slide-image {{currentIndex == 0 ? 'active': ''}}"></image>
|
|
|
</swiper-item>
|
|
|
</swiper>
|
|
|
<view class='safe_box'>
|
|
|
<view>
|
|
|
<text class='iconfont icon-jiance'></text>
|
|
|
<text>安心检测</text>
|
|
|
</view>
|
|
|
<view>
|
|
|
<text class='iconfont icon-xingzhuang'></text>
|
|
|
<text>优选源头</text>
|
|
|
</view>
|
|
|
<view>
|
|
|
<text class='iconfont icon-xingzhuang1'></text>
|
|
|
<text>赔付保证</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class='classfy'>
|
|
|
<!-- <navigator to='{{banner.url}}'> -->
|
|
|
<image src='{{banner.image}}'></image>
|
|
|
<!-- </navigator> -->
|
|
|
</view>
|
|
|
<view class="safety_box function">
|
|
|
<navigator class="safe_item clo" url='goods_detial/goods_detial' hover-class="none">
|
|
|
<image src="../imgs/ic01@2x.png" alt="" mode='aspectFit'></image>
|
|
|
<text>会员俱乐部</text>
|
|
|
</navigator>
|
|
|
<navigator url='../my/balance _center2/balance _center2' class="safe_item clo" hover-class="none">
|
|
|
<image src="../imgs/ic02@2x.png" alt="" mode='aspectFit'></image>
|
|
|
<text>储值送券</text>
|
|
|
</navigator>
|
|
|
<navigator url="../my/balance _center2/balance _center2" class="safe_item clo" hover-class="none">
|
|
|
<image src="../imgs/ic03@2x.png" alt="" mode='aspectFit'></image>
|
|
|
<text>邀请有礼</text>
|
|
|
</navigator>
|
|
|
<navigator href="" class="safe_item clo" hover-class="none">
|
|
|
<image src="../imgs/ic04@2x.png" alt="" mode='aspectFit'></image>
|
|
|
<text>每日签到</text>
|
|
|
</navigator>
|
|
|
</view>
|
|
|
<view class='new_person_box'>
|
|
|
<view class="index_title">
|
|
|
<text class="title_left"></text>
|
|
|
<text class="title_mid">超值新人礼包</text>
|
|
|
<text class="title_right"></text>
|
|
|
</view>
|
|
|
<scroll-view class='scroll_box' scroll-x>
|
|
|
<navigator url='/pages/index/goodsDetial/goodsDetial' class='new_person_item'>
|
|
|
<image src='../imgs/pic1.png'></image>
|
|
|
<view class='goods_name'>三纹鱼片</view>
|
|
|
<view>
|
|
|
<text class='rmb'>¥</text>
|
|
|
<text class='pprice'>26.0</text>
|
|
|
<text class='oprice'>¥52.0</text>
|
|
|
</view>
|
|
|
</navigator>
|
|
|
<navigator url='/pages/index/goodsDetial/goodsDetial' class='new_person_item'>
|
|
|
<image src='../imgs/pic1.png'></image>
|
|
|
<view class='goods_name'>三纹鱼片</view>
|
|
|
<view>
|
|
|
<text class='rmb'>¥</text>
|
|
|
<text class='pprice'>26.0</text>
|
|
|
<text class='oprice'>¥52.0</text>
|
|
|
</view>
|
|
|
</navigator>
|
|
|
<navigator url='/pages/index/goodsDetial/goodsDetial' class='new_person_item'>
|
|
|
<image src='../imgs/pic1.png'></image>
|
|
|
<view class='goods_name'>三纹鱼片</view>
|
|
|
<view>
|
|
|
<text class='rmb'>¥</text>
|
|
|
<text class='pprice'>26.0</text>
|
|
|
<text class='oprice'>¥52.0</text>
|
|
|
</view>
|
|
|
</navigator>
|
|
|
</scroll-view>
|
|
|
</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'>
|
|
|
<text class='iconfont icon-shaixuan'></text>
|
|
|
<text bindtap='select'>筛选</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view wx:for='{{product_item}}' 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='{{item.product_item}}' wx:key='{{item.id}}'>
|
|
|
<view class='good_img'>
|
|
|
<image src='{{item.more.thumbnail}}'></image>
|
|
|
</view>
|
|
|
<view class='good_right'>
|
|
|
<view class='good_name'>{{item.title}}</view>
|
|
|
<view class='good_stand'>{{item.label}}</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>
|
|
|
</view>
|
|
|
|
|
|
|
|
|
<!-- 筛选弹窗LXY -->
|
|
|
<view class='masx_box' bindtap='cancleMask' wx:if='{{popup_state}}'>
|
|
|
<view class='popup_box'>
|
|
|
<view class='popup_content'>
|
|
|
<view class='popup_title'>烹饪时间</view>
|
|
|
<view class='popup_item'>
|
|
|
<view class='popup_item_content'>10分钟</view>
|
|
|
<view class='popup_item_content'>10分钟</view>
|
|
|
<view class='popup_item_content'>10分钟</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class='popup_content'>
|
|
|
<view class='popup_title'>烹饪时间</view>
|
|
|
<view class='popup_item'>
|
|
|
<view class='popup_item_content'>1~2星</view>
|
|
|
<view class='popup_item_content'>1~2星</view>
|
|
|
<view class='popup_item_content'>1~2星</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
<view class='popup_content'>
|
|
|
<view class='popup_title'>烹饪时间</view>
|
|
|
<view class='popup_item'>
|
|
|
<view class='popup_item_content'>微辣</view>
|
|
|
<view class='popup_item_content'>微辣</view>
|
|
|
<view class='popup_item_content'>微辣</view>
|
|
|
<view class='popup_item_content'>微辣</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
<view class='popup_content'>
|
|
|
<view class='popup_title'>烹饪时间</view>
|
|
|
<view class='popup_item'>
|
|
|
<view class='popup_item_content'>
|
|
|
<text class='iconfont icon-xiaoyu'></text>500cal </view>
|
|
|
<view class='popup_item_content'> 500~2000cal </view>
|
|
|
<view class='popup_item_content'> >2000cal</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
<view class='popup_content'>
|
|
|
<view class='popup_title'>烹饪时间</view>
|
|
|
<view class='popup_item'>
|
|
|
<view class='popup_item_content'>10分钟</view>
|
|
|
<view class='popup_item_content'>10分钟</view>
|
|
|
<view class='popup_item_content'>10分钟</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
<view class='popup_content'>
|
|
|
<view class='popup_title'>饮食禁忌/过敏(多选)</view>
|
|
|
<view class='popup_item'>
|
|
|
<view class='popup_item_content'>鸡蛋</view>
|
|
|
<view class='popup_item_content'>乳制品</view>
|
|
|
<view class='popup_item_content'>海鲜</view>
|
|
|
<view class='popup_item_content'>鸡蛋</view>
|
|
|
<view class='popup_item_content'>乳制品</view>
|
|
|
<view class='popup_item_content'>海鲜</view>
|
|
|
<view class='popup_item_content'>鸡蛋</view>
|
|
|
<view class='popup_item_content'>乳制品</view>
|
|
|
<view class='popup_item_content'>后台自定义</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
<view class='popup_hint'>菜系(↓往下轮播可筛选更多属性)</view>
|
|
|
<view class='popup_btn'>
|
|
|
<view class='btn1'>重置</view>
|
|
|
<view class='btn2'>完成</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</block>
|
|
|
<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>
|
|
|
<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 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>
|
|
|
</block>
|
|
|
|
|
|
<!-- 筛选弹窗LXY -->
|
|
|
<view class='masx_box' wx:if='{{flag}}'>
|
|
|
<view class='popup_box'>
|
|
|
<view class='popup_content' wx:for='{{select}}' wx:key='{{item.id}}' wx:for-item="cell" wx:for-index="cellindex" >
|
|
|
<view class='popup_title'>{{cell.name}}</view>
|
|
|
<view class='popup_item'>
|
|
|
<view class='popup_item_content {{currnetindexs===index&&main==mainindex?"active":""}}' wx:for='{{cell.item}}' wx:key='{{item.attribute_value}}' data-id='{{item.id}}' data-indexs="{{cellindex}}" data-index="{{index}}" bindtap='changeId'>{{item.attribute_value}}</view>
|
|
|
</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 class='index_top_mask' wx:if='{{all}}'>
|
|
|
<view class='all_classify'>
|
|
|
<view class='all_classify_one'>
|
|
|
全部分类
|
|
|
<view class='cuowu' bindtap='cancel_both_category'>×</view>
|
|
|
</view>
|
|
|
<view class='all_classify_two'>
|
|
|
<view class='all_classify_two_item'>
|
|
|
<image src='../imgs/goods_1.png'></image>
|
|
|
<text>热卖</text>
|
|
|
</view>
|
|
|
<view class='all_classify_two_item'>
|
|
|
<image src='../imgs/goods_1.png'></image>
|
|
|
<text>热卖</text>
|
|
|
</view>
|
|
|
<view class='all_classify_two_item'>
|
|
|
<image src='../imgs/goods_1.png'></image>
|
|
|
<text>热卖</text>
|
|
|
</view>
|
|
|
<view class='all_classify_two_item'>
|
|
|
<image src='../imgs/goods_1.png'></image>
|
|
|
<text>热卖</text>
|
|
|
</view>
|
|
|
<view class='all_classify_two_item'>
|
|
|
<image src='../imgs/goods_1.png'></image>
|
|
|
<text>热卖</text>
|
|
|
</view>
|
|
|
<view class='all_classify_two_item'>
|
|
|
<image src='../imgs/goods_1.png'></image>
|
|
|
<text>热卖</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view> |
|
|
\ No newline at end of file |
...
|
...
|
|