import {
|
config
|
} from '@/common/config.js';
|
const http = uni.$u.http;
|
const URL = config.baseURL;
|
|
/* 获取商铺信息 */
|
export const queryShop = (params, config = {}) => http.get(URL +
|
'/payfour-merchant/v1/web/aggregatePayAllin/queryShopById', params, config)
|
|
/* 获取积分价值 */
|
export const getScoreWorth = (params, config = {}) => http.get(URL +
|
'/payfour-merchant/v1/web/aggregatePayAllin/getScoreWorth', params, config)
|
|
|
/* 静默授权登录 */
|
export const getOpenIdBase = (params, config = {}) => http.get(URL +
|
'/payfour-merchant/v1/web/aggregatePayAllin/getOpenIdBase', params, config = {});
|
|
export const userLogin = (params, config = {}) => {
|
let path = '/payfour-merchant/v1/web/aggregatePayAllin/getOpenId'
|
if(params.platform==5){
|
path = '/payfour-merchant/v1/web/h5PayAli/getUserIdByCode'
|
}
|
return http.get(URL + path,
|
params, config = {})
|
};
|
|
/* 获取用户可用优惠券 面值最大的*/
|
export const queryMyUseSweepPayMaxCoupon = (params, config = {}) => http.get(URL +
|
'/payfour-merchant/v1/web/aggregatePayAllin/queryMyUseSweepPayMaxCoupon', params, config = {});
|
/* 获取用户可用优惠券 */
|
export const queryUseSweepPayCoupon = (params, config = {}) => http.get(URL +
|
'/payfour-merchant/v1/web/aggregatePayAllin/queryUseSweepPayCoupon', params, config = {});
|
|
/* 获取微信js sdk配置 */
|
export const getWechatConfigInfo = (params, config = {}) => http.post(URL +
|
'/payfour-merchant/v1/web/aggregatePayAllin/getWechatConfigInfo', params, config = {});
|
|
/*统一支付*/
|
export const saveOrder = (params, config = {}) => http.post(URL +
|
'/payfour-merchant/v1/web/aggregatePayAllin/saveOrder', params, config = {});
|
|
/*取消订单*/
|
export const closeOrder = (params, config = {}) => http.get(URL +
|
'/payfour-merchant/v1/web/aggregatePayAllin/scanPayOrderClose', params, config = {});
|
|
/* 微信支付结果 */
|
export const getWxOrderInfo = (params, config = {}) => http.post(URL +
|
'/payfour-merchant/v1/web/aggregatePayAllin/getWxOrderInfo',
|
params, config = {});
|
|
/* 获取银行卡配置 */
|
export const bankCardStyle = (params, config = {}) => http.get(URL +
|
'/payfour-base/v1/base/pc/global/config/bankCardStyle',
|
params, config = {});
|