You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
1.5 KiB
79 lines
1.5 KiB
import http from '@/utils/http/index.js'
|
|
|
|
/**
|
|
* 微信登录认证获取token
|
|
* @param {object} data 参数 encryptedData iv tmpAuthToken
|
|
*/
|
|
export function wxAuthorize(data = {}) {
|
|
return http.post({
|
|
url: `/uec/authorize/by-wechat-applet/without-regest`,
|
|
data
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 微信小程序静默登录
|
|
* @param {object} data 参数 authCode
|
|
*/
|
|
export function silentLogin(data = {}) {
|
|
return http.post(
|
|
{
|
|
url: `/uec/authorize/by-wechat-applet/without-regest/unlogin`,
|
|
data
|
|
},
|
|
{ hideLoading: true }
|
|
)
|
|
}
|
|
|
|
/**
|
|
* 获取用户代理商状态
|
|
* @param {object} data 参数
|
|
*/
|
|
export function getStoreState(data = {}) {
|
|
return http.get(
|
|
{
|
|
url: `/wukong-fast-print/get/agency/shop/status`,
|
|
data
|
|
},
|
|
{ hideLoading: true }
|
|
)
|
|
}
|
|
|
|
/**
|
|
* 获取代理商佣金统计
|
|
* @param {object} data 参数
|
|
*/
|
|
export function getStoreStatistics(data = {}) {
|
|
return http.get(
|
|
{
|
|
url: `/wukong-fast-print/get/agency/commission/statistics`,
|
|
data
|
|
},
|
|
{ hideLoading: true }
|
|
)
|
|
}
|
|
|
|
|
|
/**
|
|
* 提交店铺申请
|
|
* @param {object} data 参数
|
|
*/
|
|
export function makeStoreApplication(data = {}) {
|
|
return http.post({
|
|
url: `/wukong-fast-print/submit/agency/store/apply`,
|
|
data
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 获取代理商佣金统计
|
|
* @param {object} data 参数
|
|
*/
|
|
export function getPreferentialCardList(data = {}) {
|
|
return http.get(
|
|
{
|
|
url: `/wukong-fast-print/get/preferential/card/list`,
|
|
data
|
|
}
|
|
)
|
|
}
|