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

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

View File

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