var businessT = require('../tool/business-tool.js') var app_host = businessT.isDebug() ? 'http://120.79.211.173/sbl' : 'https://www.wodeshebao.com/sbl' // var app_host = businessT.isDebug() ? 'http://192.168.2.174/sbl' : 'https://www.wodeshebao.com/sbl' var www_host = businessT.isDebug() ? 'http://120.79.211.173/sbw' : 'https://www.wodeshebao.com/sbw' // var www_host = businessT.isDebug() ? 'http://192.168.2.174/sbw' : 'https://www.wodeshebao.com/sbw' var img_host = businessT.isDebug() ? 'http://120.79.211.173' : 'https://www.wodeshebao.com' // var img_host = businessT.isDebug() ? 'http://192.168.2.174' : 'https://www.wodeshebao.com' module.exports = { app_host: app_host, www_host: www_host, img_host: img_host, //验证码 getVerifyCode: '/sms/short/code/v1', // 账户相关 getVersion: '/open', login: '/user/login/v2', getUserInfo: '/user/wx_xcx/login/v1', getPhoneNumber: '/user/wx_xcx/phone/v1', getPersonalPageCount: '/user/msg/count/v1',//红点 // 购买相关 getPurchaseCity: '/base/list/city/v1',//获取城市 getNormalPurchaseData: '/shebao/setting/v1',//获取指定城市正常购买社保数据 getSupplementaryPurchaseData: '/shebao/added/setting/v1',//获取指定城市补缴社保数据 getTotalFee: '/buy/total_fee/v2',//获取订单金额 getTotalSupplementaryPayFee: '/buy/added/total_fee/v1',//获取补缴订单金额 getFundOfBuyBefore: '/buy/fund/buyed/v2',//获取过往购买过的公积金金额 getQuickPurchaseData: '/buy/last_buy/v2',//获取一键续保数据 cancelPurchaseOrder: '/buy/cancel/v1',//取消购买订单 //优惠券相关 getCashCouponCount: '/couponuser/total/v1',//获取可用优惠券数量 getCashCoupon: '/couponuser/list/v1',//优惠券查询 //生成订单相关 createPayLaterOrder: '/outbuy/order/v1',//生成稍后支付订单 createLaterSupplementaryPayOrder: '/outbuy/added/v1',//生成补缴稍后支付订单 createShebaoOrder: '/buy/shebao/v2',//生成社保订单 createShebaoSupplementaryPayOrder: '/buy/added/shebao/v1',//生成社保补缴订单 createFundOrder: '/buy/fund/v2',//生成公积金订单 createFundSupplementaryPayOrder: '/buy/added/fund/v1',//生成公积金补缴订单 createPriceDifferencePaymentOrder: '/added/pay/v1',//生成补差额订单 //订单列表相关 getWaitForPayList: '/outbuy/list/v2',//获取待支付购买订单列表 getMyOrder: '/buy/list/v2',//获取所有购买订单列表 getPayPriceDifferenceList: '/added/list/v1',//获取补缴订单列表 //待办事项相关 getMaterialflowList: '/materialflow/list/v1',//获取待办事项列表 getMaterialflowNodeList: '/materialflow/node/list/v1',//获取待办事项进度列表 uploadMemoAction: '/materialflow/node/memo/v1',//更新节点备注信息 uploadMaterialMailAction: '/materialflow/node/post/v1',//更新材料邮寄节点信息 uploadMaterialPhoto: '/upload/material/v1',//上传材料 uploadMaterialUploadAction: '/materialflow/node/upload/v1',//更新材料上传节点信息 waitToDoH5: '/info/index/v1',//H5页面 uploadH5: '/materialflow/node/h5/v1',//更新H5填写资料信息 //社保流水相关 getUndoneSalaryList: '/order/wage/list0/v1',// getDoneSalaryList: '/order/wage/list1/v1',// createSalaryOrder: '/order/wage/pay/v1',// //收货地址相关 getMailingAddress: '/user/address/v1',//获取收货地址 deleteMailingAddress: '/user/address/delete/v1',//删除收货地址 addAndUpdateMailingAddress: '/user/address/edit/v1',//更新(新增)收货地址 //参保人相关 deleteCustomer: '/sbu/delete/v1',//删除参保人 uploadIdcardByNumber: '/upload/card/v1',//上传身份证(增加) uploadIdcardById: '/upload/card/v2',//上传身份证(修改) modifyCustomer: '/sbu/modify/v2',//修改、新增参保人 modifyCustomerPhone: '/sbu/update/v1',//修改参保人手机号码 getCustomer: '/sbu/get/v1',//获取完整参保人 modifyBank: '/sbu/modify/bank/v1',//修改银行卡 //咨询相关 getHotTopicList: '/hotTopic/list/v1',//热门问题列表 getFeedbackList: '/leaveMessage/list/v1',//获取留言列表 addFeedback: '/leaveMessage/add/v1',//新增留言 getBroadcast: '/hotTopic/broadcast/v1',//广播 //调查问卷相关 checkSurvey: '/collect/get/question',//是否需要调查问卷 saveSurvey: '/collect/get/question/save',//提交调查问卷 //支付相关 prepay: '/user/wx_xcx/pre_pay/v1',//支付前刷openid //查询相关 queryPayPriceDifference: '/added/unpay/v1',//查询未缴补差额订单数量 //支付宝获取银行 alipayGetBank: 'https://ccdcapi.alipay.com/validateAndCacheCardInfo.json?_input_charset=utf-8&cardBinCheck=true&cardNo=' }