123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141 |
- <!--index.wxml-->
- <view class="container">
- <!-- 头部搜索 -->
- <view class="header-index">
- <image src="/images/news/l_icon.png" mode='widthFix' class="header_logo"></image>
- <view class="header_search_wrap">
- <navigator url="/pages/searchList/searchList" class="header_search">
- <icon type="search" size="12" color="#929aa0" class="header_search_icon"></icon>
- <view class="header_search_placeholder">{{search.placeholder}}</view>
- </navigator>
- </view>
- </view>
- <view class='banner_space'></view>
- <view class="tab-content" current="{{currentItem}}">
- <!-- 推荐 -->
- <view>
- <view scroll-y="true" class="scoll-h" data-id="0" data-forid="0" data-current="0" style="height:{{winHeight}}rpx">
- <!-- banner -->
- <view class="banner_wrap">
- <swiper indicator-dots="false" indicator-active-color="rgba(255, 255, 255, .3)" indicator-color="#fff" circular="true" interval="5000" duration="1000" autoplay='true' class="{{bannerFlag == 0 ? 'banner_null_class' : ''}}">
- <block wx:for="{{banners}}" wx:key="{{index}}">
- <swiper-item wx:if="{{item.classify_id == '3053'}}" class="banner">
- <navigator bindtap='tapMomo'>
- <image src="{{item.banner_logo}}" mode="scaleToFill" class="slide-image"></image>
- </navigator>
- </swiper-item>
- </block>
- </swiper>
- </view>
- <!-- new second nav -->
- <view class='new_nav_wrap clearfix f-box'>
- <navigator wx:for="{{navTab}}" class='new_nav_each f-item' url='{{item.url}}'>
- <!-- <icon class='iconfont {{item.icon}}'></icon> -->
- <image src='{{item.src}}' class='nav-img'></image>
- <view class="new_nav_name">{{item.text}}</view>
- </navigator>
- </view>
- <!-- nav -->
- <view class='nav-box'>
- <view class='f-box f-flex-wrap '>
- <view class='nav-item f-box f-align-items-center f-justify-content-center' wx:for="{{navArray}}" style='background:{{item.bg}}' data-item='{{item}}' bindtap='navTap'>
- <image src='{{item.src}}' mode='aspectFit'></image>
- </view>
- </view>
- </view>
-
-
- <!-- 所有商品 -->
- <!-- <view class="new_dingzhi_content">
- <view class='dingzhi_top'>
- <navigator url='/pages/kindSecondList/kindSecondList?classify_name=好物推荐&classify_des=好物推荐&id=3023' >
- <image src='http://fds.wondersph.com/haowutuijian.jpg' class="new_dingzhi_img" mode='widthFix'></image>
- </navigator>
- </view>
- </view> -->
- <!-- <view class="new_dingzhi_content">
- <view class='dingzhi_top'>
- <navigator url='/pages/kindSecondList/kindSecondList?classify_name=良米淘库&classify_des=良米淘库&id=3012'>
- <image src='http://fds.wondersph.com/liangmitaoku.jpg' class="new_dingzhi_img" mode='widthFix'></image>
- </navigator>
- </view>
- </view> -->
- <!-- 专题精选 -->
- <view class='special-box'>
- <view class='spec-title'>专题精选</view>
- <swiper autoplay="true" interval="5000" duration="500" previous-margin="{{previous}}rpx" next-margin="{{next}}rpx" bindchange="swiperChange">
- <block wx:for="{{specArray}}">
- <swiper-item>
- <view style='height:100%;margin-right:30rpx'>
- <image src="{{item.classify_logo}}" class="slide-image" mode="aspectFill" />
- </view>
- </swiper-item>
- </block>
- </swiper>
- </view>
- <!--列表1 -->
- <view class='goods-listType1 mar-t20'>
- <view class='f-box' wx:for="{{recommendArray}}" data-id='{{item.id}}' bindtap='toGoodsDetail'>
- <view class='goods-img mar-r20 '>
- <image src='{{host}}/images/{{item.logo[0]}}' mode='aspectFit'></image>
- </view>
- <view class='goods-infor f-item'>
- <view class='goods-introduce'>
- <view class='goods-label f-s30'>{{item.commodity_name}}</view>
- <!-- <view class='goods-summry'>产品描述产品描述产品描述</view> -->
- </view>
- <view class='f-box'>
- <view class='c-theme' wx:if="{{loginStatic && item.commodity_channel_price}}">¥{{item.commodity_channel_price}}</view>
- <view class='c-theme f-item {{loginStatic && item.commodity_channel_price ? "price-cancel" : ""}}'>¥{{item.commodity_sale}}</view>
- </view>
- </view>
- </view>
- </view>
- <!-- 列表2 -->
- <view class='goods-listType2 mar-t20'>
- <view class='f-box f-flex-wrap f-justify-content-between'>
- <view class='goods-list' wx:for="{{goodsNewsArray}}" data-id='{{item.id}}' bindtap='toGoodsDetail'>
- <image src='{{item.commodity_logo}}' class='goods-img' mode='aspectFit'></image>
- <!-- <view class='goods-summary'></view> -->
- <view class='goods-title'>{{item.commodity_name}}</view>
- <view class='f-box'>
- <view wx:if="{{item.commodity_channel_price && loginStatic}}" class='c-theme'>¥{{item.commodity_channel_price}}</view>
- <view class='c-theme f-item {{item.commodity_channel_price && loginStatic ? "price-cancel" : ""}}'>¥{{item.commodity_sale}}</view>
- </view>
- </view>
- </view>
- </view>
-
-
-
-
-
-
-
-
- </view>
- </view>
- </view>
- <!-- </view> -->
- </view>
|