From: Caisking <3449750381@qq.com> Date: Tue, 19 Mar 2024 12:37:30 +0000 (+0800) Subject: 修改进入接口 X-Git-Tag: release_V1.2.70_20241020_135402~1293^2~1 X-Git-Url: http://git.snicker.com.cn/Users/apple/Desktop/static/gitweb.css?a=commitdiff_plain;h=f76e0da5e08a5b37b0e26bb628e5b051bade551e;p=mirrors%2FFD230.git 修改进入接口 --- 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) { + } }