1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
| import Serve from '@/api/serve/index'
|
| class Home {
| // 获取大部分数据
| static indexList(data,config){
| return Serve.get('/indexList',data,config)
| }
| // 获取大部分数据
| static getwhList(data,config){
| return Serve.get('/market/getForeignGxchange',data,config)
| }
| // 获取自选数据
| static getCollect(){
| return Serve.get('/getCollect')
| }
|
| /**
| * 添加自选
| * @param {object} data
| * @param {string} data.pair_id
| * @param {string} data.pair_name
| */
| static option(data){
| return Serve.post('/option',data)
| }
| }
|
| export default Home;
|
|