From f76e0da5e08a5b37b0e26bb628e5b051bade551e Mon Sep 17 00:00:00 2001 From: Caisking <3449750381@qq.com> Date: Tue, 19 Mar 2024 20:37:30 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E6=94=B9=E8=BF=9B=E5=85=A5=E6=8E=A5?= =?utf8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../fd230app/nativeui/traing/src/TraingPresenter.cpp | 8 +++----- .../nativeui/traingrecord/src/TraingRecordPresenter.cpp | 1 + 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/code/sdk/application/wearable/fd230app/nativeui/traing/src/TraingPresenter.cpp b/code/sdk/application/wearable/fd230app/nativeui/traing/src/TraingPresenter.cpp index 7a4bbc234..8cdefa245 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/traing/src/TraingPresenter.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/traing/src/TraingPresenter.cpp @@ -5,7 +5,7 @@ #include #include #include "traing/include/TraingPresenter.h" -//#include "TraingView.h" +// #include "TraingView.h" namespace OHOS { @@ -73,11 +73,9 @@ namespace OHOS { NativeAbility::GetInstance().ChangeSlice(VIEW_APPLIST); } - if (strcmp(view.GetViewId(), "Remind") == 0) + if (strcmp(view.GetViewId(), BUTTONMORE) == 0) { - // 模拟心率监测,等待20秒 - //std::this_thread::sleep_for(std::chrono::seconds(20)); - //NativeAbility::GetInstance().ChangeSlice(VIEW_TraingREMIND); + NativeAbility::GetInstance().ChangeSlice(VIEW_TRAININGMORE); } return true; } diff --git a/code/sdk/application/wearable/fd230app/nativeui/traingrecord/src/TraingRecordPresenter.cpp b/code/sdk/application/wearable/fd230app/nativeui/traingrecord/src/TraingRecordPresenter.cpp index ab838e20f..c7293dd3a 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/traingrecord/src/TraingRecordPresenter.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/traingrecord/src/TraingRecordPresenter.cpp @@ -60,5 +60,6 @@ namespace OHOS bool TraingRecordPresenter::OnClick(UIView &view, const ClickEvent &event) { + } } -- 2.17.1