2022-03-28 10:40:02 +00:00
|
|
|
<template>
|
|
|
|
<view>
|
2022-04-10 13:59:38 +00:00
|
|
|
<swiperTabSlide @scrollBottom="scrollBottomEv" :list="dataList" :ifloading="ifloading"></swiperTabSlide>
|
2022-03-28 10:40:02 +00:00
|
|
|
<!-- 底部tab -->
|
|
|
|
<foot-tab :current="3"></foot-tab>
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2022-04-10 13:59:38 +00:00
|
|
|
import swiperTabSlide from '@/components/swiper-tab/swiper-tab-slide.vue';
|
2022-03-28 10:40:02 +00:00
|
|
|
// 底部组件
|
|
|
|
import footTabOne from '@/components/foot-tabs/foot-tab-one.vue';
|
|
|
|
export default {
|
|
|
|
components:{
|
2022-04-10 13:59:38 +00:00
|
|
|
'foot-tab' :footTabOne,
|
|
|
|
swiperTabSlide
|
2022-03-28 10:40:02 +00:00
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
2022-04-10 13:59:38 +00:00
|
|
|
dataList:[
|
|
|
|
[
|
|
|
|
{title:'标题',content:'描述描述描述描述描述描述描述描述描述描述描述描述',price:199,xiaol:99},
|
|
|
|
{title:'标题',content:'描述描述描述描述描述描述描述描述描述描述描述描述',price:199,xiaol:99},
|
|
|
|
{title:'标题',content:'描述描述描述描述描述描述描述描述描述描述描述描述',price:199,xiaol:99},
|
|
|
|
{title:'标题',content:'描述描述描述描述描述描述描述描述描述描述描述描述',price:199,xiaol:99},
|
|
|
|
{title:'标题',content:'描述描述描述描述描述描述描述描述描述描述描述描述',price:199,xiaol:99},
|
|
|
|
{title:'标题',content:'描述描述描述描述描述描述描述描述描述描述描述描述',price:199,xiaol:99},
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{title:'标题',content:'描述描述描述描述描述描述描述描述描述描述描述描述',price:199,xiaol:99},
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{title:'标题',content:'描述描述描述描述描述描述描述描述描述描述描述描述',price:199,xiaol:99},
|
|
|
|
{title:'标题',content:'描述描述描述描述描述描述描述描述描述描述描述描述',price:199,xiaol:99},
|
|
|
|
{title:'标题',content:'描述描述描述描述描述描述描述描述描述描述描述描述',price:199,xiaol:99},
|
|
|
|
{title:'标题',content:'描述描述描述描述描述描述描述描述描述描述描述描述',price:199,xiaol:99},
|
|
|
|
{title:'标题',content:'描述描述描述描述描述描述描述描述描述描述描述描述',price:199,xiaol:99},
|
|
|
|
{title:'标题',content:'描述描述描述描述描述描述描述描述描述描述描述描述',price:199,xiaol:99},
|
|
|
|
{title:'标题',content:'描述描述描述描述描述描述描述描述描述描述描述描述',price:199,xiaol:99},
|
|
|
|
{title:'标题',content:'描述描述描述描述描述描述描述描述描述描述描述描述',price:199,xiaol:99},
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{title:'标题',content:'描述描述描述描述描述描述描述描述描述描述描述描述',price:199,xiaol:99},
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{title:'标题',content:'描述描述描述描述描述描述描述描述描述描述描述描述',price:199,xiaol:99},
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{title:'标题',content:'描述描述描述描述描述描述描述描述描述描述描述描述',price:199,xiaol:99},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
ifloading:false,
|
|
|
|
flag:true
|
2022-03-28 10:40:02 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
methods: {
|
2022-04-10 13:59:38 +00:00
|
|
|
scrollBottomEv(e){
|
|
|
|
if(this.flag){
|
|
|
|
this.flag = false;
|
|
|
|
this.ifloading = true;
|
|
|
|
setTimeout(()=>{
|
|
|
|
for (let i = 0; i < 2; i++) {
|
|
|
|
let obj = {
|
|
|
|
title:'标题',content:'描述描述描述描述描述描述描述描述描述描述描述描述',price:199,xiaol:99
|
|
|
|
}
|
|
|
|
this.dataList[e].push(obj);
|
|
|
|
}
|
|
|
|
this.ifloading = false;
|
|
|
|
this.flag = true;
|
|
|
|
},1000)
|
|
|
|
// 重新渲染组件
|
|
|
|
this.$forceUpdate();
|
|
|
|
}
|
|
|
|
}
|
2022-03-28 10:40:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
|
|
|
</style>
|