api.js 339 B

1234567
  1. const http = uni.$u.http
  2. // post请求,获取套餐列表
  3. export const postMenu = (params, config = {}) => http.post('/api/good/index', params, config)
  4. // get请求,获取菜单,注意:get请求的配置等,都在第二个参数中,详见前面解释
  5. export const getMenu = (data) => http.get('/ebapi/public_api/index', data)