12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- import request from '@/apis/utils/request'
- import requestWhite from '@/apis/utils/requestWhite.js';
- // import requestAli from '../utils/requestParking.js';
-
- import Qs from 'qs';
- //微信支付
- export function wxpay(data) {
-
- if(data&&!data.recordId){
- data.recordId=''
- }
- return request({
- url: '/wxPay/wxJsapiPay',
- data: data,
- method: 'post',
- })
- }
- export function alpay(data) {
- if(data&&!data.recordId){
- data.recordId=''
- }
- return request({
- url: '/aliPay/tradePrecreatePay',
- data: data,
- method: 'post',
- })
- }
- //根据code换取openid
- export function getDataByCode(code) {
- return request({
- url: '/youdian/findUserInfo/' + code,
- params: {},
- method: 'get',
- })
- }
- // export function getDataByCodeALI(code) {
- // return requestAli({
- // url: '/aliPay/findUserInfo/' + code,
- // params: {},
- // method: 'get',
- // })
- // }
- //获得配置
- export function getConfig() {
- return requestWhite({
- url: '/youdian/getConfig',
- data: {
- url: window.location.href.split('#')[0]
- },
- method: 'get',
- })
- }
- export function checkSubscribe(data) {
- return requestWhite({
- url: '/wechat/checkSubscribe',
- data: data,
- method: 'post',
- })
- }
- export function addPoint(data) {
- return request({
- url: '/mobile/points/addPoint',
- data: data,
- method: 'post',
- })
- }
|