Commit bd20dc7a authored by Sky's avatar Sky

update

parent 5963dd9e
...@@ -49,6 +49,17 @@ ...@@ -49,6 +49,17 @@
"name": "default" "name": "default"
} }
], ],
"reqPermissions": [] "reqPermissions": [
{
"reason": "get_health.data",
"usedScene": {
"ability": [
"default"
],
"when": "always"
},
"name": "harmonyos.permission.READ_HEALTH_DATA"
}
]
} }
} }
\ No newline at end of file
...@@ -28,8 +28,8 @@ ...@@ -28,8 +28,8 @@
</text> </text>
</div> </div>
<!-- 标题end --> <!-- 标题end -->
<list class="todo-wraper" ref="listDom" if="page == '3' || page == '4' || page == '5'|| page == '6'"> <swiper index="{{tabIndex}}" class="todo-wraper" if="page == '3' || page == '4' || page == '5'|| page == '6'">
<list-item class="todo-item"> <div class="todo-item">
<!-- 动作预览 --> <!-- 动作预览 -->
<div class="train-view"> <div class="train-view">
<text if="page == '3'" class="train-page-title"> <text if="page == '3'" class="train-page-title">
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
<text class="train-pape-num">{{acCnt}}/{{acTotalCnt}} <text class="train-pape-num">{{acCnt}}/{{acTotalCnt}}
</text> </text>
</div> </div>
<text class="train-view-title">{{acName}} <text class="train-view-title"> {{acName}}
</text> </text>
<div class="train-view-progress-line"> <div class="train-view-progress-line">
<div class="train-view-progress-new" style="width: {{progress}}"></div> <div class="train-view-progress-new" style="width: {{progress}}"></div>
...@@ -57,21 +57,21 @@ ...@@ -57,21 +57,21 @@
<image class="train-num-icon" src="../../common/oppo_icon_heart.png"></image> <image class="train-num-icon" src="../../common/oppo_icon_heart.png"></image>
<text if="newHeartRate != '--'" class="train-num-text">{{newHeartRate}} <text if="newHeartRate != '--'" class="train-num-text">{{newHeartRate}}
</text> </text>
<text else class="train-num-text train-num-text-no">{{newHeartRate}} <text class="train-num-text train-num-text-no" else>{{newHeartRate}}
</text> </text>
</div> </div>
<div class="train-calorie"> <div class="train-calorie">
<image class="train-num-icon" src="../../common/oppo_icon_calorie.png"></image> <image class="train-num-icon" src="../../common/oppo_icon_calorie.png"></image>
<text if="acCalorie != '--'" class="train-num-text">{{acCalorie}} <text if="acCalorie != '--'" class="train-num-text">{{acCalorie}}
</text> </text>
<text else class="train-num-text train-num-text-no">{{acCalorie}} <text class="train-num-text train-num-text-no" else>{{acCalorie}}
</text> </text>
</div> </div>
</div> </div>
</div> </div>
<!-- 动作预览end --> <!-- 动作预览end -->
</list-item> </div>
<list-item class="todo-item"> <div class="todo-item">
<!-- 已训练 --> <!-- 已训练 -->
<div class="train-view"> <div class="train-view">
<text class="train-new-title"> <text class="train-new-title">
...@@ -86,21 +86,23 @@ ...@@ -86,21 +86,23 @@
<div class="train-tool" else> <div class="train-tool" else>
<image class="train-tool-icon" if="{{isFirst == '0'}}" <image class="train-tool-icon" if="{{isFirst == '0'}}"
src="../../common/oppo_btn_previous_disabled.png"></image> src="../../common/oppo_btn_previous_disabled.png"></image>
<image class="train-tool-icon" @click="previous" <image class="train-tool-icon" @click="previous"src="../../common/oppo_btn_previous.png"
else src="../../common/oppo_btn_previous.png"></image> else></image>
<image class="train-play-icon" @click="stop" src="../../common/oppo_bun_pause.png"></image> <image class="train-play-icon" @click="stop" src="../../common/oppo_bun_pause.png"></image>
<image class="train-tool-icon" if="{{isLast == '0'}}" <image class="train-tool-icon" if="{{isLast == '0'}}"
src="../../common/oppo_btn_next_disabled.png"></image> src="../../common/oppo_btn_next_disabled.png"></image>
<image class="train-tool-icon" @click="next" else src="../../common/oppo_btn_next.png"></image> <image class="train-tool-icon" @click="next" src="../../common/oppo_btn_next.png" else></image>
</div> </div>
</div> </div>
<!-- 已训练end --> <!-- 已训练end -->
</list-item> </div>
</list> </swiper>
<!--切换圆点--> <!--切换圆点-->
<div class="select" if="page == '3' || page == '4' || page == '5' || page == '7' || page == '8'"> <div class="select" if="page == '3' || page == '4' || page == '5' || page == '7' || page == '8'">
<div class="select-item {{tabIndex == 0 ? 'select-item-active' : ''}}"></div> <div if="{{tabIndex == 0}}" class="select-item select-item-active"></div>
<div class="select-item {{tabIndex == 1 ? 'select-item-active' : ''}}"></div> <div if="{{tabIndex == 0}}" class="select-item"></div>
<div if="{{tabIndex == 1}}" class="select-item"></div>
<div if="{{tabIndex == 1}}" class="select-item select-item-active"></div>
</div> </div>
<!--切换圆点end--> <!--切换圆点end-->
<!--训练切出--> <!--训练切出-->
......
...@@ -144,16 +144,10 @@ export default { ...@@ -144,16 +144,10 @@ export default {
_this.acType = 1; _this.acType = 1;
break; break;
case "7": //暂停 case "7": //暂停
_this.$refs.listDom.scrollTo({
index: 1
});
_this.tabIndex = 1; _this.tabIndex = 1;
_this.stopFlg = true; _this.stopFlg = true;
break; break;
case "8": //继续 case "8": //继续
_this.$refs.listDom.scrollTo({
index: 0
});
_this.tabIndex = 0; _this.tabIndex = 0;
_this.countdownT = model.countdownT; _this.countdownT = model.countdownT;
_this.stopFlg = false; _this.stopFlg = false;
...@@ -344,9 +338,6 @@ export default { ...@@ -344,9 +338,6 @@ export default {
stop() { stop() {
this.isStop = true; this.isStop = true;
this.stopFlg = true; this.stopFlg = true;
this.$refs.listDom.scrollTo({
index: 1
});
this.tabIndex = 1; this.tabIndex = 1;
this.sendMsg({ this.sendMsg({
"eventFlg": "3", "eventFlg": "3",
...@@ -424,6 +415,9 @@ export default { ...@@ -424,6 +415,9 @@ export default {
this.sendFlg = false; this.sendFlg = false;
this.stopFlg = false; this.stopFlg = false;
this.heartRateList = []; this.heartRateList = [];
//取消接收手机侧第三方应用发过来的消息
FeatureAbility.unsubscribeMsg();
sensor.unsubscribeHeartRate() //取消监听心率
} }
, ,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment