2025-08-05 15:25:23 +08:00
|
|
|
import request from '@/utils/request.js'; // 引入封装的方法
|
|
|
|
|
// import { APPID } from '@/utils/config.js';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 获取短信验证码
|
|
|
|
|
export function getUserList(data) {
|
|
|
|
|
// data.appId = APPID;
|
|
|
|
|
return request({
|
2026-08-20 17:31:00 +08:00
|
|
|
url: "/common/getSmsCode",
|
|
|
|
|
method: "post",
|
|
|
|
|
data,
|
|
|
|
|
});
|
2025-08-05 15:25:23 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 查询级联地区
|
|
|
|
|
export function getCascadeRegion(data) {
|
|
|
|
|
return request({
|
2026-08-20 17:31:00 +08:00
|
|
|
url: "/common/getCascadeRegion",
|
|
|
|
|
method: "get",
|
|
|
|
|
data,
|
|
|
|
|
});
|
2025-08-05 15:25:23 +08:00
|
|
|
}
|
2026-08-20 17:31:00 +08:00
|
|
|
|
|
|
|
|
// 查询级联类目
|
|
|
|
|
export function getCascadeCategory(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: "/common/getCascadeCategory",
|
|
|
|
|
method: "get",
|
|
|
|
|
data,
|
|
|
|
|
isShowLoading: false,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2025-08-05 15:25:23 +08:00
|
|
|
// 查询支持的银行
|
|
|
|
|
export function getSupportBank(data) {
|
|
|
|
|
return request({
|
2026-08-20 17:31:00 +08:00
|
|
|
url: "/common/getSupportBank",
|
|
|
|
|
method: "get",
|
|
|
|
|
data,
|
2025-08-05 15:25:23 +08:00
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 获取短信验证码
|
|
|
|
|
export function uploadImage(params) {
|
|
|
|
|
const formData = new FormData();
|
|
|
|
|
formData.append("file", params.file);
|
|
|
|
|
formData.append("type", params.type);
|
2026-08-20 17:31:00 +08:00
|
|
|
return request.post('/common/upload/image', formData);
|
2025-08-05 15:25:23 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const uploadImg = "/common/upload/image";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询分享海报
|
|
|
|
|
* @param {Object} data
|
|
|
|
|
*/
|
|
|
|
|
export function getSharePoster(data) {
|
|
|
|
|
return request({
|
2026-08-20 17:31:00 +08:00
|
|
|
url: "/common/getSharePoster",
|
|
|
|
|
method: "get",
|
|
|
|
|
data,
|
2025-08-05 15:25:23 +08:00
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 生成分享海报
|
|
|
|
|
* @param {Object} data
|
|
|
|
|
*/
|
|
|
|
|
export function generateSharePoster(data) {
|
|
|
|
|
return request({
|
2026-08-20 17:31:00 +08:00
|
|
|
url: "/common/generateSharePoster",
|
|
|
|
|
method: "get",
|
|
|
|
|
data,
|
2025-08-05 15:25:23 +08:00
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询APP轮播图
|
|
|
|
|
* @param {Object} data
|
|
|
|
|
*/
|
|
|
|
|
export function getCarouselImage(data) {
|
|
|
|
|
return request({
|
2026-08-20 17:31:00 +08:00
|
|
|
url: "/common/getCarouselImage",
|
|
|
|
|
method: "get",
|
|
|
|
|
data,
|
2025-08-05 15:25:23 +08:00
|
|
|
});
|
2025-10-10 13:41:42 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function getWithdraw(data) {
|
|
|
|
|
return request({
|
2026-08-20 17:31:00 +08:00
|
|
|
url: "/withdrawAccount/getWithdrawAccountsList",
|
|
|
|
|
method: "get",
|
|
|
|
|
data,
|
2025-10-10 13:41:42 +08:00
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function bindWithdraw(data) {
|
|
|
|
|
return request({
|
2026-08-20 17:31:00 +08:00
|
|
|
url: "/withdrawAccount/bindWithdrawAccount",
|
|
|
|
|
method: "post",
|
|
|
|
|
data,
|
|
|
|
|
cha: 1
|
2025-10-10 13:41:42 +08:00
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function unbindWithdraw(data) {
|
|
|
|
|
return request({
|
2026-08-20 17:31:00 +08:00
|
|
|
url: "/withdrawAccount/unbindWithdrawAccount",
|
|
|
|
|
method: "get",
|
|
|
|
|
data,
|
2025-10-10 13:41:42 +08:00
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function sendWithdraw(data) {
|
|
|
|
|
return request({
|
2026-08-20 17:31:00 +08:00
|
|
|
url: "/withdraw/withdraw",
|
|
|
|
|
method: "post",
|
|
|
|
|
data,
|
|
|
|
|
cha: 1
|
2025-10-10 13:41:42 +08:00
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 检查版本更新
|
|
|
|
|
* @param {Object} data
|
|
|
|
|
*/
|
|
|
|
|
export function checkAppVersion(data) {
|
|
|
|
|
return request({
|
2026-08-20 17:31:00 +08:00
|
|
|
url: "/common/checkAppVersion",
|
|
|
|
|
method: "post",
|
|
|
|
|
data,
|
2025-10-10 13:41:42 +08:00
|
|
|
});
|
2025-12-17 16:22:17 +08:00
|
|
|
}
|
|
|
|
|
|