| 123456789101112131415161718192021222324252627282930 |
- import axios from 'axios';
- import global from '../Global.js'
- // 基础方法进行封装
- function getApiBasic(url, postdata) {
- return axios.post(url, postdata).then(function (data) {
- let json = data.data;
- return json
- }, function (response) {
- console.info(response);
- })
- }
- // 调用的api改写成方法
- export function getUserList(postdata) {
- let url = headapi + 'getUserList';
- return getApiBasic(url, postdata);
- }
- // 上课中学生信息
- export function getHello(postdata) {
- let url = headapi + 'getUserListInfo';
- return getApiBasic(url, postdata);
- }
- // 是否开始上课的状态
- export function getClassStat(postdata) {
- let url = headapi + 'getClassStat';
- return getApiBasic(url, postdata);
- }
|