From 8300766e5c3f0134f6e6f2066fae2737e9bd149c Mon Sep 17 00:00:00 2001 From: xiaoxiao Date: Fri, 13 Jun 2025 16:24:54 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/ets/components/HdSearchNav.ets | 4 ++- .../src/main/ets/view/ForgetPasswordComp.ets | 30 ++++++++++++++++--- .../main/ets/pages/MinePage/CancelAccount.ets | 2 +- .../ets/pages/SearchPage/VideoSearchPage.ets | 6 ++-- .../PLVMediaPlayerSingleVideoLayout.ets | 1 + 5 files changed, 34 insertions(+), 9 deletions(-) diff --git a/commons/basic/src/main/ets/components/HdSearchNav.ets b/commons/basic/src/main/ets/components/HdSearchNav.ets index 5a2f04c..5197ff0 100644 --- a/commons/basic/src/main/ets/components/HdSearchNav.ets +++ b/commons/basic/src/main/ets/components/HdSearchNav.ets @@ -27,6 +27,8 @@ export struct HdSearchNav { rightbackColor: ResourceStr = $r('app.color.main_color') @Prop isFocus:boolean = false; + @Prop + placeholder:string = '' @State textInputContent:string = '' @@ -43,7 +45,7 @@ export struct HdSearchNav { Image($r('app.media.selected_hospital_ws')) .width(20).height(20) .margin({left:10}) - TextInput({placeholder:'搜索视频、过往会议'}) + TextInput({placeholder:this.placeholder}) .defaultFocus(this.isFocus) .fontSize(15) .backgroundColor(this.bgColor) diff --git a/features/mypage/src/main/ets/view/ForgetPasswordComp.ets b/features/mypage/src/main/ets/view/ForgetPasswordComp.ets index 68f0989..4bee8e9 100644 --- a/features/mypage/src/main/ets/view/ForgetPasswordComp.ets +++ b/features/mypage/src/main/ets/view/ForgetPasswordComp.ets @@ -66,6 +66,24 @@ export struct ForgetPasswordComp { }) } + uploadSmsAction(){ + const hashMap: HashMap = new HashMap(); + hashMap.set('type','5'); + hashMap.set('mobile',this.phoneNumber) + hdHttp.httpReq(BasicConstant.urlExpertAPI+'smsSend',hashMap).then(async (res: HdResponse) => { + let json:callBackData = JSON.parse(res+'') as callBackData; + console.log('获取验证码数据:',json); + if (json.code == 200) { + promptAction.showToast({message:'发送成功'}); + this.startCountdown(); + } else { + promptAction.showToast({message:json.message}); + } + }).catch((err: BusinessError) => { + console.info(`Response login succeeded: ${err}`); + }) + } + private startCountdown() { this.countdown = 60 const timer = setInterval(() => { @@ -134,11 +152,15 @@ export struct ForgetPasswordComp { .margin({ top: 10 }) .enabled(this.countdown === 0) .onClick(() => { - if (ChangeUtil.isMobileNum(this.phoneNumber)) { - this.startCountdown() - } else { - promptAction.showToast({message:'手机号格式错误,请重新输入'}) + if (this.phoneNumber.length < 11 || !this.phoneNumber) { + promptAction.showToast({message:'请输入手机号'}) + return } + if (!ChangeUtil.isMobileNum(this.phoneNumber)) { + promptAction.showToast({message:'手机号格式错误,请重新输入'}) + return + } + this.uploadSmsAction() }) } .width('95%') diff --git a/products/expert/src/main/ets/pages/MinePage/CancelAccount.ets b/products/expert/src/main/ets/pages/MinePage/CancelAccount.ets index 42665b7..e264e17 100644 --- a/products/expert/src/main/ets/pages/MinePage/CancelAccount.ets +++ b/products/expert/src/main/ets/pages/MinePage/CancelAccount.ets @@ -37,7 +37,7 @@ struct CancelAccount { promptAction.showDialog({ title: '温馨提示', message: '请您解除所有随访患者后再提交注销申请', - buttons: [{ text: '确定', color: '#000000' }] + buttons: [{ text: '确定', color: '#000000' }], }) } else { this.uploadFeedBackAction(); diff --git a/products/expert/src/main/ets/pages/SearchPage/VideoSearchPage.ets b/products/expert/src/main/ets/pages/SearchPage/VideoSearchPage.ets index 741e43c..68fe392 100644 --- a/products/expert/src/main/ets/pages/SearchPage/VideoSearchPage.ets +++ b/products/expert/src/main/ets/pages/SearchPage/VideoSearchPage.ets @@ -62,7 +62,7 @@ struct VideoSearchPage { } else if(this.page>1&&json.data!=null&&json.data.list!=null&&json.data.list.length>0) { this.searchVideoList.push(...json.data.list) } - if (this.page >= json.data.pageNumber) { + if (this.page >= json.data.totalPage) { this.controller.finished() } else { this.page++ @@ -108,7 +108,7 @@ struct VideoSearchPage { this.meetinglist.push(...json.data.list) } this.getPosition() - if (this.page >= json.data.pages) { + if (this.page >= json.data.totalPage) { this.controller.finished() } else { this.page++ @@ -147,7 +147,7 @@ struct VideoSearchPage { build() { Column() { - HdSearchNav({showRightText:true,rightText:'搜素',rightTextColor:Color.White,isFocus:true,rightItemAction:(value: string)=>{ + HdSearchNav({showRightText:true,rightText:'搜索',rightTextColor:Color.White,isFocus:true,placeholder:this.params.pageName === '视频'?'搜索视频':'搜索过往会议',rightItemAction:(value: string)=>{ this.inputText = value; this.onRefresh(); }}) diff --git a/scene_single_video/src/main/ets/scene/single/PLVMediaPlayerSingleVideoLayout.ets b/scene_single_video/src/main/ets/scene/single/PLVMediaPlayerSingleVideoLayout.ets index 0b84fea..38fe67f 100644 --- a/scene_single_video/src/main/ets/scene/single/PLVMediaPlayerSingleVideoLayout.ets +++ b/scene_single_video/src/main/ets/scene/single/PLVMediaPlayerSingleVideoLayout.ets @@ -76,6 +76,7 @@ export struct PLVMediaPlayerSingleVideoLayout { PLVMediaPlayerOptionEnum.ENABLE_ACCURATE_SEEK.value("1"), PLVMediaPlayerOptionEnum.SKIP_ACCURATE_SEEK_AT_START.value("1"), PLVMediaPlayerOptionEnum.START_ON_PREPARED.value("0"), + PLVMediaPlayerOptionEnum.RENDER_ON_PREPARED.value('1') ]) this.viewModel.setMediaResource(this.mediaResource) }