mine.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. <template>
  2. <view>
  3. <view class="mineBox">
  4. <view class="userInformation">
  5. <view class="userAvatar">
  6. <image :src="userAvatar ? userAvatar : '../../static/mine/Avatar_default.png'" mode="aspectFill">
  7. </image>
  8. </view>
  9. <view class="userInfo">
  10. <view class="infoTextone">
  11. <span>
  12. {{ username ? username : '未登录' }}
  13. </span>
  14. <span v-if="isManage" class="manage">管理员</span>
  15. </view>
  16. <view class="infoTexttwo">
  17. <span>个性签名</span>
  18. </view>
  19. </view>
  20. </view>
  21. <view class="userOptionsBox">
  22. <view class="optionsItemBox">
  23. <view class="optionItem">
  24. <view class="option_left">
  25. <span class="option_icon">
  26. <image src="../../static/mine/Subscribe.png" mode="aspectFill"></image>
  27. </span>
  28. <text class="option_text">
  29. 我的订阅
  30. </text>
  31. </view>
  32. <view class="option_right">
  33. <image src="../../static/mine/arrow-right.png" mode="aspectFill"></image>
  34. </view>
  35. </view>
  36. <view class="optionItem">
  37. <view class="option_left">
  38. <span class="option_icon">
  39. <image src="../../static/mine/Collect.png" mode="aspectFill"></image>
  40. </span>
  41. <text class="option_text">
  42. 我的收藏
  43. </text>
  44. </view>
  45. <view class="option_right">
  46. <image src="../../static/mine/arrow-right.png" mode="aspectFill"></image>
  47. </view>
  48. </view>
  49. <view class="optionItem">
  50. <view class="option_left">
  51. <span class="option_icon">
  52. <image src="../../static/mine/active.png" mode="aspectFill"></image>
  53. </span>
  54. <text class="option_text">
  55. 我的活动
  56. </text>
  57. </view>
  58. <view class="option_right">
  59. <image src="../../static/mine/arrow-right.png" mode="aspectFill"></image>
  60. </view>
  61. </view>
  62. <view class="optionItem">
  63. <view class="option_left">
  64. <span class="option_icon">
  65. <image src="../../static/mine/myClass.png" mode="aspectFill"></image>
  66. </span>
  67. <text class="option_text">
  68. 我的教研室
  69. </text>
  70. </view>
  71. <view class="option_right">
  72. <image src="../../static/mine/arrow-right.png" mode="aspectFill"></image>
  73. </view>
  74. </view>
  75. </view>
  76. <view class="optionsItemBox">
  77. <view class="optionItem">
  78. <view class="option_left">
  79. <span class="option_icon">
  80. <image src="../../static/mine/help.png" mode="aspectFill"></image>
  81. </span>
  82. <text class="option_text">
  83. 反馈帮助
  84. </text>
  85. </view>
  86. <view class="option_right">
  87. <image src="../../static/mine/arrow-right.png" mode="aspectFill"></image>
  88. </view>
  89. </view>
  90. <view class="optionItem">
  91. <view class="option_left">
  92. <span class="option_icon">
  93. <image src="../../static/mine/setting.png" mode="aspectFill"></image>
  94. </span>
  95. <text class="option_text">
  96. 我的设置
  97. </text>
  98. </view>
  99. <view class="option_right">
  100. <image src="../../static/mine/arrow-right.png" mode="aspectFill"></image>
  101. </view>
  102. </view>
  103. </view>
  104. </view>
  105. </view>
  106. </view>
  107. </template>
  108. <script>
  109. export default {
  110. data() {
  111. return {
  112. username: '情绪稳定的疯子',
  113. userAvatar: '../../static/mine/Avatar.png',
  114. isManage: true
  115. };
  116. }
  117. }
  118. </script>
  119. <style lang="scss" scoped>
  120. html {
  121. margin: 0;
  122. padding: 0;
  123. box-sizing: border-box;
  124. }
  125. .mineBox {
  126. width: 100%;
  127. // 头像信息
  128. .userInformation {
  129. width: 100%;
  130. height: 100px;
  131. padding: 0 18px;
  132. background-color: white;
  133. display: flex;
  134. justify-content: flex-start;
  135. align-items: center;
  136. .userAvatar {
  137. flex: 1;
  138. height: 80%;
  139. display: flex;
  140. align-items: center;
  141. image {
  142. width: 65px;
  143. height: 65px;
  144. }
  145. }
  146. .userInfo {
  147. margin-left: 10px;
  148. flex: 4;
  149. height: 80%;
  150. display: flex;
  151. flex-direction: column;
  152. justify-content: space-evenly;
  153. .infoTextone {
  154. display: flex;
  155. align-items: center;
  156. span {
  157. &:first-child {
  158. color: #000;
  159. font-size: 40rpx;
  160. font-weight: 600;
  161. }
  162. &.manage{
  163. width: 63rpx;
  164. padding: 2rpx;
  165. font-size: 20rpx;
  166. color: #FFA338;
  167. border: 1px solid #FFA338;
  168. border-radius: 4rpx;
  169. margin-left: 5px;
  170. }
  171. }
  172. }
  173. .infoTexttwo {
  174. span {
  175. color: rgb(153, 153, 153);
  176. font-size: 26rpx;
  177. }
  178. }
  179. }
  180. }
  181. // 个人资料选项
  182. .userOptionsBox {
  183. width: 100%;
  184. margin-top: 10px;
  185. .optionsItemBox {
  186. background-color: #fff;
  187. width: 100%;
  188. margin-bottom: 10px;
  189. padding: 5px 23px;
  190. .optionItem {
  191. display: flex;
  192. justify-content: space-between;
  193. align-items: center;
  194. height: 81rpx;
  195. font-size: 28rpx;
  196. .option_left {
  197. display: flex;
  198. align-items: center;
  199. height: 40rpx;
  200. .option_icon {
  201. height: 100%;
  202. width: 40rpx;
  203. image {
  204. width: 100%;
  205. height: 100%;
  206. }
  207. }
  208. .option_text {
  209. margin-left: 10px;
  210. }
  211. }
  212. .option_right {
  213. height: 40rpx;
  214. image {
  215. height: 32rpx;
  216. width: 32rpx;
  217. }
  218. }
  219. }
  220. }
  221. }
  222. }
  223. </style>