一部分完成
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
</view>
|
||||
<view class="evaluation" :class="{ 'current' : current == 2 }" @click="switchCurrent(2)">好评</view>
|
||||
</view>
|
||||
<scroll-view scroll-y class="goods-container" :style="{ height: scrollHeight }" @scrolltolower="loadMore">
|
||||
<scroll-view scroll-y class="goods-container" :style="{ height: scrollHeight }" @scrolltolower="loadMore" :scroll-top="top">
|
||||
<view v-for="goods in goodsList" :key="goods.goods_id" class="goods-item" @click="toDetailsPage(goods.goods_id)">
|
||||
<image :src="goods.goods_image"></image>
|
||||
<view class="right">
|
||||
@@ -38,7 +38,8 @@ export default {
|
||||
scrollHeight: '',
|
||||
loadStatus: 'loadmore',
|
||||
timer: true, // 防止上拉加载短时间内多次调用,
|
||||
value:""
|
||||
value:"",
|
||||
top:0
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
@@ -131,6 +132,7 @@ export default {
|
||||
switchCurrent(current) {
|
||||
this.page = 1
|
||||
if(current == 1 && this.current == 1) this.priceOrderAsc = !this.priceOrderAsc;
|
||||
this.top=0
|
||||
this.ShopSearch()
|
||||
this.current = current;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user