bug修改
This commit is contained in:
@@ -98,7 +98,7 @@ export struct ChangePasswordComp {
|
||||
Text('确 定')
|
||||
}
|
||||
.width('90%')
|
||||
.height(40)
|
||||
.height(53)
|
||||
.position({x:'5%',y:'80%'})
|
||||
.backgroundColor('#ffffff')
|
||||
.borderColor($r('app.color.main_color'))
|
||||
|
||||
@@ -145,7 +145,7 @@ export struct ChangePhoneComp {
|
||||
Text('确 定')
|
||||
}
|
||||
.width('90%')
|
||||
.height(48)
|
||||
.height(53)
|
||||
.borderRadius(8)
|
||||
.borderWidth(1)
|
||||
.borderColor('#8B2316')
|
||||
|
||||
@@ -196,10 +196,10 @@ export struct ForgetPasswordComp {
|
||||
.borderColor('#CCCCCC')
|
||||
|
||||
Button({type:ButtonType.Normal}){
|
||||
Text('登 录')
|
||||
Text('确 定')
|
||||
}
|
||||
.width('90%')
|
||||
.height(48)
|
||||
.height(53)
|
||||
.margin({ top: 40 })
|
||||
.borderRadius(8)
|
||||
.backgroundColor($r('app.color.main_color'))
|
||||
|
||||
@@ -3,7 +3,7 @@ import { promptAction, router } from '@kit.ArkUI'
|
||||
import { BusinessError } from '@kit.BasicServicesKit';
|
||||
import HashMap from '@ohos.util.HashMap';
|
||||
import { DataWebModel,preferenceStore ,SpecialDisease} from '@itcast/basic'
|
||||
|
||||
import { deviceInfo } from '@kit.BasicServicesKit';
|
||||
@Preview
|
||||
@Component
|
||||
export struct LoginComp {
|
||||
@@ -47,7 +47,7 @@ export struct LoginComp {
|
||||
autoCancel:false
|
||||
|
||||
})
|
||||
|
||||
osFullName: string = deviceInfo.osFullName;
|
||||
login() {
|
||||
if (this.loading) return;
|
||||
if (!this.mobile) {
|
||||
@@ -84,7 +84,7 @@ export struct LoginComp {
|
||||
this.hashMap.set('sms',this.current_code)
|
||||
this.loginUrl=BasicConstant.urlExpertAPI+'umSmsLogin'
|
||||
}
|
||||
this.hashMap.set('current_spec','hongmeng')
|
||||
this.hashMap.set('current_spec',this.osFullName)
|
||||
hdHttp.httpReq<string>(this.loginUrl,this.hashMap).then(async (res: HdResponse<string>) => {
|
||||
this.loading = false
|
||||
logger.info('Response login'+res);
|
||||
@@ -166,9 +166,11 @@ export struct LoginComp {
|
||||
HdNav({ title: '登录', showRightIcon: false,showLeftIcon:false })
|
||||
|
||||
Image($r('app.media.icon_logo'))
|
||||
.width(64)
|
||||
.width(68)
|
||||
.height(68)
|
||||
.objectFit(ImageFit.Contain)
|
||||
.margin({top:45})
|
||||
.aspectRatio(1)
|
||||
// .aspectRatio(1)
|
||||
Text('专家版')
|
||||
.fontSize(16)
|
||||
.margin({ bottom: 15,top:10 })
|
||||
@@ -218,7 +220,16 @@ export struct LoginComp {
|
||||
.margin({right:15})
|
||||
.border({ width: 1, color: $r('app.color.top_title') })
|
||||
.onClick(() => {
|
||||
|
||||
if (!this.mobile) {
|
||||
return promptAction.showToast({ message: '手机号码不为空' })
|
||||
}
|
||||
if (!ChangeUtil.isMobileNum(this.mobile)) {
|
||||
return promptAction.showToast({ message: "手机号码不正确" })
|
||||
}
|
||||
if(!ChangeUtil.isOnline())
|
||||
{
|
||||
return promptAction.showToast({ message: "网络不可用,请链接网络再试" })
|
||||
}
|
||||
if(this.istime)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user