| 
					
				 | 
			
			
				@@ -233,9 +233,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 									:levelData="currentJumpTask!=null?currentJumpTask.item:null" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 									:currentMode="currentMode" @actionJumpCheck="onPersonalCheck" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 									@actionJumpControllerPlay="onActionControlPlay" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-									@actionJumpDataUpdate="onActionJumpDataUpdate" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-									@actionJumpCountDownUpdate="onActionJumpCountDownUpdate" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-									@gameOver="onActionJumpGameOver"></action-jump> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+									@actionJumpDataUpdate="onActionJumpDataUpdate" @gameOver="onActionJumpGameOver"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								</action-jump> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							</view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							<!-- <button @tap="onTestAddLocalCalorie">11</button> --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						</view> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -255,8 +254,19 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				<button @click="showDrawer">显示抽屉</button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			</view> --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			<!-- <view class="example"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				<button @click="showPopup('signIn',null)">显示 每日签到</button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				<button @click="showPopup('pkFinish',null)">显示 pk奖励</button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			</view> --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			<!-- guide --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			<!-- <view class="example"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				<button @click="showGuide('device-tip',null)">显示 device-tip</button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			</view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			<view class="example"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				<button @click="onGetActionJumpView()">显示 onGetActionJumpView</button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			</view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			<view class="example"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				<button @click="onGetBluetoothConnectView()">显示 bluetoothConnect</button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			</view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			<view class="example" style="margin-top: 10rpx;"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				<button @click="onNavToDirection">跳转校准页面</button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			</view> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -271,10 +281,12 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		</view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		<!-- 右下角导航栏 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		<round-fab :connect="cIndex!=-1 && BLEConnectDevice!=null" @fabClick="fabClick"></round-fab> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		<round-fab ref="roundFabRef" :connect="cIndex!=-1 && BLEConnectDevice!=null" @fabClick="fabClick"></round-fab> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		<!-- 侧边栏 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		<!-- 侧边栏 如果app使用 nvue 侧边栏 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		<!-- #ifdef H5 || MP-WEIXIN --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		<sideBar ref="sideBar"></sideBar> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		<!-- #endif --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		<!-- 训练卡 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		<view class="cu-modal " :class="modalName == 'sportCompletion' ? '' : ''"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -743,12 +755,12 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					myUsageTime: 0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					otherUsageTime: 0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					isLeftPlayer: true, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					isFinish:false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					isFinish: false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					gameLimitTime: 0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					describe: '', //关卡说明 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				defaultAJData:null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				defaultAJData: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				/** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				 * 任务参数 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -869,7 +881,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			// 	this.$testWS.sendSocketMessage('unity'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			// }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			//复制一个默认参数 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			this.defaultAJData = Object.assign({},this.AJData); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			this.defaultAJData = Object.assign({}, this.AJData); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		onShow() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			_self.bHide = false; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -930,21 +942,28 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		onReady() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			// 计算屏幕剩余高度  填补剩余高度 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			let phoneHeight = this.systemInfo.windowHeight; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			console.log('计算屏幕剩余高度 ===:', phoneHeight, this.systemInfo); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			// 计算组件的高度 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			_self.scrollviewHight = phoneHeight - this.navHeight - this.tabbarHeight - 16 - this.systemInfo 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			_self.scrollviewHight = this.systemInfo.windowHeight - this.navHeight - this.tabbarHeight - 16 - this 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				.systemInfo 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				.statusBarHeight; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			// let view = uni.createSelectorQuery().select('#nav-bar'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			// view.boundingClientRect(data => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			// 	// console.log('data===:', data); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			// 	if (data != null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			// 		_self.navHeight = data.height; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			// 		_self.scrollviewHight = _self.phoneHeight - _self.navHeight; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			// 		_self.topScrollHight = _self.phoneHeight - _self.navHeight - 30; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			// #ifdef APP-PLUS 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			//制作一个新手引导,以nvue为主。 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			//第一步提示设置计划,之后在回调registerPopupEvent 中处理 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			this.showGuide('plan', null); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			// if (!this.bNewGuide) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			// } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			// 	//添加设备绑腿提示 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			// 	//guide.nvue 里面存储 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			// 	const value = uni.getStorageSync('deviceDirectionPrompt'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			// 	if (!value && !value.isSelected) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			// 		this.showGuide('device-tip', null); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			// 	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			// }).exec(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			// } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			// #endif 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		onUnload() { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -989,7 +1008,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				'setActionJumpTask', 'getLevelList', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				'getUserWallets', 'setGoldAndDiamond', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				'onConvertDeviceData', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				'showDrawerById', 'showPopupById' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				'showDrawerById', 'showPopupById', 'showGuideById' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			]), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			BasicsSteps() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				this.basics = this.basics == this.basicsList.length - 1 ? 0 : this.basics + 1 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1048,6 +1067,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			arcbarCountDownTimeUpdate(data) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				this.AJData.gameCountDown = data.curSeconds; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				this.updateArcbarDataFromActionJump(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				this.onActionJumpCountDownUpdate(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			arcbarCountDownTimeReset() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				//清除时间计时器 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1679,8 +1699,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			//判断是否有其他限制 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			onStartCheck() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				//#ifdef H5 || APP-PLUS 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				// 直接走测试,如果是h5 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				//#ifdef H5 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				// 直接走测试,如果是h5 APP-PLUS 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				if (0 === this.currentModeIndex) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					this.onBoxingGuideFinish(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				} else if (1 === this.currentModeIndex) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1692,7 +1712,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					if (this.currentMode == 'pkMode' && this.finallySelectFriendInfo==null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					if (this.currentMode == 'pkMode' && this.finallySelectFriendInfo == null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						uni.showToast({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							title: '选择一个pk好友', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							icon: 'none', 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1751,41 +1771,55 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							title: '请连接蓝牙设备', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							icon: 'none' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						this.toView = "addDeviceView"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						// this.toView = "addDeviceView"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				//3.检测一下计划日期 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				console.log(this.remainingDays); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				// if (this.planData.startTime > this.planData.endTime || this.remainingDays == 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				// 	if (!this.$store.state.bPlanExpired) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				// 		this.$store.state.bPlanExpired = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				// 		setTimeout(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				// 			this.$store.state.bPlanExpired = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				// 		}, 3000) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				// 		uni.showToast({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				// 			title: "计划到期,请制定计划。", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				// 			icon: 'none' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				// 		}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				// 	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				console.log("remainingDays == >", this.planData, this.remainingDays); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				if (date.formatDate(new Date()) > this.planData.endTime || this.remainingDays == 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					if (!this.$store.state.bPlanExpired) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						this.$store.state.bPlanExpired = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						setTimeout(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							this.$store.state.bPlanExpired = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						}, 3000) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						// uni.showToast({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						// 	title: "计划到期,请制定计划。", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						// 	icon: 'none' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						// }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						uni.showModal({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							title: '提醒', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							content: '计划到期,请制定新计划。', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							confirmText: '去制定', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							success: (res) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								if (res.confirm) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+									uni.switchTab({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+										url: "../plan/plan" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+									}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				// 	this.$store.state.bGuidePages = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				// 	setTimeout(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				// 		this.$refs.codeElfGuide.setCurrent(0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				// 	}, 0) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				// 	this.toView = "projectButtonView"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				// 	return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				// } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					// this.$store.state.bGuidePages = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					// setTimeout(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					// 	this.$refs.codeElfGuide.setCurrent(0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					// }, 0) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					// this.toView = "projectButtonView"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					// // #ifdef APP-PLUS 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					// this.showGuide('plan', null) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					// // #endif 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				if (0 === this.currentModeIndex) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					//如果新手,调用新手教程 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					console.log("this.bNewGuide:", this.bNewGuide); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					// this.$store.state.bNewGuide = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					if (this.bNewGuide) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						// this.$refs.boxingPostRef.onGuideBoxingPostPlay(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						// 拳击的新手提示 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						this.$store.state.bGuidePages = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						this.guideCurrent = 5; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1854,7 +1888,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			onPersonalCheck() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				if (1 === this.currentModeIndex) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					if(this.currentJumpTask == null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					if (this.currentJumpTask == null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						uni.showToast({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							title: '先选一个挑战关卡', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							icon: 'none', 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1862,7 +1896,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					if (this.currentMode == 'pkMode' && this.finallySelectFriendInfo==null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					if (this.currentMode == 'pkMode' && this.finallySelectFriendInfo == null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						uni.showToast({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							title: '选择一个pk好友', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							icon: 'none', 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -2117,22 +2151,22 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					uni.$off('updateBLEDeviceData', this.callbackUpdateBLEData); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					if(1 === this.currentModeIndex){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						if(this.currentMode == "calorieMode"){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					if (1 === this.currentModeIndex) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						if (this.currentMode == "calorieMode") { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							this.syncRequestEvent({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 								success: () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 									this.updateArcbarData(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 								} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					}else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					} else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						this.syncRequestEvent({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							success: () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 								this.updateArcbarData(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				} else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					//如果不是,继续调用播放 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					if (0 === this.currentModeIndex) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -2274,6 +2308,41 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				}).exec(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			onGetActionJumpView() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				this.$nextTick(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					this.toView = "actionJumpID" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				this.toView = '' //不清空再次跳到锚点位置会不起作用 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				setTimeout(()=>{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					_self.$refs.actionJumpRef.onGetActionJumpPlayView((data) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						console.log(JSON.stringify(data)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						// #ifdef APP-PLUS 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						_self.showGuide('actionJumpPlay', data); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						// #endif 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				},200) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			onGetBluetoothConnectView() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				_self.$refs.roundFabRef.onGetRoundFabView((data) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					console.log(JSON.stringify(data)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					// #ifdef APP-PLUS 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					_self.showGuide('bluetoothConnect', data); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					// #endif 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				// let view = uni.createSelectorQuery().select('#roundFabID'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				// view.boundingClientRect(data => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				// 	console.log(JSON.stringify(data)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				// 	// #ifdef APP-PLUS 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				// 	_self.showGuide('bluetoothConnect', data); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				// 	// #endif 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				// }).exec(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			//拳击模块的回调 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			boxingUpdateCalorie(calorie) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				if (this.currentMode != 'pkMode') { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -2529,22 +2598,28 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				if (this.currentMode == "pkMode") { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					if (this.AJData.isLeftPlayer) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						this.AJData.myScore = obj.eliminationCount - obj.faultCount; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						this.AJData.myUsageTime = this.AJData.gameLimitTime - this.AJData.perCountDown; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					} else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						this.AJData.otherScore = obj.eliminationCount - obj.faultCount; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						this.AJData.otherUsageTime = this.AJData.gameLimitTime - this.AJData.perCountDown; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				// console.log(this.AJData.myUsageTime, this.AJData.otherUsageTime); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			onActionJumpCountDownUpdate(obj) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				// console.log(obj); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				this.AJData.perCountDown = obj.countDown; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				// this.AJData.perCountDown = obj.countDown; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				if (this.currentMode == "pkMode") { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					if (this.AJData.isLeftPlayer) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						this.AJData.myUsageTime = this.AJData.gameLimitTime - this.AJData.gameCountDown; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					} else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						this.AJData.otherUsageTime = this.AJData.gameLimitTime - this.AJData.gameCountDown; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				// console.log(this.AJData.myUsageTime, this.AJData.otherUsageTime, this.AJData.gameLimitTime); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			//actionJump 模块跳关卡开始处理 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			onActionJumpPlay() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				//开始时候,设置默认参数 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				if(this.AJData.isFinish){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				if (this.AJData.isFinish) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					//如果下一局,重新设置一下默认参数 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					this.onResetDefaultActionJumpData(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				} 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -2558,7 +2633,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			//重置actionJump数据 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			onResetDefaultActionJumpData() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				this.AJData = Object.assign({},this.defaultAJData); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				this.AJData = Object.assign({}, this.defaultAJData); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			onSetActionJumpData() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				let _item = this.currentJumpTask.item; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -2593,45 +2668,82 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					} else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						this.AJData.isFinish = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						//奖励赢的人 PKLEVELREWARD 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						let _item = this.currentJumpTask.item; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						let _curFriend = this.finallySelectFriendInfo; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						console.log('this.finallySelectFriendInfo:', this.finallySelectFriendInfo); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						let isMyWin = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						//如果是右边好友,即判断结束。计算胜负关系 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						if (this.AJData.myScore > this.AJData.otherScore) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							//规定时间内,跳得最多 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							uni.showToast({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-								title: '我赢!!', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-								duration: 2000 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							// uni.showToast({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							// 	title: '我赢!!', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							// 	duration: 2000 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							// }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							isMyWin = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							//显示一个提示框 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							this.showPopup('pkFinish', { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								name: this.username, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								url: this.avatarUrl, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								score: this.AJData.myScore, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								consumeTime: Math.abs(this.AJData.myUsageTime), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								hit: this.AJData.allCount - this.AJData.faultCount, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								miss: this.AJData.faultCount 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							console.log({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								name: this.username, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								url: this.avatarUrl, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								score: this.AJData.myScore, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								consumeTime: Math.abs(this.AJData.myUsageTime), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								hit: this.AJData.allCount - this.AJData.faultCount, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								miss: this.AJData.faultCount 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						} else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							uni.showToast({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-								title: '好友赢或者平局', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-								duration: 2000 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							// uni.showToast({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							// 	title: '好友赢或者平局', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							// 	duration: 2000 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							// }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							isMyWin = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							//显示一个提示框 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							this.showPopup('pkFinish', { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								name: _curFriend.username, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								url: _curFriend.avatarUrl, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								score: this.AJData.otherScore, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								consumeTime: this.AJData.otherUsageTime, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								hit: this.AJData.allCount - this.AJData.faultCount, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								miss: this.AJData.faultCount 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						//奖励赢的人 PKLEVELREWARD 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						let _item = this.currentJumpTask.item; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						let _curFriend = this.finallySelectFriendInfo; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						console.log('this.finallySelectFriendInfo:',this.finallySelectFriendInfo); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						reqUtil 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							.requestData(config.URL.PKLEVELREWARD, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 								levelId: _item.id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 								levelType: 1, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-								isMyWin:isMyWin, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-								friendId:_curFriend.friendId 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								isMyWin: isMyWin, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								friendId: _curFriend.friendId 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							.then( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 								res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 									if (res.code == 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 										console.log('PKLEVELREWARD:' + JSON.stringify(res.data)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-										if(isMyWin){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+										this.nextTaskCanUnlock = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+										for (let i = 0; i < this.currentTaskList.length; i++) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+											if (this.currentTaskList[i].id == _item.id) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+												this.currentTaskList[i].isPassed = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+												break; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+											} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+										} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+										if (isMyWin) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 											//只有isMyWin的情况下才有这两个字段返回,更新本地金币和钻石 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 											this.setGoldAndDiamond({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 												gold: res.data.gold, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 												diamond: res.data.diamond 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 											}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 										} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 									} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 								}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 								e => { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -2702,7 +2814,16 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				this.showDrawerById(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			showPopup(type, item) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				this.showPopupById({type,item}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				this.showPopupById({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					type, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					item 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			showGuide(type, item) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				this.showGuideById({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					type, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					item 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			/** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			 * 任务相关 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -2755,7 +2876,10 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				this.switchTaskInfo(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			onPassTheLevel() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				if (this.currentMode == "pkMode") { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					this.AJData.myScore = 10; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					this.AJData.isLeftPlayer = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				this.onActionJumpGameOver({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					myWin: true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				}); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -2830,11 +2954,20 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 														} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 													} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 												} else if (res.code === 803) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-													uni.showToast({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-														title: '需要' + res.data[0].explain, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-														icon: 'none', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-														duration: 2000 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-													}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+													if (res.data.length > 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+														uni.showToast({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+															title: '需要' + res.data[0].explain, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+															icon: 'none', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+															duration: 2000 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+														}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+													} else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+														uni.showToast({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+															title: '关卡条件关联未设置', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+															icon: 'none', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+															duration: 2000 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+														}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+													} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 												} else if (res.code === 802 || res.code === 805) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 													uni.showToast({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 														title: res.msg, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -2865,10 +2998,42 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						icon: "none" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				uni.$on('guide-popup-page', (data) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					// console.log('guide-popup-page', JSON.stringify(data)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					switch (data.type) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						case 'button': 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							if (data.messageType == 'plan') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								if (data.confirm) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+									//跳转提示蓝牙 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+									this.onGetBluetoothConnectView(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							} else if (data.messageType == 'bluetoothConnect') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								if (data.confirm) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+									//跳转播放 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+									this.onGetActionJumpView(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							} else if (data.messageType == 'actionJumpPlay') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								if (data.confirm) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+									setTimeout(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+										this.showGuide('device-tip', null); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+									}, 30) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							break; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						default: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							uni.showToast({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								title: data.title, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							break; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			unregisterPopupEvent() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				uni.$off('reward-popup-page') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				uni.$off('drawer-page') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				uni.$off('guide-popup-page') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			onNavToDirection() { 
			 |