wangyong 6 yıl önce
ebeveyn
işleme
0fb7c4c03e

BIN
images/news/nav_01.png


BIN
images/news/nav_02.png


BIN
images/news/nav_03.png


BIN
images/news/nav_04.png


BIN
images/news/nav_05.png


BIN
images/news/spec_01.png


BIN
images/news/spec_02.png


+ 26 - 0
pages/index/index.js

@@ -39,26 +39,31 @@ Page({
       {
       url:'/',
       icon:'icon-dingzhijiaju',
+      src:'../../images/news/nav_01.png',
       text:'杯类'
     },
       {
         url: '/',
         icon: 'icon-dingzhijiaju',
+        src: '../../images/news/nav_02.png',
         text: '行李箱'
       },
       {
         url: '/',
         icon: 'icon-dingzhijiaju',
+        src: '../../images/news/nav_03.png',
         text: '手机壳'
       },
       {
         url: '/',
         icon: 'icon-dingzhijiaju',
+        src: '../../images/news/nav_04.png',
         text: '板画'
       },
       {
         url: '/',
         icon: 'icon-dingzhijiaju',
+        src: '../../images/news/nav_05.png',
         text: '包袋'
       }
     ],
@@ -88,6 +93,14 @@ Page({
         href: '/pages/patternMenu/patternMenu'
       }
     ],
+    specArray:[
+      {
+        src:'../../images/news/spec_01.png'
+      },
+      {
+        src: '../../images/news/spec_02.png'
+      }
+    ],
     navList:["推荐","中秋","改良生活","优化办公","智能科技"],
     firstActive: "header_nav_active",
     currentItem : '',
@@ -473,6 +486,7 @@ Page({
       page:1,
     })
     that.getGoodsNews(that)
+    that.getSpecList()
     if (wx.getStorageSync('channelIdObj').channelId) {
       that.setData({
         loginStatic: true,
@@ -486,6 +500,18 @@ Page({
       url : "/pages/find/index"
     })
   },
+  getSpecList(){
+    wx.request({
+      url: host+'/classifyapi/classifyTwoAll',
+      method:'get',
+      data:{
+        classifyHigher:3072
+      },
+      success:function(res){
+        console.log(res)
+      }
+    })
+  },
   onReachBottom(){
     var that = this;
     if (that.data.requestState) {

+ 15 - 2
pages/index/index.wxml

@@ -35,7 +35,8 @@
         <!-- 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>
+            <!-- <icon class='iconfont {{item.icon}}'></icon> -->
+            <image src='{{item.src}}' class='nav-img'></image>
             <view  class="new_nav_name">{{item.text}}</view> 
           </navigator>
 
@@ -69,7 +70,19 @@
             </navigator>
           </view>
         </view> -->
-
+        <!-- 专题精选 -->
+        <view class='special-box'>
+          <view class='spec-title'>专题精选</view>
+          <swiper autoplay="true" interval="5000" duration="500" previous-margin="0rpx" next-margin="180rpx">
+            <block wx:for="{{specArray}}">
+              <swiper-item>
+              <view class='mar-r20' style='height:100%'>
+                <image src="{{item.src}}" class="slide-image" mode="aspectFill" />
+              </view>
+              </swiper-item>
+            </block>
+          </swiper>
+        </view>
 
         <!--列表1 -->
         <view class='goods-listType1 mar-t20'>

+ 28 - 1
pages/index/index.wxss

@@ -452,7 +452,7 @@ page{
   overflow: hidden;
   padding:50rpx 0;
   background: #ffffff;
-  margin-bottom:16rpx;
+  margin-bottom:20rpx;
 }
 .new_nav_wrap .iconfont{
   font-size:60rpx;
@@ -472,6 +472,7 @@ page{
   font-size: 22rpx;
   line-height: 32rpx;
   color: #454545;
+  margin-top:8rpx;
 }
 
 /* 新热销【人气】 */
@@ -852,4 +853,30 @@ page{
 }
 .goods-listType2 .goods-title{
   margin:10rpx 0;
+}
+.nav-img{
+  width:88rpx;
+  height:66rpx;
+  display: block;
+  margin:0 auto;
+}
+.special-box{
+  background:#fff;
+  margin-top:20rpx;
+  padding-bottom:50rpx;
+}
+.spec-title{
+  font-size:30rpx;
+  color:#2d2d2d;
+  height:100rpx;
+  line-height:100rpx;
+  margin:0 30rpx;
+ 
+  /* font-weight: bold; */
+}
+.special-box .slide-image{
+  /* width:500rpx;
+  height:260rpx; */
+  display: block;
+  margin-right:20rpx;
 }