|
@@ -80,7 +80,9 @@ Page({
|
|
|
personTypIndex: 0,
|
|
|
visitorUserInfo: null,
|
|
|
// 提交表单
|
|
|
- form: {},
|
|
|
+ form: {
|
|
|
+ reason: '业务洽谈'
|
|
|
+ },
|
|
|
//所有楼宇列表
|
|
|
all_buildingList: [],
|
|
|
auditList: null,
|
|
@@ -372,6 +374,7 @@ Page({
|
|
|
form,
|
|
|
buildingCheckType
|
|
|
} = this.data;
|
|
|
+
|
|
|
switch (e.currentTarget.dataset.type) {
|
|
|
case 'reason':
|
|
|
this.setData({
|
|
@@ -422,6 +425,10 @@ Page({
|
|
|
this.canOperation();
|
|
|
}
|
|
|
break;
|
|
|
+ case 'company':
|
|
|
+ this.setData({
|
|
|
+ 'form.company': e.detail
|
|
|
+ })
|
|
|
default:
|
|
|
form[e.currentTarget.dataset.type] = e.detail
|
|
|
break;
|
|
@@ -481,7 +488,7 @@ Page({
|
|
|
disableComplete = true
|
|
|
wx.showModal({
|
|
|
title: '提示',
|
|
|
- content: '你暂无权限接受此邀请哦',
|
|
|
+ content: '你暂无权限接受此邀请哦,请检查手机号是否正确.',
|
|
|
showCancel: false,
|
|
|
})
|
|
|
}
|
|
@@ -508,6 +515,7 @@ Page({
|
|
|
form.userId = that.data.userInfo.userId;
|
|
|
form.visiteeBuildingId = that.data.buildingAdminId;
|
|
|
visitorySubmit(form).then(res => {
|
|
|
+ console.log(res);
|
|
|
// 提交失败
|
|
|
if (res.code != 200) {
|
|
|
wx.showToast({
|
|
@@ -525,7 +533,7 @@ Page({
|
|
|
app.data.visitorExtraInfo = visitorExtraInfo
|
|
|
wx.showModal({
|
|
|
title: '提示',
|
|
|
- content: that.data.type === 1 ? '您的预约已提交,请耐心等待常客审核吧~' : '您已成功接受邀请啦~',
|
|
|
+ content: that.data.type === 1 ? '您的预约已提交,请耐心等待常客审核吧~' : '您已成功接受邀请啦,随后可在"首页-访客记录"中查看详情~',
|
|
|
showCancel: false,
|
|
|
success() {
|
|
|
if (that.data.type === 1) {
|