Showing
3 changed files
with
5 additions
and
5 deletions
| @@ -21,7 +21,7 @@ export default struct MinePageUserSimpleInfoUI { | @@ -21,7 +21,7 @@ export default struct MinePageUserSimpleInfoUI { | ||
| 21 | ///已登录状态,先获取本地数据 | 21 | ///已登录状态,先获取本地数据 |
| 22 | this.userName = SPHelper.default.getSync(SpConstants.USER_NAME,"") as string | 22 | this.userName = SPHelper.default.getSync(SpConstants.USER_NAME,"") as string |
| 23 | this.headPhotoUrl = SPHelper.default.getSync(SpConstants.USER_HEAD_PHOTO_URL,"") as string | 23 | this.headPhotoUrl = SPHelper.default.getSync(SpConstants.USER_HEAD_PHOTO_URL,"") as string |
| 24 | - | 24 | + this.userType = SPHelper.default.getSync(SpConstants.USER_Type,"") as string |
| 25 | this.getUserInfo() | 25 | this.getUserInfo() |
| 26 | }else{ | 26 | }else{ |
| 27 | this.headPhotoUrl = "" | 27 | this.headPhotoUrl = "" |
| @@ -33,8 +33,8 @@ export default struct MinePageUserSimpleInfoUI { | @@ -33,8 +33,8 @@ export default struct MinePageUserSimpleInfoUI { | ||
| 33 | Row(){ | 33 | Row(){ |
| 34 | //头像 | 34 | //头像 |
| 35 | Stack(){ | 35 | Stack(){ |
| 36 | - Image(this.headPhotoUrl==""?$r('app.media.default_head'):this.headPhotoUrl) | ||
| 37 | - .alt($r('app.media.default_head')) | 36 | + Image(this.headPhotoUrl) |
| 37 | + .alt(this.userType === '1'?$r('app.media.default_head'):$r('app.media.AccountOwner_DefaultIcon')) | ||
| 38 | .width(`${this.calcHeight(100)}lpx`) | 38 | .width(`${this.calcHeight(100)}lpx`) |
| 39 | .height(`${this.calcHeight(100)}lpx`) | 39 | .height(`${this.calcHeight(100)}lpx`) |
| 40 | .objectFit(ImageFit.Cover) | 40 | .objectFit(ImageFit.Cover) |
| @@ -37,7 +37,7 @@ export struct AppointmentListUI { | @@ -37,7 +37,7 @@ export struct AppointmentListUI { | ||
| 37 | if (this.isGetRequest == true) { | 37 | if (this.isGetRequest == true) { |
| 38 | if(this.isConnectNetwork){ | 38 | if(this.isConnectNetwork){ |
| 39 | EmptyComponent({ emptyType: 10 }) | 39 | EmptyComponent({ emptyType: 10 }) |
| 40 | - .height('100%') | 40 | + .height('80%') |
| 41 | .width('100%') | 41 | .width('100%') |
| 42 | }else{ | 42 | }else{ |
| 43 | EmptyComponent({ emptyType: 1,emptyHeight:"100%" ,retry: () => { | 43 | EmptyComponent({ emptyType: 1,emptyHeight:"100%" ,retry: () => { |
| @@ -129,7 +129,7 @@ export struct EmptyComponent { | @@ -129,7 +129,7 @@ export struct EmptyComponent { | ||
| 129 | .fontWeight(FontWeight.Normal) | 129 | .fontWeight(FontWeight.Normal) |
| 130 | .opacity(this.TEXT_OPACITY) | 130 | .opacity(this.TEXT_OPACITY) |
| 131 | .margin({ top: this.EMPTY_TIP_TEXT_MARGIN_TOP }) | 131 | .margin({ top: this.EMPTY_TIP_TEXT_MARGIN_TOP }) |
| 132 | - .fontColor(this.emptyType !== 15 ? '#FFCCCCCC' : '#999999') | 132 | + .fontColor('#666666') |
| 133 | .onClick((event: ClickEvent) => { | 133 | .onClick((event: ClickEvent) => { |
| 134 | Logger.info(TAG, `noProgrammeData onClick event?.source: ${event.source}`); | 134 | Logger.info(TAG, `noProgrammeData onClick event?.source: ${event.source}`); |
| 135 | }) | 135 | }) |
-
Please register or login to post a comment