index.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <template>
  2. <mobile-frame>
  3. <view class="main">
  4. <view class="one" @click="toCommon('/pagesMy/account/upPassword')">
  5. <view class="other">
  6. <view class="title">{{passLogin.name}}</view>
  7. <view class="titles">{{passLogin.content}}</view>
  8. </view>
  9. <view class="btn">
  10. <text class="iconfont icon-dayufuhao"></text>
  11. </view>
  12. </view>
  13. <view class="one" @click="toCommon('/pagesMy/account/bindEmail')">
  14. <view class="other">
  15. <view class="title">{{email.name}}</view>
  16. <view class="titles">{{email.content}}</view>
  17. </view>
  18. <view class="btn">
  19. <text class="iconfont icon-dayufuhao"></text>
  20. </view>
  21. </view>
  22. <view class="one" @click="toCommon('/pagesMy/account/upBasic')">
  23. <view class="other">
  24. <view class="title">{{info.name}}</view>
  25. <view class="titles">{{info.content}}</view>
  26. </view>
  27. <view class="btn">
  28. <text class="iconfont icon-dayufuhao"></text>
  29. </view>
  30. </view>
  31. <view class="two">
  32. <button type="default" size="mini" @click="toOut()">退出当前登录</button>
  33. </view>
  34. </view>
  35. </mobile-frame>
  36. </template>
  37. <script>
  38. export default {
  39. data() {
  40. return {
  41. passLogin: {
  42. name: '登录密码',
  43. content: '建议定期修改密码以保护账号安全'
  44. },
  45. phone: {
  46. name: '绑定手机',
  47. content: '如若您已更换手机号,请及时绑定',
  48. phone: '137****0000'
  49. },
  50. email: {
  51. name: '绑定邮箱',
  52. content: '未绑定邮箱,请及时绑定'
  53. },
  54. info: {
  55. name: '修改个人信息',
  56. content: '修改个人信息'
  57. },
  58. };
  59. },
  60. onShow: function() {},
  61. methods: {
  62. // 跳转
  63. toCommon(route, e) {
  64. uni.navigateTo({
  65. url: `${route}`
  66. })
  67. },
  68. // 退出登录
  69. toOut(e) {
  70. try {
  71. uni.clearStorage();
  72. uni.redirectTo({
  73. url: '/pages/index/index'
  74. })
  75. } catch (e) {}
  76. }
  77. }
  78. }
  79. </script>
  80. <style lang="scss">
  81. .main {
  82. display: flex;
  83. flex-direction: column;
  84. width: 100vw;
  85. height: 100vh;
  86. .one {
  87. border-bottom: 1px var(--fcColor) solid;
  88. margin: 1vw 3vw;
  89. display: flex;
  90. flex-direction: row;
  91. padding: 1vw 0;
  92. .other {
  93. flex-grow: 1;
  94. .title {
  95. margin: 2vw 0;
  96. font-size: var(--font16Size);
  97. }
  98. .titles {
  99. font-size: var(--font14Size);
  100. color: var(--f85Color);
  101. margin: 2vw 0;
  102. }
  103. }
  104. .btn {
  105. text-align: right;
  106. font-size: 20px;
  107. }
  108. }
  109. .two {
  110. margin: 5vw 3vw;
  111. text-align: center;
  112. button {
  113. border-radius: 20px;
  114. border: 2px solid var(--ff0Color);
  115. color: var(--ff0Color);
  116. }
  117. }
  118. }
  119. </style>