...
|
...
|
@@ -7,8 +7,27 @@ |
|
|
</navigator>
|
|
|
</view>
|
|
|
|
|
|
<view class='list' wx:if="{{nav_index!=0}}">
|
|
|
<view class='list_item' wx:if="{{index < length_num}}" wx:for="{{class_arr}}" wx:key="index" data-id="{{item.id}}" data-index="{{index}}" catchtap="look_item">
|
|
|
<view class='item'>
|
|
|
<view class='item_img'>
|
|
|
<image src='{{item.image}}' mode='aspectFill' />
|
|
|
</view>
|
|
|
<view class='item_font'>{{item.name}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class='list_item' data-type="1" catchtap="show_all" wx:if="{{class_arr.length>9}}">
|
|
|
<view class='item'>
|
|
|
<view class='item_img'>
|
|
|
<image src='/images/all.png' />
|
|
|
</view>
|
|
|
<view class='item_font'>{{length_num == 9?'查看全部':'收起'}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
<!-- 轮播图 -->
|
|
|
<view class="lunbo_box {{stick==1?'boxactive':''}}">
|
|
|
<view class="lunbo_box {{nav_index==0?'boxactive':''}}" wx:else>
|
|
|
<swiper interval="{{interval}}" duration="{{duration}}" circular="{{circular}}" current='{{current}}' bindchange='swiperChange' autoplay="{{autoplay}}" class='swiper_box'>
|
|
|
<swiper-item class='swiper-item' wx:for="{{imgurl}}" wx:key="index">
|
|
|
<image src='{{item.image}}' mode="aspectFill" data-id="{{item.thing_id}}" data-style="{{item.style}}" data-src="{{item.thing_id}}" catchtap="{{item.thing_id == 0?'':'look_more'}}" />
|
...
|
...
|
@@ -21,17 +40,17 @@ |
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 劳保 -->
|
|
|
<view class="fenlei">
|
|
|
<!-- <view class="fenlei">
|
|
|
<view class="fenleiitem">
|
|
|
劳保商城
|
|
|
</view>
|
|
|
<view class="fenleiitem">
|
|
|
差旅
|
|
|
</view>
|
|
|
</view>
|
|
|
</view> -->
|
|
|
<!-- 活动区域 -->
|
|
|
<view class="actity">
|
|
|
<view class="miaoshatop flextwo">
|
|
|
<view class="miaoshatopk flextwo">
|
|
|
<view class="miaoshatopleft flexone">
|
|
|
<view class="miaoshaoname">活动专区</view>
|
|
|
|
...
|
...
|
@@ -41,7 +60,7 @@ |
|
|
|
|
|
<view class="active flexone">
|
|
|
|
|
|
<view wx:for="{{activity}}" wx:key="" bindtap="seeactive" data-id="{{item.id}}">
|
|
|
<view wx:for="{{activity}}" class="actbox" wx:key="" bindtap="seeactive" data-id="{{item.id}}">
|
|
|
<view class="activeitem">
|
|
|
<image src="{{item.image}}"></image>
|
|
|
</view>
|
...
|
...
|
@@ -56,7 +75,7 @@ |
|
|
|
|
|
<!-- 秒杀商城 -->
|
|
|
|
|
|
<view class="miaosha">
|
|
|
<view class="miaosha xianshi">
|
|
|
<view class="miaoshatop flextwo">
|
|
|
<view class="miaoshatopleft flexone">
|
|
|
<view class="miaoshaoname">限时抢购</view>
|
...
|
...
|
@@ -72,7 +91,7 @@ |
|
|
<view class="goodimg">
|
|
|
<image src="{{item.images[0]}}"></image>
|
|
|
</view>
|
|
|
<view class="price">{{item.price}}</view>
|
|
|
<view class="price">¥{{item.price}}</view>
|
|
|
<!-- <view class="oldprice">{{item.price}}</view> -->
|
|
|
</view>
|
|
|
|
...
|
...
|
@@ -97,41 +116,27 @@ |
|
|
</navigator>
|
|
|
|
|
|
<!-- 大分类 -->
|
|
|
<view class="flexone {{stick==1?'navactive':''}}">
|
|
|
<view class="horizontal_nav ">
|
|
|
<!-- {{stick==1?'navactive':''}} -->
|
|
|
|
|
|
<view class="nav_item {{nav_index == index?'active':''}}" wx:for="{{nav_arr}}" wx:key="index" bindtap="select_nav" data-index="{{index}}" data-id="{{item.id}}">{{item.name}}</view>
|
|
|
<view class="navactive">
|
|
|
<view class="flexone">
|
|
|
<view class="horizontal_nav ">
|
|
|
|
|
|
<view class="nav_item {{nav_index == index?'active':''}}" wx:for="{{nav_arr}}" wx:key="index" bindtap="select_nav" data-index="{{index}}" data-id="{{item.id}}">{{item.name}}</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="morebox" bindtap="more">
|
|
|
<view class="moreimg">
|
|
|
<image src="/images/more.png"></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 小分类 -->
|
|
|
<view class='list'>
|
|
|
<view class='list_item' wx:if="{{index < length_num}}" wx:for="{{class_arr}}" wx:key="index" data-id="{{item.id}}" data-index="{{index}}" catchtap="look_item">
|
|
|
<view class='item'>
|
|
|
<view class='item_img'>
|
|
|
<image src='{{item.image}}' mode='aspectFill' />
|
|
|
<view class="morebox" bindtap="more">
|
|
|
<view class="moreimg">
|
|
|
<image src="/images/more.png"></image>
|
|
|
</view>
|
|
|
<view class='item_font'>{{item.name}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class='list_item' data-type="1" catchtap="show_all" wx:if="{{class_arr.length>9}}">
|
|
|
<view class='item'>
|
|
|
<view class='item_img'>
|
|
|
<image src='/images/all.png' />
|
|
|
</view>
|
|
|
<view class='item_font'>{{length_num == 9?'查看全部':'收起'}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
<!-- 小分类 -->
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
...
|
...
|
|