From 21fba24988a6dab5f5dbd97fee27fa2c17d8893c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Fri, 26 May 2023 11:13:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/information/information.vue | 4 ++-- pages/modify/modify.vue | 10 ++++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/pages/information/information.vue b/pages/information/information.vue index e3b5c96..4e09ce3 100644 --- a/pages/information/information.vue +++ b/pages/information/information.vue @@ -155,8 +155,8 @@ phone: "", address: "", areaCode: "", - homeLongitude: "", - homeLatitude: "", + homeLongitude: null, + homeLatitude: null, nurseTypeIdList: [], diseaseInfoList: [], patientId: '', diff --git a/pages/modify/modify.vue b/pages/modify/modify.vue index c0ebb21..ffe43b6 100644 --- a/pages/modify/modify.vue +++ b/pages/modify/modify.vue @@ -160,8 +160,8 @@ phone: "", address: "", areaCode: "", - homeLongitude: "", - homeLatitude: "", + homeLongitude: null, + homeLatitude: null, nurseTypeIdList: [], diseaseInfoList: [], headPictureUrl: '', @@ -182,8 +182,10 @@ appPersonal(value).then(Response => { if (Response.code == 200) { that.appPersonallist = Response.data - that.appPersonallist.homeLatitude = Number(that.appPersonallist.homeLatitude) - that.appPersonallist.homeLongitude = Number(that.appPersonallist.homeLongitude) + that.appPersonallist.homeLatitude ? that.appPersonallist.homeLatitude = Number(that + .appPersonallist.homeLatitude) : that.appPersonallist.homeLatitude = null + that.appPersonallist.homeLongitude ? that.appPersonallist.homeLongitude = Number(that + .appPersonallist.homeLongitude) : that.appPersonallist.homeLongitude = null if (that.appPersonallist.headPictureUrl) { that.img = baseurl + that.appPersonallist.headPictureUrl }