setting.vue 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <template>
  2. <view>
  3. <hx-navbar left-text="设置" backTabbarUrl="/pages/user/center/center"></hx-navbar>
  4. <view class="cu-list menu sm-border margin-top">
  5. <navigator class="cu-item arrow " url="../account_security/security" open-type="navigate">
  6. <view class="content">
  7. <text class="text-black">安全设置</text>
  8. </view>
  9. <view class="action">
  10. <text class="text-grey text-sm">手机号、密码</text>
  11. </view>
  12. </navigator>
  13. <view class="cu-item arrow">
  14. <view class="content">
  15. <text class="text-black">通用</text>
  16. </view>
  17. <view class="action">
  18. <text class="text-grey text-sm"></text>
  19. </view>
  20. </view>
  21. <view class="cu-item arrow">
  22. <view class="content">
  23. <text class="text-black">隐私</text>
  24. </view>
  25. <view class="action">
  26. <text class="text-grey text-sm"></text>
  27. </view>
  28. </view>
  29. <navigator class="cu-item arrow margin-top" url="../../base/about" open-type="navigate">
  30. <view class="content">
  31. <text class="text-black">关于</text>
  32. </view>
  33. <view class="action">
  34. <text class="text-grey text-sm">版本号 {{version}}</text>
  35. </view>
  36. </navigator>
  37. <navigator class="cu-item arrow" url="../../base/help_feedback" open-type="navigate">
  38. <view class="content">
  39. <text class="text-black">帮助与反馈</text>
  40. </view>
  41. <view class="action">
  42. <text class="text-grey text-sm"></text>
  43. </view>
  44. </navigator>
  45. <!-- <view class="cu-item margin-top">
  46. <view class="content" style="text-align: center;">
  47. <text class="text-black">切换账号</text>
  48. </view>
  49. </view> -->
  50. <view class="cu-item margin-top" @click="logOut">
  51. <view class="content" style="text-align: center;">
  52. <text class="text-grey" style="color: #ffc107">退出登录</text>
  53. </view>
  54. </view>
  55. </view>
  56. </view>
  57. </template>
  58. <script>
  59. var that;
  60. export default {
  61. data() {
  62. return {
  63. version: this.$conf.version
  64. }
  65. },
  66. onLoad(){
  67. var that = this;
  68. },
  69. mounted() {
  70. that= this;
  71. },
  72. methods: {
  73. logOut(){
  74. that.$store.dispatch("logout");
  75. that.$api.user.logout();
  76. that.back();
  77. },
  78. back(){
  79. uni.redirectTo({
  80. url: '/pages/user/login/login'
  81. });
  82. }
  83. }
  84. }
  85. </script>
  86. <style>
  87. </style>