赋值page1

This commit is contained in:
luyuan 2020-08-12 09:32:02 +08:00
parent 1db45d40a7
commit a45db4afbf
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3
4 changed files with 9 additions and 3 deletions

View File

@ -205,6 +205,7 @@ export default {
},
switchCurrent(current) {
// if(current == 1 && this.current == 1) this.priceOrderAsc = !this.priceOrderAsc;
this.page = 1;
this.current = current;
this.goodsList = []
this.ShopSearch()

View File

@ -128,8 +128,9 @@ export default {
})
},
switchCurrent(current) {
this.ShopSearch()
this.page = 1
if(current == 1 && this.current == 1) this.priceOrderAsc = !this.priceOrderAsc;
this.ShopSearch()
this.current = current;
},
setViewHeight() {

View File

@ -10,7 +10,7 @@
<view class="cur_two" @click="tapClick(index)">已关注</view>
<!-- <view class="cur" @click="tapClick(index)" v-else = "item.about == 2">未关注</view> -->
</view>
<u-loadmore :status="status" icon-type="iconType" :load-text="loadText" />
<u-loadmore :status="status" icon-type="iconType"/>
</view>
</template>
@ -39,6 +39,10 @@
onLoad(){
this.snsfriendList()
},
onShow(){
this.page = 1;
this.snsfriendList();
},
methods: {
//
tapClick(index) {

View File

@ -271,7 +271,7 @@
}
this.getArticlelist();
if (this.hasLogin) {
this.isNewmembervoucher();
// this.isNewmembervoucher();
}
},
onLoad(){