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 getPayCompleteUrl = (params, config = {}) => http.get(URL +
|
'/payfour-base/v1/base/pc/global/config/getPayCompleteUrl', params, config)
|
|
/* 获取积分价值 */
|
export const getScoreWorth = (params, config = {}) => http.get(URL +
|
'/payfour-merchant/v1/web/aggregatePayAllin/getScoreWorth', params, config)
|
|
/* 获取用户银行卡 */
|
export const myBankCard = (params, config = {}) => http.get(URL +
|
'/payfour-shop/v1/shop/wechat/h5/bankCard/myBankCard', params, config)
|
|
/* 获取商铺微信配置 */
|
export const getWechatInfo = (params, config = {}) => http.get(URL +
|
'/payfour-merchant/v1/web/aggregatePayAllin/getWechatInfo', params, config = {});
|
/* 静默授权登录 */
|
export const getOpenIdBase = (params, config = {}) => http.get(URL +
|
'/payfour-merchant/v1/web/aggregatePayAllin/getOpenIdBase', params, config = {});
|
|
/* 微信普通授权登录 */
|
export const getOpenId = (params, config = {}) => http.get(URL + '/payfour-merchant/v1/web/aggregatePayAllin/getOpenId',
|
params, config = {});
|
/* 支付宝普通授权登录 */
|
export const getUserId = (params, config = {}) => http.get(URL + '/payfour-merchant/v1/web/h5PayAli/getUserIdByCode',
|
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 queryScore = (params, config = {}) => http.get(URL +
|
'/payfour-merchant/v1/web/aggregatePayAllin/queryScore', 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 saveWxOrder = (params, config = {}) => http.post(URL +
|
'/payfour-merchant/v1/web/aggregatePayAllin/saveWxOrder', params, config = {});
|
export const saveOrder = (params, config = {}) => http.post(URL +
|
'/payfour-merchant/v1/web/aggregatePayAllin/saveOrder', params, config = {});
|
|
/* 图形验证吗 */
|
export const getVerify = (params, config = {}) => http.get(URL +
|
'/payfour-merchant/v1/web/aggregatePayAllin/getVerify', params, config = {});
|
|
/* 短信验证码 */
|
export const getH5PayCheckVerifyCode = (params, config = {}) => http.post(URL +
|
'/payfour-merchant/v1/web/aggregatePayAllin/getH5PayCheckVerifyCode', params, config = {});
|
|
/* 微信支付 */
|
export const h5PayLogin = (params, config = {}) => http.post(URL + '/payfour-shop/v1/shop/web/wechat/h5PayLogin',
|
params, config = {});
|
|
/* 通联快捷支付 */
|
export const tlPay = (params, config = {}) => http.post(URL +
|
'/payfour-merchant/v1/web/aggregatePayAllin/payagreeconfirm',
|
params, config = {});
|
|
/* 微信支付结果 */
|
export const getWxOrderInfo = (params, config = {}) => http.post(URL +
|
'/payfour-merchant/v1/web/aggregatePayAllin/getWxOrderInfo',
|
params, config = {});
|
|
/* 判断是否在卡段内 */
|
export const isContain = (params, config = {}) => http.get(URL +
|
'/payfour-base/v1/base/pc/bankCardPeriod/isContain',
|
params, config = {});
|
|
/* 获取银行卡配置 */
|
export const bankCardStyle = (params, config = {}) => http.get(URL +
|
'/payfour-base/v1/base/pc/global/config/bankCardStyle',
|
params, config = {});
|
|
/* 获取用户信息 */
|
export const getUserInfo = (params, config = {}) => http.post(URL +
|
'/payfour-shop/v1/shop/wechat/h5/bankCard/noEnc',
|
params, config = {});
|
/* 获取店铺优惠信息 */
|
export const queryMyDiscount = (params, config = {}) => http.get(URL +
|
'/payfour-merchant/v1/web/aggregatePayAllin/queryMyDiscount',
|
params, config = {});
|
/* 签约申请绑卡 */
|
export const signUpToApply = (params, config = {}) => http.post(URL +
|
'/payfour-shop/v1/shop/wechat/h5/bankCard/signUpToApply',
|
params, config = {});
|
|
/* 签约申请确认 */
|
export const bindCard = (params, config = {}) => http.post(URL +
|
'/payfour-shop/v1/shop/wechat/h5/bankCard/bindCard',
|
params, config = {});
|
|
/* 获取绑卡活动赠送的优惠券 */
|
export const getMyCoupUseDetail = (params, config = {}) => http.get(URL +
|
'/payfour-merchant/v1/web/aggregatePayAllin/headBand/getMyCoupUseDetail',
|
params, config = {});
|
/* 获取首绑有礼 */
|
export const headBand = (params, config = {}) => http.get(URL +
|
'/payfour-shop/v1/shop/wechat/activity/headBand/detail',
|
params, config = {});
|