This commit is contained in:
SelfRidicule 2024-03-09 19:12:05 +08:00
parent 1ba11dbd7a
commit 7ec0fbb629
2 changed files with 23 additions and 2 deletions

View File

@ -17,4 +17,13 @@ export function visitorSelectUserByCustomerRq(id) {
url: '/api/visitor/selectUserByCustomer/' + id,
method: "get",
});
}
// 访客预约-添加
export function visitorPersonRq(data) {
return request({
url: '/api/visitor/visitorPerson',
method: "post",
data,
});
}

View File

@ -6,6 +6,10 @@ import {
selfFormatTimeYMDHMS
} from "../../../../utils/util.js"
import {
visitorPersonRq
} from "../../../../api/meeting/visitorIinvitation.js"
Page({
@ -294,8 +298,16 @@ Page({
_this.showErrMsg('请上传照片!')
return;
}
//
// 添加数据
visitorPersonRq(detail).then(res => {
console.log('visitorPersonRq', res);
if (res.code == 0) {
wx.navigateBack()
} else {
_this.showErrMsg(res.msg)
}
})
},
// 显示错误消息