| | |
| | | class="ex-tab" |
| | | v-for="(item, index) in listArr" |
| | | :key="index" |
| | | @click="changeTab(index)" |
| | | @click="changeTab(index, item)" |
| | | :class="active == index ? 'active' : ''" |
| | | > |
| | | {{ item.name }} |
| | |
| | | active: 0, |
| | | listArr: [ |
| | | { |
| | | name: this.$t("Deposit"), |
| | | name: this.$t("充币"), |
| | | // router: "/recharge/rechargePage?symbol=usdt", |
| | | router: "/recharge/rechargeList", |
| | | }, |
| | | { |
| | | name: this.$t("Withdraw"), |
| | | name: this.$t("提币"), |
| | | router: "/withdraw/withdrawPage", |
| | | }, |
| | | { |
| | | name: this.$t("Exchange"), |
| | | name: this.$t("闪兑"), |
| | | router: "/exchange/exchangePage", |
| | | }, |
| | | { |
| | | name: this.$t("Assets"), |
| | | name: this.$t("资产"), |
| | | router: "/funds", |
| | | }, |
| | | ], |
| | | }; |
| | | }, |
| | | methods: { |
| | | changeTab(index) { |
| | | changeTab(index, item) { |
| | | this.active = index; |
| | | |
| | | this.$router.push(item.router); |
| | | }, |
| | | }, |
| | | |
| | | }; |
| | | </script> |
| | | |