|
@@ -5,18 +5,18 @@
|
|
|
<div>
|
|
|
<div>
|
|
|
<img
|
|
|
- v-if="!UserData && UserData.HeadImg"
|
|
|
+ v-if="!UserData && UserData.headimg"
|
|
|
src="../../../assets/images/default.png"
|
|
|
alt
|
|
|
/>
|
|
|
<img
|
|
|
- v-if="UserData && UserData.HeadImg"
|
|
|
- :src="UserData.HeadImg"
|
|
|
+ v-if="UserData && UserData.headimg"
|
|
|
+ :src="UserData.headimg"
|
|
|
alt
|
|
|
/>
|
|
|
</div>
|
|
|
<p>
|
|
|
- {{ UserData.NickName }}
|
|
|
+ {{ UserData.nickname }}
|
|
|
<!-- <span>用户</span> -->
|
|
|
</p>
|
|
|
</div>
|
|
@@ -101,10 +101,10 @@ export default {
|
|
|
// 当用户第一次进入时 GetPatientInfo 返回信息里经纬度为 null 调用改方法修改用户经纬度 确认用户位置且无法更改
|
|
|
UpdateAccount() {
|
|
|
var obj = {
|
|
|
- Longitude: this.Location.lng,
|
|
|
- Latitude: this.Location.lat,
|
|
|
- RegionCode: this.Location.adcode,
|
|
|
- Region: this.Location.province + this.Location.city
|
|
|
+ longitude: this.Location.lng,
|
|
|
+ latitude: this.Location.lat,
|
|
|
+ regionCode: this.Location.adcode,
|
|
|
+ region: this.Location.province + this.Location.city
|
|
|
};
|
|
|
this.$http.UpdateAccount(obj).then(res => {
|
|
|
console.log(res);
|
|
@@ -113,10 +113,10 @@ export default {
|
|
|
|
|
|
GetPatientInfo() {
|
|
|
this.$http.GetPatientInfo().then(res => {
|
|
|
- if (res.data.IsSuccess) {
|
|
|
- this.UserData = res.data.ResultObject;
|
|
|
+ if (res.data.success) {
|
|
|
+ this.UserData = res.data.result;
|
|
|
// 病人本地信息
|
|
|
- if (!this.UserData.Longitude && !this.UserData.Latitude) {
|
|
|
+ if (!this.UserData.longitude && !this.UserData.latitude) {
|
|
|
this.map.getLocation({
|
|
|
success: e => {
|
|
|
console.log(e);
|
|
@@ -130,7 +130,7 @@ export default {
|
|
|
}
|
|
|
sessionStorage.setItem("patientInfo", JSON.stringify(this.UserData));
|
|
|
} else {
|
|
|
- this.$toast(res.data.ResultMsg);
|
|
|
+ this.$toast(res.data.message);
|
|
|
}
|
|
|
});
|
|
|
}
|