|
@@ -1,9 +1,9 @@
|
|
|
<template>
|
|
|
<view class="content bg-person " :class="bEFHitShake?' screen-jitter ':''">
|
|
|
- <!-- :title="title" -->
|
|
|
+ <!-- :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()"
|
|
|
- @clickRight="onNavAppInfo()" title="" color="#FFFFFF" fixed="true" :border="false">
|
|
|
+ <uni-nav-bar id="nav-bar" status-bar="true" backgroundColor="rgba(153, 150, 252, 255)"
|
|
|
+ @clickLeft="showClickEvent()" title="" 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>
|
|
@@ -11,46 +11,57 @@
|
|
|
</view>
|
|
|
<!-- @clickRight="onNavFcGame()" -->
|
|
|
<!-- <view slot="right">
|
|
|
- <view class=" flex align-center " style="margin-right: 10rpx;">
|
|
|
- <view class="text-22px-before cuIcon-game"></view>
|
|
|
- </view>
|
|
|
</view> -->
|
|
|
- <view slot="right">
|
|
|
- <view class=" flex align-center " style="margin-right: 10rpx;">
|
|
|
- <view class="text-22px-before cuIcon-info"></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>
|
|
|
</view>
|
|
|
- </uni-nav-bar>
|
|
|
+ </view>
|
|
|
<!-- 导航栏下面滚动区域 -->
|
|
|
- <scroll-view class="scroll-class" @scroll="mainScroll" :scroll-top="scrollTop" :scroll-into-view="toView" scroll-y="true"
|
|
|
- :style="{ height: scrollviewHight + 'px' }">
|
|
|
+ <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">
|
|
|
<!-- 计划显示 区域 topScrollHight :style="{ height: + '100%' }"-->
|
|
|
<scroll-view scroll-y="true" style="height: 100%; width: 100%;">
|
|
|
<view class="plan-view">
|
|
|
<!-- 拳击模块 -->
|
|
|
- <view v-if="currentMode == 'pkMode'" style="display: flex; flex-direction: row; height: 200rpx; margin-top: 140rpx; justify-content: space-around;align-items: center;">
|
|
|
+ <view v-if="currentMode == 'pkMode'"
|
|
|
+ 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;">
|
|
|
- <view class="cu-avatar round xl" :class="bAiHitShake?' screen-jitter':''" :style="[{ backgroundImage:'url('+avatarUrl+')' }]"></view>
|
|
|
+ <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">{{userName}}</view>
|
|
|
+ <view style="margin-top: 20rpx; width: 165rpx;" class="text-cut text-white">
|
|
|
+ {{userName}}</view>
|
|
|
</view>
|
|
|
|
|
|
<view>
|
|
|
- <image style="width: 104rpx; height: 42rpx ;margin-bottom: 60rpx;" src="/static/personal/pk@2x.png"></image>
|
|
|
+ <image style="width: 104rpx; height: 42rpx ;margin-bottom: 60rpx;"
|
|
|
+ src="/static/personal/pk@2x.png"></image>
|
|
|
</view>
|
|
|
<view>
|
|
|
<view class="cu-avatar-group" style="position: relative;">
|
|
|
- <view class="cu-avatar round xl" :class="bHitShake?' screen-jitter':''" :style="[{ backgroundImage:'url('+aiObj.avatar+')' }]"></view>
|
|
|
+ <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">{{aiObj.name}}</view>
|
|
|
+ <view style="margin-top: 20rpx; width: 165rpx;" class="text-cut text-white">
|
|
|
+ {{aiObj.name}}</view>
|
|
|
</view>
|
|
|
|
|
|
- <view style="position: absolute;left: 0;right: 0;top: 0;bottom: 0; height: 200rpx; margin-top: 120rpx;">
|
|
|
+ <view
|
|
|
+ style="position: absolute;left: 0;right: 0;top: 0;bottom: 0; height: 200rpx; margin-top: 120rpx;">
|
|
|
<HitFistEffect ref="hitFistRef"></HitFistEffect>
|
|
|
</view>
|
|
|
|
|
@@ -61,17 +72,20 @@
|
|
|
<view v-else class="qiun-charts-arcbar">
|
|
|
<!-- 进度条 -->
|
|
|
<canvas canvas-id="canvasArcbar" id="canvasArcbar" class="charts-arcbar "></canvas>
|
|
|
- <!-- 水果卡路里-->
|
|
|
+ <!-- 图标 -->
|
|
|
<view class="personal-fruit-container">
|
|
|
- <fruit ref="personalFruitRef" :calorie="planData.allCalorie"></fruit>
|
|
|
- </view>
|
|
|
- <!-- 卡路里提示 -->
|
|
|
- <view class="personal-fruit-container">
|
|
|
- <prompt-box :calorie="planData.allCalorie"></prompt-box>
|
|
|
+ <image style="width: 36rpx;height: 56rpx; margin-top: -100px;"
|
|
|
+ src="../../../static/modal/action-jump/arcbarJumpIcon.png"></image>
|
|
|
</view>
|
|
|
+ <!-- 水果卡路里-->
|
|
|
+ <!-- <view class="personal-fruit-container">
|
|
|
+ <fruit ref="personalFruitRef" :calorie="planData.allCalorie"></fruit>
|
|
|
+ </view> -->
|
|
|
+
|
|
|
<!-- 计划运动时间提示 -->
|
|
|
<view class="personal-fruit-container">
|
|
|
- <view style="margin-top: 130px;font-size:12px;color: #FFFFFF;">计划时间{{planData.sportTime}}分钟</view>
|
|
|
+ <LEDFont style="margin-top: 50px;" :showValue = '99' :size="66" color='#FFFFFF'></LEDFont>
|
|
|
+ <!-- <view style="margin-top: 130px;font-size:12px;color: #FFFFFF;">计划时间{{planData.sportTime}}分钟</view> -->
|
|
|
</view>
|
|
|
<!-- 计划按钮 -->
|
|
|
<!-- <view id="projectButtonView" style="position: absolute;left: 0;top: 18px;">
|
|
@@ -83,10 +97,14 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view> -->
|
|
|
+ <!-- 卡路里提示 -->
|
|
|
+ <view class="personal-fruit-container">
|
|
|
+ <prompt-box :calorie="planData.allCalorie"></prompt-box>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
|
|
|
<!-- 计划按钮 -->
|
|
|
- <view id="projectButtonView" style="position: absolute;left: 0;top: 18px;">
|
|
|
+ <!-- <view id="projectButtonView" style="position: absolute;left: 0;top: 18px;">
|
|
|
<view class="flex justify-center" style="width: 100%;">
|
|
|
<view class="charts-pring-button make-line-bPurple " :class="bPlanExpired?'breathing-lamp':''" style="background-color: #FFFFFF;"
|
|
|
@tap="openPlan">
|
|
@@ -94,24 +112,28 @@
|
|
|
<view class="text-11px">改计划</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
|
|
|
<!-- 用于定位 -->
|
|
|
<!-- <view id="boxingHitID" style="position: absolute;top: 180rpx; pointer-events: none;" ></view> -->
|
|
|
<view id="boxingHitID" v-if="currentModeIndex == 0" class="charts-pring-bottom">
|
|
|
<!-- 添加一个 ConnectBindingDevice 测试 -->
|
|
|
- <boxing-hit ref="boxingPostRef" :bUpdate="!bHide&&(ConnectBindingDevice!=null)||(cIndex!=-1 && BLEConnectDevice!=null &&
|
|
|
+ <boxing-hit ref="boxingPostRef"
|
|
|
+ :bUpdate="!bHide&&(ConnectBindingDevice!=null)||(cIndex!=-1 && BLEConnectDevice!=null &&
|
|
|
(BLEConnectDevice.deviceType == 'mySelf'||BLEConnectDevice.deviceType == 'BLEHandle' || BLEConnectDevice.deviceType == 'BLERope' ))"
|
|
|
- :showTime="localSportTime" :bRebound="BLEConnectDevice&&BLEConnectDevice.limitType == 'rebound'"
|
|
|
- @updateCalorie="boxingUpdateCalorie" @boxingPostCheck="onPersonalCheck" @shake="onScreenShake"
|
|
|
- @updateSportTime="onUpdateSportTime" @boxingGuideFinish="onBoxingGuideFinish" @boxingPostControlPlay="onBoxingPostControlPlay"
|
|
|
- @modeEvent="onModeEvent" @hitEvent="onHitEvent" @aiHitEvent="onAiHitEvent" @gameOver="onBoxingGameOver"
|
|
|
- @closeBoxingControl="onCloseBoxingHit"></boxing-hit>
|
|
|
+ :showTime="localSportTime"
|
|
|
+ :bRebound="BLEConnectDevice&&BLEConnectDevice.limitType == 'rebound'"
|
|
|
+ @updateCalorie="boxingUpdateCalorie" @boxingPostCheck="onPersonalCheck"
|
|
|
+ @shake="onScreenShake" @updateSportTime="onUpdateSportTime"
|
|
|
+ @boxingGuideFinish="onBoxingGuideFinish"
|
|
|
+ @boxingPostControlPlay="onBoxingPostControlPlay" @modeEvent="onModeEvent"
|
|
|
+ @hitEvent="onHitEvent" @aiHitEvent="onAiHitEvent" @gameOver="onBoxingGameOver"
|
|
|
+ @closeBoxingControl="onCloseBoxingHit"></boxing-hit>
|
|
|
|
|
|
</view>
|
|
|
-
|
|
|
+
|
|
|
<view id='actionJumpID' v-if="true" class="charts-pring-bottom">
|
|
|
- <action-jump ref = "actionJumpRef"></action-jump>
|
|
|
+ <action-jump ref="actionJumpRef"></action-jump>
|
|
|
</view>
|
|
|
<!-- <button @tap="onTestAddLocalCalorie">11</button> -->
|
|
|
</view>
|
|
@@ -124,15 +146,20 @@
|
|
|
<!-- <button @tap="onShowBoxingHitTip">11</button> -->
|
|
|
<!--数据展示部分 -->
|
|
|
<view class="bottom-view" style="position: relative;">
|
|
|
- <view style="position: absolute; z-index: 1; background-color: #FFFFFF; width: 100%; height: 217px; " class="flex justify-center">
|
|
|
- <view style="border: 3px solid #9797ff; width: 35px; height: 3px; border-radius: 5px; margin-top: 9px;"></view>
|
|
|
+ <view
|
|
|
+ style="position: absolute; z-index: 1; background-color: #FFFFFF; width: 100%; height: 217px; "
|
|
|
+ class="flex justify-center">
|
|
|
+ <view
|
|
|
+ style="border: 3px solid #9797ff; width: 35px; height: 3px; border-radius: 5px; margin-top: 9px;">
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<view style="height: 26px ;"></view>
|
|
|
|
|
|
<view class="card-view">
|
|
|
<view class="flex justify-between margin-top margin-left">
|
|
|
<view class="flex justify-start">
|
|
|
- <image src="/static/sync.png" class=" data-png" mode="aspectFit" @tap="onSyncData"></image>
|
|
|
+ <image src="/static/sync.png" class=" data-png" mode="aspectFit" @tap="onSyncData">
|
|
|
+ </image>
|
|
|
<view class="text-gray" style="margin-left: 10rpx;">{{ currentDate }}同步</view>
|
|
|
</view>
|
|
|
<!-- <view class="flex justify-start margin-right">
|
|
@@ -148,23 +175,29 @@
|
|
|
</view>
|
|
|
<!-- 曲线图绘制部分 -->
|
|
|
<view class="qiun-charts-area">
|
|
|
- <canvas canvas-id="canvasLineA" id="canvasLineA" class="charts-area" @touchstart.prevent="touchLineA"
|
|
|
- @touchmove.prevent="moveLineA" @touchend.prevent="touchEndLineA"></canvas>
|
|
|
+ <canvas canvas-id="canvasLineA" id="canvasLineA" class="charts-area"
|
|
|
+ @touchstart.prevent="touchLineA" @touchmove.prevent="moveLineA"
|
|
|
+ @touchend.prevent="touchEndLineA"></canvas>
|
|
|
</view>
|
|
|
<view class="bg-white qiun-charts-bottom-container">
|
|
|
<view class="avatar-bg-arrow"></view>
|
|
|
<view class="avatar-bg-personal">
|
|
|
- <image mode="aspectFit" :src="avatarUrl" style="width: 100%;height: 100%; border-radius: 45px;background-color: #000000;"></image>
|
|
|
+ <image mode="aspectFit" :src="avatarUrl"
|
|
|
+ style="width: 100%;height: 100%; border-radius: 45px;background-color: #000000;">
|
|
|
+ </image>
|
|
|
</view>
|
|
|
- <view class="qiun-charts-bottom-right" @tap.prevent="showModal" data-target="bottomModal">
|
|
|
+ <view class="qiun-charts-bottom-right" @tap.prevent="showModal"
|
|
|
+ data-target="bottomModal">
|
|
|
<image src="/static/weightEdit.png" class="png-size-34" mode="aspectFit"></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
<view class="cu-modal bottom-modal" :class="modalName == 'bottomModal' ? 'show' : ''">
|
|
|
- <view class="cu-dialog" style=" border-top-right-radius: 20rpx; border-top-left-radius: 20rpx;">
|
|
|
- <myPicker :pickerObj="pickerObj" @confirmEvent="onConfirm" @cancelEvent="hideModal"></myPicker>
|
|
|
+ <view class="cu-dialog"
|
|
|
+ style=" border-top-right-radius: 20rpx; border-top-left-radius: 20rpx;">
|
|
|
+ <myPicker :pickerObj="pickerObj" @confirmEvent="onConfirm" @cancelEvent="hideModal">
|
|
|
+ </myPicker>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
@@ -172,21 +205,31 @@
|
|
|
<!-- 累计消耗和计划 -->
|
|
|
<view class="flex margin-top-sm margin-bottom-sm justify-center">
|
|
|
<view class=" padding-sm margin-right plan-l-tip-view flex align-center">
|
|
|
- <image src="/static/middlePlant.png" class="data-png-26 margin-sm" mode="aspectFit"></image>
|
|
|
+ <image src="/static/middlePlant.png" class="data-png-26 margin-sm" mode="aspectFit">
|
|
|
+ </image>
|
|
|
<view class="flex justify-start flex-direction">
|
|
|
- <text style="text-align: start; line-height: 24px; font-weight: 400;">累计消耗</text>
|
|
|
- <view class="text-11px " style="text-align: start;font-weight: 400; line-height: 28px;">{{ planData.cumulativeCalorie }}/ka</view>
|
|
|
- <view class="text-gray" style="font-size: 10px;">始于{{ planData.startTime }}</view>
|
|
|
+ <text
|
|
|
+ style="text-align: start; line-height: 24px; font-weight: 400;">累计消耗</text>
|
|
|
+ <view class="text-11px "
|
|
|
+ style="text-align: start;font-weight: 400; line-height: 28px;">
|
|
|
+ {{ planData.cumulativeCalorie }}/ka</view>
|
|
|
+ <view class="text-gray" style="font-size: 10px;">始于{{ planData.startTime }}
|
|
|
+ </view>
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
- <view style="height: 56px; width: 1rpx;margin-top: 16px; background-color: #EEEEEE;"></view>
|
|
|
- <view class="padding-sm margin-left-xs margin-right-xl plan-r-tip-view flex align-center">
|
|
|
+ <view style="height: 56px; width: 1rpx;margin-top: 16px; background-color: #EEEEEE;">
|
|
|
+ </view>
|
|
|
+ <view
|
|
|
+ class="padding-sm margin-left-xs margin-right-xl plan-r-tip-view flex align-center">
|
|
|
|
|
|
- <image src="/static/middleDay.png" class="data-png-26 margin-sm" mode="aspectFit"></image>
|
|
|
+ <image src="/static/middleDay.png" class="data-png-26 margin-sm" mode="aspectFit">
|
|
|
+ </image>
|
|
|
<view class="flex justify-start flex-direction">
|
|
|
<text style="text-align: start; line-height: 24px;font-weight: 400;">剩余天数</text>
|
|
|
- <view class="text-11px " style="text-align: start;font-weight: 400;line-height: 28px;">{{ remainingDays }}/day</view>
|
|
|
+ <view class="text-11px "
|
|
|
+ style="text-align: start;font-weight: 400;line-height: 28px;">
|
|
|
+ {{ remainingDays }}/day</view>
|
|
|
<view class="text-gray" style="font-size: 10px;">计划天数{{ days }}</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -248,26 +291,32 @@
|
|
|
</view> -->
|
|
|
<!-- 隐藏设备处 -->
|
|
|
<view class="container-device">
|
|
|
- <view class="width-device flex align-center" v-for="(item, index) in BLEDeviceShowList" :key="index" @tap="onDevice(item, $event)"
|
|
|
- :data-index="index">
|
|
|
+ <view class="width-device flex align-center" v-for="(item, index) in BLEDeviceShowList"
|
|
|
+ :key="index" @tap="onDevice(item, $event)" :data-index="index">
|
|
|
<view style="position: relative; height: 100%;">
|
|
|
- <image :src="index == cIndex ? '/static/deviceBg.png' : '/static/deviceBg_off.png'" class="data-png-64" mode="aspectFit"></image>
|
|
|
+ <image
|
|
|
+ :src="index == cIndex ? '/static/deviceBg.png' : '/static/deviceBg_off.png'"
|
|
|
+ class="data-png-64" mode="aspectFit"></image>
|
|
|
<image :src="item.mIcon" class="data-png-add" mode="aspectFit"></image>
|
|
|
</view>
|
|
|
|
|
|
<view class="flex-sub text-center">
|
|
|
- <image :src="index == cIndex ? '/static/wifi_on.png' : '/static/wifi_off.png'" class="data-png-32" mode="aspectFit"></image>
|
|
|
+ <image :src="index == cIndex ? '/static/wifi_on.png' : '/static/wifi_off.png'"
|
|
|
+ class="data-png-32" mode="aspectFit"></image>
|
|
|
<view class="text-gray">{{ item.cname }}</view>
|
|
|
</view>
|
|
|
|
|
|
- <view style="position: absolute;right: 0;top: 0;" @tap.stop="onCloseDevice(item, $event)" :data-index="index">
|
|
|
- <image :src="index == cIndex ? '/static/d_on.png' : '/static/d_off.png'" class="data-png-26" mode="aspectFit"></image>
|
|
|
+ <view style="position: absolute;right: 0;top: 0;"
|
|
|
+ @tap.stop="onCloseDevice(item, $event)" :data-index="index">
|
|
|
+ <image :src="index == cIndex ? '/static/d_on.png' : '/static/d_off.png'"
|
|
|
+ class="data-png-26" mode="aspectFit"></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view id="addDeviceView" class="width-device flex align-center" @tap="openDeviceList">
|
|
|
<view style="position: relative;height: 100%;">
|
|
|
<image src="/static/deviceBg.png" class="data-png-64" mode="aspectFit"></image>
|
|
|
- <image src="/static/deviceAdd.png" class="data-png-add" mode="aspectFit"></image>
|
|
|
+ <image src="/static/deviceAdd.png" class="data-png-add" mode="aspectFit">
|
|
|
+ </image>
|
|
|
</view>
|
|
|
|
|
|
<view class="flex-sub text-center">
|
|
@@ -279,12 +328,15 @@
|
|
|
</view>
|
|
|
|
|
|
<!-- 游戏推荐 -->
|
|
|
- <view class="card-view" v-if="ConnectBindingDevice || (cIndex != -1 && versionCodeState&&versionCodeState.showGame && gameList.length !== 0)">
|
|
|
+ <view class="card-view"
|
|
|
+ v-if="ConnectBindingDevice || (cIndex != -1 && versionCodeState&&versionCodeState.showGame && gameList.length !== 0)">
|
|
|
<view class="text-left padding margin-xs flex justify-between">
|
|
|
<text class="text-black text-15px margin-left">游戏推荐</text>
|
|
|
- <view data-type="game" @tap="onNavToGameMore" class="flex text-center justify-center align-center margin-right">
|
|
|
+ <view data-type="game" @tap="onNavToGameMore"
|
|
|
+ class="flex text-center justify-center align-center margin-right">
|
|
|
<view class="text-gray text-11px " style=" line-height: 12px; ">查看更多</view>
|
|
|
- <image style="margin-left: 6rpx; width: 24rpx;height: 22rpx; " src="/static/right-g.png"></image>
|
|
|
+ <image style="margin-left: 6rpx; width: 24rpx;height: 22rpx; "
|
|
|
+ src="/static/right-g.png"></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="cu-item shadow">
|
|
@@ -315,12 +367,15 @@
|
|
|
<button type="primary" @click="startSyncFunc">startSyncFunc</button>
|
|
|
<button type="primary" @click="stopSyncFunc">stopSyncFunc</button> -->
|
|
|
<!-- 视频推荐 -->
|
|
|
- <view class="card-view" v-if="ConnectBindingDevice || (cIndex != -1 && versionCodeState&&versionCodeState.showVideo && videoList.length !== 0)">
|
|
|
+ <view class="card-view"
|
|
|
+ v-if="ConnectBindingDevice || (cIndex != -1 && versionCodeState&&versionCodeState.showVideo && videoList.length !== 0)">
|
|
|
<view class="text-left padding margin-xs flex justify-between">
|
|
|
<text class="text-black text-15px margin-left">视频推荐</text>
|
|
|
- <view data-type="video" @tap="onNavToGameMore" class="flex text-center justify-center align-center margin-right">
|
|
|
+ <view data-type="video" @tap="onNavToGameMore"
|
|
|
+ class="flex text-center justify-center align-center margin-right">
|
|
|
<view class="text-gray text-11px " style=" line-height: 12px; ">查看更多</view>
|
|
|
- <image style="margin-left: 6rpx; width: 24rpx;height: 22rpx; " src="/static/right-g.png"></image>
|
|
|
+ <image style="margin-left: 6rpx; width: 24rpx;height: 22rpx; "
|
|
|
+ src="/static/right-g.png"></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="cu-item shadow">
|
|
@@ -341,7 +396,7 @@
|
|
|
</scroll-view>
|
|
|
|
|
|
<!-- 右下角导航栏 -->
|
|
|
- <round-menu @trigger="onRoundTrigger"></round-menu>
|
|
|
+ <!-- <round-menu @trigger="onRoundTrigger"></round-menu> -->
|
|
|
|
|
|
<!-- 侧边栏 -->
|
|
|
<sideBar ref="sideBar"></sideBar>
|
|
@@ -361,25 +416,33 @@
|
|
|
margin-right: auto;
|
|
|
overflow: hidden;">
|
|
|
<view style="position: relative; width: 100%; height: 328rpx;">
|
|
|
- <image style="position: absolute;top: 0;left: 0; width: 100%;height: 100%;" src="../../../static/sidebar_top_bg.png"></image>
|
|
|
- <view class="flex flex-direction justify-around align-center" style="position: relative; height: 100%;">
|
|
|
+ <image style="position: absolute;top: 0;left: 0; width: 100%;height: 100%;"
|
|
|
+ src="../../../static/sidebar_top_bg.png"></image>
|
|
|
+ <view class="flex flex-direction justify-around align-center"
|
|
|
+ style="position: relative; height: 100%;">
|
|
|
<view class="text-white">已在哔嘣健身训练了</view>
|
|
|
<view class="text-white"><span style="font-size: 43px;">{{sportData.time}}</span> 分钟</view>
|
|
|
<view class="text-white">本次达标率{{sportData.percent}}%</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="flex justify-around">
|
|
|
- <view class="flex flex-direction justify-around align-center" style="position: relative; height: 162rpx;">
|
|
|
+ <view class="flex flex-direction justify-around align-center"
|
|
|
+ style="position: relative; height: 162rpx;">
|
|
|
<view class="text-grey">消耗</view>
|
|
|
- <view class="text-grey"><span style="font-size: 18px; color: #000000;">{{sportData.calorie}}</span> 卡</view>
|
|
|
+ <view class="text-grey"><span
|
|
|
+ style="font-size: 18px; color: #000000;">{{sportData.calorie}}</span> 卡</view>
|
|
|
</view>
|
|
|
- <view class="flex flex-direction justify-around align-center" style="position: relative; height: 162rpx;">
|
|
|
+ <view class="flex flex-direction justify-around align-center"
|
|
|
+ style="position: relative; height: 162rpx;">
|
|
|
<view class="text-grey">踩中</view>
|
|
|
- <view class="text-grey"><span style="font-size: 18px; color: #000000;">{{sportData.hit}}</span> 次</view>
|
|
|
+ <view class="text-grey"><span style="font-size: 18px; color: #000000;">{{sportData.hit}}</span>
|
|
|
+ 次</view>
|
|
|
</view>
|
|
|
- <view class="flex flex-direction justify-around align-center" style="position: relative; height: 162rpx;">
|
|
|
+ <view class="flex flex-direction justify-around align-center"
|
|
|
+ style="position: relative; height: 162rpx;">
|
|
|
<view class="text-grey">失误</view>
|
|
|
- <view class="text-grey"><span style="font-size: 18px; color: #000000;">{{sportData.miss}}</span> 次</view>
|
|
|
+ <view class="text-grey"><span style="font-size: 18px; color: #000000;">{{sportData.miss}}</span>
|
|
|
+ 次</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="flex flex-direction justify-around align-center margin-top-sm">
|
|
@@ -387,8 +450,8 @@
|
|
|
</view>
|
|
|
<view class="flex flex-direction justify-around align-center" style="height: 230rpx;">
|
|
|
<view class="text-black text-16px">非常优秀,继续加油!</view>
|
|
|
- <view class="flex justify-center align-center text-white make-bg-bPurple round text-16px" style="width: 300rpx;height: 80rpx;"
|
|
|
- @tap="hideModal">确定</view>
|
|
|
+ <view class="flex justify-center align-center text-white make-bg-bPurple round text-16px"
|
|
|
+ style="width: 300rpx;height: 80rpx;" @tap="hideModal">确定</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -413,17 +476,19 @@
|
|
|
</view>
|
|
|
|
|
|
<!-- 引导蒙层 bGuidePages guideCurrent-->
|
|
|
- <code-elf-guide ref="codeElfGuide" v-if="bGuidePages" @hide="guideHide" @change="onGuideChange" :current="guideCurrent"
|
|
|
- :currentMode="currentMode"></code-elf-guide>
|
|
|
+ <code-elf-guide ref="codeElfGuide" v-if="bGuidePages" @hide="guideHide" @change="onGuideChange"
|
|
|
+ :current="guideCurrent" :currentMode="currentMode"></code-elf-guide>
|
|
|
|
|
|
<!-- <view v-if="bStartBoxingPost" class="CountDownMask">
|
|
|
{{BoxingPostCountDownText}}
|
|
|
</view> -->
|
|
|
|
|
|
- <view class="cu-modal " :class="modalName=='showPlanTipModal'?'show':''" @touchmove.stop.prevent="moveBoxingHandle">
|
|
|
+ <view class="cu-modal " :class="modalName=='showPlanTipModal'?'show':''"
|
|
|
+ @touchmove.stop.prevent="moveBoxingHandle">
|
|
|
<view class="cu-bind-modal">
|
|
|
<view style="position: absolute; top: 0; left: 0; width: 100%; height:100%;">
|
|
|
- <image style="position: absolute;top: 0;left: 0; width: 100%;height: 100%;" src="/static/modelBg.png"></image>
|
|
|
+ <image style="position: absolute;top: 0;left: 0; width: 100%;height: 100%;"
|
|
|
+ src="/static/modelBg.png"></image>
|
|
|
</view>
|
|
|
<view class="flex flex-direction justify-between " style="position: relative; height: 100%;">
|
|
|
<view class="flex justify-around justify-center align-center" style="margin: 170rpx 30rpx 0 30rpx;">
|
|
@@ -431,12 +496,16 @@
|
|
|
<view class="make-text-bPurple" style=" font-size: 20px;">提示</view>
|
|
|
<view style="width: 80rpx;height: 2rpx;border-radius: 2px;background-color: #cbcdcf;"></view>
|
|
|
</view>
|
|
|
- <view class="text-16px" style="align-self: center; max-width: 200px; word-break: break-all;">{{planTip[planTipIndex]}}</view>
|
|
|
+ <view class="text-16px" style="align-self: center; max-width: 200px; word-break: break-all;">
|
|
|
+ {{planTip[planTipIndex]}}</view>
|
|
|
|
|
|
- <view class="flex justify-around align-center" style=" border-top: 1rpx solid #EEEEEE; margin-bottom: 2px;">
|
|
|
- <view class="flex justify-center align-center text-16px" style="width: 100%;height: 123rpx;" @tap="hidePlanTipModal">取消</view>
|
|
|
+ <view class="flex justify-around align-center"
|
|
|
+ style=" border-top: 1rpx solid #EEEEEE; margin-bottom: 2px;">
|
|
|
+ <view class="flex justify-center align-center text-16px" style="width: 100%;height: 123rpx;"
|
|
|
+ @tap="hidePlanTipModal">取消</view>
|
|
|
<view style="height: 123rpx;width: 1px;background-color: #EEEEEE;"></view>
|
|
|
- <view class="flex justify-center align-center text-16px" style="width: 100%;height: 123rpx;" @tap="confirmPlanTipModal">确定</view>
|
|
|
+ <view class="flex justify-center align-center text-16px" style="width: 100%;height: 123rpx;"
|
|
|
+ @tap="confirmPlanTipModal">确定</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
@@ -444,7 +513,8 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <ModalTip ref='modalTipRef' :class="modalName=='showModalTip'?' show':''" @hide="onModalTipHide" @confirm="onModalTipConfirm"></ModalTip>
|
|
|
+ <ModalTip ref='modalTipRef' :class="modalName=='showModalTip'?' show':''" @hide="onModalTipHide"
|
|
|
+ @confirm="onModalTipConfirm"></ModalTip>
|
|
|
|
|
|
</view>
|
|
|
</template>
|
|
@@ -474,7 +544,7 @@
|
|
|
import boxingPost from "@/components/modal/boxing-post/boxing-post.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"
|
|
@@ -488,6 +558,8 @@
|
|
|
|
|
|
import keyboardListener from '@/components/keyboard-listener/keyboard-listener.vue'
|
|
|
|
|
|
+ import LEDFont from '@/components/LEDFont/LEDFont.vue'
|
|
|
+
|
|
|
// 获取 module
|
|
|
// var testModule = uni.requireNativePlugin("MyAttitude")
|
|
|
// const modal = uni.requireNativePlugin('modal');
|
|
@@ -509,13 +581,16 @@
|
|
|
'signature', 'weight', 'height', 'planData', 'BLEDeviceShowList', 'BLEConnectDevice', 'bPlanExpired',
|
|
|
'bPlanFinish',
|
|
|
'bGuidePages',
|
|
|
- 'globalAcc', 'globalOri', 'DeviceBindingList', 'ConnectBindingDevice', 'cIndex', 'bNewGuide', 'localSportTime',
|
|
|
+ 'globalAcc', 'globalOri', 'DeviceBindingList', 'ConnectBindingDevice', 'cIndex', 'bNewGuide',
|
|
|
+ 'localSportTime',
|
|
|
'currentModeIndex', 'oldArcbarProCalorie', 'oldArcbarAllCalorie', 'bOpenBluetooth', 'bOpenSuccess',
|
|
|
- 'bListenAdapterStateChange', 'bConnection', 'bVerifiedConnection', 'currentInstruction', 'instructionState',
|
|
|
+ 'bListenAdapterStateChange', 'bConnection', 'bVerifiedConnection', 'currentInstruction',
|
|
|
+ 'instructionState',
|
|
|
'LocationGameUrl',
|
|
|
'bPhoneMatched',
|
|
|
'versionCodeState',
|
|
|
- 'platform'
|
|
|
+ 'platform',
|
|
|
+ 'cDiamond', 'cGold'
|
|
|
]),
|
|
|
components: {
|
|
|
uniNavBar,
|
|
@@ -534,8 +609,9 @@
|
|
|
HitFistEffect,
|
|
|
ModalTip,
|
|
|
keyboardListener,
|
|
|
-
|
|
|
- actionJump
|
|
|
+
|
|
|
+ actionJump,
|
|
|
+ LEDFont
|
|
|
},
|
|
|
|
|
|
data() {
|
|
@@ -637,6 +713,7 @@
|
|
|
*/
|
|
|
bGetBondTesting: false,
|
|
|
|
|
|
+
|
|
|
};
|
|
|
},
|
|
|
onLoad() {
|
|
@@ -644,8 +721,8 @@
|
|
|
_self = this;
|
|
|
// 圆形进度条样式
|
|
|
this.cWidthArcbar = uni.upx2px(480); //这里要与样式的宽高对应
|
|
|
- this.cHeightArcbar = uni.upx2px(580); //这里要与样式的宽高对应
|
|
|
- this.arcbarWidth = uni.upx2px(24);
|
|
|
+ this.cHeightArcbar = uni.upx2px(600); //这里要与样式的宽高对应
|
|
|
+ this.arcbarWidth = uni.upx2px(14);
|
|
|
// 体重数据样式
|
|
|
this.cWidth = uni.upx2px(750);
|
|
|
this.cHeight = uni.upx2px(300);
|
|
@@ -869,7 +946,8 @@
|
|
|
'gOnAddClientInfo', 'onWriteBLEConnectionValue',
|
|
|
'gCreateFilterObj', 'gUpdateFilter', 'B_GetBondedDevices', 'B_OpenBLESetting', 'B_OpenRopeSkipping',
|
|
|
'B_CloseRopeSkipping',
|
|
|
- 'gCreateSandbagAlgorithm', 'gUpdateSandbagAlgorithm', 'gStartSimulateBLEUpdate', 'gStopSimulateBLEUpdate'
|
|
|
+ 'gCreateSandbagAlgorithm', 'gUpdateSandbagAlgorithm', 'gStartSimulateBLEUpdate',
|
|
|
+ 'gStopSimulateBLEUpdate'
|
|
|
]),
|
|
|
onKeyDown(e) {
|
|
|
console.log(e);
|
|
@@ -1025,7 +1103,7 @@
|
|
|
canvaArcbar1 = new uCharts({
|
|
|
$this: _self,
|
|
|
canvasId: 'canvasArcbar',
|
|
|
- type: 'myArcbar',
|
|
|
+ type: 'myGradualChangeArcbar',
|
|
|
fontSize: 11,
|
|
|
legend: {
|
|
|
show: false
|
|
@@ -1038,32 +1116,32 @@
|
|
|
height: _self.cHeightArcbar,
|
|
|
dataLabel: true,
|
|
|
// Math.round(chartData.series[0].data * 100) + '%'
|
|
|
- title: {
|
|
|
- // arcbarDate: date.formatDate(_self.originalDate),
|
|
|
- name: showLCal,
|
|
|
- molecularUnit: LCalTip, //单位的分子部分
|
|
|
- denominatorUnit: showCal, //单位的分母部分
|
|
|
- unitFontSize: 11, //单位字符大小
|
|
|
- color: 'rgba(255, 255, 255, 1)',
|
|
|
- fontSize: 28,
|
|
|
- offsetX: -30,
|
|
|
- offsetY: 10
|
|
|
- },
|
|
|
- subtitle: {
|
|
|
- name: series[0].name,
|
|
|
- color: 'rgba(255, 255, 255, 1)',
|
|
|
- fontSize: 13,
|
|
|
- offsetY: -75
|
|
|
- },
|
|
|
+ // title: {
|
|
|
+ // // arcbarDate: date.formatDate(_self.originalDate),
|
|
|
+ // name: showLCal,
|
|
|
+ // molecularUnit: LCalTip, //单位的分子部分
|
|
|
+ // denominatorUnit: showCal, //单位的分母部分
|
|
|
+ // unitFontSize: 11, //单位字符大小
|
|
|
+ // color: 'rgba(255, 255, 255, 1)',
|
|
|
+ // fontSize: 28,
|
|
|
+ // offsetX: -30,
|
|
|
+ // offsetY: 10
|
|
|
+ // },
|
|
|
+ // subtitle: {
|
|
|
+ // name: series[0].name,
|
|
|
+ // color: 'rgba(255, 255, 255, 1)',
|
|
|
+ // fontSize: 13,
|
|
|
+ // offsetY: -75
|
|
|
+ // },
|
|
|
extra: {
|
|
|
arcbar: {
|
|
|
type: 'default',
|
|
|
backgroundColor: 'rgba(234, 234, 255, 1)',
|
|
|
backgroundEndColor: 'rgba(234, 234, 255, 1)',
|
|
|
- backgroundMiddle: 'rgba(158, 158, 255, 1)',
|
|
|
+ backgroundMiddle: '#9291FF', //'rgba(158, 158, 255, 1)',
|
|
|
width: _self.arcbarWidth, //圆弧的宽度
|
|
|
- lineColor: 'rgba(255, 255, 255, 1)',
|
|
|
- lineEndColor: 'rgba(233, 233, 255, 1)'
|
|
|
+ lineColor: '#51EDFE',
|
|
|
+ lineEndColor: '#F7C75D'
|
|
|
}
|
|
|
}
|
|
|
});
|
|
@@ -1105,16 +1183,17 @@
|
|
|
|
|
|
canvaArcbar1.updateData({
|
|
|
series: series,
|
|
|
- title: {
|
|
|
- //这里的文案是自定义的,不写是不变的
|
|
|
- name: showLCal,
|
|
|
- molecularUnit: LCalTip, //单位的分子部分
|
|
|
- denominatorUnit: showCal, //单位的分母部分
|
|
|
- },
|
|
|
- subtitle: {
|
|
|
- //这里的文案是自定义的,不写是不变的
|
|
|
- name: series[0].name
|
|
|
- }
|
|
|
+ // title: {
|
|
|
+ // //这里的文案是自定义的,不写是不变的
|
|
|
+ // name: showLCal,
|
|
|
+ // molecularUnit: LCalTip, //单位的分子部分
|
|
|
+ // denominatorUnit: showCal, //单位的分母部分
|
|
|
+ // }
|
|
|
+ //,
|
|
|
+ // subtitle: {
|
|
|
+ // //这里的文案是自定义的,不写是不变的
|
|
|
+ // name: series[0].name
|
|
|
+ // }
|
|
|
});
|
|
|
},
|
|
|
//没有限制下的更新表盘
|
|
@@ -1133,16 +1212,17 @@
|
|
|
|
|
|
canvaArcbar1.updateData({
|
|
|
series: series,
|
|
|
- title: {
|
|
|
- //这里的文案是自定义的,不写是不变的
|
|
|
- name: showLCal,
|
|
|
- molecularUnit: LCalTip, //单位的分子部分
|
|
|
- denominatorUnit: showCal, //单位的分母部分
|
|
|
- },
|
|
|
- subtitle: {
|
|
|
- //这里的文案是自定义的,不写是不变的
|
|
|
- name: series[0].name
|
|
|
- }
|
|
|
+ // title: {
|
|
|
+ // //这里的文案是自定义的,不写是不变的
|
|
|
+ // name: showLCal,
|
|
|
+ // molecularUnit: LCalTip, //单位的分子部分
|
|
|
+ // denominatorUnit: showCal, //单位的分母部分
|
|
|
+ // }
|
|
|
+ // ,
|
|
|
+ // subtitle: {
|
|
|
+ // //这里的文案是自定义的,不写是不变的
|
|
|
+ // name: series[0].name
|
|
|
+ // }
|
|
|
});
|
|
|
},
|
|
|
// 数据列表
|
|
@@ -1650,7 +1730,7 @@
|
|
|
url: '../../game-page/game/game?type=' + e.currentTarget.dataset.type
|
|
|
});
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
//判断是否有其他限制
|
|
|
onStartCheck() {
|
|
|
//#ifdef H5
|
|
@@ -2395,8 +2475,10 @@
|
|
|
/*样式的width和height一定要与定义的cWidth和cHeight相对应*/
|
|
|
.qiun-charts-arcbar {
|
|
|
/* padding: 20rpx 15rpx; */
|
|
|
- height: 556rpx;
|
|
|
+ /* margin-top: 60rpx; */
|
|
|
+ height: 600rpx;
|
|
|
position: relative;
|
|
|
+ width: 750rpx;
|
|
|
/* border: 1rpx solid #000000; */
|
|
|
}
|
|
|
|
|
@@ -2410,7 +2492,7 @@
|
|
|
/* bottom: 0; */
|
|
|
margin: auto;
|
|
|
width: 556upx;
|
|
|
- height: 556upx;
|
|
|
+ height: 600upx;
|
|
|
/* border: 1rpx solid #FFFFFF; */
|
|
|
}
|
|
|
|