zzzz
2024-03-31 2d608cb2ca627a127555a19869dedf363a025470
1
{"ast":null,"code":"import \"core-js/modules/es.array.push.js\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nimport assetsHead from \"@/components/assets-head\";\nimport listBox from \"./listBox.vue\";\nimport { mapGetters } from \"vuex\";\nimport { _getIdentify } from \"@/API/fund.api\";\nimport { setStorage } from \"@/utils/utis\";\nimport { _getUnreadMsg } from \"@/API/im.api\";\nexport default {\n  props: {},\n  components: {\n    assetsHead,\n    listBox\n  },\n  computed: {\n    ...mapGetters({\n      userInfo: \"user/userInfo\",\n      theme: \"home/theme\"\n    })\n  },\n  data() {\n    return {\n      goHome: true,\n      status: -1,\n      //身份认证状态\n      list: [{\n        name: this.$t(\"语言\"),\n        icon: require(\"@/assets/image/userCenter/yuyan.png\"),\n        url: \"/language\"\n      }, {\n        name: this.$t(\"计价方式\"),\n        icon: require(\"@/assets/image/userCenter/jisuan.png\"),\n        url: \"/exchangeRate\"\n      }, {\n        name: this.$t(\"在线客服\"),\n        icon: require(\"@/assets/image/userCenter/kefu.png\"),\n        url: \"/customerService\"\n      }\n      // {\n      //     name: this.$t('主题模式'),\n      //     icon: require('@/assets/image/userCenter/theme.png'),\n      //     url: '/themeModel'\n      // }\n      ],\n      moreList: [{\n        name: this.$t(\"帮助中心\"),\n        icon: require(\"@/assets/image/userCenter/help.png\"),\n        url: \"/helpCenter\"\n      }, {\n        name: this.$t(\"关于我们\"),\n        icon: require(\"@/assets/image/userCenter/about.png\"),\n        url: \"/TermsOfService\"\n      }],\n      safeList: [{\n        name: this.$t(\"安全\"),\n        icon: require(\"@/assets/image/userCenter/security.png\"),\n        url: \"/safety\"\n      }, {\n        name: this.$t(\"修改密码\"),\n        icon: require(\"@/assets/image/userCenter/password.png\"),\n        url: \"/changePassword\"\n      }],\n      userList: [{\n        name: this.$t(\"邀请推广\"),\n        icon: require(\"@/assets/image/userCenter/share.png\"),\n        url: \"/promote\"\n      }, {\n        name: this.$t(\"账变记录\"),\n        icon: require(\"@/assets/image/userCenter/record.png\"),\n        url: \"/accountChange\"\n      }, {\n        name: this.$t(\"身份认证\"),\n        icon: require(\"@/assets/image/userCenter/identity.png\"),\n        url: \"/certificationCenter\"\n      }],\n      moniList: [{\n        name: this.$t(\"试用账户\"),\n        icon: require(\"@/assets/image/userCenter/testDemo.png\"),\n        url: \"/test\"\n      }],\n      name: \"\",\n      //实名认证的真实名字\n      unreadMsg_num: \"\"\n    };\n  },\n  mounted() {\n    if (this.userInfo.token) {\n      this.getIdentify();\n      this.fetchUnread();\n    }\n  },\n  methods: {\n    fetchUnread() {\n      // 获取未读\n      _getUnreadMsg().then(unread_num => {\n        this.unreadMsg_num = unread_num * 1 > 0 ? unread_num * 1 : \"\";\n        //console.log('\\n *** \\n'+unread_num*1+'\\n *** \\n')\n      });\n    },\n    loginOut() {\n      this.$store.commit(\"user/SET_OUT\");\n      setStorage(\"popNotice\", false);\n    },\n    getIdentify() {\n      _getIdentify().then(data => {\n        this.status = data.status;\n        this.name = data.name;\n      });\n    },\n    tokefu() {\n      this.$router.push(\"/customerService\");\n    }\n  }\n};","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}