// created by zach He on 2019-04-29 // 企业概况 import url from './urls' export default class Home { /** * @描述 1.1 获取用户信息 */ static getToken (parms) { return $http.post(url.getToken, parms); } static getTotal (parms) { return $http.get(url.getTotal, parms); } static getToday (parms) { return $http.get(url.getToday, parms); } static getSkinList (parms) { return $http.get(url.getSkinList, parms); } static getSkinInfo (parms) { return $http.get(url.getSkinInfo, parms); } static getProject (parms) { return $http.get(url.getProject, parms); } static getUserInfo (parms) { return $http.get(url.getUserInfo, parms); } static getSkinTags (parms) { return $http.get(url.getSkinTags, parms); } static getSkinUpdate (parms) { return $http.post(url.getSkinUpdate, parms); } static getProjectList (parms) { return $http.get(url.getProjectList, parms); } static getProducts (parms) { return $http.get(url.getProducts, parms); } static getOrderTime (parms) { return $http.get(url.getOrderTime, parms); } static setOrderUpdate (parms) { return $http.post(url.setOrderUpdate, parms); } static getOrderCoupon (parms) { return $http.get(url.getOrderCoupon, parms); } static getAuthCode (parms) { return $http.get(url.getAuthCode, parms); } static checkCode (parms) { return $http.get(url.checkCode, parms); } static getOrderByCode (parms) { return $http.get(url.getOrderByCode, parms); } static orderPay (parms) { return $http.post(url.orderPay, parms); } static payStatus (parms) { return $http.get(url.payStatus, parms); } static getOrderDiscount (parms) { return $http.get(url.getOrderDiscount, parms); } static projectClassify (parms) { return $http.get(url.projectClassify, parms); } // 获取历史订单 static getOrderList (parms) { return $http.get(url.getOrderList, parms); } // 获取订单详情 static getOrderInfo (parms) { return $http.get(url.getOrderInfo, parms); } // 获取用户列表 static getUserList (parms) { return $http.get(url.getUserList, parms); } // // 获取用户详情 // static getUserInfo (parms) { // return $http.get(url.getUserInfo, parms); // } // 获取优惠券列表 static getCouponInfo (parms) { return $http.get(url.getCouponInfo, parms); } // 发送优惠券接口 static sendCoupon (parms) { return $http.post(url.sendCoupon, parms); } // 获取用户详情接口 static getPadUserInfo (parms) { return $http.get(url.getPadUserInfo, parms); } // 获取优惠券订单 static getUserCoupon (parms) { return $http.get(url.getUserCoupon, parms); } // 获取商品订单 static getUserGoods (parms) { return $http.get(url.getUserGoods, parms); } // 获取项目订单 static getUserProject (parms) { return $http.get(url.getUserProject, parms); } // 新增项目订单 static padOrderAdd (parms) { return $http.post(url.padOrderAdd, parms); } }