Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
robot-monitor
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
汪晓凯
robot-monitor
Commits
6d47abe5
Commit
6d47abe5
authored
Jul 20, 2018
by
wxk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
行情接口ok
parent
bb4e641a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
5 deletions
+46
-5
api-config.js
src/config/api-config.js
+1
-0
RobotDetails.vue
src/views/RobotDetails.vue
+45
-5
No files found.
src/config/api-config.js
View file @
6d47abe5
...
@@ -14,6 +14,7 @@ const Api = {
...
@@ -14,6 +14,7 @@ const Api = {
Transfer
:
originUrl
+
"/transfer"
,
//充币提币
Transfer
:
originUrl
+
"/transfer"
,
//充币提币
Transaction
:
originUrl
+
"/transaction"
,
//交易记录
Transaction
:
originUrl
+
"/transaction"
,
//交易记录
Records
:
originUrl
+
"/records"
,
//充提记录
Records
:
originUrl
+
"/records"
,
//充提记录
Ticket
:
originUrl
+
'/ticket'
,
//查询交易对行情
}
}
export
default
Api
;
export
default
Api
;
src/views/RobotDetails.vue
View file @
6d47abe5
...
@@ -57,11 +57,10 @@
...
@@ -57,11 +57,10 @@
</p>
</p>
<p>
<p>
<span>
行情
</span>
<span>
行情
</span>
<span>
暂未开放
</span>
<span>
{{
ticketInfo
.
price
}}{{
robotDetailInfo
.
base
}}
</span>
<!--
<span>
$7376.84
</span>
-->
<span
class=
"cny"
>
≈¥
{{
ticketInfo
.
value
}}
</span>
<!--
<span
class=
"cny"
>
≈¥47986.10
</span>
-->
<br>
<!--
<br>
-->
<span
:class=
"[(ticketInfo.rise && ticketInfo.rise.indexOf('-')!== -1) ? 'green' : 'red']"
>
{{
ticketInfo
.
rise
}}
</span>
<!--
<span
class=
"green"
>
-1.82%
</span>
-->
</p>
</p>
</div>
</div>
</div>
</div>
...
@@ -281,6 +280,12 @@
...
@@ -281,6 +280,12 @@
end-placeholder=
"结束日期"
>
end-placeholder=
"结束日期"
>
</el-date-picker>
</el-date-picker>
</div>
</div>
<div
class=
"count-box"
>
<span
class=
"title"
>
总计
</span>
<span>
充币总量:
</span>
<span>
提币总量:
</span>
<span
class=
"button"
>
导出
</span>
</div>
<el-table
<el-table
v-loading=
"recordsLoading"
v-loading=
"recordsLoading"
:data=
"list1"
:data=
"list1"
...
@@ -459,6 +464,7 @@
...
@@ -459,6 +464,7 @@
return
{
return
{
robotDetailInfo
:
JSON
.
parse
(
sessionStorage
.
getItem
(
'robotDetailInfo'
)),
robotDetailInfo
:
JSON
.
parse
(
sessionStorage
.
getItem
(
'robotDetailInfo'
)),
robotInfo
:
{},
robotInfo
:
{},
ticketInfo
:
''
,
//行情
username
:
localStorage
.
getItem
(
'username'
),
username
:
localStorage
.
getItem
(
'username'
),
value1
:
true
,
value1
:
true
,
coinInfo
:
{},
//目标币账户信息
coinInfo
:
{},
//目标币账户信息
...
@@ -516,12 +522,26 @@
...
@@ -516,12 +522,26 @@
this
.
getTransaction
();
this
.
getTransaction
();
this
.
getRecords
();
this
.
getRecords
();
this
.
getCurrentRobot
();
this
.
getCurrentRobot
();
this
.
getTicket
();
},
},
//返回上一页(关闭详情)
//返回上一页(关闭详情)
closeDetails
()
{
closeDetails
()
{
Bus
.
$emit
(
'navClick'
);
Bus
.
$emit
(
'navClick'
);
this
.
$router
.
go
(
-
1
);
this
.
$router
.
go
(
-
1
);
},
},
//查询行情信息
getTicket
()
{
const
symbol
=
this
.
robotDetailInfo
.
coin
+
'/'
+
this
.
robotDetailInfo
.
base
;
const
params
=
{
symbol
:
symbol
,
platform
:
this
.
robotDetailInfo
.
platform
,
}
axios
.
post
(
ApiConfig
.
Ticket
,
params
).
then
(
res
=>
{
if
(
res
.
data
.
code
===
200
)
{
this
.
ticketInfo
=
res
.
data
.
data
;
}
})
},
//查询当前机器人信息
//查询当前机器人信息
getCurrentRobot
()
{
getCurrentRobot
()
{
const
symbol
=
this
.
robotDetailInfo
.
coin
+
'/'
+
this
.
robotDetailInfo
.
base
;
const
symbol
=
this
.
robotDetailInfo
.
coin
+
'/'
+
this
.
robotDetailInfo
.
base
;
...
@@ -1033,6 +1053,26 @@
...
@@ -1033,6 +1053,26 @@
color
:
rgba
(
51
,
51
,
51
,
1
);
color
:
rgba
(
51
,
51
,
51
,
1
);
}
}
}
}
.count-box
{
margin-top
:
-40px
;
.title
{
line-height
:
40px
;
font-size
:
16px
;
color
:
rgba
(
51
,
51
,
51
,
1
);
}
.button
{
padding
:
5px
10px
;
width
:
60px
;
height
:
25px
;
background
:
rgba
(
119
,
146
,
167
,
1
);
border-radius
:
4px
;
line-height
:
25px
;
text-align
:
center
;
color
:
rgba
(
255
,
255
,
255
,
1
);
font-size
:
12px
;
cursor
:
pointer
;
}
}
.select-bar-content
{
.select-bar-content
{
width
:
255px
;
width
:
255px
;
margin
:
0
0
20px
20px
;
margin
:
0
0
20px
20px
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment