Commit 70d1debe authored by wxk's avatar wxk

充提币ok

parent 9f9798c1
...@@ -8,6 +8,8 @@ const Api = { ...@@ -8,6 +8,8 @@ const Api = {
GetRobotStatus: "/robotStatus",//机器人预警状态查询 GetRobotStatus: "/robotStatus",//机器人预警状态查询
GetPlatformInfo: "/platform",//交易所及匹配的交易对、目标币信息查询 GetPlatformInfo: "/platform",//交易所及匹配的交易对、目标币信息查询
GetRobotBank: "/accountlist",//查询机器人银行账户 GetRobotBank: "/accountlist",//查询机器人银行账户
GetWalletInfo: "/walletInfo ", //查询某个账号的当前资产信息
Transfer: "/transfer", //充币提币
} }
export default Api; export default Api;
This diff is collapsed.
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<nav-left :platInfo="platInfo"></nav-left> <nav-left :platInfo="platInfo"></nav-left>
</div> </div>
<div class="main"> <div class="main">
<router-view :platInfo="platInfo"></router-view> <router-view :platInfo="platInfo" :robotBankList="robotBankList"></router-view>
</div> </div>
</div> </div>
</div> </div>
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
data() { data() {
return { return {
platInfo: [], platInfo: [],
robotBankList: '',
// platInfo: [ // platInfo: [
// { // {
// "platform":"找币", // "platform":"找币",
...@@ -73,7 +74,8 @@ ...@@ -73,7 +74,8 @@
} }
axios.post(ApiConfig.GetRobotBank,params).then( res => { axios.post(ApiConfig.GetRobotBank,params).then( res => {
console.log(res.data) // console.log(res.data.data);
this.robotBankList = res.data.data
}) })
}, },
} }
......
...@@ -130,7 +130,7 @@ ...@@ -130,7 +130,7 @@
</ul> </ul>
<p v-if="robotList === null" class="no-data">暂无数据</p> <p v-if="robotList === null" class="no-data">暂无数据</p>
</div> </div>
<robot-details v-show="robotDetails" :robotDetailInfo="robotDetailInfo"></robot-details> <robot-details v-show="robotDetails" :robotDetailInfo="robotDetailInfo" :robotBankList="robotBankList"></robot-details>
</div> </div>
</template> </template>
...@@ -172,7 +172,7 @@ ...@@ -172,7 +172,7 @@
}; };
}, },
components: { RobotDetails }, components: { RobotDetails },
props: ['platInfo'], props: ['platInfo','robotBankList'],
created() { created() {
this.init(); this.init();
Bus.$on('navClick', ()=> { Bus.$on('navClick', ()=> {
......
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