{"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\nimport { mapGetters } from \"vuex\";\nimport Axios from \"@/API/userCenter\";\nexport default {\n props: {},\n computed: {\n ...mapGetters({\n theme: \"home/theme\"\n })\n },\n data() {\n return {\n isLock: false,\n navList: [],\n navList1: [],\n navList2: [],\n zbUrl: \"\",\n bsUrl: \"\"\n };\n },\n methods: {\n async getUrl() {\n const res = await Axios.getConfigurationByKey();\n res.map(val => {\n if (val.configKey === \"zb\") {\n this.zbUrl = val.configValue;\n }\n if (val.configKey === \"bs\") {\n this.bsUrl = val.configValue;\n }\n });\n },\n getNavlist() {\n this.navList = [{\n name: this.$t(\"ICO\"),\n icon: require(`@/assets/3x/资源 7@3x.png`),\n path: \"/new-urrency\"\n }, {\n name: this.$t(\"理财\"),\n icon: require(`@/assets/3x/资源 3@3x.png`),\n path: \"/fm-home\"\n }, {\n name: this.$t(\"合约交易\"),\n icon: require(`@/assets/3x/资源 5@3x.png`),\n path: \"/trendDetails/btc\"\n }, {\n name: this.$t(\"分享\"),\n icon: require(`@/assets/3x/资源 2@3x.png`),\n path: \"/promote\"\n }];\n this.navList1 = [{\n name: this.$t(\"在线客服\"),\n icon: require(`@/assets/3x/资源 8@3x.png`),\n path: \"/customerService\"\n }, {\n name: this.$t(\"质押借币\"),\n icon: require(`@/assets/3x/资源 6@3x.png`),\n path: \"/pledgeLoan\"\n }, {\n name: this.$t(\"账变记录\"),\n icon: require(`@/assets/3x/资源 9@3x.png`),\n path: \"/accountChange\"\n }, {\n name: this.$t(\"更多\"),\n icon: require(`@/assets/3x/Artboard 2@33x copy 3.png`),\n path: \"/more\"\n }];\n this.navList2 = [{\n name: this.$t(\"闪兑\"),\n icon: require(`@/assets/3x/资源 1@3x.png`),\n path: \"/exchange/exchangePage\"\n }, {\n name: this.$t(\"直播\"),\n icon: require(`@/assets/3x/Artboard 3@33x copy 3.png`),\n id: \"zb\",\n path: \"/zb\",\n router: \"\"\n }, {\n name: this.$t(\"比赛\"),\n icon: require(`@/assets/3x/Artboard 4@33x copy 3.png`),\n id: \"bs\",\n path: \"/bs\",\n router: \"\"\n }];\n },\n goPath(path, router) {\n if (path == \"/more\") {\n this.isLock = !this.isLock;\n } else if (path === \"/zb\") {\n if (this.zbUrl) window.open(this.zbUrl);\n } else if (path === \"/bs\") {\n if (this.bsUrl) window.open(this.bsUrl);\n } else {\n this.$router.push(path);\n }\n }\n },\n mounted() {\n this.getNavlist();\n this.getUrl();\n },\n activated() {\n this.getNavlist();\n }\n};","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|