url.js 5.6 KB

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