xuruiqian
2025-06-04 17ce21955b4e3402d3d5868b52e50bfdd55bc572
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
import {get, post} from './network';
import $config from '../config';
 
let host = $config.serverhost;
 
export const UpdateVIPMaster = (params) => {
    return post(`${host}/wechat/vip/master/update`, params)
}
 
//产品
export const GetProductCategoryList = (params) => {
    return post(`${host}/wechat/product/category/list`, params)
}
export const GetProductCategoryWithProductList = (params) => {
    return post(`${host}/wechat/product/category/listwithproducts`, params)
}
export const GetProductCategoryListByParentName = (parentname) => {
    return get(`${host}/wechat/product/category/listbyparent?parentname=${parentname}`)
}
export const GetProductListByCategoryId = (categoryid) => {
    return get(`${host}/wechat/product/listbycategoryid?categoryid=${categoryid}`)
}
export const GetProductDetailByMasterId = (masterid) => {
    return get(`${host}/wechat/product/detailbymasterid?masterid=${masterid}`)
}
 
//订单
export const CreateActiveOrder = (params) => {
    return post(`${host}/wechat/order/active/makeorder`, params)
}
export const PayUseWXViaMiniProgram = (params) => {
    return post(`${host}/wechat/pay/PayUseWXViaMiniProgram`, params)
}
export const PaySuccess = (params) => {
    return post(`${host}/wechat/order/active/pay`, params)
}
 
//钱包
export const getWalletDetail = (id) => {
    return get(`${host}/wechat/vip/master/wallet/detail?masterid=${id}`)
}
export const depositActivityList = (params) => {
    return post(`${host}/wechat/vip/deposit/activity/list`, params)
}
export const walletRecharge = (params) => {
    return post(`${host}/wechat/vip/master/wallet/recharge`, params)
}
export const walletCharge = (params) => {
    return post(`${host}/wechat/vip/master/wallet/charge`, params)
}
 
//我的
export const getMyPaperList = (id) => {
    return get(`${host}/wechat/vip/paper/relation/list?masterid=${id}`)
}