index.js
5.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
"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;