| | |
| | | <ContractHeader :symbol="symbol" :range="range" :selectIndex="selectIndex" :symbolName="symbolName" |
| | | :balance="userInfo.balance" @tab="onTopTab" @update-coin="onUpdate"> |
| | | </ContractHeader> |
| | | |
| | | <!-- <Head :symbolObj="symbolObj"></Head> --> |
| | | |
| | | <div :key="symbol" class="pb-108 no_touch"> |
| | |
| | | } |
| | | }, |
| | | async created() { |
| | | |
| | | if (this.$route.query.type) { |
| | | this.type = this.$route.query.type |
| | | } |
| | | this.keyIndex += 1 |
| | | await this.SET_COIN_LIST(this.type) |
| | | _getBalance().then(data => { // 获取用户余额 |
| | | this.$store.commit('user/SET_USERINFO', { balance: data.money }) |
| | |
| | | }) |
| | | }, |
| | | methods: { |
| | | |
| | | ...mapActions('home', [SET_COIN_LIST]), |
| | | onUpdate(symbol) { // 更新 |
| | | this.keyIndex += 1 |
| | | this.currentType = 'long' |
| | | this.symbol = symbol |
| | | this.closeSocket() |
| | |
| | | |
| | | .trade_new { |
| | | color: $log-c; |
| | | background: $mainbgWhiteColor; |
| | | // background: $mainbgWhiteColor; |
| | | min-height: 100vh; |
| | | padding: 1.4rem 1.4rem 7rem 1.4rem; |
| | | |
| | |
| | | } |
| | | |
| | | #cryptos { |
| | | background: $mainbgWhiteColor; |
| | | $inp-b: #f7f7f7; |
| | | // background: $mainbgWhiteColor; |
| | | $inp-b: $tab_background; |
| | | |
| | | :deep(.textColor) { |
| | | color: $log-c; |