|
|
|
@ -47,7 +47,7 @@ |
|
|
|
<text class="lf-iconfont icon-xiangyou lf-font-24 lf-m-l-10"></text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="recommend-box" > |
|
|
|
<view class="recommend-box"> |
|
|
|
<view class="goods-rom" v-for="(item,index) of detail.goods" :key="index" v-if="detail.goods.length" @click="$url('/pages/shop/goodsdetail?id='+item.id)"> |
|
|
|
<!-- <u-lazy-load threshold="-450" border-radius="8px 8px 0 0" :image="item.img" :index="index"> |
|
|
|
</u-lazy-load> --> |
|
|
|
@ -89,8 +89,7 @@ |
|
|
|
<swiper :style="{height: '800rpx', width: '750rpx'}" :current="current" @change="swiperChange"> |
|
|
|
<swiper-item v-for="(tabItem, tabIndex) in tab_list" :key="tabIndex"> |
|
|
|
<scroll-view class="com" :scroll-y="true" :refresher-enabled="true" :refresher-triggered="tabItem.isRefresher" @scrolltolower="onScrolltolower" @refresherrefresh="onRefresherrefresh"> |
|
|
|
<view class="lf-m-t-20"></view> |
|
|
|
<lf-waterfall :ifsale="false" :list="tabItem.list" :listlength="tab_list.length" :tabindex='tabIndex' ref="uWaterfallFather"></lf-waterfall> |
|
|
|
<shop-list :list="tabItem.list"></shop-list> |
|
|
|
<view class="loading-more lf-m-b-10"> |
|
|
|
<text :class="{'loading-more-text': tabItem.loadingClass}" v-if="tabItem.list.length">{{tabItem.loadingText}}</text> |
|
|
|
<lf-nocontent src="/static/images/empty.png" v-else></lf-nocontent> |
|
|
|
@ -106,10 +105,10 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import lfWaterfall from '@/components/lf-waterfall-shopdetails/lf-waterfall.vue'; |
|
|
|
import shopList from '@/components/shopList/shopList.vue'; |
|
|
|
export default { |
|
|
|
components: { |
|
|
|
lfWaterfall |
|
|
|
shopList |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
@ -138,6 +137,8 @@ |
|
|
|
}else { |
|
|
|
this.sort = 'desc'; |
|
|
|
} |
|
|
|
let tab_item = this.tab_list[this.current]; |
|
|
|
tab_item.list = []; |
|
|
|
this.getData(); |
|
|
|
}, |
|
|
|
// 切换商品收藏 |
|
|
|
@ -262,7 +263,9 @@ |
|
|
|
} |
|
|
|
}) |
|
|
|
if(tab_item.page == 1){ |
|
|
|
console.log('当前页数',tab_item.page); |
|
|
|
tab_item.list = list; |
|
|
|
console.log(tab_item.list) |
|
|
|
}else{ |
|
|
|
tab_item.list.push(...list); |
|
|
|
} |
|
|
|
@ -303,7 +306,6 @@ |
|
|
|
tab_item.loadingText = '正在加载中'; |
|
|
|
tab_item.list = []; |
|
|
|
this.$set(this.tab_list, this.current, tab_item); |
|
|
|
this.$refs.uWaterfallFather[this.current].clear(); |
|
|
|
} |
|
|
|
}, |
|
|
|
onShareAppMessage(){ |
|
|
|
@ -368,7 +370,7 @@ |
|
|
|
width: 100%; |
|
|
|
height: 100%; |
|
|
|
box-sizing: border-box; |
|
|
|
padding: 0rpx 28rpx; |
|
|
|
// padding: 0rpx 28rpx; |
|
|
|
} |
|
|
|
.shop-head { |
|
|
|
width: 100%; |
|
|
|
|