更新
This commit is contained in:
@@ -94,7 +94,7 @@ export struct EditUserDataComp {
|
||||
if(json.code == 1 && json.expert && typeof json.expert === 'object') {
|
||||
authStore.updateUser(json.expert)
|
||||
this.arrToStringSpecialy(json.specialy);
|
||||
this.photoPath = authStore.getUser().photo;
|
||||
this.photoPath = BasicConstant.urlImage+authStore.getUser().photo;
|
||||
this.name = authStore.getUser().realName;
|
||||
this.sex = authStore.getUser().sex == 0 ? '男' : '女';
|
||||
this.birthday = authStore.getUser().birthDate;
|
||||
|
||||
@@ -240,23 +240,41 @@ export struct LoginComp {
|
||||
.onClick(() => {
|
||||
this.login()
|
||||
})
|
||||
Text(this.type)
|
||||
.fontSize(14)
|
||||
.fontColor($r('app.color.top_title'))
|
||||
.alignSelf(ItemAlign.Start)
|
||||
.onClick(() => {
|
||||
if(this.isPassLogin)
|
||||
{
|
||||
this.isPassLogin=false
|
||||
this.type='账号密码登录'
|
||||
}
|
||||
else
|
||||
{
|
||||
this.isPassLogin=true
|
||||
this.type='短信验证码登录'
|
||||
}
|
||||
Row()
|
||||
{
|
||||
Text(this.type)
|
||||
.fontSize(14)
|
||||
.fontColor($r('app.color.top_title'))
|
||||
.alignSelf(ItemAlign.Start)
|
||||
.onClick(() => {
|
||||
if(this.isPassLogin)
|
||||
{
|
||||
this.isPassLogin=false
|
||||
this.type='账号密码登录'
|
||||
}
|
||||
else
|
||||
{
|
||||
this.isPassLogin=true
|
||||
this.type='短信验证码登录'
|
||||
}
|
||||
|
||||
})
|
||||
Blank()
|
||||
if(this.isPassLogin)
|
||||
{
|
||||
Text('忘记密码?')
|
||||
.fontSize(14)
|
||||
.fontColor($r('app.color.common_gray_03'))
|
||||
.alignSelf(ItemAlign.Start)
|
||||
.onClick(() => {
|
||||
|
||||
router.pushUrl({url:'pages/MinePage/ForgetPassword'})
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
}.width('100%')
|
||||
|
||||
})
|
||||
Row() {
|
||||
Checkbox()
|
||||
.shape(CheckBoxShape.CIRCLE)
|
||||
|
||||
Reference in New Issue
Block a user