t-m-list.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <template>
  2. <view class="content">
  3. <view class="line"></view>
  4. <view class="list">
  5. <view class="item" @click="go_m_repassword()">
  6. <view class="left">
  7. <view class="icon">
  8. <image src="./icon/list_1.png" mode=""></image>
  9. </view>
  10. <view class="name">修改密码</view>
  11. </view>
  12. <view class="right">
  13. <uni-icons type="arrowright"></uni-icons>
  14. </view>
  15. </view>
  16. <view class="item" @click="logout()">
  17. <view class="left">
  18. <view class="icon">
  19. <image src="./icon/list_2.png" mode=""></image>
  20. </view>
  21. <view class="name">退出登录</view>
  22. </view>
  23. <view class="right">
  24. <uni-icons type="arrowright"></uni-icons>
  25. </view>
  26. </view>
  27. <view class="item" @click="go_m_update_log()">
  28. <view class="left">
  29. <view class="icon">
  30. <image src="./icon/list_3.png" mode=""></image>
  31. </view>
  32. <view class="name">更新日志</view>
  33. </view>
  34. <view class="right">
  35. <uni-icons type="arrowright"></uni-icons>
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. </template>
  41. <script>
  42. export default {
  43. name:"t-m-list",
  44. data() {
  45. return {
  46. };
  47. },
  48. methods:{
  49. // 修改密码
  50. go_m_repassword(){
  51. uni.navigateTo({
  52. url:"../../my/repassword/repassword"
  53. })
  54. },
  55. // 退出登录
  56. logout(){
  57. uni.clearStorageSync('Authorization');
  58. uni.showToast({
  59. icon:"none",
  60. title:"退出登录"
  61. })
  62. // 跳转登录页
  63. uni.redirectTo({
  64. url:"../../my/login/login"
  65. })
  66. },
  67. // 更新日志
  68. go_m_update_log(){
  69. uni.navigateTo({
  70. url:"../../my/update-log/update-log"
  71. })
  72. }
  73. }
  74. }
  75. </script>
  76. <style lang="scss">
  77. .content{
  78. margin-top: 17px;
  79. box-sizing: border-box;
  80. padding: 0 24rpx;
  81. }
  82. .line{
  83. height: 4px;
  84. background: #009FE8;
  85. }
  86. .list{
  87. .item{
  88. height: 48px;
  89. display: flex;
  90. justify-content: space-between;
  91. align-items: center;
  92. box-sizing: border-box;
  93. padding-right: 2px;
  94. padding-left: 10px;
  95. .left{
  96. display: flex;
  97. align-items: center;
  98. .icon{
  99. width: 19px;
  100. height: 17px;
  101. image{
  102. width: 19px;
  103. height: 19px;
  104. }
  105. }
  106. .name{
  107. margin-left: 4px;
  108. font-size: 17px;
  109. font-weight: 500;
  110. color: #333333;
  111. line-height: 23px;
  112. }
  113. }
  114. .right{
  115. }
  116. }
  117. }
  118. </style>