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

新增坐标信息

上级 504fe0de
...@@ -364,6 +364,9 @@ export default { ...@@ -364,6 +364,9 @@ export default {
console.log('geolocationgeolocation,', status, result); console.log('geolocationgeolocation,', status, result);
if (result.position) { if (result.position) {
const position = { ...result.position, addr: result.formattedAddress }; const position = { ...result.position, addr: result.formattedAddress };
this.position.latitude = result.latitude || '';
this.position.longitude = result.longitude || '';
console.log('geolocation---', this.position);
storejs.set('geolocation', position); storejs.set('geolocation', position);
} else { } else {
storejs.remove('geolocation'); storejs.remove('geolocation');
...@@ -476,6 +479,7 @@ export default { ...@@ -476,6 +479,7 @@ export default {
component_tag: '7802852#0#0#预约提交', component_tag: '7802852#0#0#预约提交',
web_data:{yunOrderNo: this.yunOrderNo}, web_data:{yunOrderNo: this.yunOrderNo},
}); });
this.$refs.dectionForm.validate().then(result => { this.$refs.dectionForm.validate().then(result => {
console.log('this.dectionForm', result); console.log('this.dectionForm', result);
const data = { const data = {
...@@ -486,7 +490,10 @@ export default { ...@@ -486,7 +490,10 @@ export default {
patientIdNo: this.dectionForm.beneficiaryIdNum, patientIdNo: this.dectionForm.beneficiaryIdNum,
patientMobile: this.dectionForm.beneficiaryPhone, patientMobile: this.dectionForm.beneficiaryPhone,
patientName: this.dectionForm.beneficiaryName, patientName: this.dectionForm.beneficiaryName,
yunOrderNo:this.yunOrderNo, yunOrderNo: this.yunOrderNo,
longitude: this.position.longitude || '',
latitude: this.position.latitude || '',
}; };
appointment(data).then(res => { appointment(data).then(res => {
if (res.code === '000000') { if (res.code === '000000') {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册