m-list.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <template>
  2. <view>
  3. <view class="line"></view>
  4. <view class="list_item">
  5. <view class="item" @click="repassword()">
  6. <view class="item_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="item_right">
  13. <uni-icons type="arrowright" color="#BDC3C7"></uni-icons>
  14. </view>
  15. </view>
  16. <view class="item" @click="user_out()">
  17. <view class="item_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="item_right">
  24. <uni-icons type="arrowright" color="#BDC3C7"></uni-icons>
  25. </view>
  26. </view>
  27. <view class="item">
  28. <view class="item_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="item_right">
  35. <uni-icons type="arrowright" color="#BDC3C7"></uni-icons>
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. </template>
  41. <script>
  42. export default {
  43. data() {
  44. return {
  45. };
  46. },
  47. methods:{
  48. user_out:function(){
  49. // uni.showToast({
  50. // icon:"none",
  51. // title:"退出登录"
  52. // })
  53. uni.removeStorage({
  54. key: 'Authorization',
  55. success: function (res) {
  56. console.log('success');
  57. }
  58. });
  59. // 调用全局封装的函数
  60. // var loginRes =
  61. // if(!loginRes){return false;}
  62. this.checkLogin();
  63. },
  64. repassword(){
  65. uni.navigateTo({
  66. url:"../../m-repassword/m-repassword"
  67. })
  68. }
  69. }
  70. }
  71. </script>
  72. <style lang="scss">
  73. .line{
  74. margin: 0 30rpx;
  75. height: 8rpx;
  76. background: #009FE8;
  77. }
  78. .list_item{
  79. margin-bottom: 140rpx;
  80. padding: 0 30rpx;
  81. .item{
  82. height: 94rpx;
  83. box-sizing: border-box;
  84. padding-left: 20rpx;
  85. padding-top: 24rpx;
  86. display: flex;
  87. justify-content: space-between;
  88. .item_left{
  89. display: flex;
  90. .icon{
  91. margin-top: 5rpx;
  92. height: 47rpx;
  93. image{
  94. width: 38rpx;
  95. height: 38rpx;
  96. }
  97. }
  98. .name{
  99. margin-left: 14rpx;
  100. height: 47rpx;
  101. font-size: 33rpx;
  102. font-family: PingFangSC-Medium, PingFang SC;
  103. font-weight: 500;
  104. color: #333333;
  105. line-height: 47rpx;
  106. }
  107. }
  108. .item_right{
  109. // color: #BDC3C7;
  110. }
  111. }
  112. }
  113. </style>