Эх сурвалжийг харах

fix:问题反馈、密码重置
1. 修复问题反馈接口的日期格式不对问题
2. 修复密码重置时调用验证码的BUG

YuJing 2 сар өмнө
parent
commit
71deef8b45

+ 1 - 1
commons/basic/src/main/ets/constants/index.ets

@@ -92,7 +92,7 @@ export enum YTUserUrl {
   /**
    * @description 保存问题反馈
    */
-  SAVE_QUESTION = `/diaryApUser/saveQuestion`,
+  SAVE_QUESTION = `/diaryBack/saveQuestion`,
   /**
    * @description 注销账号
    */

+ 1 - 0
commons/basic/src/main/ets/models/LoginCollect.ets

@@ -20,6 +20,7 @@ export class LoginCollect {
 
   constructor(registerOrReset: 'register' | 'reset' | 'login') {
     this.operation = registerOrReset
+    this.isPassword = registerOrReset == 'reset' ? true : false
     const storageUUID = AppStorage.get<string>(AppStorageKeyCollect.UUID)
     if (storageUUID) {
       this.uuid = storageUUID

+ 1 - 1
commons/basic/src/main/ets/utils/FormatDate.ets

@@ -6,6 +6,6 @@ export class YTDate extends Date {
     const hours = date.getHours().toString().padStart(2, '0');
     const minutes = date.getMinutes().toString().padStart(2, '0');
     const seconds = date.getSeconds().toString().padStart(2, '0');
-    return `${year + separator + month + separator + day} ${hours}:${minutes}:${seconds}`;
+    return `${year + separator + month + separator + day}T${hours}:${minutes}:${seconds}`;
   }
 }

+ 1 - 0
features/feature/src/main/ets/components/DiaryCalendarPicker.ets

@@ -29,6 +29,7 @@ export struct DiaryCalendarPicker {
   @Require onCancel: () => void = () => {}
   // 确定
   @Require onConfirm: (date: Date) => void = () => {}
+  // yy-mm-dd
   @Require dateList: string[] = []
 
   controll?: CustomDialogController

+ 0 - 1
features/feature/src/main/ets/components/DiaryDatePicker.ets

@@ -1,4 +1,3 @@
-import { font } from "@kit.ArkUI";
 
 // 日期选择器
 @Component

+ 2 - 11
features/user/src/main/ets/pages/ChangePassword.ets

@@ -110,18 +110,9 @@ struct ChangePassWord{
               bottom: 9
             },
             click: () => {
+              // 手动同意下, 防止在重置密码时会弹出隐私协议
+              this.loginCollect.isAgreePrivacy = true
               this.loginCollect.executeLogin("common")
-              // if (!this.value) {
-              //   IBestToast.show({
-              //     type: "warning",
-              //     message: "昵称不能为空"
-              //   })
-              //   return
-              // }
-              // YTUserRequest.changeNickname(this.value, () => {
-              //   IBestToast.show({ message: '名称修改成功' })
-              //   this.showReviseName = false
-              // })
             }
 
           }).margin({ bottom: 142 })