123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- import request from '@/utils/request'
-
- import Qs from 'qs';
- //微信支付
- export function wxpay(orderId) {
- return request({
- url: '/wxPay/wxJsapiPay',
- data: {
- chargingMarketingId: orderId,
- type:"D"
- },
- method: 'post',
- })
- }
- export function wxpay2(data) {
- if(data){
- data.type="D"
- }
- if(data&&!data.recordId){
- data.recordId=''
- }
- return request({
- url: '/wxPay/wxJsapiPay',
- data: data,
- method: 'post',
- })
- }
- //根据code换取openid
- export function getDataByCode(code) {
- return request({
- url:process.car.wechatUrl+ '/findUserInfo/' + code,
- params: {},
- method: 'get',
- })
- }
- //获得配置
- export function getConfig() {
-
- return request({
- url:process.car.wechatUrl+ '/getConfig',
- data: {
- url: window.location.href.split('#')[0]
- },
- method: 'get',
- })
- }
|