/* HTTP API 机构业务模块 * Copyright 2020, CAIMEI365 * Date 2020/06/16 * auther ZHJY */ var OrderApi = { /* 查询用户地址列表 */ GetAddressList: function (params, callback) { Http.AjaxService({ url:'/order/address/list', type:'GET', data:params, json:false, }) .then(function(res){ callback(res); }); }, /* 添加,保存地址 */ AddSaveAddress: function (params, callback) { Http.AjaxService({ url:'/order/address/save', type:'POST', data:params, json:false, }) .then(function(res){ callback(res); }); }, /* 设为默认地址 */ DefaultAddress: function (params, callback) { Http.AjaxService({ url:'/order/address/set/default', type:'POST', data:params, json:false, }) .then(function(res){ callback(res); }); }, /* 删除地址 */ DeleteAddress: function (params, callback) { Http.AjaxService({ url:'/order/address/delete', type:'POST', data:params, json:false, }) .then(function(res){ callback(res); }); }, //获取省市区信息 GetAddressSelect:function(params,callback){ Http.AjaxService({ url:'/order/address/select', type:'get', data:params, json:false, }) .then(function(res){ callback(res) }); }, /* 购物车去结算确认订单 */ GetOrderConfirmInfo: function (params, callback) { Http.AjaxService({ url:'/order/club/cart/settlement', type:'GET', data:params, json:false, }) .then(function(res){ callback(res); }); }, /* 商品详情立即购买确认订单 */ ProductCreateOrderInfo: function (params, callback) { Http.AjaxService({ url:'/order/club/product/settlement', type:'GET', data:params, json:false, }) .then(function(res){ callback(res); }); }, /* 组合商品立即购买确认订单 */ OrderClubProductSupporting: function (params, callback) { Http.AjaxService({ url:'/order/club/product/buynow', type:'GET', data:params, json:false, isHost:true }) .then(function(res){ callback(res); }); }, /* 获取订单邮费信息 */ GetOrderPostage: function (params, callback) { Http.AjaxService({ url:'/order/club/postage', type:'GET', data:params, json:false, }) .then(function(res){ callback(res); }); }, /* 提交订单 */ ConfirmOrder: function (params, callback) { Http.AjaxService({ url:'/order/submit/generate', type:'POST', data:params, json:false, }) .then(function(res){ callback(res); }); }, /* 查询订单列表 */ GetQueryOrderListData: function (params, callback) { Http.AjaxService({ url:'/order/club/list', type:'GET', data:params, json:false, }) .then(function(res){ callback(res); }); }, /* 查询订单详情 */ QueryOrderDetailsInfo: function (params, callback) { Http.AjaxService({ url:'/order/club/detail', type:'GET', data:params, json:false, }) .then(function(res){ callback(res); }); }, /* 查询订单列表选项卡标签数量*/ GetQueryOrderNum: function (params, callback) { Http.AjaxService({ url:'/order/club/count', type:'GET', data:params, json:false, }) .then(function(res){ callback(res); }); }, /* 机构用户取消订单操作*/ GetCancelOrder: function (params, callback) { Http.AjaxService({ url:'/order/club/cancel', type:'post', data:params, json:false, }) .then(function(res){ callback(res); }); }, /* 机构用户删除订单操作*/ GetDeleteOrder: function (params, callback) { Http.AjaxService({ url:'/order/club/delete', type:'POST', data:params, json:false, }) .then(function(res){ callback(res); }); }, /* 机构用户确认收货操作*/ GetAffirmOrder: function (params, callback) { Http.AjaxService({ url:'/order/club/receive', type:'POST', data:params, json:false, }) .then(function(res){ callback(res); }); }, /* 机构用户确认订单操作*/ AffirmOrderOrder: function (params, callback) { Http.AjaxService({ url:'/order/club/confirm', type:'POST', data:params, json:false, }) .then(function(res){ callback(res); }); }, /* 订单支付,效验付款规则 orderId 订单ID */ OrderPaymentValidation: function (params, callback) { Http.AjaxService({ url:'/order/pay/check', type:'GET', data:params, json:false, }) .then(function(res){ callback(res); }); }, /* 订单支付,余额抵扣 orderId 订单ID */ OrderBalanceDeduction: function (params, callback) { Http.AjaxService({ url:'/order/pay/balance/deduction', type:'post', data:params, json:false, }) .then(function(res){ callback(res); }); }, //订单查看物流 seelogistics: function (params, callback) { Http.AjaxService({ url:'/order/club/logistics', type:'get', data:params, json:false, }) .then(function(res){ callback(res); }); }, // 打款供应商 confirmpayment: function (params, callback) { Http.AjaxService({ url:'/order/club/second/payment/confirm', type:'post', data:params, json:false, }) .then(function(res){ callback(res); }); }, // 机构最新订单 OrderClubLatest: function (params, callback) { Http.AjaxService({ url:'/order/club/latest', type:'get', data:params, json:false, }) .then(function(res){ callback(res); }); }, };