Browse Source

修改bug

zhnghongrui 1 year ago
parent
commit
ad3f29163b
2 changed files with 5 additions and 5 deletions
  1. 2 2
      config.js
  2. 3 3
      pages/oldrenovation/indoor/indoor.vue

+ 2 - 2
config.js

@@ -1,10 +1,10 @@
 // 应用全局配置
 module.exports = {
-	baseUrl: 'https://www.xcx.cczdsz.cn/prod-api',
+	//baseUrl: 'https://www.xcx.cczdsz.cn/prod-api',
 	// baseUrl: 'http://192.168.4.6:8080',
 	// baseUrl: 'http://192.168.4.20:8080',
 	// baseUrl: 'http://192.168.4.11:8080',
-	// baseUrl: 'http://192.168.4.23:8080',
+	 baseUrl: 'http://192.168.4.23:8080',
 	// baseUrl: 'http://192.168.4.14:8089',
 	baseIconUrl: 'https://www.xcx.cczdsz.cn/app/images/',
 	// 应用信息

+ 3 - 3
pages/oldrenovation/indoor/indoor.vue

@@ -1079,7 +1079,7 @@
 						return
 					}
 					getRoomDetailsIDCard(this.idCard).then(res => {
-						if (res.code == '200') {
+						if (res.code == '200' && res.data != null) {
 							if (!this.isEmpty(res.data.newPhone)) {
 								this.currentResidentsPhoe = [];
 								let str = res.data.newPhone;
@@ -1095,8 +1095,8 @@
 							this.houseHeadIDcardNumber = res.data.idCard;
 							this.houseHeadPhone = res.data.phone;
 							this.XZQValue = {
-								id: res.data.district,
-								name: res.data.districtName
+								dictValue: res.data.district,
+								dictLabel: res.data.districtName
 							};
 
 							this.XQValue = {