From 2e9213d7b398e5b2162a049ec7456a1287b476c8 Mon Sep 17 00:00:00 2001 From: "[liang]" <[595996918@qq.com]> Date: Wed, 24 Aug 2022 12:01:43 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=BA=A4=E6=98=93?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2,=E6=95=B4=E7=90=86=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/KeyValueRow/KeyValueRow.vue | 30 +- .../entrustOrderList/entrustOrderList.vue | 475 ++++++++++++++++++ components/positionList/positionList.vue | 177 +++++++ components/transaction/transaction.vue | 410 +++++++++++++-- pages/markets/trade.vue | 31 +- pages/me/donateRecord.vue | 4 +- pages/me/walletHistory.vue | 4 +- pages/mine/mineRecord.vue | 14 +- pages/recharge/rechargeRecord.vue | 20 +- pages/subscription/details.vue | 4 +- pages/subscription/index.vue | 30 +- pages/withdrawal/withdrawal.vue | 16 +- pages/withdrawal/withdrawalRecord.vue | 28 +- static/maskets/add.png | Bin 0 -> 295 bytes static/maskets/ic_ma_arrow_down.png | Bin 0 -> 257 bytes static/maskets/sub.png | Bin 0 -> 196 bytes utils/language/en_US.js | 17 +- 17 files changed, 1132 insertions(+), 128 deletions(-) create mode 100644 static/maskets/add.png create mode 100644 static/maskets/ic_ma_arrow_down.png create mode 100644 static/maskets/sub.png diff --git a/components/KeyValueRow/KeyValueRow.vue b/components/KeyValueRow/KeyValueRow.vue index b7d1737..f954e5a 100644 --- a/components/KeyValueRow/KeyValueRow.vue +++ b/components/KeyValueRow/KeyValueRow.vue @@ -4,8 +4,14 @@ --> - {{ keyName }} - {{ value }} + {{ + keyName + }} + {{ + value + }} @@ -55,11 +61,27 @@ export default { return '28rpx' } }, + lineHeight: { + type: String | Number, + default() { + return '' + } + }, }, data() { return { } }, + computed: { + lineHeightValue() { + let height = '28rpx' + if (this.size) { + height = this.size + } + console.log(height); + return height; + }, + }, } @@ -71,7 +93,7 @@ export default { .keyName { vertical-align: top; - height: 100%; + // height: 100%; width: auto; display: inline-block; } @@ -79,7 +101,7 @@ export default { .value { position: absolute; right: 0; - height: 100%; + // height: 100%; width: auto; display: inline-block; text-align: right; diff --git a/components/entrustOrderList/entrustOrderList.vue b/components/entrustOrderList/entrustOrderList.vue index e69de29..3580c19 100644 --- a/components/entrustOrderList/entrustOrderList.vue +++ b/components/entrustOrderList/entrustOrderList.vue @@ -0,0 +1,475 @@ + + + + + diff --git a/components/positionList/positionList.vue b/components/positionList/positionList.vue index e69de29..a44a98b 100644 --- a/components/positionList/positionList.vue +++ b/components/positionList/positionList.vue @@ -0,0 +1,177 @@ + + + + + diff --git a/components/transaction/transaction.vue b/components/transaction/transaction.vue index 3c4fc70..ae680da 100644 --- a/components/transaction/transaction.vue +++ b/components/transaction/transaction.vue @@ -1,30 +1,104 @@ diff --git a/pages/markets/trade.vue b/pages/markets/trade.vue index def51a1..37087d7 100644 --- a/pages/markets/trade.vue +++ b/pages/markets/trade.vue @@ -5,26 +5,22 @@ - - + - - - + + + + + + diff --git a/pages/markets/trade.vue b/pages/markets/trade.vue index 37087d7..b75d23c 100644 --- a/pages/markets/trade.vue +++ b/pages/markets/trade.vue @@ -14,8 +14,6 @@ - - @@ -39,6 +37,19 @@ export default { methods: { depthChange(e) { console.log(e); + }, + goto(page) { + let url = ''; + switch (page) { + case 'kLine': + url = '/pages/markets/kLine' + break; + default: + break; + } + uni.navigateTo({ + url, + }); } }, diff --git a/pages/mine/mineDetails.vue b/pages/mine/mineDetails.vue index 81d1875..c51a6e9 100644 --- a/pages/mine/mineDetails.vue +++ b/pages/mine/mineDetails.vue @@ -63,10 +63,10 @@ export default { }, onShow() { }, methods: { - goto(id) { - // console.log(id); + goto(page) { + // console.log(page); let url = ''; - switch (id) { + switch (page) { case 'mineRecord': url = '/pages/mine/mineRecord' break; diff --git a/pages/mine/mineRecord.vue b/pages/mine/mineRecord.vue index 92856ba..3ba63f6 100644 --- a/pages/mine/mineRecord.vue +++ b/pages/mine/mineRecord.vue @@ -5,9 +5,10 @@ + - + diff --git a/pages/recharge/recharge.vue b/pages/recharge/recharge.vue index 9d68f55..b960639 100644 --- a/pages/recharge/recharge.vue +++ b/pages/recharge/recharge.vue @@ -137,10 +137,10 @@ export default { }, onShow() { }, methods: { - goto(id) { - // console.log(id); + goto(page) { + // console.log(page); let url = ''; - switch (id) { + switch (page) { case 'rechargeRecord': url = '/pages/recharge/rechargeRecord' break; diff --git a/pages/withdrawal/addAddress.vue b/pages/withdrawal/addAddress.vue index 69eecb2..ff2b925 100644 --- a/pages/withdrawal/addAddress.vue +++ b/pages/withdrawal/addAddress.vue @@ -104,10 +104,10 @@ export default { }, onShow() { }, methods: { - goto(id) { - // console.log(id); + goto(page) { + // console.log(page); let url = ''; - switch (id) { + switch (page) { case 'withdrawalRecord': url = '/pages/withdrawal/withdrawalRecord' break; diff --git a/pages/withdrawal/withdrawal.vue b/pages/withdrawal/withdrawal.vue index aa95125..16ead8e 100644 --- a/pages/withdrawal/withdrawal.vue +++ b/pages/withdrawal/withdrawal.vue @@ -193,10 +193,10 @@ export default { }, onShow() { }, methods: { - goto(id) { - // console.log(id); + goto(page) { + // console.log(page); let url = ''; - switch (id) { + switch (page) { case 'withdrawalRecord': url = '/pages/withdrawal/withdrawalRecord' break; diff --git a/utils/language/en_US.js b/utils/language/en_US.js index e5d573d..d5a5503 100644 --- a/utils/language/en_US.js +++ b/utils/language/en_US.js @@ -113,6 +113,15 @@ export default { ExpectProfit: 'Expect profit ', ExpectLoss: 'Expect loss ', + Highest:'24H Highest', + Lowest:'24H Lowest', + Amount:'24H Amount', + + MarketTrades:'Market Trades', + Quantity:'Quantity', + BuyingPrice:'Buying Price', + SellPrice20:'Sell Price20', + open:'Open', }, // 捐赠页面相关