123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435 |
- import request from "@/utils/request.js";
- export function getCartCounts(numType,storeId) {
- return request.get("cart/count", {
- numType: numType === undefined ? 0 : numType,
- store_id:storeId
- });
- }
- export function getCartList(data) {
- return request.get("cart/list", data);
- }
- export function cartCompute(data) {
- return request.post("cart/compute", data);
- }
- export function getResetCart(data) {
- return request.post("v2/reset_cart", data);
- }
- export function changeCartNum(cartId, number) {
- return request.post("cart/num", {
- id: cartId,
- number: number
- });
- }
- export function cartDel(ids,storeId) {
- if (typeof ids === 'object')
- ids = ids.join(',');
- return request.post('cart/del', {
- ids: ids,
- store_id: storeId
- });
- }
- export function getOrderList(data) {
- return request.get('order/list', data);
- }
- export function getNewOrderList(data) {
- return request.get('order/refund/list', data);
- }
- export function orderProduct(unique) {
- return request.post('order/product', {
- unique: unique
- });
- }
- export function orderComment(data) {
- return request.post('order/comment', data);
- }
- export function orderPay(data) {
- return request.post('order/pay', data);
- }
- export function orderData() {
- return request.get('order/data')
- }
- export function orderCancel(id) {
- return request.post('order/cancel', {
- id: id
- });
- }
- export function orderDel(uni) {
- return request.post('order/del', {
- uni: uni
- });
- }
- export function refundOrderDel(uni) {
- return request.get('order/refund/del/' + uni, {});
- }
- export function getOrderDetail(uni) {
- return request.get('order/detail/' + uni);
- }
- export function getRefundOrderDetail(uni) {
- return request.get('order/refund/detail/' + uni);
- }
- export function cancelRefundOrder(uni) {
- return request.post('order/refund/cancel/' + uni);
- }
- export function orderAgain(uni) {
- return request.post('order/again', {
- uni: uni
- });
- }
- export function orderTake(uni) {
- return request.post('order/take', {
- uni: uni
- });
- }
- export function express(uni, type) {
- return request.get("order/express/" + uni + (type ? '/' + type : ''));
- }
- export function ordeRefundReason() {
- return request.get('order/refund/reason');
- }
- export function orderRefundVerify(data) {
- return request.post('order/refund/verify', data);
- }
- export function orderConfirm(cartId, news, addressId, shippingType, store_id, couponId, luckRecordId) {
- return request.post('order/confirm', {
- cartId,
- 'new': news,
- addressId,
- 'shipping_type': shippingType,
- store_id,
- 'couponId':couponId,
- luckRecordId
- });
- }
- export function getCouponsServeOrderPrice(price, data) {
- return request.post('coupons/subscribe_coupon_list/' + price, data)
- }
- export function getCouponsOrderPrice(price, data) {
- return request.get('coupons/order/' + price, data)
- }
- export function orderCreate(key, data) {
- return request.post('order/create/' + key, data);
- }
- export function postOrderComputed(key, data) {
- return request.post("order/computed/" + key, data);
- }
- export function orderCoupon(orderId) {
- return request.post("v2/order/product_coupon/" + orderId);
- }
- export function offlineCheckPrice(data) {
- return request.post("order/offline/check/price", data);
- }
- export function offlineCreate(data) {
- return request.post("order/offline/create", data);
- }
- export function orderOfflinePayType() {
- return request.get('order/offline/pay/type');
- }
- export function orderInvoiceList(data) {
- return request.get('v2/order/invoice_list', data);
- }
- export function orderInvoiceDetail(id) {
- return request.get(`v2/order/invoice_detail/${id}`);
- }
- export function aliPay(key, quitUrl) {
- return request.get('ali_pay', {
- key,
- quitUrl
- }, {
- noAuth: true
- });
- }
- export function refundExpress(data) {
- return request.post("order/refund/express", data);
- }
- export function vcartList(data) {
- return request.get("v2/cart_list",data);
- }
- export function payCashier(storeId) {
- return request.get(`order/pay_cashier?store_id=${storeId}`);
- }
- export function refundGoodsList(orderId) {
- return request.get(`order/refund/cart_info/${orderId}`);
- }
- export function postRefundGoods(data) {
- return request.post(`order/refund/cart_info`, data);
- }
- export function returnGoodsSubmit(id, data) {
- return request.post(`order/refund/apply/${id}`, data);
- }
- export function checkShipping(data) {
- return request.post(`order/check_shipping`, data);
- }
- export function deliveryDetail(id) {
- return request.get(`delivery_order/detail/${id}`);
- }
- export function orderWriteRecords(id, data) {
- return request.get(`order/write/records/${id}`, data);
- }
- export function computedServe(data) {
- return request.get(`v2/Subscribe/cart`, data);
- }
- export function SubscribeCreate(data) {
- return request.post(`v2/Subscribe/create`, data);
- }
- export function storecompleteSubscribe(data) {
- return request.post(`store/order/complete_subscribe`, data);
- }
- export function SqRefund(data) {
- return request.post(`v2/Subscribe/refund_order`, data);
- }
- export function ds(data) {
- return request.post(`reward/create`, data);
- }
- export function ts(data) {
- return request.post(`complaint/create`, data);
- }
|