Blame view

src/api/orderPay/orderPay.js 825 Bytes
0c49c87e   liuqimichale   微信公众号 初始化
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
  import request from '@/utils/request'
  
  export function aliPay(params) {  // 支付宝
    return request({
      url: 'alipay/aliH5Pay',
      method: 'post',
      data: params
    })
  }
  
  
  export function getOpenId(params) {  // 获取OpenId
    return request({
      url: 'weixinPublicPay/getOpenIdByCode',
      method: 'post',
      data: params
    })
  }
  
  
  export function vxPayQuery(params) {  // 微信
    return request({
      url: 'weixinpay/publicUnifiedOrder',
      method: 'post',
      data: params
    })
  }
  
  // 新接口银联
  
  export function doPay(params) {  // 微信
    return request({
      url: 'unionpay/doPay',
      method: 'post',
      data: params
    })
  }
  
  
  // 创建订单
  
  export function doOrderCreate(params) {  // 创建订单
    return request({
      url: 'unionpay/doOrderCreate',
      method: 'post',
      data: params
    })
  }