mer-tradescreen/yusi/assets/api-35LGPZsU.js

2 lines
2.8 KiB
JavaScript

import{a as i}from"./axios-QLjAsgXu.js";import"./index-WCpniRK8.js";localStorage.getItem("TRADE_USER")&&JSON.parse(localStorage.getItem("TRADE_USER")).expire;const e=i.create({baseURL:"https://multi-store.lihaink.cn",timeout:3e4});e.interceptors.request.use(t=>t,t=>Promise.reject(t));e.interceptors.response.use(t=>t.data.code!=1?Promise.reject(t.data.msg):t.data,t=>Promise.reject(t));function n(t){return e.get("/statistics/user",{params:t})}function u(t){return e.get("/api/dataview/order_statistics",{params:t})}function o(t){return e.get("/statistics/sales_ranking",{params:t})}function c(t){return e.get("/api/dataview/curr_day_order_amount",{params:t})}function s(t){return e.get("/statistics/product_count",{params:t})}function _(t){return e.get("/statistics/index",{params:t})}function d(t){return e.get("/statistics/user_trade_count",{params:t})}function p(t){return e.get("/api/dataview/product_category_list",{params:t})}function g(t){return e.get("/api/dataview/product_list",{params:t})}function l(t){return e.get("/api/dataview/merchant_list",{params:t})}function f(t){return e.get("/api/dataview/order_list",{params:t})}function A(t){return e.get("/api/dataview/order_list_count_title",{params:t})}function m(t){return e.get("/api/dataview/refund_order_list",{params:t})}function w(t){return e.get("/api/dataview/take_order_list",{params:t})}function v(t){return e.get("/api/dataview/take_order_count_title",{params:t})}function h(t){return e.get("/api/dataview/financial_record_title",{params:t})}function k(t){return e.get("/api/dataview/financial_record",{params:t})}function y(t){return e.get("/api/dataview/product_status_filter",{params:t})}function P(t){return e.get("/api/dataview/financial_record_detail/1",{params:t})}function R(t){return e.get("/api/dataview/financial_record_detail/2",{params:t})}function S(t){return e.get("/api/dataview/bill_list",{params:t})}function x(t){return e.get("/api/dataview/withdraw_list",{params:t})}function C(t){return e.get("/statistics/street_currday_order_count",{params:t})}function E(t){return e.post("/api/dataview/login",t)}function U(t){return e.post("/api/dataview/mechant_login",t)}function b(t){return e.get("/api/dataview/merchant_count_main",{params:t})}function j(t){return e.get("/statistics/order_user_num_count",{params:t})}function L(t){return e.get("/api/dataview/merchant_product_ranking",{params:t})}function T(t){return e.get("/api/dataview/merchant_product_visit",{params:t})}function D(t){return e.get("/api/dataview/merchant_product_cart",{params:t})}function N(t){return e.get("/api/dataview/merchant",{params:t})}export{S as A,P as B,R as C,U as D,E,s as a,_ as b,o as c,u as d,d as e,c as f,n as g,p as h,g as i,N as j,b as k,L as l,l as m,T as n,j as o,y as p,D as q,f as r,C as s,A as t,m as u,w as v,v as w,h as x,k as y,x as z};