|
@@ -3,38 +3,35 @@
|
|
|
<!-- :title="title" @clickRight="onNavAppInfo()" -->
|
|
|
<!-- 自定义导航栏 backgroundColor="rgba(164, 136, 220, 1)" @clickRight="onSyncData" @clickRight="onTestShare"-->
|
|
|
<uni-nav-bar id="nav-bar" status-bar="true" backgroundColor="rgba(153, 150, 252, 255)"
|
|
|
- @clickLeft="showClickEvent()" title="" color="#FFFFFF" fixed="true" :border="false">
|
|
|
+ @clickLeft="showClickEvent()" title="PK模式" color="#FFFFFF" fixed="true" :border="false">
|
|
|
<view slot="left">
|
|
|
<view class=" flex align-center margin-left">
|
|
|
<image class="png-more" src="/static/more.png"></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- @clickRight="onNavFcGame()" -->
|
|
|
- <!-- <view slot="right">
|
|
|
- </view> -->
|
|
|
- </uni-nav-bar>
|
|
|
- <view style="display: flex;position: absolute;top:30rpx;right: 40rpx; z-index: 10000;">
|
|
|
- <view class=" flex flex-direction" style="color: #fff;">
|
|
|
- <view class="flex align-center">
|
|
|
- <image class="png-more" style="margin-right: 18rpx;" src="/static/personal/cDiamond.png"></image>
|
|
|
- <view>{{cDiamond}}</view>
|
|
|
- </view>
|
|
|
- <view class="flex align-center" style="margin-top: 30rpx;">
|
|
|
- <image class="png-more" style="margin-right: 18rpx;" src="/static/personal/cGold.png"></image>
|
|
|
- <view>{{cGold}}</view>
|
|
|
+ <view slot="right">
|
|
|
+ <view style="position: relative; border: 1rpx solid #FFFFFF;">
|
|
|
+ <view
|
|
|
+ style="position: absolute;top: 0;left: -155rpx;right: 0;bottom: 0;margin: auto; width: 194rpx;height: 52rpx; border-radius: 26rpx 0 0 26rpx; background-color: rgba(255,255,255,0.12);"
|
|
|
+ class="flex align-center justify-center">
|
|
|
+ <image style="width: 26rpx;height: 24rpx; margin-right: 12rpx;"
|
|
|
+ src="/static/personal/linkWhite.png"></image>
|
|
|
+ <view class="text-14px ">连接设备</view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
+ </uni-nav-bar>
|
|
|
<!-- 导航栏下面滚动区域 -->
|
|
|
<scroll-view class="scroll-class" @scroll="mainScroll" :scroll-top="scrollTop" :scroll-into-view="toView"
|
|
|
scroll-y="true" :style="{ height: scrollviewHight + 'px' }">
|
|
|
<view class="flex align-center">
|
|
|
- <view class="text-center">
|
|
|
+ <view class="justify-center">
|
|
|
<!-- 计划显示 区域 topScrollHight :style="{ height: + '100%' }"-->
|
|
|
<scroll-view scroll-y="true" style="height: 100%; width: 100%;">
|
|
|
<view class="plan-view">
|
|
|
<!-- 拳击模块 -->
|
|
|
- <view v-if="currentMode == 'pkMode'"
|
|
|
+ <view v-if="currentMode == 'pkMode' && 0 === currentModeIndex"
|
|
|
style="display: flex; flex-direction: row; height: 200rpx; margin-top: 140rpx; justify-content: space-around;align-items: center;">
|
|
|
<view>
|
|
|
<view class="cu-avatar-group" style="position: relative;">
|
|
@@ -69,9 +66,51 @@
|
|
|
|
|
|
</view>
|
|
|
|
|
|
+ <!-- pk模式下的跳绳 -->
|
|
|
+ <view v-if="currentMode == 'pkMode' && 1 === currentModeIndex" class="flex justify-around "
|
|
|
+ style="height: 180rpx; margin-top: 20rpx; ">
|
|
|
+ <view class="flex flex-direction justify-center align-center">
|
|
|
+ <view class="cu-avatar-group" style="position: relative;">
|
|
|
+ <view class="cu-avatar round xl" :class="bAiHitShake?' screen-jitter':''"
|
|
|
+ :style="[{ backgroundImage:'url('+avatarUrl+')' }]"></view>
|
|
|
+ <HitEffect ref="aiHitEffectRef"></HitEffect>
|
|
|
+ </view>
|
|
|
+ <view style="margin-top: 20rpx; width: 165rpx; "
|
|
|
+ class="text-cut text-white text-center">
|
|
|
+ {{userName}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="flex justify-center align-center ">
|
|
|
+ <LEDFont style="" :showValue='99' :size="30" color='#FFFFFF'>
|
|
|
+ </LEDFont>
|
|
|
+ <view class="text-white text-bold">:</view>
|
|
|
+ <LEDFont style="" :showValue='99' :size="30" color='#FFFFFF'>
|
|
|
+ </LEDFont>
|
|
|
+ </view>
|
|
|
+ <view class="flex flex-direction justify-center align-center">
|
|
|
+ <view class="cu-avatar-group" style="position: relative;">
|
|
|
+ <view class="cu-avatar round xl" :class="bHitShake?' screen-jitter':''"
|
|
|
+ :style="[{ backgroundImage:'url('+aiObj.avatar+')' }]"></view>
|
|
|
+ <HitEffect ref="hitEffectRef"></HitEffect>
|
|
|
+ </view>
|
|
|
+ <view style="margin-top: 20rpx; width: 165rpx;"
|
|
|
+ class="text-cut text-white text-center">
|
|
|
+ {{aiObj.name}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view
|
|
|
+ style="position: absolute;left: 0;right: 0;top: 0;bottom: 0; height: 200rpx; margin-top: 120rpx;">
|
|
|
+ <HitFistEffect ref="hitFistRef"></HitFistEffect>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
|
|
|
<!-- 圆形进度条 -->
|
|
|
- <view v-else class="qiun-charts-arcbar">
|
|
|
+ <view
|
|
|
+ v-if="(currentMode == 'pkMode' && 1 === currentModeIndex)||currentMode== 'calorieMode'"
|
|
|
+ class="qiun-charts-arcbar">
|
|
|
<!-- 进度条 -->
|
|
|
<canvas canvas-id="canvasArcbar" id="canvasArcbar" class="charts-arcbar "></canvas>
|
|
|
<!-- 图标 -->
|
|
@@ -100,11 +139,39 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view> -->
|
|
|
+
|
|
|
+ <!-- 计时器 -->
|
|
|
+ <view class="personal-fruit-container">
|
|
|
+ <arcbarCountDown style="margin-top: 200px;" ref="arcbarCountDownRef"
|
|
|
+ :show-day="false" :second="0" color="#FFFFFF"
|
|
|
+ background-color="rgba(255,255,255,0);" border-color="#007AFF"
|
|
|
+ splitorColor="#FFFFFF" />
|
|
|
+ </view>
|
|
|
+
|
|
|
+
|
|
|
<!-- 卡路里提示 -->
|
|
|
<view class="personal-fruit-container">
|
|
|
<prompt-box :calorie="planData.allCalorie"></prompt-box>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <!-- 钻石和金币部分 -->
|
|
|
+ <view class="charts-pring-bottom" style="margin-top: 34rpx;">
|
|
|
+ <view class="flex justify-center align-center"
|
|
|
+ style="height: 52rpx; width: 412rpx; background-color: rgba(255,255,255,0.11); border-radius: 12rpx;">
|
|
|
+ <view class=" flex align-center justify-center" style="color: #fff;">
|
|
|
+ <view class="flex align-center">
|
|
|
+ <image class="png-more" style="margin-right: 18rpx;"
|
|
|
+ src="/static/personal/cDiamond.png"></image>
|
|
|
+ <view>{{cDiamond}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="flex align-center" style="margin-left: 60rpx;">
|
|
|
+ <image class="png-more" style="margin-right: 18rpx;"
|
|
|
+ src="/static/personal/cGold.png"></image>
|
|
|
+ <view>{{cGold}}</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
|
|
|
<!-- 计划按钮 -->
|
|
|
<!-- <view id="projectButtonView" style="position: absolute;left: 0;top: 18px;">
|
|
@@ -136,7 +203,8 @@
|
|
|
</view>
|
|
|
|
|
|
<view id='actionJumpID' v-if="true" class="charts-pring-bottom">
|
|
|
- <action-jump ref="actionJumpRef" @onControllerPlay="onPersonalCheck"></action-jump>
|
|
|
+ <action-jump ref="actionJumpRef" @actionJumpCheck="onPersonalCheck"
|
|
|
+ @actionJumpControllerPlay="onBoxingPostControlPlay"></action-jump>
|
|
|
</view>
|
|
|
<!-- <button @tap="onTestAddLocalCalorie">11</button> -->
|
|
|
</view>
|
|
@@ -170,7 +238,7 @@
|
|
|
<view class="make-text-bPurple" style="margin-left: 10rpx;">120斤</view>
|
|
|
</view> -->
|
|
|
</view>
|
|
|
- <view class="text-xl padding">
|
|
|
+ <view class="text-xl padding text-center">
|
|
|
<view class="make-text-bPurple">
|
|
|
{{ weight }}公斤
|
|
|
<!-- <span class="text-11px text-gray "> (过重)</span> -->
|
|
@@ -400,8 +468,19 @@
|
|
|
</view>
|
|
|
</scroll-view>
|
|
|
|
|
|
+ <!-- 底部中间上滑按钮 -->
|
|
|
+ <view
|
|
|
+ style="z-index: 10; position: absolute;bottom: -10px;right: 0;left: 0; margin: auto; width: 750rpx; height: 68rpx; "
|
|
|
+ class="flex flex-direction justify-center align-center">
|
|
|
+ <image style="width: 156rpx; height: 32rpx;" src="../../../static/personal/slideUp.png" @tap="showModal"
|
|
|
+ data-target="slideUpModal"></image>
|
|
|
+ <view style="width: 100%;,height: 36rpx; background-color: #FFFFFF; color: #FFFFFF;">0</view>
|
|
|
+ </view>
|
|
|
+
|
|
|
<!-- 右下角导航栏 -->
|
|
|
<!-- <round-menu @trigger="onRoundTrigger"></round-menu> -->
|
|
|
+ <!-- 底部操作条 -->
|
|
|
+ <!-- <myTabbar style="position:fixed;bottom:0;width:100%;left:0;right:0;" ></myTabbar> -->
|
|
|
|
|
|
<!-- 侧边栏 -->
|
|
|
<sideBar ref="sideBar"></sideBar>
|
|
@@ -522,6 +601,70 @@
|
|
|
<ModalTip ref='modalTipRef' :class="modalName=='showModalTip'?' show':''" @hide="onModalTipHide"
|
|
|
@confirm="onModalTipConfirm"></ModalTip>
|
|
|
|
|
|
+ <!-- 任务栏 -->
|
|
|
+ <view class="cu-modal bottom-modal" :class="modalName=='slideUpModal'?'show':''" @tap="hideModal">
|
|
|
+ <view class="cu-dialog bg-white" style=" border-radius: 15px 15px 0 0 ;" @tap.stop="">
|
|
|
+ <view class="flex justify-center align-center" style="width: 100%; height: 60rpx;" @tap="hideModal">
|
|
|
+ <view class="text-blue make-bg-bPurple radius" style="width: 80rpx; height: 4px;"></view>
|
|
|
+ </view>
|
|
|
+ <view class="flex justify-between" style="width: 100%; padding: 34rpx 60rpx 46rpx 81rpx;">
|
|
|
+ <view class="flex align-center justify-center" >
|
|
|
+ <view class="text-16px text-bold make-text-bPurple" style="line-height: 32rpx; margin-right: 18rpx;">PK模式</view>
|
|
|
+ <image style="width: 42rpx;height: 24rpx;" src="/static/common/modal/right-arrow.png"></image>
|
|
|
+ </view>
|
|
|
+ <view>
|
|
|
+ <button class="make-bg-bPurple flex justify-center align-center" >
|
|
|
+ <view class="flex align-center justify-center" style="width: 190rpx;height: 60rpx;">
|
|
|
+ <image style="width: 24rpx;height: 22rpx; margin-right: 18rpx;"
|
|
|
+ src="/static/personal/switchWhite.png"></image>
|
|
|
+ <view class="text-14px text-white" style="line-height: 28rpx;">健身模式</view>
|
|
|
+ </view>
|
|
|
+ </button>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ <view class="my-column-cu-steps">
|
|
|
+ <view class="cu-item" :class="index>basics?'':'make-text-bPurple'"
|
|
|
+ v-for="(item,index) in basicsList" :key="index">
|
|
|
+ <!-- <text :class="'cuIcon-' + item.cuIcon"></text> -->
|
|
|
+ <image v-if="index>basics" class="my-column-cu-image"
|
|
|
+ src="../../../static/common/modal/lock.png"></image>
|
|
|
+ <image v-else class="my-column-cu-image" src="../../../static/common/modal/unLock.png"></image>
|
|
|
+ <view class="content">
|
|
|
+ <!-- 这是第一次,我家的铲屎官走了这么久。久到足足有三天!! -->
|
|
|
+ <view class="text-15px text-bold text-cut text-left "
|
|
|
+ style="margin-left: 48rpx; width: 360rpx;">
|
|
|
+ {{index+1}}. 拉伸运动拉伸运动拉伸运动拉伸运动
|
|
|
+ </view>
|
|
|
+ <view class="flex justify-start align-center" style="margin-left: 86rpx;">
|
|
|
+ <!-- 居中绘制星星样式 -->
|
|
|
+ <view class="flex align-center justify-center"
|
|
|
+ style="margin-right: 36rpx;margin-top: 4rpx;">
|
|
|
+ <image style="width: 24rpx;height: 26rpx; margin-right: 18rpx;"
|
|
|
+ src="/static/common/modal/reward.png"></image>
|
|
|
+ <view class="text-13px" style="line-height: 26rpx;">{{cDiamond}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="flex flex-direction align-center" v-for="(item, index) in 5" :key="index">
|
|
|
+ <image style="width: 34rpx;height: 32rpx;"
|
|
|
+ src="../../../static/modal/action-jump/stars.png">
|
|
|
+ </image>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="text-13px text-grey text-left" style="margin: 20rpx 20rpx 0 86rpx;">
|
|
|
+ 本关卡是为了让用户开始放松,需要在两分钟内跳100下</view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <image class="my-column-cu-right-image" src="../../../static/common/modal/medal.png"></image>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <button class="cu-btn make-bg-bPurple text-white" style="width: 604rpx;height: 88rpx;margin-bottom: 32rpx;" @tap="BasicsSteps">开始</button>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -545,6 +688,8 @@
|
|
|
import promptBox from "@/components/prompt-box/prompt-box.vue"
|
|
|
|
|
|
import roundMenu from "@/components/round-menu/round-menu.vue"
|
|
|
+ import myTabbar from "@/components/hans-tabbar/hans-tabbar.vue"
|
|
|
+
|
|
|
import codeElfGuide from '@/components/code-elf-guide/code-elf-guide.vue'
|
|
|
|
|
|
import boxingPost from "@/components/modal/boxing-post/boxing-post.vue"
|
|
@@ -566,6 +711,8 @@
|
|
|
|
|
|
import LEDFont from '@/components/LEDFont/LEDFont.vue'
|
|
|
|
|
|
+ import arcbarCountDown from '@/components/uni-count-down/uni-count-down.vue'
|
|
|
+
|
|
|
// 获取 module
|
|
|
// var testModule = uni.requireNativePlugin("MyAttitude")
|
|
|
// const modal = uni.requireNativePlugin('modal');
|
|
@@ -606,7 +753,10 @@
|
|
|
elect,
|
|
|
character,
|
|
|
fruit,
|
|
|
+
|
|
|
roundMenu,
|
|
|
+ myTabbar,
|
|
|
+
|
|
|
codeElfGuide,
|
|
|
boxingPost,
|
|
|
boxingHit,
|
|
@@ -617,7 +767,8 @@
|
|
|
keyboardListener,
|
|
|
|
|
|
actionJump,
|
|
|
- LEDFont
|
|
|
+ LEDFont,
|
|
|
+ arcbarCountDown
|
|
|
},
|
|
|
|
|
|
data() {
|
|
@@ -705,7 +856,7 @@
|
|
|
name: '匿名',
|
|
|
avatar: '/static/defaultAvatar.png'
|
|
|
},
|
|
|
- currentMode: 'calorieMode', //pkMode calorieMode
|
|
|
+ currentMode: 'pkMode', //pkMode calorieMode
|
|
|
|
|
|
bHitShake: false,
|
|
|
|
|
@@ -719,7 +870,24 @@
|
|
|
*/
|
|
|
bGetBondTesting: false,
|
|
|
|
|
|
-
|
|
|
+ basicsList: [{
|
|
|
+ cuIcon: 'usefullfill',
|
|
|
+ name: '开始',
|
|
|
+ bLock: false,
|
|
|
+ }, {
|
|
|
+ cuIcon: 'radioboxfill',
|
|
|
+ name: '等待',
|
|
|
+ bLock: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ cuIcon: 'roundclosefill',
|
|
|
+ name: '错误'
|
|
|
+ }, {
|
|
|
+ cuIcon: 'roundcheckfill',
|
|
|
+ name: '完成'
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ basics: 1,
|
|
|
};
|
|
|
},
|
|
|
onLoad() {
|
|
@@ -955,6 +1123,9 @@
|
|
|
'gCreateSandbagAlgorithm', 'gUpdateSandbagAlgorithm', 'gStartSimulateBLEUpdate',
|
|
|
'gStopSimulateBLEUpdate'
|
|
|
]),
|
|
|
+ BasicsSteps() {
|
|
|
+ this.basics = this.basics == this.basicsList.length - 1 ? 0 : this.basics + 1
|
|
|
+ },
|
|
|
onKeyDown(e) {
|
|
|
console.log(e);
|
|
|
},
|
|
@@ -1384,8 +1555,11 @@
|
|
|
//蓝牙断开连接时候
|
|
|
callbackCloseBLE() {
|
|
|
// this.$store.state.cIndex = -1;
|
|
|
- //蓝牙断开连接后,直接关闭
|
|
|
- this.$refs.boxingPostRef.onCloseDevices();
|
|
|
+
|
|
|
+ if (0 == this.currentModeIndex) {
|
|
|
+ //蓝牙断开连接后,直接关闭
|
|
|
+ this.$refs.boxingPostRef.onCloseDevices();
|
|
|
+ }
|
|
|
|
|
|
// if (!this.BLEConnectDevice) {
|
|
|
// console.log('连接蓝牙对象为空,不进行重连!');
|
|
@@ -1777,30 +1951,41 @@
|
|
|
// return;
|
|
|
// }
|
|
|
|
|
|
+ } else if (1 === this.currentModeIndex) {
|
|
|
+ //2.检测是否连接设备 || this.BLEConnectDevice.ename !== 'BT04'
|
|
|
+ if (this.cIndex == -1) {
|
|
|
+ //没有连接设备,提示去连接设备
|
|
|
+ uni.showToast({
|
|
|
+ title: '请连接蓝牙设备',
|
|
|
+ icon: 'none'
|
|
|
+ })
|
|
|
+ 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'
|
|
|
- })
|
|
|
- }
|
|
|
+ // 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;
|
|
|
- }
|
|
|
+ // this.$store.state.bGuidePages = true;
|
|
|
+ // setTimeout(() => {
|
|
|
+ // this.$refs.codeElfGuide.setCurrent(0);
|
|
|
+ // }, 0)
|
|
|
+ // this.toView = "projectButtonView";
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
|
|
|
if (0 === this.currentModeIndex) {
|
|
|
|
|
@@ -1834,13 +2019,13 @@
|
|
|
value: "3"
|
|
|
});
|
|
|
|
|
|
- setTimeout(() => {
|
|
|
- //设置加速计b:20ms a:10ms
|
|
|
- this.onWriteBLEConnectionValue({
|
|
|
- value: config.refreshRate
|
|
|
- });
|
|
|
+ // setTimeout(() => {
|
|
|
+ // //设置加速计b:20ms a:10ms
|
|
|
+ // this.onWriteBLEConnectionValue({
|
|
|
+ // value: config.refreshRate
|
|
|
+ // });
|
|
|
|
|
|
- }, 1000)
|
|
|
+ // }, 1000)
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -1853,14 +2038,19 @@
|
|
|
}
|
|
|
|
|
|
} else if (1 == this.currentModeIndex) {
|
|
|
- console.log();
|
|
|
if (this.BLEConnectDevice.usageMode == "ropeSkipping") {
|
|
|
//打开跳绳模式
|
|
|
- this.B_OpenRopeSkipping();
|
|
|
+ // this.B_OpenRopeSkipping();
|
|
|
+ this.onWriteBLEConnectionValue({
|
|
|
+ value: "3"
|
|
|
+ });
|
|
|
}
|
|
|
//监听蓝牙回调
|
|
|
uni.$on('updateBLEDeviceData', this.callbackUpdateBLEData);
|
|
|
-
|
|
|
+
|
|
|
+ //调用开始
|
|
|
+ this.$refs.actionJumpRef.onActionJumpPlay();
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
onShowBoxingHitTip() {
|
|
@@ -2099,6 +2289,14 @@
|
|
|
if (this.BLEConnectDevice.usageMode == "ropeSkipping") {
|
|
|
this.B_CloseRopeSkipping();
|
|
|
} else {
|
|
|
+ console.log("停止时候,上传卡路里");
|
|
|
+ this.$refs.boxingPostRef.onBoxingPostStop();
|
|
|
+
|
|
|
+
|
|
|
+ //停止时候,重置ai信息
|
|
|
+ this.aiObj.name = this.aiOldObj.name;
|
|
|
+ this.aiObj.avatar = this.aiOldObj.avatar;
|
|
|
+
|
|
|
//停止蓝牙加速计
|
|
|
this.onWriteBLEConnectionValue({
|
|
|
value: "4"
|
|
@@ -2106,27 +2304,22 @@
|
|
|
}
|
|
|
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
uni.$off('updateBLEDeviceData', this.callbackUpdateBLEData);
|
|
|
|
|
|
- console.log("停止时候,上传卡路里");
|
|
|
- this.$refs.boxingPostRef.onBoxingPostStop();
|
|
|
-
|
|
|
this.syncRequestEvent({
|
|
|
success: () => {
|
|
|
this.updateArcbarData();
|
|
|
}
|
|
|
});
|
|
|
|
|
|
- //停止时候,重置ai信息
|
|
|
- this.aiObj.name = this.aiOldObj.name;
|
|
|
- this.aiObj.avatar = this.aiOldObj.avatar;
|
|
|
|
|
|
} else {
|
|
|
- //如果不是,继续调用播放
|
|
|
- this.$refs.boxingPostRef.onBoxingPostPlay(true);
|
|
|
+ if (this.BLEConnectDevice.usageMode == "ropeSkipping") {
|
|
|
+ this.$refs.actionJumpRef.onActionJumpPlay();
|
|
|
+ } else {
|
|
|
+ //如果不是,继续调用播放
|
|
|
+ this.$refs.boxingPostRef.onBoxingPostPlay(true);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
},
|
|
@@ -2189,13 +2382,13 @@
|
|
|
value: "3"
|
|
|
});
|
|
|
|
|
|
- setTimeout(() => {
|
|
|
- //设置加速计b:20ms a:10ms
|
|
|
- this.onWriteBLEConnectionValue({
|
|
|
- value: config.refreshRate
|
|
|
- });
|
|
|
+ // setTimeout(() => {
|
|
|
+ // //设置加速计b:20ms a:10ms
|
|
|
+ // this.onWriteBLEConnectionValue({
|
|
|
+ // value: config.refreshRate
|
|
|
+ // });
|
|
|
|
|
|
- }, 1000)
|
|
|
+ // }, 1000)
|
|
|
}
|
|
|
|
|
|
//监听蓝牙回调
|
|
@@ -2474,7 +2667,7 @@
|
|
|
background-color: rgba(246, 243, 249, 255);
|
|
|
padding-bottom: 20rpx;
|
|
|
border-radius: 80rpx 80rpx 0 0;
|
|
|
- width: 100%;
|
|
|
+ width: 750rpx;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
|