ensure.js 1.57 KB
import { api } from '../../common/api';

export default {
  /**
     * 立即购买Paymeny
     * @param params
     * @returns {*}
     */
  buynowPayment(params) {
    return api.get({
      url: '',
      data: Object.assign({
        method: 'app.Buynow.payment'
      }, params)
    });
  },

  /**
     * 立即购买Compute
     * @param params
     * @returns {*}
     */
  buynowCompute(params) {
    return api.get({
      url: '',
      data: Object.assign({
        method: 'app.Buynow.compute'
      }, params)
    });
  },

  /**
     * 立即购买Submit
     * @param params
     * @returns {*}
     */
  buynowSubmit(params) {
    return api.get({
      url: '',
      data: Object.assign({
        method: 'app.Buynow.submit'
      }, params)
    });
  },

  /**
    * [1、普通结算Payment]
    * @param  {[type]} params [{}]
    * @return {[type]}        [{}]
    */
  shoppingPayment(params) {
    return api.get({
      url: '',
      data: Object.assign({
        method: 'app.Shopping.payment'
      }, params)
    });
  },

  /**
    * [2、普通结算Compute]
    * @param  {[type]} params [{}]
    * @return {[type]}        [{}]
    */
  shoppingCompute(params) {
    return api.get({
      url: '',
      data: Object.assign({
        method: 'app.Shopping.compute'
      }, params)
    });
  },

  /**
    * [3、普通结算Submit]
    * @param  {[type]} params [{}]
    * @return {[type]}        [{}]
    */
  shoppingSubmit(params) {
    return api.get({
      url: '',
      data: Object.assign({
        method: 'app.Shopping.submit'
      }, params)
    });
  }
};