关闭女性接口打印
authorCaisking <Casiking@zhihuishixun.com>
Mon, 9 Mar 2026 09:20:37 +0000 (17:20 +0800)
committerCaisking <Casiking@zhihuishixun.com>
Mon, 9 Mar 2026 09:20:37 +0000 (17:20 +0800)
code/sdk/application/wearable/fd272/nativeapp/nativeui/womenhealth/src/WomenHealthPresenter.cpp

index e44e321..39b52f0 100644 (file)
     bool WomenHealthPresenter::OnClick(UIView &view, const ClickEvent &event)
     {
        UNUSED(event);
-       WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "WomenHealthPresenter::OnClick");
+       WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "WomenHealthPresenter::OnClick");
        
        if(strcmp(view.GetViewId(), NEXT_MONTH) == 0)
        {
-           WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "点击右箭头:切换到下个月");
+           WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "点击右箭头:切换到下个月");
            WomenHealthMainPage::GetInstance()->updata_label(2);
        }
        else if(strcmp(view.GetViewId(), PREV_MONTH) == 0)
        {
-           WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "点击左箭头:切换到上个月");
+           WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "点击左箭头:切换到上个月");
            WomenHealthMainPage::GetInstance()->updata_label(1);
        }
        else if(strcmp(view.GetViewId(), EDIT) == 0)
@@ -79,7 +79,7 @@
            if (WomenHealthMainPage::GetInstance()->IsShowingCurrentMonth())
            {
                // 当前显示今天所在月份 -> 执行"编辑"功能,跳转到日期设置页面
-               WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "点击编辑按钮:跳转到经期设置页面");
+               WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "点击编辑按钮:跳转到经期设置页面");
                NativeAbility::GetInstance().SwitchPageInSlice(
                    WOMEN_HEALTH_PAGES::WOMEN_HEALTH_SETTING_PAGE,
                    nullptr,
@@ -89,7 +89,7 @@
            else
            {
                // 当前显示其他月份 -> 执行"回今天"功能
-               WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "点击回今天按钮:返回今天所在月份");
+               WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "点击回今天按钮:返回今天所在月份");
                //需要先判断界面是否存在
                if(WomenHealthMainPage::GetInstance() != nullptr)
                {
  
      bool WomenHealthPresenter::OnDragEnd(OHOS::UIView &view, const OHOS::DragEvent &event)
      {
-         WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MainCallingPresenter OnDragEnd");
+         WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MainCallingPresenter OnDragEnd");
          if (event.GetDragDirection() == DragEvent::DIRECTION_LEFT_TO_RIGHT)
          {
              if (event.GetPreLastPoint().x - event.GetStartPoint().x > 100)
  
      bool WomenHealthPresenter::OnKeyAct(UIView &view, const KeyEvent &event)
      {
-         WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AlipayPresenter::OnKeyAct");
+         WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AlipayPresenter::OnKeyAct");
          uint16 keyID = event.GetKeyId();
          uint16_t keyState = event.GetState();
          // 如果是power键就返回上一级