You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

108 lines
2.2 KiB

8 months ago
5 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
5 months ago
8 months ago
8 months ago
8 months ago
8 months ago
  1. <template>
  2. <view class="info_row">
  3. <view class="avatar">
  4. <!-- <image src="@/static/images/coach/avatar.png" mode=""></image> -->
  5. <image :src="vuex_userInfo.photoPath" mode="" v-if="vuex_userInfo.photoPath"></image>
  6. </view>
  7. <view class="info" @click="$goPage('/pages/userCenter/personaInfo/personaInfo')" :class="{Fwidth: Fwidth}">
  8. <view class="name_row">
  9. <view class="name oneRowText">{{ vuex_userInfo.name}}</view>
  10. <view class="icon">
  11. <image src="@/static/images/coach/ic_gengduo.png" mode=""></image>
  12. </view>
  13. </view>
  14. <view class="school_row">
  15. <view class="icon">
  16. <image src="@/static/images/index/ic_jiaxiao_cli.png" mode=""></image>
  17. </view>
  18. <view class="schoolName oneRowText">{{ vuex_userInfo.schoolName}}</view>
  19. <!-- <view class="tag" v-if="identity=='校长'">驾校校长</view>
  20. <view class="tag" v-else>合作教练</view> -->
  21. </view>
  22. <view class="tag">{{identity}}</view>
  23. </view>
  24. </view>
  25. </template>
  26. <script>
  27. export default {
  28. props: {
  29. Fwidth: {
  30. type: Boolean,
  31. default: false
  32. }
  33. }
  34. }
  35. </script>
  36. <style lang="scss" scoped>
  37. .info_row {
  38. display: flex;
  39. align-items: center;
  40. .avatar {
  41. width: 144rpx;
  42. height: 144rpx;
  43. border-radius: 50%;
  44. overflow: hidden;
  45. background: url("../../static/images/coach/avatar.png") no-repeat;
  46. background-size: 100% 100%;
  47. }
  48. .info {
  49. padding-left: 20rpx;
  50. &.Fwidth {
  51. flex: 1;
  52. }
  53. .name_row {
  54. display: flex;
  55. align-items: center;
  56. padding: 6rpx 20rpx 0rpx 0;
  57. .name {
  58. font-size: 48rpx;
  59. font-weight: 500;
  60. width: 300rpx;
  61. }
  62. .icon {
  63. width: 40rpx;
  64. height: 40rpx;
  65. margin-left: 20rpx;
  66. }
  67. }
  68. .school_row {
  69. display: flex;
  70. align-items: center;
  71. padding: 16rpx 0;
  72. .icon {
  73. width: 28rpx;
  74. height: 28rpx;
  75. }
  76. .schoolName {
  77. font-size: 28rpx;
  78. padding: 0rpx 20rpx;
  79. width: 0;
  80. flex: 1;
  81. }
  82. }
  83. .tag {
  84. height: 44rpx;
  85. padding: 0 20rpx;
  86. background: rgba(25, 137, 250, 0.1);
  87. border-radius: 22rpx;
  88. font-size: 24rpx;
  89. line-height: 44rpx;
  90. text-align: center;
  91. color: $themC;
  92. white-space: nowrap;
  93. width: fit-content;
  94. }
  95. }
  96. }
  97. </style>