mine.vue 5.9 KB

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