my-userinfo.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <template>
  2. <view>
  3. <view class="wrapper">
  4. <view class="top-index">
  5. <view class="top-title">
  6. <image :src="userinfo.avatar"></image>
  7. <text class="top-nick">{{userinfo.alias}}</text>
  8. </view>
  9. <text class="top-text" bindtap="exitLogin">退出账号</text>
  10. </view>
  11. <view class="infoList">
  12. <navigator class="infoList-text" url="myAppointment">我的邀请</navigator>
  13. <navigator class="infoList-text" url="appointment">我被邀请</navigator>
  14. <navigator class="infoList-text" url="myLessons">我的订单</navigator>
  15. <navigator class="infoList-text" url="/subpkg/student_require/student_require">学员需求</navigator>
  16. <navigator class="infoList-text" url="myTeacher">我收藏的老师</navigator>
  17. <navigator class="infoList-text" url="myStudent">我收藏的学生</navigator>
  18. <navigator class="infoList-text" url="/subpkg/course_publish/course_publish">我的投诉</navigator>
  19. <navigator class="infoList-text" url="mySuggest">我的建议</navigator>
  20. <navigator class="infoList-text" url="refund">退款记录</navigator>
  21. <navigator class="infoList-text" url="/subpkg/teacher_authorize/teacher_authorize">老师认证</navigator>
  22. <navigator class="infoList-text" url="/subpkg/course_publish/course_publish">课程发布</navigator>
  23. <navigator class="infoList-text" url="/subpkg/user_detail/user_detail">编辑账号</navigator>
  24. </view>
  25. <view class="recommendMoney">
  26. <text bindtap="cashBack">推荐返现</text>
  27. </view>
  28. <button class="suggest" open-type="feedback">反馈建议</button>
  29. </view>
  30. </view>
  31. </template>
  32. <script>
  33. import { mapState, mapMutations } from 'vuex'
  34. export default {
  35. name:"my-userinfo",
  36. computed: {
  37. ...mapState('m_user', ['userinfo'])
  38. },
  39. data() {
  40. return {
  41. };
  42. },
  43. methods: {
  44. }
  45. }
  46. </script>
  47. <style lang="scss" scoped>
  48. .wrapper {
  49. position: relative;
  50. }
  51. .top-index {
  52. display: flex;
  53. height: 100rpx;
  54. line-height: 100rpx;
  55. background-color: #f8f8f8;
  56. }
  57. .top-title {
  58. display: flex;
  59. width: 80%;
  60. }
  61. .top-index image {
  62. width: 100rpx;
  63. height: 100rpx;
  64. border-radius: 50%;
  65. }
  66. .top-nick {
  67. height: 100rpx;
  68. line-height: 100rpx;
  69. padding-left: 20rpx;
  70. }
  71. .top-text {
  72. margin-top: 20rpx;
  73. margin-left: 4rpx;
  74. height: 60rpx;
  75. line-height: 60rpx;
  76. border: 1rpx solid rgb(207, 202, 202);
  77. border-radius: 20rpx;
  78. padding: 0 6rpx;
  79. color: #c0b0b0;
  80. }
  81. /* 主页容器 */
  82. .infoList{
  83. position: relative;
  84. display: flex;
  85. flex-wrap: wrap;
  86. width: 100%;
  87. }
  88. /* 主页内容区 */
  89. .infoList-text{
  90. width: 47%;
  91. height: 100rpx;
  92. line-height: 100rpx;
  93. text-align: center;
  94. background-color: rgb(241, 241, 235);
  95. margin: 10rpx 10rpx 0 10rpx;
  96. }
  97. /* 推荐返现 */
  98. .recommendMoney{
  99. /* position: relative;
  100. display: flex; */
  101. margin-top: 100rpx;
  102. height: 100rpx;
  103. line-height: 100rpx;
  104. text-align: center;
  105. font-size: 40rpx;
  106. font-weight: bold;
  107. background-color: rgb(241, 241, 235);
  108. color: red;
  109. }
  110. /* 反馈建议 */
  111. .suggest{
  112. margin-top: 20rpx;
  113. }
  114. </style>