|
@@ -109,6 +109,10 @@
|
|
|
@closeBoxingControl="onCloseBoxingHit"></boxing-hit>
|
|
@closeBoxingControl="onCloseBoxingHit"></boxing-hit>
|
|
|
|
|
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+
|
|
|
|
|
+ <view id='actionJumpID' v-if="true" class="charts-pring-bottom">
|
|
|
|
|
+ <action-jump ref = "actionJumpRef"></action-jump>
|
|
|
|
|
+ </view>
|
|
|
<!-- <button @tap="onTestAddLocalCalorie">11</button> -->
|
|
<!-- <button @tap="onTestAddLocalCalorie">11</button> -->
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -470,6 +474,8 @@
|
|
|
import boxingPost from "@/components/modal/boxing-post/boxing-post.vue"
|
|
import boxingPost from "@/components/modal/boxing-post/boxing-post.vue"
|
|
|
|
|
|
|
|
import boxingHit from "@/components/modal/boxing-hit/boxing-hit.vue"
|
|
import boxingHit from "@/components/modal/boxing-hit/boxing-hit.vue"
|
|
|
|
|
+
|
|
|
|
|
+ import actionJump from "@/components/modal/action-jump/action-jump.vue"
|
|
|
|
|
|
|
|
import AccAndOri from "@/util/util-js/AccAndOri.js"
|
|
import AccAndOri from "@/util/util-js/AccAndOri.js"
|
|
|
|
|
|
|
@@ -527,7 +533,9 @@
|
|
|
HitEffect,
|
|
HitEffect,
|
|
|
HitFistEffect,
|
|
HitFistEffect,
|
|
|
ModalTip,
|
|
ModalTip,
|
|
|
- keyboardListener
|
|
|
|
|
|
|
+ keyboardListener,
|
|
|
|
|
+
|
|
|
|
|
+ actionJump
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
data() {
|
|
data() {
|
|
@@ -540,159 +548,29 @@
|
|
|
cHeightArcbar: '', //圆弧进度图
|
|
cHeightArcbar: '', //圆弧进度图
|
|
|
arcbarWidth: '', //圆弧进度图,进度条宽度,此设置可使各端宽度一致
|
|
arcbarWidth: '', //圆弧进度图,进度条宽度,此设置可使各端宽度一致
|
|
|
pixelRatio: 1,
|
|
pixelRatio: 1,
|
|
|
- textarea: '',
|
|
|
|
|
- arcbarImagePath: '/static/logo.png',
|
|
|
|
|
|
|
+ // textarea: '',
|
|
|
|
|
+ // arcbarImagePath: '/static/logo.png',
|
|
|
cWidth: '',
|
|
cWidth: '',
|
|
|
cHeight: '',
|
|
cHeight: '',
|
|
|
scrollviewHight: '',
|
|
scrollviewHight: '',
|
|
|
// 顶部区域部分
|
|
// 顶部区域部分
|
|
|
topScrollHight: '',
|
|
topScrollHight: '',
|
|
|
-
|
|
|
|
|
// 选择器
|
|
// 选择器
|
|
|
pickerObj: {},
|
|
pickerObj: {},
|
|
|
- lineAImagePath: '/static/logo.png',
|
|
|
|
|
-
|
|
|
|
|
- // value: [9999, month - 1, day - 1],
|
|
|
|
|
- visible: true,
|
|
|
|
|
- indicatorStyle: `height: ${Math.round(uni.getSystemInfoSync().screenWidth / (750 / 100))}px;`,
|
|
|
|
|
-
|
|
|
|
|
|
|
+ // lineAImagePath: '/static/logo.png',
|
|
|
|
|
+ // visible: true,
|
|
|
|
|
+ // indicatorStyle: `height: ${Math.round(uni.getSystemInfoSync().screenWidth / (750 / 100))}px;`,
|
|
|
//设备列表
|
|
//设备列表
|
|
|
deviceList: [{
|
|
deviceList: [{
|
|
|
name: '蹦床',
|
|
name: '蹦床',
|
|
|
icon: '/static/trampoline.png'
|
|
icon: '/static/trampoline.png'
|
|
|
}],
|
|
}],
|
|
|
-
|
|
|
|
|
- //体重列表
|
|
|
|
|
- weightLigt: [],
|
|
|
|
|
-
|
|
|
|
|
- // cIndex: -1,
|
|
|
|
|
cState: 1,
|
|
cState: 1,
|
|
|
-
|
|
|
|
|
//游戏列表
|
|
//游戏列表
|
|
|
gameList: [],
|
|
gameList: [],
|
|
|
-
|
|
|
|
|
//视频列表,现在视频是和游戏一起管理
|
|
//视频列表,现在视频是和游戏一起管理
|
|
|
videoList: [],
|
|
videoList: [],
|
|
|
-
|
|
|
|
|
- //运动模式
|
|
|
|
|
- planModeList: [{
|
|
|
|
|
- id: 0,
|
|
|
|
|
- image: '/static/plan-ranzhi.png',
|
|
|
|
|
- name: '燃脂模式'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- id: 1,
|
|
|
|
|
- image: '/static/plan-qixing.png',
|
|
|
|
|
- name: '骑行模式'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- id: 2,
|
|
|
|
|
- image: '/static/plan-jianfei.png',
|
|
|
|
|
- name: '减肥塑身'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- id: 3,
|
|
|
|
|
- image: '/static/plan-youyang.png',
|
|
|
|
|
- name: '有氧恢复'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- id: 4,
|
|
|
|
|
- image: '/static/plan-saidao.png',
|
|
|
|
|
- name: '赛道模式'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- id: 5,
|
|
|
|
|
- image: '/static/plan-shandi.png',
|
|
|
|
|
- name: '山地模式'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- id: 6,
|
|
|
|
|
- image: '/static/plan-dianbo.png',
|
|
|
|
|
- name: '颠簸模式'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- id: 7,
|
|
|
|
|
- image: '/static/plan-yueye.png',
|
|
|
|
|
- name: '越野模式'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- id: 8,
|
|
|
|
|
- image: '/static/plan-jianxie.png',
|
|
|
|
|
- name: '间歇模式'
|
|
|
|
|
- }
|
|
|
|
|
- ],
|
|
|
|
|
- planModeSelectId: 7,
|
|
|
|
|
- planModeSelectName: '越野模式',
|
|
|
|
|
- planModeSelectIcon: '/static/plan-yueye.png',
|
|
|
|
|
-
|
|
|
|
|
- showPlanMode: true,
|
|
|
|
|
-
|
|
|
|
|
- showRunMode: true,
|
|
|
|
|
- showPlayMode: true,
|
|
|
|
|
-
|
|
|
|
|
- // 模式名称
|
|
|
|
|
- modelList: [{
|
|
|
|
|
- id: 0,
|
|
|
|
|
- name: '拳击模式'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- id: 1,
|
|
|
|
|
- name: '心电图模式'
|
|
|
|
|
- }
|
|
|
|
|
- ],
|
|
|
|
|
-
|
|
|
|
|
- //新增心电图部分
|
|
|
|
|
- //步骤点
|
|
|
|
|
- basicsList: [{
|
|
|
|
|
- cuIcon: 'radioboxfill',
|
|
|
|
|
- name: '1'
|
|
|
|
|
- }, {
|
|
|
|
|
- cuIcon: 'radioboxfill',
|
|
|
|
|
- name: '2'
|
|
|
|
|
- }, {
|
|
|
|
|
- cuIcon: 'radioboxfill',
|
|
|
|
|
- name: '3'
|
|
|
|
|
- }, {
|
|
|
|
|
- cuIcon: 'radioboxfill',
|
|
|
|
|
- name: '4'
|
|
|
|
|
- }, {
|
|
|
|
|
- cuIcon: 'radioboxfill',
|
|
|
|
|
- name: '5'
|
|
|
|
|
- }, {
|
|
|
|
|
- cuIcon: 'radioboxfill',
|
|
|
|
|
- name: '6'
|
|
|
|
|
- }, {
|
|
|
|
|
- cuIcon: 'radioboxfill',
|
|
|
|
|
- name: '7'
|
|
|
|
|
- }],
|
|
|
|
|
- basics: 0,
|
|
|
|
|
- // 默认不运行
|
|
|
|
|
- bElectRun: false,
|
|
|
|
|
- // 是否是第一运行
|
|
|
|
|
- bFirstRun: true,
|
|
|
|
|
- //心电图定义,数据
|
|
|
|
|
- electro: {
|
|
|
|
|
- oldData: [], //心电图旧的数据
|
|
|
|
|
- oldLine: {},
|
|
|
|
|
- bCanDelete: false,
|
|
|
|
|
- mValue: 60, //绘制时候中间值的数据
|
|
|
|
|
- curCount: 6,
|
|
|
|
|
- dataLenght: 6,
|
|
|
|
|
- curElectData: null,
|
|
|
|
|
- duration: 2000, //整个心电图运行的时间
|
|
|
|
|
- speed: 100, //心电图运行的速度,执行setInterval的间隔
|
|
|
|
|
- frequencyTime: 20, //_self.electro.frequencyTime*_self.electro.speed 心电图生成的频率间隔
|
|
|
|
|
-
|
|
|
|
|
- type: [{
|
|
|
|
|
- data: [10, -20, 80, -70, 10, -10],
|
|
|
|
|
- name: "心电图形状1",
|
|
|
|
|
- }, {
|
|
|
|
|
- data: [-30, 80, -70, 10, -5, 5],
|
|
|
|
|
- name: "心电图形状2"
|
|
|
|
|
- }]
|
|
|
|
|
- },
|
|
|
|
|
- bCanDelete: false,
|
|
|
|
|
-
|
|
|
|
|
|
|
+ //运动数据
|
|
|
sportData: {
|
|
sportData: {
|
|
|
calorie: 0,
|
|
calorie: 0,
|
|
|
hit: 0,
|
|
hit: 0,
|
|
@@ -702,22 +580,6 @@
|
|
|
allData: 0
|
|
allData: 0
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- //里程
|
|
|
|
|
- currMileage: 0,
|
|
|
|
|
- // 计算速度的临时里程
|
|
|
|
|
- tempMileage: 0,
|
|
|
|
|
- // 速度
|
|
|
|
|
- currSpeed: 0,
|
|
|
|
|
-
|
|
|
|
|
- // 心电图 的图片地址
|
|
|
|
|
- electUrl: '',
|
|
|
|
|
-
|
|
|
|
|
- // 心电图部分图片切换
|
|
|
|
|
- bRoundJump: true,
|
|
|
|
|
- bVolume: true,
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
//设置滚动栏高度
|
|
//设置滚动栏高度
|
|
|
scrollTop: 0,
|
|
scrollTop: 0,
|
|
|
//scroll view 跳转到对应的组件上
|
|
//scroll view 跳转到对应的组件上
|
|
@@ -751,8 +613,6 @@
|
|
|
'您今天的目标还没完成,是否结束训练.'
|
|
'您今天的目标还没完成,是否结束训练.'
|
|
|
],
|
|
],
|
|
|
planTipIndex: 0,
|
|
planTipIndex: 0,
|
|
|
- //蓝牙对象
|
|
|
|
|
- BLERSSIInterval: null,
|
|
|
|
|
|
|
|
|
|
//匹配的ai信息
|
|
//匹配的ai信息
|
|
|
aiObj: {
|
|
aiObj: {
|
|
@@ -929,24 +789,24 @@
|
|
|
this.bLimitReconnection = false;
|
|
this.bLimitReconnection = false;
|
|
|
|
|
|
|
|
//测试环境检测,给个modal提示 active
|
|
//测试环境检测,给个modal提示 active
|
|
|
- if (config.active == 'dev') {
|
|
|
|
|
- function thanDate(date2) {
|
|
|
|
|
- var oDate1 = new Date();
|
|
|
|
|
- console.log("检测日期", oDate1);
|
|
|
|
|
- var oDate2 = new Date(date2);
|
|
|
|
|
- if (oDate1.getTime() > oDate2.getTime()) {
|
|
|
|
|
- return true;
|
|
|
|
|
- } else {
|
|
|
|
|
- return false;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- if (thanDate('2021-05-31 13:10:36')) {
|
|
|
|
|
- uni.showModal({
|
|
|
|
|
- title: "提示",
|
|
|
|
|
- content: "此版本为测试版本,有需要请和开发者联系。微信 sweetdontcry"
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // if (config.active == 'dev') {
|
|
|
|
|
+ // function thanDate(date2) {
|
|
|
|
|
+ // var oDate1 = new Date();
|
|
|
|
|
+ // console.log("检测日期", oDate1);
|
|
|
|
|
+ // var oDate2 = new Date(date2);
|
|
|
|
|
+ // if (oDate1.getTime() > oDate2.getTime()) {
|
|
|
|
|
+ // return true;
|
|
|
|
|
+ // } else {
|
|
|
|
|
+ // return false;
|
|
|
|
|
+ // }
|
|
|
|
|
+ // }
|
|
|
|
|
+ // if (thanDate('2021-05-31 13:10:36')) {
|
|
|
|
|
+ // uni.showModal({
|
|
|
|
|
+ // title: "提示",
|
|
|
|
|
+ // content: "此版本为测试版本,有需要请和开发者联系。微信 sweetdontcry"
|
|
|
|
|
+ // })
|
|
|
|
|
+ // }
|
|
|
|
|
+ // }
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
onReady() {
|
|
onReady() {
|
|
@@ -994,7 +854,6 @@
|
|
|
onHide() {
|
|
onHide() {
|
|
|
_self.bHide = true;
|
|
_self.bHide = true;
|
|
|
console.log("personal ******* onHide *******");
|
|
console.log("personal ******* onHide *******");
|
|
|
- _self.bElectRun = false;
|
|
|
|
|
//时间暂停 ,隐藏了 需要判断是否为空
|
|
//时间暂停 ,隐藏了 需要判断是否为空
|
|
|
if (_self.$refs.countDownObj)
|
|
if (_self.$refs.countDownObj)
|
|
|
_self.$refs.countDownObj.timePause('pause');
|
|
_self.$refs.countDownObj.timePause('pause');
|
|
@@ -1128,7 +987,6 @@
|
|
|
let _add = (10 * 1.875) / (4 * 30);
|
|
let _add = (10 * 1.875) / (4 * 30);
|
|
|
console.log(_add);
|
|
console.log(_add);
|
|
|
this.onUpdateCaloriePlane(10);
|
|
this.onUpdateCaloriePlane(10);
|
|
|
- // this.onDeleteOnce();
|
|
|
|
|
},
|
|
},
|
|
|
// 进度条数据
|
|
// 进度条数据
|
|
|
arcbarData(_planData) {
|
|
arcbarData(_planData) {
|
|
@@ -1792,39 +1650,7 @@
|
|
|
url: '../../game-page/game/game?type=' + e.currentTarget.dataset.type
|
|
url: '../../game-page/game/game?type=' + e.currentTarget.dataset.type
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
- onChooseMode(item) {
|
|
|
|
|
- console.log(item);
|
|
|
|
|
- this.planModeSelectId = item.id;
|
|
|
|
|
- this.planModeSelectName = item.name;
|
|
|
|
|
- this.planModeSelectIcon = item.image;
|
|
|
|
|
- },
|
|
|
|
|
- changeRunMode() {
|
|
|
|
|
- this.showRunMode = !this.showRunMode;
|
|
|
|
|
- },
|
|
|
|
|
- changePlayMode() {
|
|
|
|
|
- this.showPlayMode = !this.showPlayMode;
|
|
|
|
|
- },
|
|
|
|
|
- //操作心电图
|
|
|
|
|
- onSetBasics(index) {
|
|
|
|
|
- // if (!this.bElectRun) return;
|
|
|
|
|
- this.basics = index;
|
|
|
|
|
-
|
|
|
|
|
- this.electro.duration = 2000 - (this.basics + 1) * 150;
|
|
|
|
|
- this.$refs.electRef.changeDuration(this.electro.duration);
|
|
|
|
|
-
|
|
|
|
|
- },
|
|
|
|
|
- onElect(direRight) {
|
|
|
|
|
- // if (!this.bElectRun) return;
|
|
|
|
|
- if (direRight) {
|
|
|
|
|
- this.basics = this.basics == this.basicsList.length - 1 ? 0 : this.basics + 1;
|
|
|
|
|
- } else {
|
|
|
|
|
- this.basics = this.basics == 0 ? 6 : this.basics - 1;
|
|
|
|
|
- }
|
|
|
|
|
- this.electro.duration = 2000 - (this.basics + 1) * 150;
|
|
|
|
|
- this.$refs.electRef.changeDuration(this.electro.duration);
|
|
|
|
|
-
|
|
|
|
|
- },
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
//判断是否有其他限制
|
|
//判断是否有其他限制
|
|
|
onStartCheck() {
|
|
onStartCheck() {
|
|
|
//#ifdef H5
|
|
//#ifdef H5
|
|
@@ -2029,126 +1855,6 @@
|
|
|
this.setLocalSportTime(res);
|
|
this.setLocalSportTime(res);
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- //运行心电图
|
|
|
|
|
- onPauseElect() {
|
|
|
|
|
- //1.检测一下计划日期
|
|
|
|
|
- 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'
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- this.$store.state.bGuidePages = true;
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- this.$refs.codeElfGuide.setCurrent(0);
|
|
|
|
|
- }, 0)
|
|
|
|
|
- this.toView = "projectButtonView";
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
- //2.检测是否有设备
|
|
|
|
|
- // if (this.BLEDeviceShowList.length == 0) {
|
|
|
|
|
- // this.$store.state.bGuidePages = true;
|
|
|
|
|
- // this.guideCurrent = 1;
|
|
|
|
|
- // this.toView = "addDeviceView";
|
|
|
|
|
- // return;
|
|
|
|
|
- // }
|
|
|
|
|
- //2.检测是否连接设备
|
|
|
|
|
- //隐藏功能
|
|
|
|
|
- // if (this.cIndex == -1) {
|
|
|
|
|
- // //没有连接设备,提示去连接设备
|
|
|
|
|
-
|
|
|
|
|
- // uni.showModal({
|
|
|
|
|
- // title: '提示',
|
|
|
|
|
- // content: '还没有连接设备,是否跳转到设备处?',
|
|
|
|
|
- // success: (res) => {
|
|
|
|
|
- // if (res.confirm) {
|
|
|
|
|
- // this.toView = "addDeviceView";
|
|
|
|
|
- // }
|
|
|
|
|
- // }
|
|
|
|
|
- // })
|
|
|
|
|
- // return;
|
|
|
|
|
- // }
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- // 如果是第一次运行,设置最低速度
|
|
|
|
|
- if (this.bFirstRun) {
|
|
|
|
|
- this.bFirstRun = false;
|
|
|
|
|
- this.onSetBasics(0);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- if (this.bElectRun) {
|
|
|
|
|
- if (sportSpeedInterval) {
|
|
|
|
|
- clearInterval(sportSpeedInterval);
|
|
|
|
|
- sportSpeedInterval = null;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- this.bElectRun = false;
|
|
|
|
|
- //时间暂停
|
|
|
|
|
- this.$refs.countDownObj.timePause('pause');
|
|
|
|
|
- this.$refs.electRef.pausedElect();
|
|
|
|
|
- } else {
|
|
|
|
|
- this.bElectRun = true;
|
|
|
|
|
-
|
|
|
|
|
- sportSpeedInterval = setInterval(() => {
|
|
|
|
|
- // 每秒检测,相当于m/s
|
|
|
|
|
- this.currSpeed = this.tempMileage;
|
|
|
|
|
- // 累计跑了多远
|
|
|
|
|
- this.currMileage += this.tempMileage;
|
|
|
|
|
- this.tempMileage = 0;
|
|
|
|
|
- }, 1000);
|
|
|
|
|
-
|
|
|
|
|
- //时间暂停
|
|
|
|
|
- this.$refs.countDownObj.timePlay('play');
|
|
|
|
|
- this.$refs.electRef.playElect(true);
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- //播放跳的动画
|
|
|
|
|
- this.modalName = "jumpAnimation";
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- this.modalName = null;
|
|
|
|
|
- }, 4000)
|
|
|
|
|
-
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
-
|
|
|
|
|
- BasicsSteps() {
|
|
|
|
|
- this.basics = this.basics == this.basicsList.length - 1 ? 0 : this.basics + 1;
|
|
|
|
|
-
|
|
|
|
|
- },
|
|
|
|
|
- //计划时间到, 心电图运行处理这里流程
|
|
|
|
|
- onEndElect() {
|
|
|
|
|
-
|
|
|
|
|
- clearInterval(sportSpeedInterval);
|
|
|
|
|
- this.$refs.electRef.pausedElect(true);
|
|
|
|
|
- this.bElectRun = false;
|
|
|
|
|
- this.bFirstRun = true;
|
|
|
|
|
- this.modalName = "sportCompletion";
|
|
|
|
|
- this.sportData.time = this.planData.sportTime;
|
|
|
|
|
- // 1. 计算miss 的个数
|
|
|
|
|
- // this.sportData.miss = this.sportData.allData - this.sportData.hit;
|
|
|
|
|
-
|
|
|
|
|
- // 1.计算 总量
|
|
|
|
|
- this.sportData.allData = this.sportData.miss + this.sportData.hit;
|
|
|
|
|
- // 2. 计算击中 的个数
|
|
|
|
|
- if (this.sportData.hit != 0) {
|
|
|
|
|
- let num = this.sportData.hit / this.sportData.allData;
|
|
|
|
|
- this.sportData.percent = num.toFixed(2) * 100;
|
|
|
|
|
- }
|
|
|
|
|
- //TODO 运动的卡路里暂时是*10 57公斤(125磅) 300大卡 30分钟
|
|
|
|
|
- //大概 跳的次数 /2
|
|
|
|
|
- let hitCalorie = this.sportData.hit / 2;
|
|
|
|
|
- this.sportData.calorie = hitCalorie.toFixed(0);
|
|
|
|
|
-
|
|
|
|
|
- this.onUpdateCaloriePlane(this.sportData.calorie);
|
|
|
|
|
-
|
|
|
|
|
- },
|
|
|
|
|
//更新运动数据
|
|
//更新运动数据
|
|
|
onUpdateCaloriePlane(data) {
|
|
onUpdateCaloriePlane(data) {
|
|
|
|
|
|
|
@@ -2158,32 +1864,6 @@
|
|
|
this.updateArcbarData();
|
|
this.updateArcbarData();
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- //跳中心电图部分
|
|
|
|
|
- onDeleteOnce() {
|
|
|
|
|
- if (this.bElectRun) {
|
|
|
|
|
- this.$refs.electRef.jumpElect();
|
|
|
|
|
- this.tempMileage++;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- },
|
|
|
|
|
-
|
|
|
|
|
- onSetVolume() {
|
|
|
|
|
- if (this.bVolume) {
|
|
|
|
|
- this.bVolume = false;
|
|
|
|
|
- this.$refs.electRef.setVolume(0);
|
|
|
|
|
- } else {
|
|
|
|
|
- this.bVolume = true;
|
|
|
|
|
- this.$refs.electRef.setVolume(1);
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
-
|
|
|
|
|
- onMiss() {
|
|
|
|
|
- this.sportData.miss++;
|
|
|
|
|
- },
|
|
|
|
|
- onAdd() {
|
|
|
|
|
- this.sportData.hit++;
|
|
|
|
|
- },
|
|
|
|
|
-
|
|
|
|
|
onRoundTrigger(data) {
|
|
onRoundTrigger(data) {
|
|
|
// console.log("onRoundTrigger==", data);
|
|
// console.log("onRoundTrigger==", data);
|
|
|
// return;
|
|
// return;
|