1
This commit is contained in:
+101
-101
@@ -1,102 +1,102 @@
|
||||
import request from '@/utils/request.js'; // 引入封装的方法
|
||||
// import { APPID } from '@/utils/config.js';
|
||||
|
||||
|
||||
// 获取短信验证码
|
||||
export function getUserList(data) {
|
||||
// data.appId = APPID;
|
||||
return request({
|
||||
url: "/common/getSmsCode",
|
||||
method: "post",
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
// 查询级联地区
|
||||
export function getCascadeRegion(data) {
|
||||
return request({
|
||||
url: "/common/getCascadeRegion",
|
||||
method: "get",
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
// 查询级联类目
|
||||
export function getCascadeCategory(data) {
|
||||
return request({
|
||||
url: "/common/getCascadeCategory",
|
||||
method: "get",
|
||||
data,
|
||||
isShowLoading:false,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// 查询支持的银行
|
||||
export function getSupportBank(data) {
|
||||
return request({
|
||||
url: "/common/getSupportBank",
|
||||
method: "get",
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
// 获取短信验证码
|
||||
export function uploadImage(params) {
|
||||
const formData = new FormData();
|
||||
formData.append("file", params.file);
|
||||
formData.append("type", params.type);
|
||||
return request.post('/common/upload/image',formData);
|
||||
}
|
||||
|
||||
export const uploadImg = "/common/upload/image";
|
||||
|
||||
|
||||
/**
|
||||
* 检查版本更新
|
||||
* @param {Object} data
|
||||
*/
|
||||
export function checkAppVersion(data) {
|
||||
return request({
|
||||
url: "/common/checkAppVersion",
|
||||
method: "post",
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询分享海报
|
||||
* @param {Object} data
|
||||
*/
|
||||
export function getSharePoster(data) {
|
||||
return request({
|
||||
url: "/common/getSharePoster",
|
||||
method: "get",
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 生成分享海报
|
||||
* @param {Object} data
|
||||
*/
|
||||
export function generateSharePoster(data) {
|
||||
return request({
|
||||
url: "/common/generateSharePoster",
|
||||
method: "get",
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询APP轮播图
|
||||
* @param {Object} data
|
||||
*/
|
||||
export function getCarouselImage(data) {
|
||||
return request({
|
||||
url: "/common/getCarouselImage",
|
||||
method: "get",
|
||||
data,
|
||||
});
|
||||
import request from '@/utils/request.js'; // 引入封装的方法
|
||||
// import { APPID } from '@/utils/config.js';
|
||||
|
||||
|
||||
// 获取短信验证码
|
||||
export function getUserList(data) {
|
||||
// data.appId = APPID;
|
||||
return request({
|
||||
url: "/common/getSmsCode",
|
||||
method: "post",
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
// 查询级联地区
|
||||
export function getCascadeRegion(data) {
|
||||
return request({
|
||||
url: "/common/getCascadeRegion",
|
||||
method: "get",
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
// 查询级联类目
|
||||
export function getCascadeCategory(data) {
|
||||
return request({
|
||||
url: "/common/getCascadeCategory",
|
||||
method: "get",
|
||||
data,
|
||||
isShowLoading:false,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// 查询支持的银行
|
||||
export function getSupportBank(data) {
|
||||
return request({
|
||||
url: "/common/getSupportBank",
|
||||
method: "get",
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
// 获取短信验证码
|
||||
export function uploadImage(params) {
|
||||
const formData = new FormData();
|
||||
formData.append("file", params.file);
|
||||
formData.append("type", params.type);
|
||||
return request.post('/common/upload/image',formData);
|
||||
}
|
||||
|
||||
export const uploadImg = "/common/upload/image";
|
||||
|
||||
|
||||
/**
|
||||
* 检查版本更新
|
||||
* @param {Object} data
|
||||
*/
|
||||
export function checkAppVersion(data) {
|
||||
return request({
|
||||
url: "/common/checkAppVersion",
|
||||
method: "post",
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询分享海报
|
||||
* @param {Object} data
|
||||
*/
|
||||
export function getSharePoster(data) {
|
||||
return request({
|
||||
url: "/common/getSharePoster",
|
||||
method: "get",
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 生成分享海报
|
||||
* @param {Object} data
|
||||
*/
|
||||
export function generateSharePoster(data) {
|
||||
return request({
|
||||
url: "/common/generateSharePoster",
|
||||
method: "get",
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询APP轮播图
|
||||
* @param {Object} data
|
||||
*/
|
||||
export function getCarouselImage(data) {
|
||||
return request({
|
||||
url: "/common/getCarouselImage",
|
||||
method: "get",
|
||||
data,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user