提交 d93b994b 编写于 作者: 张敬贤's avatar 张敬贤

add

上级 bf9f2916
......@@ -34,7 +34,6 @@
v-model="loading"
:finished="finished"
finished-text="没有更多了"
@load="onLoad"
>
<van-cell
v-for="(item,index) in list"
......
......@@ -326,7 +326,7 @@ export default {
// 根据坐标获取最近的机构id
getHospitalList(data) {
getHospitalList(data).then(res => {
console.log('getHospitalList', res);
console.log('getHospitalListposition', this.position);
const {provinceId, countyId, cityId, hospitalName, hospitalId} = res.data.data[0];
this.locationAreaCode = [provinceId, cityId, countyId];
this.dectionForm.hospitalName = hospitalName;
......
......@@ -92,7 +92,7 @@ export default {
geolocation.getCurrentPosition((status, result) => {
console.log('geolocation,', status, result);
if (geolocation.result) {
storejs.set('geolocation', geolocation.result);
storejs.set('geolocation', geolocation.result.position);
}
});
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册