url.js 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. var businessT = require('../tool/business-tool.js')
  2. var app_host = businessT.isDebug() ? 'http://120.79.211.173/sbl' : 'https://www.wodeshebao.com/sbl'
  3. // var app_host = businessT.isDebug() ? 'http://192.168.2.174/sbl' : 'https://www.wodeshebao.com/sbl'
  4. var www_host = businessT.isDebug() ? 'http://120.79.211.173/sbw' : 'https://www.wodeshebao.com/sbw'
  5. // var www_host = businessT.isDebug() ? 'http://192.168.2.174/sbw' : 'https://www.wodeshebao.com/sbw'
  6. var img_host = businessT.isDebug() ? 'http://120.79.211.173' : 'https://www.wodeshebao.com'
  7. // var img_host = businessT.isDebug() ? 'http://192.168.2.174' : 'https://www.wodeshebao.com'
  8. module.exports = {
  9. app_host: app_host,
  10. www_host: www_host,
  11. img_host: img_host,
  12. //验证码
  13. getVerifyCode: '/sms/short/code/v1',
  14. // 账户相关
  15. getVersion: '/open',
  16. login: '/user/login/v2',
  17. getUserInfo: '/user/wx_xcx/login/v1',
  18. getPhoneNumber: '/user/wx_xcx/phone/v1',
  19. getPersonalPageCount: '/user/msg/count/v1',//红点
  20. // 购买相关
  21. getPurchaseCity: '/base/list/city/v1',//获取城市
  22. getNormalPurchaseData: '/shebao/setting/v1',//获取指定城市正常购买社保数据
  23. getSupplementaryPurchaseData: '/shebao/added/setting/v1',//获取指定城市补缴社保数据
  24. getTotalFee: '/buy/total_fee/v2',//获取订单金额
  25. getTotalSupplementaryPayFee: '/buy/added/total_fee/v1',//获取补缴订单金额
  26. getFundOfBuyBefore: '/buy/fund/buyed/v2',//获取过往购买过的公积金金额
  27. getQuickPurchaseData: '/buy/last_buy/v2',//获取一键续保数据
  28. cancelPurchaseOrder: '/buy/cancel/v1',//取消购买订单
  29. //优惠券相关
  30. getCashCouponCount: '/couponuser/total/v1',//获取可用优惠券数量
  31. getCashCoupon: '/couponuser/list/v1',//优惠券查询
  32. //生成订单相关
  33. createPayLaterOrder: '/outbuy/order/v1',//生成稍后支付订单
  34. createLaterSupplementaryPayOrder: '/outbuy/added/v1',//生成补缴稍后支付订单
  35. createShebaoOrder: '/buy/shebao/v2',//生成社保订单
  36. createShebaoSupplementaryPayOrder: '/buy/added/shebao/v1',//生成社保补缴订单
  37. createFundOrder: '/buy/fund/v2',//生成公积金订单
  38. createFundSupplementaryPayOrder: '/buy/added/fund/v1',//生成公积金补缴订单
  39. createPriceDifferencePaymentOrder: '/added/pay/v1',//生成补差额订单
  40. //订单列表相关
  41. getWaitForPayList: '/outbuy/list/v2',//获取待支付购买订单列表
  42. getMyOrder: '/buy/list/v2',//获取所有购买订单列表
  43. getPayPriceDifferenceList: '/added/list/v1',//获取补缴订单列表
  44. //待办事项相关
  45. getMaterialflowList: '/materialflow/list/v1',//获取待办事项列表
  46. getMaterialflowNodeList: '/materialflow/node/list/v1',//获取待办事项进度列表
  47. uploadMemoAction: '/materialflow/node/memo/v1',//更新节点备注信息
  48. uploadMaterialMailAction: '/materialflow/node/post/v1',//更新材料邮寄节点信息
  49. uploadMaterialPhoto: '/upload/material/v1',//上传材料
  50. uploadMaterialUploadAction: '/materialflow/node/upload/v1',//更新材料上传节点信息
  51. waitToDoH5: '/info/index/v1',//H5页面
  52. uploadH5: '/materialflow/node/h5/v1',//更新H5填写资料信息
  53. //社保流水相关
  54. getUndoneSalaryList: '/order/wage/list0/v1',//
  55. getDoneSalaryList: '/order/wage/list1/v1',//
  56. createSalaryOrder: '/order/wage/pay/v1',//
  57. //收货地址相关
  58. getMailingAddress: '/user/address/v1',//获取收货地址
  59. deleteMailingAddress: '/user/address/delete/v1',//删除收货地址
  60. addAndUpdateMailingAddress: '/user/address/edit/v1',//更新(新增)收货地址
  61. //参保人相关
  62. deleteCustomer: '/sbu/delete/v1',//删除参保人
  63. uploadIdcardByNumber: '/upload/card/v1',//上传身份证(增加)
  64. uploadIdcardById: '/upload/card/v2',//上传身份证(修改)
  65. modifyCustomer: '/sbu/modify/v2',//修改、新增参保人
  66. modifyCustomerPhone: '/sbu/update/v1',//修改参保人手机号码
  67. getCustomer: '/sbu/get/v1',//获取完整参保人
  68. modifyBank: '/sbu/modify/bank/v1',//修改银行卡
  69. //咨询相关
  70. getHotTopicList: '/hotTopic/list/v1',//热门问题列表
  71. getFeedbackList: '/leaveMessage/list/v1',//获取留言列表
  72. addFeedback: '/leaveMessage/add/v1',//新增留言
  73. getBroadcast: '/hotTopic/broadcast/v1',//广播
  74. //调查问卷相关
  75. checkSurvey: '/collect/get/question',//是否需要调查问卷
  76. saveSurvey: '/collect/get/question/save',//提交调查问卷
  77. //支付相关
  78. prepay: '/user/wx_xcx/pre_pay/v1',//支付前刷openid
  79. //查询相关
  80. queryPayPriceDifference: '/added/unpay/v1',//查询未缴补差额订单数量
  81. //支付宝获取银行
  82. alipayGetBank: 'https://ccdcapi.alipay.com/validateAndCacheCardInfo.json?_input_charset=utf-8&cardBinCheck=true&cardNo='
  83. }