| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -21,7 +21,8 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									<view class="item" @click="$url('/pages/store/cart/cart')"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										<text class="lf-iconfont icon-gouwulan lf-font-50"></text> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										<text>购物车</text> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										<view class="angle-mark">99+</view> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										<view class="angle-mark" v-if="car_num<99">{{car_num}}</view> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										<view class="angle-mark" v-else>99+</view> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									</view> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								</view> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							</view> | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -43,7 +44,7 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									</view> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								</view> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								<view class="goods" v-if="$isRight(tab_list)"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									<lf-waterfall :list="tab_list[tab_current].list"></lf-waterfall> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									<lf-waterfall :ifsale='false' :list="tab_list[tab_current].list"></lf-waterfall> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									<lf-nocontent src="/static/images/empty.png" v-if="tab_list[tab_current].list.length <= 0"></lf-nocontent> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								</view> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							</view> | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -84,7 +85,8 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									}], | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									filter_current: null, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									token: '', | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									point: {point: 0} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									point: {point: 0}, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									car_num: 0 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							}, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							onLoad(){ | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -92,7 +94,41 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								this.getTotalPoint(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								this.getCategoryList(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							}, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							onShow() { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								this.getcarNum(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							}, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							methods: { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								getcarNum() { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									this.$http | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									    .get({ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									        api: 'api/shopping/cart/count', | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											header: { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											   Authorization: this.$cookieStorage.get('user_token') | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											}, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									    }) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									    .then(res => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									        if (res.data.code == 200) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									           if(res.data.data == null) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
												   this.car_num = 0; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											   }else { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
												   this.car_num = res.data.data; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											   } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									        } else { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									            wx.showModal({ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									                content: '请下拉页面刷新重试', | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									                showCancel: false | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									            }); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									    }) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									    .catch(() => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									        wx.stopPullDownRefresh(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									        wx.hideLoading(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									        wx.showModal({ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									            content: '请求失败', | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									            showCancel: false | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									        }); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									    }); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								}, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								getTotalPoint(){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									this.$http.get({ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										api: 'api/users/point', | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -158,7 +194,7 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
												sale: item.sale_count, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
												picture: item.img, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
												title: item.name, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
												store_nums: item.store_nums | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
												store_nums: item.redeem_point | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										}) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										let pagination = res.data.meta.pagination; | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -314,7 +350,7 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							display: flex; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							justify-content: center; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							align-items: center; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							border-bottom: 1rpx solid rgba(0, 0, 0, 0.1); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							// border-bottom: 1rpx solid rgba(0, 0, 0, 0.1); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							width: max-content; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						/deep/.u-scroll-box .u-tab-bar { | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |