index.js
3.4 KB
"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;