增加新功能

This commit is contained in:
hejiangming
2025-03-23 20:36:06 +08:00
parent 2ae62b59ed
commit 78270eeda0
184 changed files with 2690 additions and 1496 deletions
+9
View File
@@ -48,3 +48,12 @@ export function getSettleList(data) {
data,
});
}
// 结算下单
export function settle(data) {
return request({
url: "/cart/settle",
method: "post",
data,
});
}
+11 -2
View File
@@ -1,9 +1,11 @@
import request from '@/utils/request.js'; // 引入封装的方法
import { APPID } from '@/utils/config.js';
// 获取短信验证码
export function getUserList(data) {
// return request.post('/common/getSmsCode',qs.stringify(params));
data.appId = APPID;
return request({
url: "/common/getSmsCode",
method: "post",
@@ -13,11 +15,18 @@ export function getUserList(data) {
// 查询级联地区
export function getCascadeRegion(data) {
// return request.post('/common/getSmsCode',qs.stringify(params));
return request({
url: "/common/getCascadeRegion",
method: "get",
data,
});
}
// 查询级联类目
export function getCascadeCategory(data) {
return request({
url: "/common/getCascadeCategory",
method: "get",
data,
});
}
-16
View File
@@ -1,16 +0,0 @@
import request from '@/utils/request.js';
import qs from "qs";
/**
* 登录(SMS)
* @param {Object} params
*/
export function loginbysms(params) {
return request({
url: "/auth/loginbysms",
method: "post",
data:params,
});
}
-1
View File
@@ -1,5 +1,4 @@
import request from '@/utils/request.js';
import qs from "qs";
import {getStorageFun,TOKEN_NAME} from '@/utils/auth.js';
/**