Config.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <template>
  2. <div>
  3. <common @asynCallBack="asynCallBack"></common>
  4. <top-header :pageTitle="pageTitle"></top-header>
  5. <div class="mui-content">
  6. <div class="vongi-me-list vongi-meset-list">
  7. <ul class="mui-table-view mui-table-view-chevron vongi-news">
  8. <li class="mui-table-view-cell">
  9. <a class="mui-navigate-right flew-sp">
  10. 已绑定手机号
  11. <span v-text="person_data.phone"></span>
  12. </a>
  13. </li>
  14. <li class="mui-table-view-cell">
  15. <a class="mui-navigate-right flew-sp">
  16. 字体大小
  17. <span>普通模式</span>
  18. </a>
  19. </li>
  20. <li class="mui-table-view-cell">
  21. <a class="mui-navigate-right"> 关于小鹏管家 </a>
  22. </li>
  23. </ul>
  24. <a href="../home/#/register?project=business&exchange=1" class="vongi-meset jump">注册新身份</a>
  25. <a href="../home/#/user/role?project=business&exchange=1" class="vongi-meset jump">切换身份</a>
  26. <a @click="loginOut" class="vongi-meset">退出帐号</a>
  27. </div>
  28. </div>
  29. </div>
  30. </template>
  31. <script>
  32. import * as API_User from '$project/apis/user'
  33. import Common from '$project/components/Common.vue'
  34. import Loading from '$project/components/Loading.vue'
  35. import TopHeader from '$project/components/TopHeader.vue'
  36. import NavMenu from '@/components/NavMenu.vue'
  37. import {
  38. mapGetters,
  39. mapMutations
  40. } from 'vuex'
  41. export default {
  42. name: 'MasterMineConfig',
  43. components: {
  44. Common,
  45. Loading,
  46. TopHeader,
  47. NavMenu
  48. },
  49. data() {
  50. return {
  51. pageTitle: '设置',
  52. isLoading: false,
  53. lastNotice: {}
  54. }
  55. },
  56. created() {
  57. },
  58. methods: {
  59. //退出登录
  60. loginOut() {
  61. this.isLoading = true;
  62. API_User.logOut().then(response => {
  63. this.isLoading = false;
  64. window.location.href = '../home/#/';
  65. }).catch(error => {
  66. this.isLoading = false;
  67. mui.toast(error);
  68. })
  69. },
  70. asynCallBack() {},
  71. },
  72. mounted() {
  73. },
  74. destroyed() {
  75. },
  76. computed: {
  77. ...mapGetters({
  78. openId: 'wx_openid',
  79. token: 'token',
  80. person_data: 'person_data',
  81. person_popedom: 'person_popedom',
  82. })
  83. }
  84. }
  85. </script>
  86. <style scoped src="$project/assets/css/xpgj.css"></style>
  87. <style src="$project/assets/css/iconfont.css"></style>
  88. <style>
  89. </style>