|
@@ -1,9 +1,9 @@
|
|
|
<template>
|
|
|
<view class="section_page_main clearfix">
|
|
|
<view class="recommend-list">
|
|
|
- <swiper class="tui-banner-swiper" :autoplay="false" :interval="5000" :duration="500" :circular="true" @change="swiperChange">
|
|
|
+ <swiper class="tui-banner-swiper" :autoplay="true" :interval="5000" :duration="500" :circular="true" @change="swiperChange">
|
|
|
<swiper-item v-for="(product,index) in productList" :key="index">
|
|
|
- <view class="floor-item ad_04 clearfix" v-for="(item, idx) in floorData.floorImageList" v-if="idx < 4" :key="idx" @click.stop="navToDetailPage(item)">
|
|
|
+ <view class="floor-item ad_04 clearfix" v-for="(item, idx) in product" :key="idx" @click.stop="navToDetailPage(item)">
|
|
|
<image class="item-img tui-skeleton-fillet" :src="item.image" mode="aspectFill"></image>
|
|
|
<view class="floor-item_tag" v-if="item.listType == 2">
|
|
|
<text>{{ item.label }}</text>
|
|
@@ -141,7 +141,6 @@
|
|
|
data() {
|
|
|
return{
|
|
|
shopId:0,
|
|
|
- floorData:{},
|
|
|
productList:[],
|
|
|
current:100,
|
|
|
swiperCurrent:0,
|
|
@@ -179,8 +178,6 @@
|
|
|
this.productList.push(data.floorImageList.slice(i, i + this.pageSize));
|
|
|
}
|
|
|
}
|
|
|
- this.floorData = data
|
|
|
- // console.log(this.floorData)
|
|
|
},
|
|
|
PromotionsFormat(promo){//促销活动类型数据处理
|
|
|
if(promo!=null){
|