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

Merge branch 'hotfix0605' into 'release'

Hotfix0605

See merge request !198
......@@ -361,9 +361,11 @@ export default {
buttonPosition: 'RB'
});
geolocation.getCurrentPosition((status, result) => {
console.log('geolocationgeolocation,', status, result);
console.log('geolocationgeolocation,', status, result.position);
if (result.position) {
const position = { ...result.position, addr: result.formattedAddress };
that.position.latitude = result.position.lat || '';
that.position.longitude = result.position.lng || '';
storejs.set('geolocation', position);
} else {
storejs.remove('geolocation');
......@@ -476,6 +478,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 +489,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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册