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.

112 lines
2.5 KiB

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