17755135699 9 ماه پیش
والد
کامیت
9784a3751e
2فایلهای تغییر یافته به همراه14 افزوده شده و 11 حذف شده
  1. 4 4
      http/index.js
  2. 10 7
      pages/house/createOrder.vue

+ 4 - 4
http/index.js

@@ -61,10 +61,10 @@ const tmList = [
 		prop: 'touristPhone',
 		type: 2
 	},
-	{
-		prop: 'landlinePhone',
-		type: 2
-	},
+	// {
+	// 	prop: 'landlinePhone',
+	// 	type: 2
+	// },
 	{
 		prop: 'linkName',
 		type: 1

+ 10 - 7
pages/house/createOrder.vue

@@ -491,13 +491,14 @@
 					newDataForm.detailFormList[0].checkInPersonList;
 				//入住人里面身份证
 				//let len = this.tempCheckInPersonList;
+				console.log(newDataForm.detailFormList[0].checkInPersonList)
 				checkInPersonList.forEach((element, i) => {
 					//姓名 checkInName,idCard,checkInPhone
 					//新增直接加密,编辑判断是否修改
 					if (
-						(this.tempCheckInPersonList.length == 0) || (!this.tempCheckInPersonList[i]) ||
+						(this.tempCheckInPersonList.length == 0) || (!this.tempCheckInPersonList[i]) ||(
 						element.checkInName &&
-						element.checkInName != this.tempCheckInPersonList[i].checkInName
+						element.checkInName != this.tempCheckInPersonList[i].checkInName)
 					) {
 						element.checkInName = encrypt(element.checkInName);
 					} else {
@@ -505,9 +506,9 @@
 					}
 					//身份证
 					if (
-						(this.tempCheckInPersonList.length == 0) || (!this.tempCheckInPersonList[i]) ||
+						(this.tempCheckInPersonList.length == 0) || (!this.tempCheckInPersonList[i]) ||(
 						element.idCard &&
-						element.idCard != this.tempCheckInPersonList[i].idCard
+						element.idCard != this.tempCheckInPersonList[i].idCard)
 					) {
 						element.idCard = encrypt(element.idCard);
 					} else {
@@ -516,8 +517,8 @@
 					//手机号
 					if (
 						(this.tempCheckInPersonList.length == 0) || (!this.tempCheckInPersonList[i]) ||
-						element.checkInPhone &&
-						element.checkInPhone != this.tempCheckInPersonList[i].checkInPhone
+						(element.checkInPhone &&
+						element.checkInPhone != this.tempCheckInPersonList[i].checkInPhone)
 					) {
 						element.checkInPhone = encrypt(
 							element.checkInPhone
@@ -527,11 +528,13 @@
 					}
 				});
 				newDataForm.detailFormList[0].checkInPersonList = checkInPersonList;
+				console.log(newDataForm)
+				//return
 				this.$api.post(url, newDataForm).then(res => {
 					if (res.data.code == 0) {
 						this.$showToast('操作成功');
 						setTimeout(() => {
-							uni.navigateTo({
+							uni.redirectTo({
 								url: '/pagesMy/orderList/orderList'
 							})
 						}, 1500)