diff --git a/dist.zip b/dist.zip deleted file mode 100644 index f82a147..0000000 Binary files a/dist.zip and /dev/null differ diff --git a/src/assets/scss/module/_contract.scss b/src/assets/scss/module/_contract.scss index dd7235c..191bf2b 100644 --- a/src/assets/scss/module/_contract.scss +++ b/src/assets/scss/module/_contract.scss @@ -7,10 +7,57 @@ } .page-top { - padding-top: 1px; + padding-left: 1rem; + padding-right: 0.5rem; + padding-bottom: 1rem; background-color: #f5f5f5; - border-bottom: 1px solid #ebebeb; + // border-bottom: 1px solid #ebebeb; + .left-box-A{ + padding-right: 1rem; + } + .top-box-A{ + color: #000; + background-color: #fff; + padding: 1rem; + margin-bottom: 1rem; + + .min-width-A{ + min-width: 120px; + } + .min-width-B{ + min-width: 160px; + } + .fn-28{ + font-weight: bold; + padding-right: 1rem; + } + .p-l-A{ + padding-left: 2rem!important; + } + } + .bottom-box-left{ + width: 400px; + flex-shrink: 0; + background-color: #fff; + margin-right: 1rem; + + .table td{ + border-top: 1px solid #eee; + } + .table tr.active{ + background-color: #F8F8FD; + } + // .table tr.active td.tr-text{ + // color: #4387F7 !important; + // } + // td.tr-text{ + // color: #578F45 !important; + // } + .table tbody tr{ + cursor: pointer; + } + } .kline-box { // background: $cls-white; background: #fff; @@ -59,7 +106,8 @@ .handicap { // width: 200px; - width: 250px; + width: 370px; + font-size: 16px; .handicap-body { .item { @@ -76,7 +124,7 @@ .sell, .buy { // height: 310px; - height: 230px; + height: 265px; overflow: auto; } diff --git a/src/assets/scss/module/_market-book.scss b/src/assets/scss/module/_market-book.scss index dbd8f02..b798f09 100644 --- a/src/assets/scss/module/_market-book.scss +++ b/src/assets/scss/module/_market-book.scss @@ -4,6 +4,7 @@ .order-book th { width: 100%; table-layout: fixed; + font-size: 16px; } .order-book tr { float: left; @@ -12,7 +13,7 @@ } .order-book .table thead th { font-weight: 400; - font-size: 12px; + font-size: 14px; } .order-book thead tr { border-bottom: 1px solid #FFFFFF; @@ -121,7 +122,7 @@ .ob-heading span { color: #4a4a4a; display: block; - font-size: 12px; + font-size: 14px; font-weight: 400; } diff --git a/src/assets/scss/module/_market-history.scss b/src/assets/scss/module/_market-history.scss index ea07d78..38c1ad6 100644 --- a/src/assets/scss/module/_market-history.scss +++ b/src/assets/scss/module/_market-history.scss @@ -1,3 +1,7 @@ +.market-history{ + font-size: 16px; + height: 100%; +} .market-history .nav { background: #F5F9FC; } @@ -38,3 +42,6 @@ border: 1px solid #ebebeb; border-radius: 2px; } +.table td{ + font-size: 16px; +} \ No newline at end of file diff --git a/src/assets/scss/module/_market-pairs.scss b/src/assets/scss/module/_market-pairs.scss index 8fbe192..face53c 100644 --- a/src/assets/scss/module/_market-pairs.scss +++ b/src/assets/scss/module/_market-pairs.scss @@ -1,6 +1,5 @@ .market-pairs { border: 1px solid #ebebeb; - padding-top: 14px; border-radius: 2px; } @@ -24,7 +23,7 @@ } .market-pairs .nav { - margin-top: 14px; + // margin-top: 14px; background: #f5f9fc; } diff --git a/src/assets/scss/module/_market-trade.scss b/src/assets/scss/module/_market-trade.scss index 1fa94b9..045b562 100644 --- a/src/assets/scss/module/_market-trade.scss +++ b/src/assets/scss/module/_market-trade.scss @@ -80,18 +80,18 @@ .market-trade button.buy, .market-trade button.sell { - background: #26de81; + background: #6CD98A; color: #fff; text-transform: uppercase; padding: 10px; margin-top: 30px; width: 100%; - box-shadow: 0px 0px 15px 0px #26de81ad; + // box-shadow: 0px 0px 15px 0px #26de81ad; } .market-trade button.sell { - background: #ff231f; - box-shadow: 0px 0px 15px 0px #ff231fad; + background: #EC4030; + // box-shadow: 0px 0px 15px 0px #ff231fad; } .market-trade p { diff --git a/src/components/KLine.vue b/src/components/KLine.vue index 69dc8f9..bf49642 100644 --- a/src/components/KLine.vue +++ b/src/components/KLine.vue @@ -394,7 +394,7 @@ export default { \ No newline at end of file diff --git a/src/views/contract/index.vue b/src/views/contract/index.vue index c10697b..cd75d8e 100644 --- a/src/views/contract/index.vue +++ b/src/views/contract/index.vue @@ -7,13 +7,136 @@ -
| {{ $t("contract.h5") }} | +{{ $t("contract.g3") }} | ++ {{ $t("contract.h6") }} + | +
|---|---|---|
| + {{ item.symbol }}/{{ parent.coin_name }} + | ++ {{ item.price }} + | ++ {{ item.increaseStr }} + | +
| {{ $t("contract.h5") }} | -{{ $t("contract.g3") }} | -- {{ $t("contract.h6") }} - | -
|---|---|---|
| - {{ item.symbol }}/{{ parent.coin_name }} - | -- {{ item.price }} - | -- {{ item.increaseStr }} - | -
| {{ $t("exchange.price") }}({{pair.to}}) | -{{ $t("exchange.amount") }} - - ({{pair.to}}) - | -{{ $t("exchange.total") }}({{pair.from}}) | -||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ item.price|omitTo(priceDecimals) }} | -{{ item.amount|omitTo(qtyDecimals) }} | -{{ item.price|multiple(item.amount, priceDecimals) }} | +
| {{ $t("exchange.price") }}({{pair.to}}) | +{{ $t("exchange.amount") }} + + ({{pair.to}}) + | +{{ $t("exchange.total") }}({{pair.from}}) |
|---|---|---|
| - {{ $t("exchange.last-price") }} - - {{ newTrade.price}} - | -- CNY - $ - - ≈ {{newTrade.price*priceCny|omitTo(2)}} - ≈ {{newTrade.price|omitTo(2)}} - | -- {{ $t("exchange.change") }} - {{ changeRate }} - | -
| {{ $t("exchange.last-price") }} - | -- CNY - - | -{{ $t("exchange.change") }} - | -
| {{ item.price|omitTo(priceDecimals) }} | -{{ item.amount|omitTo(qtyDecimals) }} | -{{ item.price|multiple(item.amount, priceDecimals) }} | -
|
-
- {{ $t("exchange.price") }}({{pair.to}})
-
-
- {{ $t("exchange.amount") }}({{pair.from}})
-
-
- {{ $t("exchange.time") }}
-
- |
+ ||
|---|---|---|
| {{ item.price|omitTo(priceDecimals) }} | +{{ item.amount|omitTo(qtyDecimals) }} | +{{ item.price|multiple(item.amount, priceDecimals) }} |
|
- {{ item.price }}
- {{ item.amount }}
- {{ item.time }}
- |
+
+ ||
| + {{ $t("exchange.last-price") }} + + + + {{ activeContract.price }} + + | ++ CNY + $ + + ≈ {{activeContract.price*priceCny|omitTo(2)}} + ≈ {{ activeContract.price|omitTo(2) }} + | ++ {{ $t("exchange.change") }} + {{ activeContract.increaseStr }} + | +
| {{ $t("exchange.last-price") }} - | ++ CNY - + | +{{ $t("exchange.change") }} - | +
| {{ item.price|omitTo(priceDecimals) }} | +{{ item.amount|omitTo(qtyDecimals) }} | +{{ item.price|multiple(item.amount, priceDecimals) }} |
|
+
+ {{ $t("exchange.price") }}({{pair.to}})
+
+
+ {{ $t("exchange.amount") }}({{pair.from}})
+
+
+ {{ $t("exchange.time") }}
+
+ |
+
|---|
|
+ {{ item.price }}
+ {{ item.amount }}
+ {{ item.time }}
+ |
+