mine.vue 5.3 KB

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