|
|
"use strict";
|
|
|
var utils_request = require("../utils/request.js");
|
|
|
const getLogin = (params) => utils_request.request({ url: "/api/login/getPhones", method: "post", data: params });
|
|
|
const getIndex = () => utils_request.request({ url: "/api/index/index", method: "post", data: {} });
|
|
|
const getSearch = (key) => utils_request.request({ url: "/api/index/Searchfor", method: "post", data: { key } });
|
|
|
const getRecord = () => utils_request.request({ url: "/api/index/getSearchKeyword", method: "post", data: {} });
|
|
|
const getDelRecord = () => utils_request.request({ url: "/api/index/delSearchKeyword", method: "post", data: {} });
|
|
|
const getCodegood = () => utils_request.request({ url: "/api/goods/codegoods", method: "get", data: {} });
|
|
|
const getShopDetaile = (id) => utils_request.request({ url: "/api/goods/detail", method: "get", data: { id } });
|
|
|
const getbBuyData = (params) => utils_request.request({ url: "/api/goods/buyData", method: "get", data: params });
|
|
|
const getPay = (params) => utils_request.request({ url: "/api/goods/pay", method: "get", data: params });
|
|
|
const getTwoClassification = () => utils_request.request({ url: "/api/category/fenleilie", method: "post" });
|
|
|
const getCategoryGoods = (data) => utils_request.request({ url: "/api/category/getCategoryGoods", method: "post", data });
|
|
|
const getAddCar = (params) => utils_request.request({ url: "/api/cart/add", method: "get", data: params });
|
|
|
const getCarList = () => utils_request.request({ url: "/api/cart/index", method: "get", data: {} });
|
|
|
const getCarAdd = (cart_id, num) => utils_request.request({ url: "/api/cart/inc", method: "get", data: { cart_id, num } });
|
|
|
const getCarReduce = (cart_id, num) => utils_request.request({ url: "/api/cart/sub", method: "get", data: { cart_id, num } });
|
|
|
const getDelCar = (cart_ids) => utils_request.request({ url: "/api/cart/del", method: "get", data: { cart_ids } });
|
|
|
const getCarsettlement = (cart_ids) => utils_request.request({ url: "/api/cart/settlement", method: "get", data: { cart_ids } });
|
|
|
const getCarPay = (params) => utils_request.request({ url: "/api/cart/pay", method: "get", data: params });
|
|
|
const getMine = () => utils_request.request({ url: "/api/user/index", method: "get", data: {} });
|
|
|
const getOrderList = (status) => utils_request.request({ url: "/api/order/index", method: "get", data: { status } });
|
|
|
const getOrderdetail = (id) => utils_request.request({ url: "/api/order/detail", method: "get", data: { id } });
|
|
|
const getCancleOrder = (id) => utils_request.request({ url: "/api/order/cancel", method: "get", data: { id } });
|
|
|
const getReceipt = (id) => utils_request.request({ url: "/api/order/receipt", method: "get", data: { id } });
|
|
|
const getRefund = (id) => utils_request.request({ url: "/api/order/refund", method: "get", data: { id } });
|
|
|
const getOrderPay = (id, fangs) => utils_request.request({ url: "/api/order/pay", method: "get", data: { id, fangs } });
|
|
|
const getyue = () => utils_request.request({ url: "/api/user/yue", method: "get", data: {} });
|
|
|
const getMoneyDetail = () => utils_request.request({ url: "/api/user/getMoneyDetail", method: "get", data: {} });
|
|
|
const getMyScore = () => utils_request.request({ url: "/api/user/myScore", method: "get", data: {} });
|
|
|
const getScoreDetail = () => utils_request.request({ url: "/api/user/getScoreDetail", method: "get", data: {} });
|
|
|
const getPackage = () => utils_request.request({ url: "/api/user/czlb", method: "get", data: {} });
|
|
|
const getRecharge = (m) => utils_request.request({ url: "/api/user/czxt", method: "get", data: { m } });
|
|
|
const getComment = (params) => utils_request.request({ url: "/api/goods/pinglun", method: "get", data: params });
|
|
|
const getAdressList = () => utils_request.request({ url: "/api/address/index", method: "post", data: {} });
|
|
|
const getEdit = (params) => utils_request.request({ url: "/api/address/add", method: "post", data: params });
|
|
|
const getadresDetail = (id) => utils_request.request({ url: "/api/address/detail", method: "post", data: { id } });
|
|
|
const getDelAdres = (ids) => utils_request.request({ url: "/api/address/del", method: "post", data: { ids } });
|
|
|
exports.getAddCar = getAddCar;
|
|
|
exports.getAdressList = getAdressList;
|
|
|
exports.getCancleOrder = getCancleOrder;
|
|
|
exports.getCarAdd = getCarAdd;
|
|
|
exports.getCarList = getCarList;
|
|
|
exports.getCarPay = getCarPay;
|
|
|
exports.getCarReduce = getCarReduce;
|
|
|
exports.getCarsettlement = getCarsettlement;
|
|
|
exports.getCategoryGoods = getCategoryGoods;
|
|
|
exports.getCodegood = getCodegood;
|
|
|
exports.getComment = getComment;
|
|
|
exports.getDelAdres = getDelAdres;
|
|
|
exports.getDelCar = getDelCar;
|
|
|
exports.getDelRecord = getDelRecord;
|
|
|
exports.getEdit = getEdit;
|
|
|
exports.getIndex = getIndex;
|
|
|
exports.getLogin = getLogin;
|
|
|
exports.getMine = getMine;
|
|
|
exports.getMoneyDetail = getMoneyDetail;
|
|
|
exports.getMyScore = getMyScore;
|
|
|
exports.getOrderList = getOrderList;
|
|
|
exports.getOrderPay = getOrderPay;
|
|
|
exports.getOrderdetail = getOrderdetail;
|
|
|
exports.getPackage = getPackage;
|
|
|
exports.getPay = getPay;
|
|
|
exports.getReceipt = getReceipt;
|
|
|
exports.getRecharge = getRecharge;
|
|
|
exports.getRecord = getRecord;
|
|
|
exports.getRefund = getRefund;
|
|
|
exports.getScoreDetail = getScoreDetail;
|
|
|
exports.getSearch = getSearch;
|
|
|
exports.getShopDetaile = getShopDetaile;
|
|
|
exports.getTwoClassification = getTwoClassification;
|
|
|
exports.getadresDetail = getadresDetail;
|
|
|
exports.getbBuyData = getbBuyData;
|
|
|
exports.getyue = getyue; |
|
|
"use strict";const t=require("../utils/request.js"),r=e=>t.request({url:"/api/login/getPhones",method:"post",data:e}),o=()=>t.request({url:"/api/index/index",method:"post",data:{}}),d=e=>t.request({url:"/api/index/Searchfor",method:"post",data:{key:e}}),s=()=>t.request({url:"/api/index/getSearchKeyword",method:"post",data:{}}),g=()=>t.request({url:"/api/index/delSearchKeyword",method:"post",data:{}}),u=()=>t.request({url:"/api/goods/codegoods",method:"get",data:{}}),c=e=>t.request({url:"/api/goods/detail",method:"get",data:{id:e}}),i=e=>t.request({url:"/api/goods/buyData",method:"get",data:e}),l=e=>t.request({url:"/api/goods/pay",method:"get",data:e}),n=()=>t.request({url:"/api/category/fenleilie",method:"post"}),p=e=>t.request({url:"/api/category/getCategoryGoods",method:"post",data:e}),m=e=>t.request({url:"/api/cart/add",method:"get",data:e}),h=()=>t.request({url:"/api/cart/index",method:"get",data:{}}),q=(e,a)=>t.request({url:"/api/cart/inc",method:"get",data:{cart_id:e,num:a}}),y=(e,a)=>t.request({url:"/api/cart/sub",method:"get",data:{cart_id:e,num:a}}),C=e=>t.request({url:"/api/cart/del",method:"get",data:{cart_ids:e}}),D=e=>t.request({url:"/api/cart/settlement",method:"get",data:{cart_ids:e}}),S=e=>t.request({url:"/api/cart/pay",method:"get",data:e}),x=()=>t.request({url:"/api/user/index",method:"get",data:{}}),P=e=>t.request({url:"/api/order/index",method:"get",data:{status:e}}),R=e=>t.request({url:"/api/order/detail",method:"get",data:{id:e}}),A=e=>t.request({url:"/api/order/cancel",method:"get",data:{id:e}}),L=e=>t.request({url:"/api/order/receipt",method:"get",data:{id:e}}),O=e=>t.request({url:"/api/order/refund",method:"get",data:{id:e}}),f=(e,a)=>t.request({url:"/api/order/pay",method:"get",data:{id:e,fangs:a}}),M=()=>t.request({url:"/api/user/yue",method:"get",data:{}}),b=()=>t.request({url:"/api/user/getMoneyDetail",method:"get",data:{}}),w=()=>t.request({url:"/api/user/myScore",method:"get",data:{}}),v=()=>t.request({url:"/api/user/getScoreDetail",method:"get",data:{}}),G=()=>t.request({url:"/api/user/czlb",method:"get",data:{}}),k=e=>t.request({url:"/api/user/czxt",method:"get",data:{m:e}}),z=e=>t.request({url:"/api/goods/pinglun",method:"get",data:e}),B=()=>t.request({url:"/api/address/index",method:"post",data:{}}),E=e=>t.request({url:"/api/address/add",method:"post",data:e}),I=e=>t.request({url:"/api/address/detail",method:"post",data:{id:e}}),K=e=>t.request({url:"/api/address/del",method:"post",data:{ids:e}}),T=()=>t.request({url:"/api/common/compact",method:"post"}),_=()=>t.request({url:"/api/common/privacyPolicy",method:"post"});exports.getAddCar=m;exports.getAdressList=B;exports.getCancleOrder=A;exports.getCarAdd=q;exports.getCarList=h;exports.getCarPay=S;exports.getCarReduce=y;exports.getCarsettlement=D;exports.getCategoryGoods=p;exports.getCodegood=u;exports.getComment=z;exports.getDelAdres=K;exports.getDelCar=C;exports.getDelRecord=g;exports.getEdit=E;exports.getIndex=o;exports.getLogin=r;exports.getMine=x;exports.getMoneyDetail=b;exports.getMyScore=w;exports.getOrderList=P;exports.getOrderPay=f;exports.getOrderdetail=R;exports.getPackage=G;exports.getPay=l;exports.getReceipt=L;exports.getRecharge=k;exports.getRecord=s;exports.getRefund=O;exports.getScoreDetail=v;exports.getSearch=d;exports.getShopDetaile=c;exports.getTwoClassification=n;exports.getadresDetail=I;exports.getbBuyData=i;exports.getcompact=T;exports.getprivacyPolicy=_;exports.getyue=M; |
...
|
...
|
|