Showing
1 changed file
with
2 additions
and
1 deletions
| @@ -26,6 +26,7 @@ export default struct MinePageUserSimpleInfoUI { | @@ -26,6 +26,7 @@ export default struct MinePageUserSimpleInfoUI { | ||
| 26 | this.userName = SPHelper.default.getSync(SpConstants.USER_NAME,"") as string | 26 | this.userName = SPHelper.default.getSync(SpConstants.USER_NAME,"") as string |
| 27 | this.headPhotoUrl = SPHelper.default.getSync(SpConstants.USER_HEAD_PHOTO_URL,"") as string | 27 | this.headPhotoUrl = SPHelper.default.getSync(SpConstants.USER_HEAD_PHOTO_URL,"") as string |
| 28 | 28 | ||
| 29 | + ///用户类型1普通用户 | ||
| 29 | let userType = SPHelper.default.getSync(SpConstants.USER_Type,"") as string | 30 | let userType = SPHelper.default.getSync(SpConstants.USER_Type,"") as string |
| 30 | if (userType && userType.length > 0) { | 31 | if (userType && userType.length > 0) { |
| 31 | this.userType = userType | 32 | this.userType = userType |
| @@ -44,7 +45,7 @@ export default struct MinePageUserSimpleInfoUI { | @@ -44,7 +45,7 @@ export default struct MinePageUserSimpleInfoUI { | ||
| 44 | Stack(){ | 45 | Stack(){ |
| 45 | 46 | ||
| 46 | Image(this.isLogin?(this.headPhotoUrl?this.headPhotoUrl:this.userType === "1"?$r('app.media.default_head_userPage'):$r('app.media.AccountOwner_DefaultIcon')):$r('app.media.default_head_userPage')) | 47 | Image(this.isLogin?(this.headPhotoUrl?this.headPhotoUrl:this.userType === "1"?$r('app.media.default_head_userPage'):$r('app.media.AccountOwner_DefaultIcon')):$r('app.media.default_head_userPage')) |
| 47 | - .alt($r('app.media.default_head_userPage')) | 48 | + .alt(this.userType === "1"?$r('app.media.default_head_userPage'):$r('app.media.AccountOwner_DefaultIcon')) |
| 48 | .width(`${this.calcHeight(120)}lpx`) | 49 | .width(`${this.calcHeight(120)}lpx`) |
| 49 | .height(`${this.calcHeight(120)}lpx`) | 50 | .height(`${this.calcHeight(120)}lpx`) |
| 50 | .objectFit(ImageFit.Cover) | 51 | .objectFit(ImageFit.Cover) |
-
Please register or login to post a comment