shop.js 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  1. import request from '@/common/util/request'
  2. //获取位置
  3. export const location = data => request.get('/store/get_sign_package', data) // 获取经纬度
  4. export const getLocation = data => request.get('/store/get_address_info', data) // 根据经纬度获取位置信息
  5. export const uploadSign = data => request.post('/store/upload_qian_ming_img', data) // 上传签名图片
  6. export const confirmReceipt = data => request.post('/store/sure_receive_order', data) // 确认收货
  7. export const editAds = data => request.post('/store/edit_store_address', data) // 修改店铺地址
  8. export const getAllVideo = data => request.get('/store_goods/get_all_video', data) // 获取视频
  9. /*店铺*/
  10. export const getState = data => request.get('/miniSub/query', data) // 获取状态
  11. export const getServiceInfo = data => request.get('/store/getServiceInfo ', data) // 获取政委信息
  12. export const storeAuth = data => request.post('/store/cert_store', data) // 门店认证
  13. export const agentInfo = data => request.get('/store/get_agent_info', data) // 获取代理信息
  14. export const getAgree = data => request.post('/store/set_agree', data) // 同意协议
  15. export const getIdCard = data => request.uploadFile('/miniSub/uploadmedia', data) // 二级商户注册认证上传身份证照片
  16. export const secondAuth = data => request.post('/miniSub/apply_wx', data) // 二级商户注册认证
  17. export const uploadCard = data => request.post('/store/upload_cert_img', data) //上传证件图片
  18. export const getStoreInfo = data => request.get('/store/get_store_info', data) // 获取店铺首页信息
  19. export const editName = data => request.post('/store/edit_store_info', data) // 修改店铺名称
  20. export const sendSms = data => request.get('/store/send_sms', data) // 发送验证码
  21. export const checkPhone = data => request.post('/store/check_sms', data) // 验证手机号
  22. export const editPhone = data => request.post('/store/edit_sms', data) // 修改手机号
  23. export const uploadImg = data => request.get('/store/upload_store_img', data) // 上传门店图片
  24. export const shareStore = data => request.post('/store/share_store', data) // 分享店铺
  25. //商品管理
  26. export const getGoodsList = data => request.get('/store_goods/get_goods_list', data) //获取商品列表
  27. export const shareGoods = data => request.get('/store_goods/share_goods', data) //分享商品
  28. export const getSku = data => request.get('/store_goods/get_goods_taps', data) //获取商品sku
  29. export const goodsDetail = data => request.get('/store_goods/get_goods_detail', data) // 获取商品详情
  30. export const setStock = data => request.post('/store_goods/set_store_goods_inventory', data) // 提交库存信息
  31. //地址管理
  32. export const updateAds = data => request.post('/store/update_address', data) //修改用户地址
  33. export const deleteAds = data => request.post('/store/destroy_address', data) //删除用户地址
  34. export const addAds = data => request.post('/store/add_address', data) //添加用户地址
  35. export const getAllAds = data => request.get('/store/get_all_address', data) //获取所有用户地址
  36. export const getUserPhone = data => request.get('/store/get_user_info', data) //获取用户信息(手机号)
  37. export const setDefault = data => request.post('/store/set_default_address', data) //设为默认地址
  38. export const getAds = data => request.get('/store/get_address', data) //获取用户收货地址
  39. export const getExpress = data => request.get('/store/get_express_company', data) //根据物流单号获取物流公司
  40. //订单管理
  41. export const getOrderInfo = data => request.get('/store/get_order_info', data) //获取订单详情
  42. export const orderQuery = data => request.get('/store/get_order_no_info', data) //根据订单号查询订单
  43. export const getOrderList = data => request.get('/store/get_order_list1', data) //获取订单列表
  44. export const replaceOrder = data => request.post('/store/submit_order_info', data) //代下单(确认订单)
  45. export const setVip = data => request.post('/store/set_vip', data) //升级vip
  46. export const cancelVip = data => request.post('/store/cancel_vip', data) //取消vip
  47. export const payMent = data => request.post('/payment/pay', data) //立即支付
  48. export const getStoreUser = data => request.get('/store_goods/get_store_user', data) //获取用户列表(代下单前选择用户)
  49. export const cancelAuth = data => request.post('/store/auth_order_cancel', data) //代理审核用户取消订单
  50. export const shareOrder = data => request.post('/store/share_order_info', data) //分享订单
  51. export const cancelOrder = data => request.post('/store/cancel_order', data) //代理取消订单(只取消代理代下单)
  52. export const cancelAudit = data => request.post('/store/auth_order_cancel ', data) //代理审核用户端取消的订单(已付款)
  53. export const addUser = data => request.post('/store/add_user', data) //代下单添加用户
  54. export const getOrigin = data => request.get('/store/get_origin_order_info', data) // 获得可退货数据
  55. export const cancelList = data => request.get('/store_goods/get_cancel_order_list', data) // 获取取消订单列表
  56. export const refundList = data => request.get('/store_goods/get_all_refund_order', data) // 获取退货订单列表
  57. export const refundOrderDetail = data => request.get('/store_goods/get_refund_order_detail', data) // 获取退货订单详情
  58. export const delCancel = data => request.post('/store_goods/delete_origin_order', data) //取消订单列表删除记录
  59. export const editRemark = data => request.post('/store/edit_order_remark', data) //未付款状态下修改备注
  60. export const getOrderNum = data => request.get('/store/get_order_status_num', data) //获取订单列表上角标
  61. export const receiveOrder = data => request.post('/store/agent_sure_receive_order', data) //确认收货
  62. export const getNoSendOrder = data => request.get('/store/get_no_send_order', data) //获取全部待发货订单
  63. export const getNoFinishOrder = data => request.get('/minilogin/getNoFinishOrder', data) //被删除代理待处理订单
  64. //获取邀请人订单
  65. export const getMeetFiveDetail = data => request.get('/getMeetFiveDetail', data)
  66. //评价
  67. export const getComment = data => request.get('/store/get_comment', data) //获取评价信息
  68. export const replyCommet = data => request.post('/store/add_comment', data) //回复评论
  69. //登录
  70. export const loginTest = data => request.get('/set_login', data) // 登录测试
  71. //用户管理
  72. export const getUserInfo = data => request.get('/store/get_user_data_info', data) // 获取用户管理信息
  73. export const getBuyUser = data => request.get('/store/get_more_buy', data) // 获取更多购买者信息
  74. export const getScanUser = data => request.get('/store/get_more_scan', data) // 获取更多扫码者信息
  75. export const getMoreBuy = data => request.get('/store/get_more_user_info', data) // 获取更多购买者信息
  76. export const getUserOrder = data => request.get('/store/get_user_all_order', data) // 获取用户订单信息
  77. export const completeUser = data => request.post('/store/edit_user', data) // 完善用户信息
  78. export const getUser = data => request.get('/store/get_user', data) // 获取单个用户信息
  79. export const getUserData = data => request.get('/store_goods/get_user_data', data) // 获取客户管理页面数据
  80. export const getUserList = data => request.get('/store_goods/get_user_list', data) // 获取客户列表数据
  81. export const getseeUser = data => request.get('/store_goods/get_see_user_data', data) // 获取浏览客户页面数据
  82. export const getSeeUserList = data => request.get('/store_goods/get_see_user_list', data) // 获取浏览客户列表(把客户类型改成商品信息)
  83. //物流信息
  84. export const getLogsCode = data => request.get('/store/get_express_code', data) // 获取物流公司及CODE码
  85. export const addLogs = data => request.post('/store/add_order_express_no', data) // 添加物流单号信息
  86. export const getLogs = data => request.get('/store/get_order_express', data) // 订单物流查询
  87. export const pickUp = data => request.post('/store/one_self_take', data) // 自提
  88. export const editLog = data => request.post('/store_goods/edit_express', data) // 修改物流信息
  89. //商户认证
  90. export const getBank = data => request.get('/miniSub/get_all_bank', data) // 获取银行信息
  91. export const getBankBranch = data => request.get('/miniSub/get_bank_branch', data) // 获取银行支行信息
  92. //资金管理
  93. export const getAccount = data => request.get('/miniSub/get_account_info', data) //获取账户实时余额(冻结金额 | 可用金额)
  94. export const withdraw = data => request.post('/miniSub/withdrawal', data) //商户提现
  95. export const getBankInfo = data => request.get('/miniSub/get_bank_info', data) //获取银行账户信息
  96. export const setBank = data => request.post('/miniSub/set_bank_info', data) //修改银行账户信息
  97. export const getRecord = data => request.get('/miniSub/get_account_detail', data) //获取账户记录
  98. export const getSaleInfo = data => request.get('/store_goods/get_sale_info', data) //柱状图
  99. export const getSaleAccount = data => request.get('/store_goods/get_sale_account', data) //折线图
  100. //退货
  101. export const getRefund = data => request.get('/store/get_refund_order_detail', data) //获取退货详情
  102. export const refundOrderInfo = data => request.get('/store/get_origin_order_info', data) //获取可退货数据
  103. export const submitRefund = data => request.post('/store/submit_refund_order', data) //申请退货
  104. export const cancelRefund = data => request.get('/store/cancel_refund_order', data) //取消退货申请
  105. //点金计划
  106. export const goldPlan = data => request.post('/miniSub/dianjin', data) //开启点击计划
  107. export const receipts = data => request.post('/miniSub/business_tips', data) //开启商家小票
  108. export const adverting = data => request.post('/miniSub/adverting', data) //广告
  109. //积分
  110. export const integralRank = data => request.get('/integral/get_store_integral_order_by', data) //取消退货申请
  111. export const getIntegral = data => request.get('/integral/get_store_order_by', data) //获取个人积分
  112. export const getIntegralRecord = data => request.get('/integral/get_store_detail', data) //获取个人积分明细
  113. export const getInteGifts = data => request.get('/integral/get_inte_gifts', data) //我的积分与礼品列表
  114. export const exchangeGifts = data => request.post('/integral/exchange_gifts', data) //礼品兑换 gift_id num
  115. export const cancelExchange = data => request.post('/integral/cancel_exchange_gifts', data) //取消兑换 兑换id
  116. export const myExchange = data => request.get('/integral/my_exchange', data) //我的兑换 page_index page_size
  117. export const myGifts = data => request.get('/integral/my_gifts', data) //我的礼品 page_index page_size
  118. export const getAgentGifts = data => request.get('/integral/get_agent_gifts', data) //下级礼品 店铺id
  119. export const myAgentExchange = data => request.get('/integral/my_agent_exchange', data) //我的下级兑换
  120. //获取争霸赛积分
  121. export const getZbsData = data => request.get('/store_goods/getZbsData', data)
  122. //首页获取争霸赛积分和排行
  123. export const getZbsRank = data => request.get('/store/getZbsRank', data)
  124. //获取扫码详情
  125. export const scanCodeInfo = data => request.get('/store/scan_code_info', data)
  126. //提交扫码内容
  127. export const submitCodeInfo = data => request.post('/store/submit_scan_code_info', data)
  128. //删除扫码
  129. export const delScancode = data => request.post('/store/delete_scan_code', data)
  130. //绑定介绍人
  131. export const bindRecomer = data => request.post('/store/bindRecomer', data)
  132. //介绍人列表
  133. export const getAllRecomer = data => request.get('/store/getAllRecomer', data)
  134. //换绑介绍人
  135. export const editBindRecomer = data => request.post('/store/editBindRecomer', data)