修改二维码登录逻辑

This commit is contained in:
2024-03-27 14:44:59 +08:00
parent 3b5525a2a2
commit 61bcbf6f69
11 changed files with 173 additions and 25 deletions

View File

@@ -4,4 +4,14 @@ const { GET, POST, PUT, DELETE } = apis
// 获取园区id模糊搜索商户列表
export const getTenementList = async function({ park, keyword }) {
return await GET(`/wx/getTenementList?park=${park}&keyword=${keyword}`);
}
// 获取名下所有的商户
export const getOwnTenementList = async function() {
return await GET(`/wx/getOwnTenements`);
}
// 获取商户详情
export const getTenementDetail = async function(id) {
return await GET(`/wx/getTenementDetail/${id}`);
}

View File

@@ -12,8 +12,8 @@ export const userValidate = async function(data) {
}
// 获取用户邀请二维码
export const getWxCode = async function(data) {
return await GET('/wx/getWxCode', data);
export const getWxCode = async function(id) {
return await GET(`/wx/getWxCode?id=${id}`);
}
// 获取扫描二维码的列表
@@ -41,7 +41,7 @@ export const reApprove = async function() {
return await POST('/wx/reApprove');
}
// 非管理员重新提交申请
// 非管理员扫码
export const userApply = async function(data) {
return await POST('/wx/apply', data);
}