pay.js 492 Bytes
import api from '../../common/api';

export default {
  /**
     * 微信支付sign
     * @param params
     * @returns {*}
     */
  wechatPay(param) {
    return api.get({
      url: '/payment/weixin_data',
      data: param
    });
  },

  /**
     * 支付成功确认
     * @param params
     * @returns {*}
     */
  paySuccessConfirm(param) {
    return api.get({
      url: '',
      data: Object.assign({
        method: 'app.SpaceOrders.payConfirm'
      }, param)
    });
  }
};