123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343 |
- import request from "@/utils/request.js";
- export function getCartCounts() {
- return request.get("user/cart/count");
- }
- export function getCartList() {
- return request.get("user/cart/lst");
- }
- export function changeCartNum(cartId, data) {
- return request.post("user/cart/change/"+cartId,data);
- }
- export function cartDel(data){
- return request.post('user/cart/delete', data);
- }
- export function cartProductAttr(id){
- return request.get(`store/product/get_attr_value/${id}`);
- }
- export function getOrderList(data){
- return request.get('order/list',data);
- }
- export function orderProduct(orderId){
- return request.get('reply/product/'+orderId);
- }
- export function orderComment(id,data){
- return request.post('reply/'+id,data);
- }
- export function orderPay(id,data){
- return request.post('order/pay/'+id,data);
- }
- export function integralOrderPay(id,data){
- return request.post('order/points/pay/'+id,data);
- }
- export function orderData(){
- return request.get('order/number')
- }
- export function unOrderCancel(id){
- return request.post('order/cancel/'+id);
- }
- export function orderDel(id){
- return request.post('order/del/'+id);
- }
- export function getOrderDetail(uni){
- return request.get('order/detail/'+uni);
- }
- export function groupOrderDetail(uni){
- return request.get('order/group_order_detail/'+uni);
- }
- export function getPayOrder(uni){
- return request.get('order/status/'+uni);
- }
- export function orderAgain(data){
- return request.post('user/cart/again',data);
- }
- export function orderTake(uni){
- return request.post('order/take/'+uni);
- }
- export function express(id) {
- return request.post("order/express/" + id);
- }
- export function refundOrderExpress(merId,id) {
- return request.get(`server/${merId}/refund/express/${id}`);
- }
- export function ordeRefundReason(){
- return request.get('order/refund/reason');
- }
- export function orderRefundVerify(data){
- return request.post('order/refund/verify',data);
- }
- export function orderConfirm(data){
- return request.post('order/check', data);
- }
- export function getOrderConfirm(data){
- return request.post('v2/order/check', data);
- }
- export function getCouponsOrderPrice(price, data){
- return request.get('coupons/order/' + price, data)
- }
- export function postOrderComputed(key, data) {
- return request.post("/order/computed/" + key, data);
- }
- export function orderCreate(data) {
- return request.post("order/create",data,{ noAuth : true });
- }
- export function createOrder(data) {
- return request.post("v2/order/create",data,{ noAuth : true });
- }
- export function groupOrderList(data) {
- return request.get("order/group_order_list",data,{ noAuth : true });
- }
- export function refundBatch(id) {
- return request.get("refund/batch_product/"+id,{ noAuth : true });
- }
- export function refundProduct(id,data) {
- return request.get("refund/product/"+id,data,{ noAuth : true });
- }
- export function refundApply(id,data) {
- return request.post("refund/apply/"+id,data,{ noAuth : true });
- }
- export function refundMessage() {
- return request.get("common/refund_message",{ noAuth : true });
- }
- export function refundList(data) {
- return request.get("refund/list",data,{ noAuth : true });
- }
- export function refundDetail(id) {
- return request.get("refund/detail/"+id,{ noAuth : true });
- }
- export function expressList() {
- return request.get("common/express");
- }
- export function refundBackGoods(id,data) {
- return request.post("refund/back_goods/"+id,data,{ noAuth : true });
- }
- export function refundDel(id) {
- return request.post("refund/del/"+id,{ noAuth : true });
- }
- export function refundExpress(id) {
- return request.get("refund/express/"+id,{ noAuth : true });
- }
- export function verifyCode(id) {
- return request.get("order/verify_code/"+id);
- }
- export function presellOrderPay(id,data){
- return request.post('presell/pay/'+id,data);
- }
- export function receiptOrder(data){
- return request.get('user/receipt/order',data);
- }
- export function getReceiptOrder(id){
- return request.get('user/receipt/order/'+id);
- }
- export function getCallBackUrlApi(key){
- return request.get('common/pay_key/'+key, {},{ noAuth : true});
- }
- export function develiveryDetail(id){
- return request.get(`order/delivery/${id}`);
- }
- export function applyInvoiceApi(id, data){
- return request.post(`order/receipt/${id}`, data);
- }
- export function refundCancelApi(id){
- return request.post(`refund/cancel/${id}`);
- }
|