调整wallet页面
This commit is contained in:
parent
12961d81f7
commit
134885f8d5
BIN
src/assets/market/cec.png
Normal file
BIN
src/assets/market/cec.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
BIN
src/assets/market/ceg.png
Executable file
BIN
src/assets/market/ceg.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -2,11 +2,11 @@
|
|||||||
<div class="total-balance" :class="{'mobile': mobile}">
|
<div class="total-balance" :class="{'mobile': mobile}">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="name"><span>Other Currencies</span></div>
|
<div class="name"><span>Other Currencies</span></div>
|
||||||
<div class="coin">-- WBNB</div>
|
<template v-for="d in currencies">
|
||||||
<div class="subCoin space">-- USD</div>
|
<div class="coin" :key="d.name+'1'">{{d.amount}} {{d.name}}</div>
|
||||||
<div class="coin">-- BUSD</div>
|
<div class="subCoin space" :key="d.name+'2'">{{d.price}} USD</div>
|
||||||
<div class="subCoin">-- USD</div>
|
</template>
|
||||||
<div class="wrongNetwork"><span>Wrong network</span></div>
|
<div class="wrongNetwork hide"><span>Wrong network</span></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -14,12 +14,31 @@
|
|||||||
import { Component, Vue } from 'vue-property-decorator'
|
import { Component, Vue } from 'vue-property-decorator'
|
||||||
import { AppModule, DeviceType } from '@/store/modules/app'
|
import { AppModule, DeviceType } from '@/store/modules/app'
|
||||||
|
|
||||||
|
export interface ICurrentData{
|
||||||
|
name: string
|
||||||
|
amount: number
|
||||||
|
price: number
|
||||||
|
}
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
name: 'TotalBalance',
|
name: 'TotalBalance',
|
||||||
components: {
|
components: {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
export default class TotalBalance extends Vue {
|
export default class TotalBalance extends Vue {
|
||||||
|
private currencies: ICurrentData[] = [
|
||||||
|
{
|
||||||
|
name: 'WBNB',
|
||||||
|
amount: 1000,
|
||||||
|
price: 10000
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'WKCS',
|
||||||
|
amount: 1000,
|
||||||
|
price: 10000
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
get mobile() {
|
get mobile() {
|
||||||
return AppModule.device === DeviceType.Mobile
|
return AppModule.device === DeviceType.Mobile
|
||||||
}
|
}
|
||||||
@ -39,6 +58,9 @@ export default class TotalBalance extends Vue {
|
|||||||
flex: 1;
|
flex: 1;
|
||||||
.wrongNetwork {
|
.wrongNetwork {
|
||||||
margin-top: 0.5em;
|
margin-top: 0.5em;
|
||||||
|
&.hide{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
span {
|
span {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: 0.8125em;
|
font-size: 0.8125em;
|
||||||
|
@ -11,22 +11,20 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="wallet">
|
<div class="wallet">
|
||||||
<total-balance></total-balance>
|
<total-balance></total-balance>
|
||||||
<coin-card></coin-card>
|
<coin-card v-for="d in coinList" :coin-data="d" :key="d.symbol"></coin-card>
|
||||||
<coin-card></coin-card>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="header ingame"><span class="label">Ingame Currency</span>
|
<div class="header ingame"><span class="label">Ingame Currency</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="horizonalBar"></div>
|
<div class="horizonalBar"></div>
|
||||||
<div class="wallet">
|
<div class="wallet">
|
||||||
<game-coin-card></game-coin-card>
|
<game-coin-card v-for="d in gameCoinList" :coin-data="d" :key="d.symbol"></game-coin-card>
|
||||||
<game-coin-card></game-coin-card>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Component, Vue } from 'vue-property-decorator'
|
import { Component, Vue } from 'vue-property-decorator'
|
||||||
import TotalBalance from '@/components/market/wallet/TotalBalance.vue'
|
import TotalBalance from '@/components/market/wallet/TotalBalance.vue'
|
||||||
import CoinCard from '@/components/market/wallet/CoinCard.vue'
|
import CoinCard, { ICoinData } from '@/components/market/wallet/CoinCard.vue'
|
||||||
import GameCoinCard from '@/components/market/wallet/GameCoinCard.vue'
|
import GameCoinCard from '@/components/market/wallet/GameCoinCard.vue'
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@ -37,7 +35,41 @@ import GameCoinCard from '@/components/market/wallet/GameCoinCard.vue'
|
|||||||
TotalBalance
|
TotalBalance
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
export default class WalletPanel extends Vue {}
|
export default class WalletPanel extends Vue {
|
||||||
|
private coinList: ICoinData[] = [
|
||||||
|
{
|
||||||
|
name: 'CEBG Coin',
|
||||||
|
symbol: 'CEC',
|
||||||
|
amount: 100,
|
||||||
|
icon: require('@/assets/market/cec.png'),
|
||||||
|
price: 100
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'CEBG Gem',
|
||||||
|
symbol: 'CEG',
|
||||||
|
amount: 100,
|
||||||
|
icon: require('@/assets/market/ceg.png'),
|
||||||
|
price: 100
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
|
private gameCoinList: ICoinData[] = [
|
||||||
|
{
|
||||||
|
name: 'CEBG Coin',
|
||||||
|
symbol: 'gCEC',
|
||||||
|
amount: 100,
|
||||||
|
icon: require('@/assets/market/cec.png'),
|
||||||
|
price: 100
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'CEBG Gem',
|
||||||
|
symbol: 'gCEG',
|
||||||
|
amount: 100,
|
||||||
|
icon: require('@/assets/market/ceg.png'),
|
||||||
|
price: 100
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@import '../../../scss/breakpoints.scss';
|
@import '../../../scss/breakpoints.scss';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user