order.service.js 556 B

123456789101112131415161718
  1. /**
  2. * 这是与购物有关的业务逻辑的服务
  3. */
  4. export default class OrderService {
  5. constructor(AjaxService) {
  6. Object.assign(this, { AjaxService })
  7. this.name = 'OrderService'
  8. }
  9. /* 分享订单初始化查询 orderId 订单ID */
  10. OrderCommodityData (data = {}) {
  11. return this.AjaxService.get({ url:'/order/commodityData', data, isLoading: true })
  12. }
  13. /* 订单支付,效验付款规则 orderId 订单ID */
  14. OrderPaymentValidation (data = {}) {
  15. return this.AjaxService.get({ url:'/order/paymentValidation', data, isLoading: false })
  16. }
  17. }