123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- import request from '../utils/request.js'
- class WelfareMall extends request {
- /**
- * 获取订单
- */
- static getOrder(params) {
- return this.postRequest(`${this.BASE_URL}open/welfare-mall/order/get`, params);
- }
- /**
- * 取消订单
- */
- static cancelOrder(params) {
- return this.postRequest(`${this.BASE_URL}open/welfare-mall/order/cancel`, params);
- }
- /**
- * 订单列表
- */
- static getOrderList(params) {
- return this.postRequest(`${this.BASE_URL}open/welfare-mall/order/list`, params);
- }
- /**
- * 订单退款
- */
- static orderRefund(params) {
- return this.postRequest(`${this.BASE_URL}open/welfare-mall/order/refund`, params);
- }
- /**
- * 获得订单支付参数
- */
- static getPayParams(params) {
- return this.postRequest(`${this.BASE_URL}open/welfare-mall/activity/get-pay-params`, params);
- }
- /**
- * 获取订单的退款单信息
- */
- static getRefundOrderList(params) {
- return this.postRequest(`${this.BASE_URL}open/welfare-mall/order/get-refund-order-list`, params);
- }
- /**
- * 获取订单的退款单状态
- */
- static getRefundOrderStatus(params) {
- return this.postRequest(`${this.BASE_URL}open/welfare-mall/order/get-refund-order-status`, params);
- }
- /**
- * 添加反馈
- */
- static feedBackAdd(params) {
- return this.postRequest(`${this.BASE_URL}open/welfare-mall/add-feedback`, params);
- }
- /**
- * 福利社
- * 获取购买优惠券个数
- */
- static async getUserBuyCouponNum(params) {
- return this.postRequest(`${this.BASE_URL}open/welfare-mall/user-buy-coupon-num`, params);
- }
- /**
- * 签到
- * 获取购买优惠券个数
- */
- static async getUserAwardCouponNum(params) {
- return this.postRequest(`${this.BASE_URL}open/sign-in/user-award-coupon-num`, params);
- }
- /**
- * 抽奖
- * 获取购买优惠券个数
- */
- static async getUserDrawCouponNum(params) {
- return this.postRequest(`${this.BASE_URL}open/luck-draw/user-draw-coupon-num`, params);
- }
- }
- export default WelfareMall
|