修复绑定界面无法进入主界面的bug 2083/1 2083/head 2084/target/1 2092/target/1
authorCaisking <Casiking@zhihuishixun.com>
Fri, 15 Aug 2025 04:15:23 +0000 (12:15 +0800)
committerCaisking <Casiking@zhihuishixun.com>
Fri, 15 Aug 2025 04:15:23 +0000 (12:15 +0800)
code/sdk/application/wearable/fd230/nativeapp/nativeui/rebootandshutdown/include/RebootAndShutdownModelC.h
code/sdk/application/wearable/fd230/nativeapp/nativeui/rebootandshutdown/src/RebootAndShutdownModel.cpp
code/sdk/application/wearable/fd230/nativeapp/nativeui/traing/training_card/src/TraingCardView.cpp
code/sdk/application/wearable/fd230/nativeapp/nativeui/traing/training_card/src/TrainingDataView.cpp
code/sdk/zhihui/services/ble_service/blemoder/ble_instruct_init.cpp

index 062ceb5..1fd98fa 100644 (file)
@@ -123,12 +123,29 @@ namespace OHOS
         }
     }
 
+    void HandWatchFirstTimePaired(void)
+    {
+        SendMsgToUIService(UI_HAND_WATCH_FIRST_PAIRED, 0, nullptr, 0);
+    }
+
+
+
 #ifdef __cplusplus
     extern "C"
     {
 #endif
 
 #include "input_app.h"
+
+#ifdef BLE_INSTRUCT
+    #include "bleEvent.h"
+    #include "bleInstruct.h"
+    void ble_watch_first_paired(void)
+    {
+        bleInstruct_t.hand_watch_first_time_Paired = HandWatchFirstTimePaired;
+    }
+#endif
+
 #ifdef __cplusplus
     }
 #endif
index 3e10a59..12f56af 100644 (file)
@@ -612,7 +612,7 @@ void TraingCardView ::InitView() {
   //  swipe_->HorAdd(DetailView);\r
   // swipe_->VerAdd(DetailView, UICrossView::VPage::DOWN_PAGE);\r
 \r
-  swipe_->SetHorCurrentPage(Control_Card::CONTROL); // 设置进入索引 [数据]\r
+  swipe_->SetHorCurrentPage(Control_Card::DATA); // 设置进入索引 [数据]\r
 \r
 \r
   RootView::GetInstance()->SetOnKeyActListener(presenter_);\r
index be8bfee..771f8b7 100644 (file)
@@ -66,10 +66,10 @@ bool TrainingDataView ::InitPage() {
   circleProgress->SetCenterPosition(235, 235);
   circleProgress->SetRadius(215);
   circleProgress->SetStartAngle(215);
-  circleProgress->SetEndAngle(505);
+  circleProgress->SetEndAngle(505 + 100);
   circleProgress->SetCapType(CAP_ROUND);
-  circleProgress->SetValue(0);
-  Add(circleProgress);
+  circleProgress->SetValue(100);
+
 
   // 初始化Lable
   UIResourceTextId sport_id = TraingModel::GetInstance()->GetSportEvent();
@@ -92,6 +92,8 @@ bool TrainingDataView ::InitPage() {
   Add(heartlabel);
   Add(ubpmlabel);
 
+  Add(circleProgress);
+
   return true;
 
 #if 0
index e815f57..690c28b 100644 (file)
@@ -11,6 +11,7 @@
 #include "SleepModel.h"
 #include "PlayersModel.h"
 #include "app_store.h"
+#include "rebootandshutdown/include/RebootAndShutdownModelC.h"
 
 void ble_instruct_init(void)
 {
@@ -36,4 +37,6 @@ void ble_instruct_init(void)
 
     ble_app_store_init();
 
+    ble_watch_first_paired();
+
 }
\ No newline at end of file