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 }