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

新增坐标信息

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