index.wxml 8.8 KB
<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='nav_swiper_active'>推荐</text>
    </swiper-item>
    <swiper-item bindtap='active_btn'>
      <text>中餐</text>
    </swiper-item>
    <swiper-item>
      <text>中餐</text>
    </swiper-item>
    <swiper-item>
      <text>美味海鲜</text>
    </swiper-item>
    <swiper-item>
      <text>美味海鲜</text>
    </swiper-item>
  </swiper>
  <view class='nav_text'>
    <text class='iconfont icon-fenlei'></text>
  </view>
</view>
<swiper previous-margin='40rpx' next-margin='40rpx' circular='true' display-multiple-items='1' class='swiper_banner_box'>
  <swiper-item>
    <image src='../imgs/pic2.png'></image>
  </swiper-item>
  <swiper-item>
    <image src='../imgs/pic1.png'></image>
  </swiper-item>
  <swiper-item>
    <image src='../imgs/pic2.png'></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'>
  <image src='../imgs/pic2.png'></image>
</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 href="" class="safe_item clo" hover-class="none">
    <image src="../imgs/ic02@2x.png" alt="" mode='aspectFit'></image>
    <text>储值送券</text>
  </navigator>
  <navigator href="" 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>
    <view 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>
    </view>
    <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>
    <view 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>
    </view>
  </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>筛选</text>
  </view>
</view>
<view class='classfy' style='padding-top:40rpx;'>
  <image src='../imgs/pic2.png'></image>
</view>
<view class='goodbox'>
  <view class='good_item'>
    <view class='good_img'>
      <image src='../imgs/pic2.png'></image>
    </view>
    <view class='good_right'>
      <view class='good_name'>泰式冬阴功秘制虾汤620g</view>
      <view class='good_stand'>量大好吃无限回购</view>
      <view>
        <text class='good_pprice'><text class='rmb'>¥</text>26.0</text>
        <text class='good_oprice'><text class='rmb'>¥</text>52.0</text>
      </view>
      <view>
        <view class='good_vipbox'>
          <view class='good_vipbox_left'>
            <text class='good_vip'><text class='rmb'>¥</text> 25.0</text>
            <view class='good_vip_spec'>会员专享</view>
          </view>
          <view class='good_btn'>
            <view class='iconfont icon-gouwuche'></view>
          </view>
        </view>
      </view>
    </view>
  </view>
  <view class='good_item'>
    <view class='good_img'>
      <image src='../imgs/pic2.png'></image>
    </view>
    <view class='good_right'>
      <view class='good_name'>泰式冬阴功秘制虾汤620g</view>
      <view class='good_stand'>量大好吃无限回购</view>
      <view>
        <text class='good_pprice'><text class='rmb'>¥</text>26.0</text>
        <text class='good_oprice'><text class='rmb'>¥</text>52.0</text>
      </view>
      <view>
        <view class='good_vipbox'>
          <view class='good_vipbox_left'>
            <text class='good_vip'><text class='rmb'>¥</text> 25.0</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>

<!-- 筛选弹窗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>