赋值page1
This commit is contained in:
		
							parent
							
								
									1db45d40a7
								
							
						
					
					
						commit
						a45db4afbf
					
				| @ -205,6 +205,7 @@ export default { | |||||||
| 		}, | 		}, | ||||||
| 		switchCurrent(current) { | 		switchCurrent(current) { | ||||||
| 			// if(current == 1 && this.current == 1) this.priceOrderAsc = !this.priceOrderAsc; | 			// if(current == 1 && this.current == 1) this.priceOrderAsc = !this.priceOrderAsc; | ||||||
|  | 			this.page = 1; | ||||||
| 			this.current = current; | 			this.current = current; | ||||||
| 			this.goodsList = [] | 			this.goodsList = [] | ||||||
| 			this.ShopSearch() | 			this.ShopSearch() | ||||||
|  | |||||||
| @ -128,8 +128,9 @@ export default { | |||||||
| 			}) | 			}) | ||||||
| 		}, | 		}, | ||||||
| 		switchCurrent(current) { | 		switchCurrent(current) { | ||||||
| 			this.ShopSearch() | 			this.page = 1 | ||||||
| 			if(current == 1 && this.current == 1) this.priceOrderAsc = !this.priceOrderAsc; | 			if(current == 1 && this.current == 1) this.priceOrderAsc = !this.priceOrderAsc; | ||||||
|  | 			this.ShopSearch() | ||||||
| 			this.current = current; | 			this.current = current; | ||||||
| 		}, | 		}, | ||||||
| 		setViewHeight() { | 		setViewHeight() { | ||||||
|  | |||||||
| @ -10,7 +10,7 @@ | |||||||
| 			<view  class="cur_two"  @click="tapClick(index)">已关注</view> | 			<view  class="cur_two"  @click="tapClick(index)">已关注</view> | ||||||
| 			<!-- <view class="cur"   @click="tapClick(index)" v-else = "item.about == 2">未关注</view> --> | 			<!-- <view class="cur"   @click="tapClick(index)" v-else = "item.about == 2">未关注</view> --> | ||||||
| 		</view> | 		</view> | ||||||
| 		<u-loadmore :status="status" icon-type="iconType" :load-text="loadText" /> | 		<u-loadmore :status="status" icon-type="iconType"/> | ||||||
| 	</view> | 	</view> | ||||||
| 	 | 	 | ||||||
| </template> | </template> | ||||||
| @ -39,6 +39,10 @@ | |||||||
| 		onLoad(){ | 		onLoad(){ | ||||||
| 			this.snsfriendList() | 			this.snsfriendList() | ||||||
| 		}, | 		}, | ||||||
|  | 		onShow(){ | ||||||
|  | 			this.page = 1; | ||||||
|  | 			this.snsfriendList(); | ||||||
|  | 		}, | ||||||
| 		methods: { | 		methods: { | ||||||
| 			// 点击切换颜色 | 			// 点击切换颜色 | ||||||
| 			tapClick(index) { | 			tapClick(index) { | ||||||
|  | |||||||
| @ -271,7 +271,7 @@ | |||||||
|             } |             } | ||||||
|             this.getArticlelist(); |             this.getArticlelist(); | ||||||
|             if (this.hasLogin) { |             if (this.hasLogin) { | ||||||
|                 this.isNewmembervoucher(); |                 // this.isNewmembervoucher(); | ||||||
|             } |             } | ||||||
| 		}, | 		}, | ||||||
| 		onLoad(){ | 		onLoad(){ | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user