zs 2 年 前
コミット
d8033c022f
2 ファイル変更15 行追加3 行削除
  1. 14 3
      pages/home/index.vue
  2. 1 0
      pagesMy/collection/market.vue

+ 14 - 3
pages/home/index.vue

@@ -1,13 +1,16 @@
 <template>
 	<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="main">
 					<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 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">
 								<image class="image" :src="item.url&&item.url.length>0?item.url[0].url:''" mode="">
 								</image>
@@ -195,6 +198,14 @@
 					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>

+ 1 - 0
pagesMy/collection/market.vue

@@ -364,6 +364,7 @@
 			.two_2 {
 				width: 100vw;
 				display: flex;
+				flex-wrap: wrap;
 
 				.list {
 					width: 42vw;