mine.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <template>
  2. <view class="v1">
  3. <view class="userback">
  4. <view class="brand">
  5. Y
  6. </view>
  7. <view class="userback-username">
  8. 原动力
  9. </view>
  10. </view>
  11. <view class="user-function">
  12. <!-- <view class="user-function-forget">
  13. <button class="clean-btn-style user-function-forget-btn" @click="toChange()">清空缓存</button>
  14. </view> -->
  15. <view class="user-function-exit">
  16. <button class="clean-btn-style user-function-exit-btn" @click="exit()">退出登录</button>
  17. </view>
  18. </view>
  19. <!-- 提示信息弹窗 -->
  20. </view>
  21. </template>
  22. <script>
  23. export default {
  24. data() {
  25. return {
  26. };
  27. },
  28. methods:{
  29. exit(){
  30. uni.removeStorageSync('Admin-Token')
  31. uni.reLaunch({
  32. url:'/pages/login/login'
  33. })
  34. }
  35. }
  36. }
  37. </script>
  38. <style lang="scss" >
  39. .v1{
  40. display: block;
  41. position:absolute;
  42. width: 100%;
  43. height: 100vh;
  44. background-color: #FFFFFF;
  45. }
  46. .clean-btn-style{
  47. background-color: #FFFFFF;
  48. border-radius: 0;
  49. }
  50. .clean-btn-style::after{
  51. border: none;
  52. }
  53. .userback {
  54. height: 216px;
  55. // background-repeat: no-repeat;
  56. // background-size: 100%;
  57. text-align: center
  58. }
  59. .brand{
  60. display: inline-block;
  61. border-radius: 50%;
  62. // margin-top: 21%;
  63. width: 97px;
  64. height: 97px;
  65. margin: 80px auto 0;
  66. background-color: #1296db;
  67. color: #ffffff;
  68. font-size: 70px;
  69. line-height: 97px;
  70. }
  71. .userback-username{
  72. margin-top: 20px;
  73. }
  74. .user-function{
  75. margin: 30px 20px;
  76. border-radius: 20px;
  77. background-color: #F8F8F8;
  78. line-height: 36px;
  79. border: 1px solid #F0F0F0;
  80. .user-function-forget{
  81. padding-left: 30px;
  82. cursor: pointer;
  83. border-bottom: 1px solid #F0F0F0;
  84. .user-function-forget-btn{
  85. font-size: 14px;
  86. padding: 0;
  87. text-align: left;
  88. background-color: #F8F8F8;
  89. width: 90%;
  90. margin: 0;
  91. }
  92. }
  93. .user-function-exit{
  94. padding-left: 30px;
  95. cursor: pointer;
  96. .user-function-exit-btn{
  97. font-size: 14px;
  98. padding: 0;
  99. text-align: left;
  100. background-color: #F8F8F8;
  101. width: 90%;
  102. margin: 0;
  103. }
  104. }
  105. }
  106. </style>