api.js 742 B

12345678910111213
  1. const http = uni.$u.http
  2. // post请求,获取菜单
  3. export const loginRes = (params, config = {}) => http.post('admin/api.login/index', params, config)
  4. export const updata = (params, config = {}) => http.post('admin/api.login/appupdata', params, config)
  5. export const logout = (params, config = {}) => http.post('admin/api.login/logout', params, config)
  6. export const register = (params, config = {}) => http.post('admin/api.login/register', params, config)
  7. export const loginRes1 = (params, config = {}) => http.post('admin/api.test/index', params, config)
  8. // get请求,获取菜单,注意:get请求的配置等,都在第二个参数中,详见前面解释
  9. export const wel = (data) => http.get('admin/api.api/noticelist', data)