Commit 30a6618b authored by wxk's avatar wxk

接口基本连接完喽

parent ca4221cf
...@@ -11,7 +11,7 @@ const Api = { ...@@ -11,7 +11,7 @@ const Api = {
GetWalletInfo: "/walletInfo ", //查询某个账号的当前资产信息 GetWalletInfo: "/walletInfo ", //查询某个账号的当前资产信息
Transfer: "/transfer", //充币提币 Transfer: "/transfer", //充币提币
Transaction: "/transaction", //交易记录 Transaction: "/transaction", //交易记录
Records: "/records", //历史记录 Records: "/records", //充提记录
} }
export default Api; export default Api;
This diff is collapsed.
...@@ -59,8 +59,10 @@ ...@@ -59,8 +59,10 @@
methods: { methods: {
getPlatInfo() { getPlatInfo() {
axios.post(ApiConfig.GetPlatformInfo).then( res =>{ axios.post(ApiConfig.GetPlatformInfo).then( res =>{
this.platInfo = res.data.data; if (res.data.code === 200) {
// console.log(this.platInfo) this.platInfo = res.data.data;
// console.log(this.platInfo)
}
}) })
}, },
getRobotBank() { getRobotBank() {
...@@ -73,8 +75,10 @@ ...@@ -73,8 +75,10 @@
"platform":[] //交易所种类 可选参数 "platform":[] //交易所种类 可选参数
} }
axios.post(ApiConfig.GetRobotBank,params).then( res => { axios.post(ApiConfig.GetRobotBank,params).then( res => {
// console.log(res.data.data); if (res.data.code === 200) {
this.robotBankList = res.data.data // console.log(res.data.data);
this.robotBankList = res.data.data
}
}) })
}, },
} }
......
...@@ -242,15 +242,19 @@ ...@@ -242,15 +242,19 @@
//机器人预警状态查询 //机器人预警状态查询
getRobotStatus(params) { getRobotStatus(params) {
axios.post(ApiConfig.GetRobotStatus,params).then( res => { axios.post(ApiConfig.GetRobotStatus,params).then( res => {
// console.log(res.data) if (res.data.code === 200) {
this.robotStatusList = res.data; // console.log(res.data)
this.robotStatusList = res.data.data;
}
}) })
}, },
//获取符合筛选条件的机器人列表 //获取符合筛选条件的机器人列表
getRobotList(params) { getRobotList(params) {
axios.post(ApiConfig.GetMatchRobots,params).then( res => { axios.post(ApiConfig.GetMatchRobots,params).then( res => {
// console.log(res.data.data); if (res.data.code === 200) {
this.robotList = res.data.data; // console.log(res.data.data);
this.robotList = res.data.data;
}
}) })
}, },
//交易所过滤 //交易所过滤
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment