bug修复
This commit is contained in:
parent
f649fd3480
commit
8300766e5c
@ -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)
|
||||
|
||||
@ -66,6 +66,24 @@ export struct ForgetPasswordComp {
|
||||
})
|
||||
}
|
||||
|
||||
uploadSmsAction(){
|
||||
const hashMap: HashMap<string, string> = new HashMap();
|
||||
hashMap.set('type','5');
|
||||
hashMap.set('mobile',this.phoneNumber)
|
||||
hdHttp.httpReq<string>(BasicConstant.urlExpertAPI+'smsSend',hashMap).then(async (res: HdResponse<string>) => {
|
||||
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%')
|
||||
|
||||
@ -37,7 +37,7 @@ struct CancelAccount {
|
||||
promptAction.showDialog({
|
||||
title: '温馨提示',
|
||||
message: '请您解除所有随访患者后再提交注销申请',
|
||||
buttons: [{ text: '确定', color: '#000000' }]
|
||||
buttons: [{ text: '确定', color: '#000000' }],
|
||||
})
|
||||
} else {
|
||||
this.uploadFeedBackAction();
|
||||
|
||||
@ -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();
|
||||
}})
|
||||
|
||||
@ -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)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user