소스 검색

修复了一些问题

zyh 2 달 전
부모
커밋
785890c9ae

+ 2 - 2
pages/mine/mine.js

@@ -65,7 +65,7 @@ Page({
 				needUserInfo: true,
 				needAdminInfo: true,
 				tmplIds: ['261lS0M-ugfPHTOFeTFS6IN8WQshNOCbrPEC51OONy8'],
-				ch: "要先注册为内部员工才可以使用功能哦,是否现在去注册?",
+				ch: "要先注册为内部员工才可以使用功能哦,是否现在去注册?",
 				en: "Please do certification first,regist now?",
 				jumpLink: '/pages/regular_register/regular_register',
 				jumpLinkTmplIds:['v_ue7JEmz5AYeRz690ymJO1ImTOiM96FyeHPYny7ihw', 'sYVZwmwu3gGNF4Ywjo0qgx-Gu7MEj59EDJvmOaQPVA0','sYVZwmwu3gGNF4Ywjo0qgx-Gu7MEj59EDJvmOaQPVA0']
@@ -74,7 +74,7 @@ Page({
 				url: '/pages/regular_visit_records/regular_visit_records',
 				needUserInfo: true,
 				needAdminInfo: true,
-				ch: "要先注册为内部员工才可以使用功能哦,是否现在去注册?",
+				ch: "要先注册为内部员工才可以使用功能哦,是否现在去注册?",
 				en: "Please do certification first,regist now?",
 				jumpLink: '/pages/regular_register/regular_register',
 				jumpLinkTmplIds:['v_ue7JEmz5AYeRz690ymJO1ImTOiM96FyeHPYny7ihw', 'sYVZwmwu3gGNF4Ywjo0qgx-Gu7MEj59EDJvmOaQPVA0','sYVZwmwu3gGNF4Ywjo0qgx-Gu7MEj59EDJvmOaQPVA0']

+ 1 - 5
pages/regular_invite/regular_invite.js

@@ -159,11 +159,7 @@ Page({
 						title: '提示',
 						content: res.msg,
 						showCancel: false,
-						success() {
-							wx.navigateBack({
-								delta: 1,
-							})
-						}
+						success() {}
 					})
 					reject();
 					return;

+ 1 - 0
pages/regular_visit_details/regular_visit_details.js

@@ -313,6 +313,7 @@ Page({
 	 * 生命周期函数--监听页面加载
 	 */
 	onLoad: function (options) {
+		console.log(options);
 		this.doCheckInfo(options);
 	},
 	/**

+ 2 - 2
pages/resitor_scence/resitor_scence.js

@@ -142,7 +142,7 @@ Page({
 				needUserInfo: true,
 				needAdminInfo: true,
 				tmplIds: ['261lS0M-ugfPHTOFeTFS6IN8WQshNOCbrPEC51OONy8'],
-				ch: "要先注册为内部员工才可以使用功能哦,是否现在去注册?",
+				ch: "要先注册为内部员工才可以使用功能哦,是否现在去注册?",
 				en: "Please do certification first,regist now?",
 				jumpLink: '/pages/regular_register/regular_register',
 				jumpLinkTmplIds:['v_ue7JEmz5AYeRz690ymJO1ImTOiM96FyeHPYny7ihw', 'sYVZwmwu3gGNF4Ywjo0qgx-Gu7MEj59EDJvmOaQPVA0','sYVZwmwu3gGNF4Ywjo0qg3ED_h5wsEZW2j7AyU1zhWA']
@@ -151,7 +151,7 @@ Page({
 				url: '/pages/regular_visit_records/regular_visit_records',
 				needUserInfo: true,
 				needAdminInfo: true,
-				ch: "要先注册为内部员工才可以使用功能哦,是否现在去注册?",
+				ch: "要先注册为内部员工才可以使用功能哦,是否现在去注册?",
 				en: "Please do certification first,regist now?",
 				jumpLink: '/pages/regular_register/regular_register',
 				jumpLinkTmplIds:['v_ue7JEmz5AYeRz690ymJO1ImTOiM96FyeHPYny7ihw', 'sYVZwmwu3gGNF4Ywjo0qgx-Gu7MEj59EDJvmOaQPVA0','sYVZwmwu3gGNF4Ywjo0qg3ED_h5wsEZW2j7AyU1zhWA']

+ 11 - 3
pages/visitor_make/visitor_make.js

@@ -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) {