You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

136 lines
6.4 KiB

6 months ago
  1. import http from './http'
  2. /**
  3. * 首页相关
  4. * */
  5. //轮播图
  6. export const getbanner = (data) => { return http('', data, { token: false, loading: false }) }
  7. //导航列表
  8. export const getitem = (data) => { return http('', data, { token: false, loading: false }) }
  9. //产品&业务描述
  10. export const getcpdesc= (data) => { return http('', data, { token: false, loading: false }) }
  11. //分类
  12. export const getcategory= (data) => { return http('', data, { token: false, loading: false }) }
  13. //产品列表
  14. export const getgoodlist= (data) => { return http('', data, { token: false, loading: false }) }
  15. //登录接口
  16. export const login= (data) => { return http('', data, { token: false, loading: false }) }
  17. //注册接口
  18. export const register= (data) => { return http('', data, { token: false, loading: false }) }
  19. //修改地址接口
  20. export const editaddress= (data) => { return http('', data, { token: false, loading: false }) }
  21. //收藏接口
  22. export const addcollection= (data) => { return http('', data, { token: false, loading: false }) }
  23. //收藏列表
  24. export const collectionlist= (data) => { return http('', data, { token: false, loading: false }) }
  25. //加入浏览记录
  26. export const add_read_record= (data) => { return http('', data, { token: false, loading: false }) }
  27. //浏览历史记录列表
  28. export const getread_recordlsit= (data) => { return http('', data, { token: false, loading: false }) }
  29. //清空浏览记录
  30. export const cleanrecord= (data) => { return http('', data, { token: false, loading: false }) }
  31. //提交订单
  32. export const postorder= (data) => { return http('', data, { token: false, loading: false }) }
  33. //支付
  34. export const wxpay= (data) => { return http('', data, { token: false, loading: false }) }
  35. //订单列表
  36. export const orderlist= (data) => { return http('', data, { token: false, loading: false }) }
  37. //订单列表2
  38. export const orderlist2= (data) => { return http('', data, { token: false, loading: false }) }
  39. //订单详细
  40. export const orderdetail= (data) => { return http('', data, { token: false, loading: false }) }
  41. //取消订单
  42. export const cancelOrder= (data) => { return http('', data, { token: false, loading: false }) }
  43. //详细文章
  44. export const detaildesc= (data) => { return http('', data, { token: false, loading: false }) }
  45. //申请退款
  46. export const sqtuik= (data) => { return http('', data, { token: false, loading: false }) }
  47. //申请退货
  48. export const sqtuih= (data) => { return http('', data, { token: false, loading: false }) }
  49. //小区列表
  50. export const getarealist= (data) => { return http('', data, { token: false, loading: false }) }
  51. //申请入驻
  52. export const sqruzhu= (data) => { return http('', data, { token: false, loading: false }) }
  53. //检查入驻状态
  54. export const checkruzhu= (data) => { return http('', data, { token: false, loading: false }) }
  55. //产品详细
  56. export const gooddetail= (data) => { return http('', data, { token: false, loading: false }) }
  57. //根据邀请码获取数据
  58. export const checkyqcode= (data) => { return http('', data, { token: false, loading: false }) }
  59. //获取公告
  60. export const notice= (data) => { return http('', data, { token: false, loading: false }) }
  61. //检查入驻按钮,审核作用
  62. export const baseset= (data) => { return http('', data, { token: false, loading: false }) }
  63. //获取注册地址列表
  64. export const getaddress= (data) => { return http('', data, { token: false, loading: false }) }
  65. //获取基础信息接口
  66. export const baseinfo= (data) => { return http('', data, { token: false, loading: false }) }
  67. //获取用户信息
  68. export const userinfo= (data) => { return http('', data, { token: false, loading: false }) }
  69. //充值支付
  70. export const czwxpay= (data) => { return http('', data, { token: false, loading: false }) }
  71. //申请提现
  72. export const sqtixian= (data) => { return http('', data, { token: false, loading: false }) }
  73. //提现记录
  74. export const tixlist= (data) => { return http('', data, { token: false, loading: false }) }
  75. //发送验证码
  76. export const sendcode= (data) => { return http('', data, { token: false, loading: false }) }
  77. //修改密码
  78. export const updatepsw= (data) => { return http('', data, { token: false, loading: false }) }
  79. //积分管理
  80. export const jifenlist= (data) => { return http('', data, { token: false, loading: false }) }
  81. //查看物流
  82. export const kdiinfo= (data) => { return http('', data, { token: false, loading: false }) }
  83. //检查已加购的商品库存是否有效
  84. export const checkkc= (data) => { return http('', data, { token: false, loading: false }) }
  85. //优惠券列表
  86. export const couponlist= (data) => { return http('', data, { token: false, loading: false }) }
  87. //用户优惠券
  88. export const mycouponlist= (data) => { return http('', data, { token: false, loading: false }) }
  89. //领取优惠券
  90. export const getcoupon= (data) => { return http('', data, { token: false, loading: false }) }
  91. //自动选择优惠券
  92. export const autochooseyhq= (data) => { return http('', data, { token: false, loading: false }) }
  93. //检查登录
  94. export const checkrg= (data) => { return http('', data, { token: false, loading: false }) }
  95. //订单信息
  96. export const orderinfo= (data) => { return http('', data, { token: false, loading: false }) }
  97. //提交验收数
  98. export const postyans= (data) => { return http('', data, { token: false, loading: false }) }
  99. //获取截单时间
  100. export const endtime= (data) => { return http('', data, { token: false, loading: false }) }
  101. //获取订单日期
  102. export const getdhrq= (data) => { return http('', data, { token: false, loading: false }) }
  103. //提交订单页面选择日期之后检查价格
  104. export const checkorder= (data) => { return http('', data, { token: false, loading: false }) }
  105. //导出订单excel表
  106. export const daochu= (data) => { return http('', data, { token: false, loading: false }) }
  107. //客户加单页面提交订单
  108. export const postorderjiad= (data) => { return http('', data, { token: false, loading: false }) }
  109. //客户加单页面提交订单
  110. export const orderjiad= (data) => { return http('', data, { token: false, loading: false }) }
  111. /*
  112. //请求方法
  113. http(接口地址='', 请求参数={}, 额外配置={})
  114. //默认配置
  115. {
  116. token: true, //携带令牌
  117. loading: true, //显示加载
  118. mock: false, //模拟数据
  119. }
  120. //调用示例1
  121. async () => {
  122. const data = await this.$api.login({
  123. code: this.code
  124. })
  125. //doSomething...
  126. }
  127. //调用示例2
  128. this.$api.login({
  129. code: this.code
  130. }).then(res => {
  131. //doSomething...
  132. }).catch(err => {
  133. //doSomething...
  134. })
  135. */