|
@@ -5,18 +5,18 @@ var $http = function () {
|
|
|
this.ajaxLock = false;
|
|
|
// this.ip = "http://192.168.43.144/api";
|
|
|
|
|
|
- this.ip = "http://192.168.242.16:9002";
|
|
|
+ // this.ip = "http://192.168.237.5:9002";
|
|
|
//this.ip = "http://b2bcnapi.sailuntire.com/api";
|
|
|
- // this.ip = "http://b2bcnapi.sailuntire.com/api/test";
|
|
|
+ this.ip = "http://b2bcnapi.sailuntire.com/api/test";
|
|
|
/****** 用户相关 ******/
|
|
|
// 选择图片生成地址
|
|
|
- this.getUrlByFileUrl = "/file/upload";
|
|
|
+ this.getUrlByFileUrl = "/web/file/upload";
|
|
|
// 根据省获取经销商
|
|
|
- this.getUpuserByProvideUrl = "/bizLogin/testPostApi";
|
|
|
+ this.getUpuserByProvideUrl = "/web/bizLogin/testPostApi";
|
|
|
// 注册用户
|
|
|
- this.regizeUrl = "/bizLogin/registRetailer";
|
|
|
+ this.regizeUrl = "/web/bizLogin/registRetailer";
|
|
|
// 登录用户
|
|
|
- this.loginUrl = "/bizLogin/login";
|
|
|
+ this.loginUrl = "/web/bizLogin/login";
|
|
|
// 根据loginid获取用户信息
|
|
|
// this.getUserInfoUrl = "/base/retailer/loginToInfo";
|
|
|
|
|
@@ -81,9 +81,9 @@ var $http = function () {
|
|
|
|
|
|
/********* 0706 ***********/
|
|
|
// 收取短信验证码
|
|
|
- this.getPhoneCode = '/bizLogin/sendCode';
|
|
|
+ this.getPhoneCode = '/web/bizLogin/sendCode';
|
|
|
// 获取客户信息
|
|
|
- this.customListUrl = '/bizCustomRetailer/page';
|
|
|
+ this.customListUrl = '/web/bizCustomRetailer/page';
|
|
|
// 获取门店详情
|
|
|
this.getMDInfo = "/base/retailer/retailerInfo";
|
|
|
// 获取所有的轮胎服务类目
|
|
@@ -107,175 +107,175 @@ var $http = function () {
|
|
|
// 查看兑换记录
|
|
|
this.exchangeListUrl = "/jinyu/bizMallOrder/page";
|
|
|
// 检查版本
|
|
|
- this.getVersionUrl = "/biz/getAppVersion";
|
|
|
+ this.getVersionUrl = "/web/biz/getAppVersion";
|
|
|
// 活动banner
|
|
|
this.getBannerUrl = "/biz/bizBanner/list";
|
|
|
// 获取参加活动的商品
|
|
|
this.getStoreBannerUrl = "/biz/bizActivity/activityInfo";
|
|
|
// 根据条形码获取商品
|
|
|
- this.getStoreByScan = "/biz/bizGoods/Scancoderemotecall";
|
|
|
+ this.getStoreByScan = "/web/biz/bizGoods/Scancoderemotecall";
|
|
|
// 获取经销商对应物料列表
|
|
|
- this.getStoreListU = "/biz/bizCoupon/select";
|
|
|
+ this.getStoreListU = "/web/biz/bizCoupon/select";
|
|
|
// 添加商品至购物车
|
|
|
- this.addStoreToCarU = "/biz/bizCart/save";
|
|
|
+ this.addStoreToCarU = "/web/biz/bizCart/save";
|
|
|
// 获取购物车列表
|
|
|
- this.getCarListU = "/biz/bizCart/selectCart";
|
|
|
+ this.getCarListU = "/web/biz/bizCart/selectCart";
|
|
|
//线上订货修改购物车数量
|
|
|
- this.updateCarNum = "/biz/bizCart/update"
|
|
|
+ this.updateCarNum = "/web/biz/bizCart/update"
|
|
|
// 从购物车下单
|
|
|
- this.downOrderU = "/base/bizOrder/save";
|
|
|
+ this.downOrderU = "/web/base/bizOrder/save";
|
|
|
// 扫码确定
|
|
|
- this.scanDoneU = "/biz/bizGoods/Scancode";
|
|
|
+ this.scanDoneU = "/web/biz/bizGoods/Scancode";
|
|
|
//签约级别
|
|
|
- this.signLv = "/bizLogin/enum";
|
|
|
+ this.signLv = "/web/bizLogin/enum";
|
|
|
// 门店立即抢购
|
|
|
- this.rushToBuyU = "/base/bizOrder/directSave";
|
|
|
+ this.rushToBuyU = "/web/base/bizOrder/directSave";
|
|
|
// 门店查询订单
|
|
|
- this.getOrderListU = "/base/bizOrder/selectStore";
|
|
|
+ this.getOrderListU = "/web/base/bizOrder/selectStore";
|
|
|
// 门店获取订单详情
|
|
|
- this.getOrderInfoU = "/biz/bizOrderInfo/selectOrderInfo";
|
|
|
+ this.getOrderInfoU = "/web/biz/bizOrderInfo/selectOrderInfo";
|
|
|
// 获取门店参保列表接口
|
|
|
- this.getInsuranceU = "/sailun/insurance/getInsuranceList";
|
|
|
+ this.getInsuranceU = "/web/sailun/insurance/getInsuranceList";
|
|
|
// 获取门店详情
|
|
|
- this.getAgentInfoU = "/biz/bizAudit/store";
|
|
|
+ this.getAgentInfoU = "/web/biz/bizAudit/store";
|
|
|
// 扫码入库
|
|
|
- this.sacaCodeIn = "/biz/bizGoods/ScanCodeIn";
|
|
|
+ this.sacaCodeIn = "/web/biz/bizGoods/ScanCodeIn";
|
|
|
// 获取轮胎理赔详情
|
|
|
- this.getLipeiList = "/sailun/insurance/getInsuranceList";
|
|
|
+ this.getLipeiList = "/web/sailun/insurance/getInsuranceList";
|
|
|
// 通过胎号获取理赔单详情
|
|
|
- this.getLipeiInfoU = "/sailun/insurance/getTireClaimInfo";
|
|
|
+ this.getLipeiInfoU = "/web/sailun/insurance/getTireClaimInfo";
|
|
|
// 理赔图片的上传
|
|
|
- this.uploadLipeU = "/sailun/insurance/tireImageUpload";
|
|
|
+ this.uploadLipeU = "/web/sailun/insurance/tireImageUpload";
|
|
|
// 提交轮胎保理赔记录
|
|
|
- this.sumbiltLipeiU = "/sailun/insurance/submitTireClaim";
|
|
|
+ this.sumbiltLipeiU = "/web/sailun/insurance/submitTireClaim";
|
|
|
// 获取入库记录
|
|
|
- this.getIntoListU = "/sailun/insurance/getStoreClaimList";
|
|
|
+ this.getIntoListU = "/web/sailun/insurance/getStoreClaimList";
|
|
|
// 获取出入库记录
|
|
|
- this.getinOrOutU = "/biz/bizGoods/Incomingandoutgoingrecordsquery";
|
|
|
+ this.getinOrOutU = "/web/biz/bizGoods/Incomingandoutgoingrecordsquery";
|
|
|
// 获取赔付记录
|
|
|
- this.peifuListU = "/sailun/insurance/getStoreClaimList";
|
|
|
+ this.peifuListU = "/web/sailun/insurance/getStoreClaimList";
|
|
|
// 扫码出库
|
|
|
- this.outStoreU = "/biz/bizGoods/ScanCodeOut";
|
|
|
+ this.outStoreU = "/web/biz/bizGoods/ScanCodeOut";
|
|
|
// 获取签约等级
|
|
|
- this.getSignLvU = "/bizLogin/enum";
|
|
|
+ this.getSignLvU = "/web/bizLogin/enum";
|
|
|
// 门店查询经销商库存
|
|
|
- this.getStockListU = "/biz/bizAudit/QueryStoreAgentStock";
|
|
|
+ this.getStockListU = "/web/biz/bizAudit/QueryStoreAgentStock";
|
|
|
// 删除购物车记录
|
|
|
- this.delCarMataxU = "/biz/bizCart/deleteOne";
|
|
|
+ this.delCarMataxU = "/web/biz/bizCart/deleteOne";
|
|
|
// 获取理赔单详情
|
|
|
- this.getTlementInfoU = "/sailun/insurance/getTireInfo";
|
|
|
+ this.getTlementInfoU = "/web/sailun/insurance/getTireInfo";
|
|
|
// 生成核销code
|
|
|
- this.getHxCodeU = "/biz/bizCoupon/save";
|
|
|
+ this.getHxCodeU = "/web/biz/bizCoupon/save";
|
|
|
// 获取门店门店核销码列表
|
|
|
- this.getHxListU = "/biz/bizCoupon/selectCoupon";
|
|
|
+ this.getHxListU = "/web/biz/bizCoupon/selectCoupon";
|
|
|
// 获取物料筛选条件
|
|
|
- this.getWuliaoAntionU = "/biz/bizCoupon/condition";
|
|
|
+ this.getWuliaoAntionU = "/web/biz/bizCoupon/condition";
|
|
|
//请求文章 根据id
|
|
|
- this.getOneDetails = "/biz/bizArticle/getOneDetails";
|
|
|
+ this.getOneDetails = "/web/biz/bizArticle/getOneDetails";
|
|
|
//厂家宣传
|
|
|
- // this.getArticle="/biz/bizArticle/list"
|
|
|
+ // this.getArticle="/web/biz/bizArticle/list"
|
|
|
// 获取地址管理
|
|
|
// this.getAddress="/sys/bizReceiptAddress/paget"
|
|
|
|
|
|
// 获取地址列表
|
|
|
- this.getAddressListU = "/sys/bizReceiptAddress/page";
|
|
|
+ this.getAddressListU = "/web/sys/bizReceiptAddress/page";
|
|
|
// 门店新增收货地址
|
|
|
- this.addAddressU = "/sys/bizReceiptAddress/save";
|
|
|
+ this.addAddressU = "/web/sys/bizReceiptAddress/save";
|
|
|
// 查看门店自己的优惠券
|
|
|
- // this.searchKuCunU = "/sys/bizStoreRegistrationSpree/page";
|
|
|
+ // this.searchKuCunU = "/web/sys/bizStoreRegistrationSpree/page";
|
|
|
/// 查看门店自己的库存
|
|
|
- this.searchKuCunU = "/biz/bizGoods/storeSelectStock";
|
|
|
+ this.searchKuCunU = "/web/biz/bizGoods/storeSelectStock";
|
|
|
// 门店查询返利明细
|
|
|
- this.lookUserTotalU = "/biz/bizStoreReward/page";
|
|
|
+ this.lookUserTotalU = "/web/biz/bizStoreReward/page";
|
|
|
// 获取优惠券
|
|
|
- this.getCouponListU = "/sys/bizStoreRegistrationSpree/page";
|
|
|
+ this.getCouponListU = "/web/sys/bizStoreRegistrationSpree/page";
|
|
|
// 查询门店进货分析
|
|
|
- this.getStoreIntoListU = "/base/bizOrder/caculateStore";
|
|
|
+ this.getStoreIntoListU = "/web/base/bizOrder/caculateStore";
|
|
|
// 检查版本
|
|
|
- this.checkVersionU = "/biz/getAppVersion?type=1";
|
|
|
+ this.checkVersionU = "/web/biz/getAppVersion?type=1";
|
|
|
// 上传门店车辆图片接口
|
|
|
- this.uploadCarPhotoU = "/sailun/insurance/carPictureUpload";
|
|
|
+ this.uploadCarPhotoU = "/web/sailun/insurance/carPictureUpload";
|
|
|
//我的供应商
|
|
|
- this.getSupplier = "/biz/bizStoreAgent/mySuppliers";
|
|
|
+ this.getSupplier = "/web/biz/bizStoreAgent/mySuppliers";
|
|
|
//获取跑马灯list
|
|
|
- this.getMessageList = "/mobile/sysMessage/getMessageList";
|
|
|
+ this.getMessageList = "/web/mobile/sysMessage/getMessageList";
|
|
|
//获取新版本
|
|
|
- this.getNewVersionU = "/file/getShopApk";
|
|
|
+ this.getNewVersionU = "/web/file/getShopApk";
|
|
|
//上传门店行驶证照片
|
|
|
- this.uploadUserCarU = "/sailun/insurance/carPictureUpload";
|
|
|
+ this.uploadUserCarU = "/web/sailun/insurance/carPictureUpload";
|
|
|
//离线缓存工单
|
|
|
this.saveJxItemU = "/event/queryEventLX/";
|
|
|
//轮播图
|
|
|
- this.getbannerLists = "/biz/bizStoreBrand/selectStoreBrandBanner";
|
|
|
+ this.getbannerLists = "/web/biz/bizStoreBrand/selectStoreBrandBanner";
|
|
|
//获取商品分类
|
|
|
- this.getTypes = "/biz/bizGoodsType/selectProductCategory";
|
|
|
+ this.getTypes = "/web/biz/bizGoodsType/selectProductCategory";
|
|
|
// 获取商品
|
|
|
- this.getshopLists = "/biz/bizGoodsType/selectCategoryItem";
|
|
|
+ this.getshopLists = "/web/biz/bizGoodsType/selectCategoryItem";
|
|
|
//加入购物车
|
|
|
- this.addShopCart = "/sailun/bizIntegralCart/save";
|
|
|
+ this.addShopCart = "/web/sailun/bizIntegralCart/save";
|
|
|
//查看购物车
|
|
|
- this.getShopCart = "/sailun/bizIntegralCart/page";
|
|
|
+ this.getShopCart = "/web/sailun/bizIntegralCart/page";
|
|
|
//修改购物车数量
|
|
|
- this.fixCartNum = "/sailun/bizIntegralCart/update";
|
|
|
+ this.fixCartNum = "/web/sailun/bizIntegralCart/update";
|
|
|
//删除购物车
|
|
|
- this.delCart = "/sailun/bizIntegralCart/deletes";
|
|
|
+ this.delCart = "/web/sailun/bizIntegralCart/deletes";
|
|
|
//下单
|
|
|
- this.addOrder = "/biz/bizShopIntegralOrder/save";
|
|
|
+ this.addOrder = "/web/biz/bizShopIntegralOrder/save";
|
|
|
//查看兑换记录
|
|
|
- this.getOrderannal = "/biz/bizIntegralOrderItem/page";
|
|
|
+ this.getOrderannal = "/web/biz/bizIntegralOrderItem/page";
|
|
|
//积分商场详情
|
|
|
- this.getProductImage = "//sailun/bizProductImage/storeProductItem";
|
|
|
+ this.getProductImage = "/web//sailun/bizProductImage/storeProductItem";
|
|
|
//收货地址查询
|
|
|
- this.getReceiptAddress = "/sys/bizReceiptAddress/list";
|
|
|
+ this.getReceiptAddress = "/web/sys/bizReceiptAddress/list";
|
|
|
// 立即下单
|
|
|
- this.immediatelyOrder = "/biz/bizShopIntegralOrder/immediatelyOrder";
|
|
|
+ this.immediatelyOrder = "/web/biz/bizShopIntegralOrder/immediatelyOrder";
|
|
|
//查找更换收后地址
|
|
|
- this.updateAddress = "/sys/bizReceiptAddress/update";
|
|
|
+ this.updateAddress = "/web/sys/bizReceiptAddress/update";
|
|
|
//删除收货地址
|
|
|
- this.addressDel="/sys/bizReceiptAddress/delete";
|
|
|
+ this.addressDel="/web/sys/bizReceiptAddress/delete";
|
|
|
//根据商品名搜索积分商品
|
|
|
- this.searchShop="/biz/bizCart/appSelectProduct";
|
|
|
+ this.searchShop="/web/biz/bizCart/appSelectProduct";
|
|
|
//查找订单
|
|
|
- this.searchOrder="/biz/bizIntegralOrderItem/selectIntegralOrderProduct"
|
|
|
+ this.searchOrder="/web/biz/bizIntegralOrderItem/selectIntegralOrderProduct"
|
|
|
//消息列表
|
|
|
- this.getMsg="/sailun/bizMessageForUser/getMessageCategory";
|
|
|
+ this.getMsg="/web/sailun/bizMessageForUser/getMessageCategory";
|
|
|
//消息详情
|
|
|
- this.getMsgdetails="/sailun/bizMessageForUser/list";
|
|
|
+ this.getMsgdetails="/web/sailun/bizMessageForUser/list";
|
|
|
//消息已阅
|
|
|
- this.updateMessage="/sailun/bizMessageForUser/updateMessage";
|
|
|
+ this.updateMessage="/web/sailun/bizMessageForUser/updateMessage";
|
|
|
//修改签约地址
|
|
|
- this.updatesign="/biz/bizStoreUpdateMessage/save";
|
|
|
+ this.updatesign="/web/biz/bizStoreUpdateMessage/save";
|
|
|
//查看签约地址
|
|
|
- this.getsignAddress="/biz/bizStoreUpdateMessage/list";
|
|
|
+ this.getsignAddress="/web/biz/bizStoreUpdateMessage/list";
|
|
|
//查看核销详情页
|
|
|
- this.hexiaoInfo="/biz/bizCoupon/list";
|
|
|
+ this.hexiaoInfo="/web/biz/bizCoupon/list";
|
|
|
//季度任务数据
|
|
|
- this.selectQuarter="/biz/bizScanRecord/selectQuarter";
|
|
|
+ this.selectQuarter="/web/biz/bizScanRecord/selectQuarter";
|
|
|
//提交用户信息
|
|
|
- this.MobileMessage="/biz/bizMobileMessage/save";
|
|
|
+ this.MobileMessage="/web/biz/bizMobileMessage/save";
|
|
|
//修改签约
|
|
|
- this.SignlvUpdate="/biz/bizStoreUpdateSignlv/save";
|
|
|
+ this.SignlvUpdate="/web/biz/bizStoreUpdateSignlv/save";
|
|
|
//查看签约
|
|
|
- this.SignlvList="/biz/bizStoreUpdateSignlv/list";
|
|
|
+ this.SignlvList="/web/biz/bizStoreUpdateSignlv/list";
|
|
|
|
|
|
/**********************************车主下单功能***********************************/
|
|
|
//根据门店id获取所有门店微信订单信息
|
|
|
- this.getAllUndealCarOrder="/sailun/wxCarorderHead/caroder/getAllUndealCarOrderByStoreId";
|
|
|
- this.getOrderInfo = "/sailun/wxCarorderHead/carorder/getOrderInfoById";
|
|
|
- this.getStoreToMaktxInfoByBSP = "/biz/bizGoods/getStoreToMaktxInfoByBSP";
|
|
|
- this.updateStoreToMaktxInfoByBSP = "/biz/bizGoods/updateStoreToMaktxInfoByBSP";
|
|
|
- this.changeWxCarOrderStatus = "/sailun/wxCarorderHead/carorder/changeWxCarOrderStatus";
|
|
|
+ this.getAllUndealCarOrder="/web/sailun/wxCarorderHead/caroder/getAllUndealCarOrderByStoreId";
|
|
|
+ this.getOrderInfo = "/web/sailun/wxCarorderHead/carorder/getOrderInfoById";
|
|
|
+ this.getStoreToMaktxInfoByBSP = "/web/biz/bizGoods/getStoreToMaktxInfoByBSP";
|
|
|
+ this.updateStoreToMaktxInfoByBSP = "/web/biz/bizGoods/updateStoreToMaktxInfoByBSP";
|
|
|
+ this.changeWxCarOrderStatus = "/web/sailun/wxCarorderHead/carorder/changeWxCarOrderStatus";
|
|
|
/**********************************对账功能***********************************/
|
|
|
- this.getConfirmMonth = "/biz/bizMonthDetail/getConfirmMonth";//获取已确认的月份
|
|
|
- this.getMonthDetail = "/biz/bizMonthDetail/getMonthDetail";//获取月结明细
|
|
|
- this.confirmMonthDetail = "/biz/bizMonthDetail/confirmMonthDetail";//确认月结明细
|
|
|
+ this.getConfirmMonth = "/web/biz/bizMonthDetail/getConfirmMonth";//获取已确认的月份
|
|
|
+ this.getMonthDetail = "/web/biz/bizMonthDetail/getMonthDetail";//获取月结明细
|
|
|
+ this.confirmMonthDetail = "/web/biz/bizMonthDetail/confirmMonthDetail";//确认月结明细
|
|
|
|
|
|
//通过图片获取信息
|
|
|
- this.licenseDiscern="/bizLogin/licenseDiscern";
|
|
|
+ this.licenseDiscern="/web/bizLogin/licenseDiscern";
|
|
|
//运营执行信息是否有效
|
|
|
- this.verifyBusiness="/bizLogin/verifyBusiness";
|
|
|
+ this.verifyBusiness="/web/bizLogin/verifyBusiness";
|
|
|
//上传运营图片
|
|
|
- this.storeUpdatalicense="/biz/bizStoreBasicInfo/storeUpdateLicense"
|
|
|
+ this.storeUpdatalicense="/web/biz/bizStoreBasicInfo/storeUpdateLicense"
|
|
|
}
|
|
|
$http.prototype.$postFile = function (url, data, callback) {
|
|
|
var urlT = this.ip + eval('this.' + url);
|