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 @@
+
+
+
+
+ {{ i18n.CurrentEntrust }}
+
+ {{ i18n.Position }}
+
+ {{ i18n.Closed }}
+
+ {{ i18n.Revoked }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ coin }}/{{ currency }}
+ 1 * 10
+ {{ i18n.Bond }}
+ 4070.00
+ {{ i18n.StyPrice }}
+ 0.00
+
+
+
+ {{ i18n.AmountLeverage }}
+ 40700
+ {{ i18n.Fee }}
+ 40.70
+ {{ i18n.StsPrice }}
+ 0.00
+
+
+
+ {{ i18n.CurrentPrice }}
+ 39952.64
+ {{ i18n.status }}
+ Closed
+ {{ i18n.do }}
+
+ Stop/Limit
+ {{ i18n.ExpectProfit }}
+ -730.45
+
+
+
+ {{ i18n.ClosePrice }}
+ 39952.64
+ {{ i18n.status }}
+ Closed
+ {{ i18n.PL }}
+ 112.02
+
+
+
+ {{ i18n.status }}
+ Closed
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ i18n.StyPrice }}
+ {{ i18n.ExpectProfit }} {{ 0.01 }}
+
+
+
+
+
+
+
+ {{ i18n.StsPrice }}
+ {{ i18n.ExpectLoss }} {{ 0.01 }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/components/positionList/positionList.vue b/components/positionList/positionList.vue
index e69de29..249ca45 100644
--- a/components/positionList/positionList.vue
+++ b/components/positionList/positionList.vue
@@ -0,0 +1,177 @@
+
+
+
+ {{ i18n.UnitPrice }}
+ {{ i18n.Number }}
+
+
+
+ 47823.00
+ {{ item }}
+
+
+
+
+ 34985.93
+ ≈$28767.23
+
+
+
+
+ 47823.00
+ {{ item }}
+
+
+
+
+
+
+
+
+
+
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 @@
-
- 买入
- 卖出
-
+
+ {{ i18n.LONG }}
+ {{ i18n.SHORT }}
+
+
+
+ {{ priceTypeList[priceTypeValue].text }}
+
+
+
+
+ {{ item.text }}
+
+
+
+
+
+ {{ i18n.MarketOptimalPrice }}
+
+
+ {{ currency }}
+
+
+
+
+ {{ leverageValue }}
+
+
+
+ {{ item }}
+
+
+
+
+
+
+
+ {{ coin }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ type === 'buy' ? `${i18n.buyLong}${coin}` : `${i18n.sellSHORT}${coin}` }}
+
diff --git a/pages.json b/pages.json
index 8618ea3..440e954 100644
--- a/pages.json
+++ b/pages.json
@@ -44,6 +44,12 @@
"navigationStyle": "custom"
}
},
+ {
+ "path": "pages/markets/kLine",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ },
// charity
{
diff --git a/pages/home/index.vue b/pages/home/index.vue
index 64da822..2a027c6 100644
--- a/pages/home/index.vue
+++ b/pages/home/index.vue
@@ -1,647 +1,721 @@
-
-
-
-
- {{ i18n.customerService }}
-
- {{ langTrue }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ i18n.homeMessage }}
-
-
-
-
-
- {{ i18n.Recharge }}
-
-
-
- {{ i18n.Mine }}
-
-
-
- {{ i18n.Subcription }}
-
-
-
-
-
- {{ i18n.TodaySteps }}
-
-
- {{ i18n.ReceiveEarnings }}
-
-
-
-
-
-
-
- {{ item.title }}
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
-
-
-
+ updateEcharts(newValue, oldValue, ownerInstance, instance) {
+ // 监听 service 层数据变更
+ myChart.setOption(newValue)
+ },
+ onClick(event, ownerInstance) {
+ // 调用 service 层的方法
+ ownerInstance.callMethod('onViewClick', {
+ test: 'test'
+ })
+ },
+ initChart() {
+ // let myChart = echarts.init(this.$refs.chart);
+ // console.log(document);
+ // console.log(this.$refs.chart);
+ // this.myChart = echarts.init(document.getElementById('chart'));
+ // this.myChart = echarts.init(this.$refs.chart);
+ // myChart = echarts.init(document.getElementById('chart'))
+ this.option = {
+ title: {
+ text: this.stepsNum,
+ // 副标题
+ subtext: "",
+ // 主副标题间距
+ itemGap: 0,
+ left: 'center',
+ top: 'center',
+ // 主标题样式
+ textStyle: {
+ fontSize: '20',
+ color: '#fff'
+ },
+ },
+ series: [{
+ name: '环形饼图',
+ type: 'pie',
+ radius: ['48%', '70%'],
+ avoidLabelOverlap: false,
+ label: {
+ show: false,
+ position: 'center'
+ },
+ itemStyle: {
+ // 设置扇形的阴影
+ shadowBlur: 30,
+ shadowColor: '#15141F',
+ shadowOffsetX: 'center',
+ shadowOffsetY: 'center'
+
+ },
+ data: [{
+ value: +this.stepsNum / this.stepTarget
+ ,
+ name: '步数',
+ itemStyle: {
+ color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
+ offset: .2,
+ color: '#47BDFF'
+ }, {
+ offset: .5,
+ color: '#34AEFF'
+ }, {
+ offset: 1,
+ color: '#0589FF'
+ }
+ ]),
+ borderRadius: 800,
+
+
+ }
+ },
+ {
+ value: (this.stepTarget - this.stepsNum) / this.stepTarget,
+ name: '剩余步数',
+ itemStyle: {
+ color: '#15141F',
+
+ }
+ }
+ ]
+ }]
+ }
+
+ // myChart.setOption(this.option, true);
+ // window.addEventListener('resize', () => {
+ // myChart.resize();
+ // });
+ }
+ },
+ watch: {
+ // 如果 `question` 发生改变,这个函数就会运行
+ columData: function(newQuestion, oldQuestion) {
+
+ // this.updateEcharts(this.option)
+ }
+ },
+ }
+
+
+
\ No newline at end of file
diff --git a/pages/markets/kLine.vue b/pages/markets/kLine.vue
new file mode 100644
index 0000000..3949589
--- /dev/null
+++ b/pages/markets/kLine.vue
@@ -0,0 +1,300 @@
+
+
+
+ {{ 'BTC/USDT' }}
+
+
+
+
+
+
+
+ Market trades
+
+
+
+ {{ i18n.Quantity }}
+ {{ i18n.BuyingPrice }}
+
+
+
+ 0.87897874
+ {{ item }}
+
+
+
+
+
+
+ {{ i18n.Quantity }}
+ {{ i18n.SellPrice20 }}
+
+
+
+ 0.87897874
+ {{ item }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ i18n.open }}
+
+
+
+ {{ i18n.close }}
+
+
+
+
+
+
+
+
+
diff --git a/pages/markets/trade.vue b/pages/markets/trade.vue
index def51a1..b75d23c 100644
--- a/pages/markets/trade.vue
+++ b/pages/markets/trade.vue
@@ -5,26 +5,20 @@
-
-
+
-
-
-
-
+
+
+