石广澎
2025-11-17 8771da2ccf6f7c3fd2a8c89a1a0e230c6386db7f
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
import {
    config
} from '@/common/config.js';
const http = uni.$u.http;
const URL = config.baseURL;
 
/* 获取商铺信息 */
export const queryShop = (params, config = {}) => http.get(URL +
    '/service-merchant/v1/web/aggregatePayAllin/queryShopById', params, config)
 
/* 获取成功页面配置 */
export const getPayCompleteUrl = (params, config = {}) => http.get(URL +
    '/service-base/v1/base/pc/global/config/getPayCompleteUrl', params, config)
 
/* 获取积分价值 */
export const getScoreWorth = (params, config = {}) => http.get(URL +
    '/service-merchant/v1/web/aggregatePayAllin/getScoreWorth', params, config)
 
/* 获取用户银行卡 */
export const myBankCard = (params, config = {}) => http.get(URL +
    '/service-shop/v1/shop/wechat/h5/bankCard/myBankCard', params, config)
 
/* 获取商铺微信配置 */
export const getWechatInfo = (params, config = {}) => http.get(URL +
    '/service-merchant/v1/web/aggregatePayAllin/getWechatInfo', params, config = {});
/* 静默授权登录 */
export const getOpenIdBase = (params, config = {}) => http.get(URL +
    '/service-merchant/v1/web/aggregatePayAllin/getOpenIdBase', params, config = {});
 
/* 微信普通授权登录 */
export const getOpenId = (params, config = {}) => http.get(URL + '/service-merchant/v1/web/aggregatePayAllin/getOpenId',
    params, config = {});
/* 支付宝普通授权登录 */
export const getUserId = (params, config = {}) => http.get(URL + '/service-merchant/v1/web/h5PayAli/getUserIdByCode',
    params, config = {});
 
export const userLogin = (params, config = {}) => {
    let path = '/service-merchant/v1/web/aggregatePayAllin/getOpenId'
    if (params.platform == 5) {
        path = '/service-merchant/v1/web/h5PayAli/getUserIdByCode'
    }
    if (params.platform == 15) {
        path = '/service-merchant/v1/web/h5PayUnionPay/getUserIdByCode'
    }
    return http.get(URL + path,
        params, config = {})
};
/* 获取用户积分 */
export const queryScore = (params, config = {}) => http.get(URL +
    '/service-merchant/v1/web/aggregatePayAllin/queryScore', params, config = {});
/* 获取用户可用优惠券 面值最大的*/
export const queryMyUseSweepPayMaxCoupon = (params, config = {}) => http.get(URL +
    '/service-merchant/v1/web/aggregatePayAllin/queryMyUseSweepPayMaxCoupon', params, config = {});
/* 获取用户可用优惠券 */
export const queryUseSweepPayCoupon = (params, config = {}) => http.get(URL +
    '/service-merchant/v1/web/aggregatePayAllin/queryUseSweepPayCoupon', params, config = {});
 
/* 获取微信js sdk配置 */
export const getWechatConfigInfo = (params, config = {}) => http.post(URL +
    '/service-merchant/v1/web/aggregatePayAllin/getWechatConfigInfo', params, config = {});
 
/* 微信支付 */
export const saveWxOrder = (params, config = {}) => http.post(URL +
    '/service-merchant/v1/web/aggregatePayAllin/saveWxOrder', params, config = {});
 
/* 图形验证吗 */
export const getVerify = (params, config = {}) => http.get(URL +
    '/service-merchant/v1/web/aggregatePayAllin/getVerify', params, config = {});
 
/* 短信验证码 */
export const getH5PayCheckVerifyCode = (params, config = {}) => http.post(URL +
    '/service-merchant/v1/web/aggregatePayAllin/getH5PayCheckVerifyCode', params, config = {});
 
/* 微信支付 */
export const h5PayLogin = (params, config = {}) => http.post(URL + '/service-shop/v1/shop/web/wechat/h5PayLogin',
    params, config = {});
 
/* 通联快捷支付 */
export const tlPay = (params, config = {}) => http.post(URL +
    '/service-merchant/v1/web/aggregatePayAllin/payagreeconfirm',
    params, config = {});
 
/* 微信支付结果 */
export const getWxOrderInfo = (params, config = {}) => http.post(URL +
    '/service-merchant/v1/web/aggregatePayAllin/getWxOrderInfo',
    params, config = {});
 
/* 判断是否在卡段内 */
export const isContain = (params, config = {}) => http.get(URL +
    '/service-base/v1/base/pc/bankCardPeriod/isContain',
    params, config = {});
 
/* 获取银行卡配置 */
export const bankCardStyle = (params, config = {}) => http.get(URL +
    '/service-base/v1/base/pc/global/config/bankCardStyle',
    params, config = {});
 
/* 获取用户信息 */
export const getUserInfo = (params, config = {}) => http.post(URL +
    '/service-shop/v1/shop/wechat/h5/bankCard/noEnc',
    params, config = {});
/* 获取店铺优惠信息 */
export const queryMyDiscount = (params, config = {}) => http.get(URL +
    '/service-merchant/v1/web/aggregatePayAllin/queryMyDiscount',
    params, config = {});
/* 签约申请绑卡 */
export const signUpToApply = (params, config = {}) => http.post(URL +
    '/service-shop/v1/shop/wechat/h5/bankCard/signUpToApply',
    params, config = {});
 
/* 签约申请确认 */
export const bindCard = (params, config = {}) => http.post(URL +
    '/service-shop/v1/shop/wechat/h5/bankCard/bindCard',
    params, config = {});
 
/* 获取绑卡活动赠送的优惠券 */
export const getMyCoupUseDetail = (params, config = {}) => http.get(URL +
    '/service-merchant/v1/web/aggregatePayAllin/headBand/getMyCoupUseDetail',
    params, config = {});
/* 获取首绑有礼 */
export const headBand = (params, config = {}) => http.get(URL +
    '/service-shop/v1/shop/wechat/activity/headBand/detail',
    params, config = {});