| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -5,17 +5,17 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								<u-tabs :list="tab_list" active-color="#15716E" inactive-color='#777777' :is-scroll="true" :current="title_current" @change="titletabChange"></u-tabs> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							</view> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							<view v-if="title_current==0"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								<view class="lf-p-30 lf-flex" v-for="(item,index) of tab_list[title_current].list" :key="index"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									<image class="collect-img" src="https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png" mode="aspectFill"></image> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								<view class="lf-p-30 lf-flex" v-for="(item,index) of tab_list[title_current].list" :key="index" @click="$url('/pages/shop/shopdetail?id='+ item.collectable.id)"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									<image class="collect-img" :src="item.collectable.logo" mode="aspectFill"></image> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									<view class="lf-flex-column lf-m-l-20" style="width: 480rpx;min-height: 160rpx;justify-content: space-between;"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										<view class="lf-font-36 lf-color-black lf-line-1">luckin coffee 瑞幸瑞幸咖啡瑞幸咖啡瑞幸咖啡瑞幸咖啡咖啡</view> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										<view class="lf-font-24 lf-color-777">餐饮·美食|18件在售</view> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										<view class="lf-font-36 lf-color-black lf-line-1">{{item.collectable.name}}</view> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										<view class="lf-font-24 lf-color-777">{{item.collectable.category}}|{{item.collectable.goods_count}}件在售</view> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										<view class="lf-font-24 lf-color-777"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											<text class="lf-iconfont icon-dizhi lf-font-20 lf-color-primary"></text> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											<text class="lf-m-l-10">L2</text> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											<text class="lf-m-l-10">{{item.collectable.floor}}</text> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										</view> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									</view> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									<view class="lf-iconfont icon-shoucang lf-font-38" style="color: #FF9D9D;"></view> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									<view class="lf-iconfont icon-shoucang2 lf-color-price lf-font-38" style="color: #FF9D9D;" @click.stop="switchCollect(item.collectable.id)"></view> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								</view> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								<view class="loading-more"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									<text :class="{'loading-more-text': tab_list[title_current].loadingClass}" v-if="tab_list[title_current].list.length">{{ tab_list[title_current].loadingText }}</text> | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -57,50 +57,6 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									], | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									title_current:0, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									list: [ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										{ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											id: 10, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											original_price: "4111.00", | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											picture: "https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png", | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											pictures: ["https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png"], | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											price: "2412.00", | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											product_id: 1008, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											sale: 0, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											title: "三亚悦榕庄(Banyan Tree Sanya Resort and Spa)" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										}, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										{ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											id: 10, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											original_price: "4111.00", | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											picture: "https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png", | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											pictures: ["https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png"], | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											price: "2412.00", | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											product_id: 1008, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											sale: 0, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											title: "三亚悦榕庄(Banyan Tree Sanya Resort and Spa)" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										}, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										{ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											id: 10, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											original_price: "4111.00", | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											picture: "https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png", | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											pictures: ["https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png"], | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											price: "2412.00", | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											product_id: 1008, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											sale: 0, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											title: "三亚悦榕庄(Banyan Tree Sanya Resort and Spa)" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										}, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										{ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											id: 10, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											original_price: "4111.00", | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											picture: "https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png", | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											pictures: ["https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png"], | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											price: "2412.00", | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											product_id: 1008, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											sale: 0, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											title: "三亚悦榕庄(Banyan Tree Sanya Resort and Spa)" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									], | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									show_count: 0, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									windowHeight: 0, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									scrollH: 0, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									nav_height: 0, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									isRefresher: true | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -120,6 +76,32 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								this.getData(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							}, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							methods: { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								// 切换商品收藏 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								switchCollect(id){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									let userInfo = this.$cookieStorage.get('user_token') || {}; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									if(!userInfo){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										this.$url('/pages/login/index'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										return; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									this.addCollcet(id) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								}, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								addCollcet(id) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									this.$http.post({ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										api: 'api/collect/create', | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										data: { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											type:'jc_brand', | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											collect_id: id, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										}, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										header: { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										   Authorization: this.$cookieStorage.get('user_token') | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									}).then(res => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										this.$msg(res.data.data); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										this.clearTabItem({type: 'scrollRefresh'}); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									}).catch(err => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										console.log("====", err); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									}) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								}, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								titletabChange(index){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									this.title_current = index; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									this.getData(); | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -148,15 +130,47 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									            if(options.type == 'pageRefresh') { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									            	uni.stopPullDownRefresh(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									            }else if(options.type == 'scrollRefresh') { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
													console.log('进入了') | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									            	this.isRefresher = false; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									            } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									            if(tab_item.page == 1) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									            	tab_item.list = res.data.data.data; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									            	if(this.title_current == 0) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
														tab_item.list = res.data.data.data; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
													}else { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
														let data_list = res.data.data.data || []; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
														let list = data_list.map(item => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
															return { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
																id: item.id, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
																original_price: item.collectable.market_price, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
																picture: item.collectable.img, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
																pictures: [item.collectable.img], | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
																price: item.collectable.min_price, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
																product_id: item.collectable.brand_id, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
																sale: item.collectable.sale_count, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
																title: item.collectable.name | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
															} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
														}) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
														tab_item.list = list; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
													} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									            }else { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									            	tab_item.list.push(...res.data.data.data); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									            	if(this.title_current == 0) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
														tab_item.list.push(...res.data.data.data); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
													}else { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
														let data_list = res.data.data.data || []; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
														let list = data_list.map(item => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
															return { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
																id: item.id, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
																original_price: item.collectable.market_price, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
																picture: item.collectable.img, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
																pictures: [item.collectable.img], | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
																price: item.collectable.min_price, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
																product_id: item.collectable.brand_id, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
																sale: item.collectable.sale_count, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
																title: item.collectable.name | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
															} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
														}) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
														tab_item.list.push(...list); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
													} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									            } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
												console.log('当前列表数据',tab_item.list) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									        } else { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									            wx.showModal({ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									                content: '请下拉页面刷新重试', | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |