|
@@ -1,9 +1,12 @@
|
|
|
<template>
|
|
|
- <view class="web-view">
|
|
|
+ <view>
|
|
|
<!-- :src="url" src = 'http://192.168.0.112:7456/build/index.html' :src="LocationGameUrl" -->
|
|
|
<!-- @receivedtitle="onReceivedTitle" @pagefinish="onPageFinish"-->
|
|
|
- <web-view class="web-view-child" :src="url" ref="webview" @pagestart="onPageStart"
|
|
|
- @onPostMessage="handlePostMessage" @error="onError"></web-view>
|
|
|
+ <view class="web-view">
|
|
|
+ <web-view class="web-view-child" :src="url" ref="webview" @pagestart="onPageStart"
|
|
|
+ @onPostMessage="handlePostMessage" @error="onError"></web-view>
|
|
|
+ </view>
|
|
|
+
|
|
|
<view class="web-back" @click="navBack">
|
|
|
<image style="width: 40rpx;height: 40rpx;" src="/static/gameCloseW.png"></image>
|
|
|
</view>
|
|
@@ -79,7 +82,7 @@
|
|
|
|
|
|
//拳击数据判断对象
|
|
|
EquipmentActionObj: null,
|
|
|
-
|
|
|
+
|
|
|
BLENum: 0,
|
|
|
BLEACX: 0,
|
|
|
BLEACYL: 0,
|
|
@@ -88,13 +91,13 @@
|
|
|
bGameOpenListen: false,
|
|
|
//手机陀螺仪和加速计android模块
|
|
|
bMyAttitudeListen: false,
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 跳绳相应数据
|
|
|
*/
|
|
|
//跳绳数据判断对象
|
|
|
actionJumpObj: null,
|
|
|
- BLEAccIndex:0
|
|
|
+ BLEAccIndex: 0
|
|
|
}
|
|
|
},
|
|
|
onLoad() {
|
|
@@ -206,7 +209,7 @@
|
|
|
...mapMutations(['addlocalCalorie', 'syncRequestEvent', 'onWriteBLEConnectionValue',
|
|
|
'gCreateFilterObj', 'gUpdateFilter', 'B_OpenRopeSkipping', 'B_CloseRopeSkipping',
|
|
|
'gStopSimulateBLEUpdate', 'gStartSimulateBLEUpdate', 'gUpdateSandbagAlgorithm',
|
|
|
- 'gCreateSandbagAlgorithm','onConvertDeviceData'
|
|
|
+ 'gCreateSandbagAlgorithm', 'onConvertDeviceData'
|
|
|
]),
|
|
|
navBack() {
|
|
|
|
|
@@ -1057,12 +1060,12 @@
|
|
|
this.xA = alpha * this.xA + (1 - alpha) * _ax;
|
|
|
this.yA = alpha * this.yA + (1 - alpha) * _ay;
|
|
|
this.zA = alpha * this.zA + (1 - alpha) * _az;
|
|
|
-
|
|
|
+
|
|
|
//高通滤波获取线性速度
|
|
|
let linear_acceleration_x = _ax - this.xA;
|
|
|
let linear_acceleration_y = _az - this.zA;
|
|
|
let linear_acceleration_z = _ay - this.yA;
|
|
|
-
|
|
|
+
|
|
|
let _temp = {
|
|
|
linearAcc: {
|
|
|
lAccX: linear_acceleration_x,
|
|
@@ -1112,7 +1115,6 @@
|
|
|
|
|
|
.web-view-child {
|
|
|
width: 750rpx;
|
|
|
- height: 100%;
|
|
|
flex: 1;
|
|
|
}
|
|
|
|
|
@@ -1158,7 +1160,7 @@
|
|
|
opacity: 0.5;
|
|
|
|
|
|
/* #ifndef APP-PLUS-NVUE */
|
|
|
- z-Index: 100;
|
|
|
+ /* z-Index: 999; */
|
|
|
display: flex;
|
|
|
/* #endif */
|
|
|
|