|
@@ -1,13 +1,16 @@
|
|
<template>
|
|
<template>
|
|
<mobile-frame :frameStyle="frameStyle" @toPath="toPath">
|
|
<mobile-frame :frameStyle="frameStyle" @toPath="toPath">
|
|
- <scroll-view scroll-y="true" class="scroll-view" scroll-with-animation :scroll-top="scrollTop" @scroll="scroll" @scrolltolower="toPage">
|
|
|
|
|
|
+ <scroll-view scroll-y="true" class="scroll-view" scroll-with-animation :scroll-top="scrollTop" @scroll="scroll"
|
|
|
|
+ @scrolltolower="toPage">
|
|
<view class="list-scroll-view">
|
|
<view class="list-scroll-view">
|
|
<view class="main">
|
|
<view class="main">
|
|
<view class="zero one">
|
|
<view class="zero one">
|
|
- <input type="text" placeholder="搜索商品" @tap="toCommon('pagesHome/market/search')" placeholder-class="placss">
|
|
|
|
|
|
+ <input type="text" placeholder="搜索商品" @tap="toCommon('pagesHome/market/search')"
|
|
|
|
+ placeholder-class="placss">
|
|
</view>
|
|
</view>
|
|
<view class="zero two">
|
|
<view class="zero two">
|
|
- <swiper class="swiper" circular :indicator-dots="true" indicator-color="#ffffff" indicator-active-color="#FB1438" :autoplay="true" :interval="3000" :duration="1000">
|
|
|
|
|
|
+ <swiper class="swiper" circular :indicator-dots="true" indicator-color="#ffffff"
|
|
|
|
+ indicator-active-color="#FB1438" :autoplay="true" :interval="3000" :duration="1000">
|
|
<swiper-item class="list" v-for="(item,index) in bannerList" :key="index">
|
|
<swiper-item class="list" v-for="(item,index) in bannerList" :key="index">
|
|
<image class="image" :src="item.url&&item.url.length>0?item.url[0].url:''" mode="">
|
|
<image class="image" :src="item.url&&item.url.length>0?item.url[0].url:''" mode="">
|
|
</image>
|
|
</image>
|
|
@@ -195,6 +198,14 @@
|
|
this.scrollTop = 0
|
|
this.scrollTop = 0
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ // 清空列表
|
|
|
|
+ clearPage() {
|
|
|
|
+ const that = this;
|
|
|
|
+ that.$set(that, `marketList`, [])
|
|
|
|
+ that.$set(that, `skip`, 0)
|
|
|
|
+ that.$set(that, `limit`, 5)
|
|
|
|
+ that.$set(that, `page`, 0)
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|