index.js 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * @Author: aliyun0758874076 2300202994@qq.com
  3. * @Date: 2023-09-14 10:59:00
  4. * @LastEditors: aliyun0758874076 2300202994@qq.com
  5. * @LastEditTime: 2023-10-06 15:52:39
  6. * @FilePath: \jufeng-pc-settle\src\api\index.js
  7. * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  8. */
  9. // 导入api接口模块
  10. import home from './home'
  11. // 获取当前环境变量 true => 生产环境 false => 开发环境
  12. const BASEURL = (process.env.NODE_ENV === 'production') ? 'https://nsappapi.tuanfengkeji.cn' : '/api'
  13. // 识别证件号的根路径
  14. const CARDURL = `https://www.zhult.com/samrtWorker/api`
  15. export const api = {
  16. // 登录模块
  17. ...home(BASEURL),
  18. // 图片上传
  19. upload: `${BASEURL}/file/upload`,
  20. // 商家入驻
  21. getAdditional: `${BASEURL}/packageMember/selectPackageMember`,
  22. getTreeOne: `${BASEURL}/cityManageArea/getTreeOne`,
  23. getTreeClass: `${BASEURL}/cityManageArea/getTreeClass`, // getTree 地区分类树查询
  24. getTree: `${BASEURL}/cityManageArea/getTree`, // getTree 地区分类树查询 已废弃 一次性返回的数据太多很慢
  25. selectAnd: `${BASEURL}/platformUser/selectAnd`, // 查询商家/营销策划师
  26. enterpriseCheck: `${BASEURL}/check/enterpriseCheck`,
  27. individualCheck: `${BASEURL}/check/individualCheck`,
  28. organizationsCheck: `${BASEURL}/check/organizationsCheck`,
  29. personalCheck: `${BASEURL}/check/personalCheck`,
  30. getByName: `${BASEURL}/app/getSelect`,
  31. plannerCheck: `${BASEURL}/check/marketing`, // 策划师入驻
  32. subsidiaryCompanyCheck: `${BASEURL}/check/agentCheck`,
  33. getCategoryList: `${BASEURL}/shopCategory/getShopCategoryLevel`,
  34. getChildCategoryList: `${BASEURL}/shopCategory/getShopCategorySon`,
  35. cardRecognition:`${CARDURL}/third/ocr/idOcr`, // 身份证识别
  36. businessRecognition:`${CARDURL}/third/ocr/baiduBusinessLicense`, // 营业执照识别
  37. }
  38. export default api