mine.vue 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <template>
  2. <view class="mine">
  3. <view class="mine-header">
  4. <view class="mine-header-avatar">
  5. <u-avatar :src="userInfo.avatar" size="60"></u-avatar>
  6. </view>
  7. <view class="mine-header-user">
  8. <view>张三丰</view>
  9. <view>巡检员</view>
  10. </view>
  11. </view>
  12. <view class="mine-cell">
  13. <u-cell-group :border="false">
  14. <u-cell icon="setting-fill" title="" :border="false" :isLink="true"
  15. :rightIconStyle="{color: '#638EE3', fontSize: '30rpx', fontWeight: 600}"
  16. :customStyle="{ marginBottom: '10rpx' }" @click="jumpPage('pages/mine/problemReporting/problemReporting')">
  17. <view slot="icon">
  18. <u--image src="./../../static/icons/question-icon.png" width="44rpx" height="44rpx"></u--image>
  19. </view>
  20. <view class="cell-title" slot="title">
  21. 问题上报
  22. </view>
  23. </u-cell>
  24. <u-cell icon="integral-fill" title="" :border="false" :isLink="true"
  25. :rightIconStyle="{color: '#638EE3', fontSize: '30rpx', fontWeight: 600}"
  26. :customStyle="{ marginBottom: '10rpx' }">
  27. <view slot="icon">
  28. <u--image src="./../../static/icons/config-icon.png" width="44rpx" height="44rpx"></u--image>
  29. </view>
  30. <view class="cell-title" slot="title">
  31. 配置管理
  32. </view>
  33. </u-cell>
  34. <u-cell icon="integral-fill" title="" :border="false" :isLink="true"
  35. :rightIconStyle="{color: '#638EE3', fontSize: '30rpx', fontWeight: 600}"
  36. :customStyle="{ marginBottom: '10rpx' }" @click="jumpPage('pages/mine/changePassword/changePassword')">
  37. <view slot="icon">
  38. <u--image src="./../../static/icons/password-icon.png" width="44rpx" height="44rpx"></u--image>
  39. </view>
  40. <view class="cell-title" slot="title">
  41. 修改密码
  42. </view>
  43. </u-cell>
  44. <u-cell icon="integral-fill" title="" :border="false" :isLink="true"
  45. :rightIconStyle="{color: '#638EE3', fontSize: '30rpx', fontWeight: 600}"
  46. :customStyle="{ marginBottom: '10rpx' }" @click="logout">
  47. <view slot="icon">
  48. <u--image src="./../../static/icons/logout-icon.png" width="44rpx" height="44rpx"></u--image>
  49. </view>
  50. <view class="cell-title" slot="title">
  51. 退出账号
  52. </view>
  53. </u-cell>
  54. </u-cell-group>
  55. </view>
  56. </view>
  57. </template>
  58. <script>
  59. export default {
  60. data() {
  61. return {
  62. userInfo: {
  63. avatar: 'https://cdn.uviewui.com/uview/album/1.jpg'
  64. }
  65. }
  66. },
  67. methods: {
  68. logout() {
  69. uni.$u.route({
  70. url: 'pages/login/login'
  71. })
  72. },
  73. jumpPage(url, params) {
  74. uni.$u.route({
  75. url, params
  76. })
  77. }
  78. }
  79. }
  80. </script>
  81. <style lang="scss" scoped>
  82. @import './mine.scss';
  83. </style>