setting.vue 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <template>
  2. <view class="container padding-lr-sm" v-if="fetch">
  3. <use-tabbar :tabbar="false"></use-tabbar>
  4. <!-- 个人中心项列表 -->
  5. <view class="border-radius margin-top-sm">
  6. <view class="use-list-title dflex-b padding-lr-sm w-full bg-main" @click="Dever.location('user/setting/info')">
  7. <view class="dflex">
  8. <text class="flex1 ws-np" style="font-size: 13px; font-weight: normal;">个人资料</text>
  9. </view>
  10. <view class="dflex margin-left-xl">
  11. <view class="iconfont fs-sm iconjiantou-01" style="color: rgb(192, 192, 192);"></view>
  12. </view>
  13. </view>
  14. <view class="use-list-title dflex-b padding-lr-sm w-full bg-main" @click="Dever.location('user/setting/security')">
  15. <view class="dflex">
  16. <text class="flex1 ws-np" style="font-size: 13px; font-weight: normal;">账号与安全</text>
  17. </view>
  18. <view class="dflex margin-left-xl">
  19. <view class="iconfont fs-sm iconjiantou-01" style="color: rgb(192, 192, 192);"></view>
  20. </view>
  21. </view>
  22. </view>
  23. <!-- 其他设置项 -->
  24. <view class="border-radius margin-top-sm">
  25. <!--
  26. <view class="use-list-title dflex-b padding-lr w-full bg-main">
  27. <view class="dflex">
  28. <text class="flex1 ws-np" style="font-size: 13px; font-weight: normal;">意见反馈</text>
  29. </view>
  30. <view class="dflex margin-left-xl">
  31. <view class="iconfont fs-sm iconjiantou-01" style="color: rgb(192, 192, 192);"></view>
  32. </view>
  33. </view>-->
  34. <view class="use-list-title dflex-b padding-lr w-full bg-main" @click="Dever.location('user/setting/about')">
  35. <view class="dflex">
  36. <text class="flex1 ws-np" style="font-size: 13px; font-weight: normal;">关于{{fetch.name}}</text>
  37. </view>
  38. <view class="dflex margin-left-xl">
  39. <text class="tip line-height-1 margin-right-xs">版本{{fetch.version}}</text>
  40. <view class="iconfont fs-sm iconjiantou-01" style="color: rgb(192, 192, 192);"></view>
  41. </view>
  42. </view>
  43. </view>
  44. <!-- 操作按钮 -->
  45. <view class="border-radius margin-top-sm" @click="goLogin">
  46. <view class="use-item log-out-btn tac">
  47. <text>切换账号</text>
  48. </view>
  49. </view>
  50. <view class="border-radius margin-top-sm" @click="quit">
  51. <view class="use-item log-out-btn tac">
  52. <text>退出登录</text>
  53. </view>
  54. </view>
  55. </view>
  56. </template>
  57. <script>
  58. export default {
  59. data() {
  60. return {
  61. fetch: {},
  62. }
  63. },
  64. onShow() {
  65. this.loadData();
  66. },
  67. methods: {
  68. loadData() {
  69. this.DeverApi.get(this, 'version');
  70. },
  71. quit() {
  72. this.Dever.confirm('确认退出登录吗?', () => {
  73. this.DeverApi.setToken('');
  74. this.Dever.location('user/index', 'go');
  75. })
  76. },
  77. goLogin() {
  78. this.Dever.goLogin();
  79. },
  80. }
  81. }
  82. </script>
  83. <style>
  84. </style>