| 
					
					
						
							
						
					
					
				 | 
				@ -74,7 +74,7 @@ | 
			
		
		
	
		
			
				 | 
				 | 
						</view> | 
				 | 
				 | 
						</view> | 
			
		
		
	
		
			
				 | 
				 | 
						<!-- 悬浮购物车入口 --> | 
				 | 
				 | 
						<!-- 悬浮购物车入口 --> | 
			
		
		
	
		
			
				 | 
				 | 
						<view class="fixed-right"> | 
				 | 
				 | 
						<view class="fixed-right"> | 
			
		
		
	
		
			
				 | 
				 | 
							<view class="fixed-cart fixed-live" hover-class="lf-opacity" @click="goLive()"> | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
							<view class="fixed-cart fixed-live" hover-class="lf-opacity" @click="goLive()" v-if="live_roomid"> | 
			
		
		
	
		
			
				 | 
				 | 
								<text class="lf-iconfont icon-zhibo icon-text"></text> | 
				 | 
				 | 
								<text class="lf-iconfont icon-zhibo icon-text"></text> | 
			
		
		
	
		
			
				 | 
				 | 
								<text class="tips">直播间</text> | 
				 | 
				 | 
								<text class="tips">直播间</text> | 
			
		
		
	
		
			
				 | 
				 | 
							</view> | 
				 | 
				 | 
							</view> | 
			
		
		
	
	
		
			
				| 
					
						
							
						
					
					
						
							
						
					
					
				 | 
				@ -152,7 +152,8 @@ | 
			
		
		
	
		
			
				 | 
				 | 
								show_ad: false, // 是否显示ad广告 | 
				 | 
				 | 
								show_ad: false, // 是否显示ad广告 | 
			
		
		
	
		
			
				 | 
				 | 
								ad_modal_list: [], // ad广告列表 | 
				 | 
				 | 
								ad_modal_list: [], // ad广告列表 | 
			
		
		
	
		
			
				 | 
				 | 
								nav_bg_color: 'rgba(255,255,255,0)' ,// 导航背景颜色 | 
				 | 
				 | 
								nav_bg_color: 'rgba(255,255,255,0)' ,// 导航背景颜色 | 
			
		
		
	
		
			
				 | 
				 | 
								car_num: 0 | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								car_num: 0, | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								live_roomid: 0 | 
			
		
		
	
		
			
				 | 
				 | 
				            }; | 
				 | 
				 | 
				            }; | 
			
		
		
	
		
			
				 | 
				 | 
				        }, | 
				 | 
				 | 
				        }, | 
			
		
		
	
		
			
				 | 
				 | 
				        // 注册组件 | 
				 | 
				 | 
				        // 注册组件 | 
			
		
		
	
	
		
			
				| 
					
						
							
						
					
					
						
							
						
					
					
				 | 
				@ -189,14 +190,14 @@ | 
			
		
		
	
		
			
				 | 
				 | 
							} | 
				 | 
				 | 
							} | 
			
		
		
	
		
			
				 | 
				 | 
						}, | 
				 | 
				 | 
						}, | 
			
		
		
	
		
			
				 | 
				 | 
						  onShow(e) { | 
				 | 
				 | 
						  onShow(e) { | 
			
		
		
	
		
			
				 | 
				 | 
						    | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
							this.getLiveRoom(); | 
			
		
		
	
		
			
				 | 
				 | 
							this.isLogin=!!this.$cookieStorage.get('user_token') | 
				 | 
				 | 
							this.isLogin=!!this.$cookieStorage.get('user_token') | 
			
		
		
	
		
			
				 | 
				 | 
							 | 
				 | 
				 | 
							 | 
			
		
		
	
		
			
				 | 
				 | 
						    let toekn = this.$cookieStorage.get('user_token'); | 
				 | 
				 | 
						    let toekn = this.$cookieStorage.get('user_token'); | 
			
		
		
	
		
			
				 | 
				 | 
							 | 
				 | 
				 | 
							 | 
			
		
		
	
		
			
				 | 
				 | 
						    if (toekn) { | 
				 | 
				 | 
						    if (toekn) { | 
			
		
		
	
		
			
				 | 
				 | 
						      this.getUserInfo(); | 
				 | 
				 | 
						      this.getUserInfo(); | 
			
		
		
	
		
			
				 | 
				 | 
							  this.getcarNum() | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
							  this.getcarNum(); | 
			
		
		
	
		
			
				 | 
				 | 
						    } | 
				 | 
				 | 
						    } | 
			
		
		
	
		
			
				 | 
				 | 
					 | 
				 | 
				 | 
					 | 
			
		
		
	
		
			
				 | 
				 | 
						 | 
				 | 
				 | 
						 | 
			
		
		
	
	
		
			
				| 
					
						
							
						
					
					
						
							
						
					
					
				 | 
				@ -266,15 +267,28 @@ | 
			
		
		
	
		
			
				 | 
				 | 
						onPullDownRefresh(){ | 
				 | 
				 | 
						onPullDownRefresh(){ | 
			
		
		
	
		
			
				 | 
				 | 
							 wx.showLoading(); | 
				 | 
				 | 
							 wx.showLoading(); | 
			
		
		
	
		
			
				 | 
				 | 
							  this.queryMicroData(); | 
				 | 
				 | 
							  this.queryMicroData(); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
							  this.getLiveRoom(); | 
			
		
		
	
		
			
				 | 
				 | 
						}, | 
				 | 
				 | 
						}, | 
			
		
		
	
		
			
				 | 
				 | 
				        // 方法,需要将小程序的方法都放到这个里面 | 
				 | 
				 | 
				        // 方法,需要将小程序的方法都放到这个里面 | 
			
		
		
	
		
			
				 | 
				 | 
				        methods: { | 
				 | 
				 | 
				        methods: { | 
			
		
		
	
		
			
				 | 
				 | 
							goLive() { | 
				 | 
				 | 
							goLive() { | 
			
		
		
	
		
			
				 | 
				 | 
								this.$msg('敬请期待!'); | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
								return | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
								// wx.navigateTo({ | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
								//     url: `plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=1` | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
								// }) | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								// this.$msg('敬请期待!'); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								// return | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								wx.navigateTo({ | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								    url: `plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=`+this.live_roomid | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								}) | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
							}, | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
							//获取直播房间号 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
							getLiveRoom(){ | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								this.$http.get({ | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
									api: '/api/live' | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								}).then(res => { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
									console.log('=======',res.data.data) | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
									if(res.data.data != null) { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
										this.live_roomid = res.data.data.number | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
									} | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
									uni.stopPullDownRefresh(); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								}); | 
			
		
		
	
		
			
				 | 
				 | 
							}, | 
				 | 
				 | 
							}, | 
			
		
		
	
		
			
				 | 
				 | 
							getAlertAd(){ | 
				 | 
				 | 
							getAlertAd(){ | 
			
		
		
	
		
			
				 | 
				 | 
								this.$http.get({ | 
				 | 
				 | 
								this.$http.get({ | 
			
		
		
	
	
		
			
				| 
					
						
							
						
					
					
					
				 | 
				
  |