diff --git a/pages/index/index.vue b/pages/index/index.vue index 49ffbf1..3d93e58 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -159,8 +159,9 @@ // #ifdef MP-WEIXIN var lngLat = hospital.hospital_pos.toString().split(',') - var lng = Number(lngLat[0]) - , lat = Number(lngLat[1]) + var lng = Number(lngLat[1]) + , lat = Number(lngLat[0]) + if (typeof wx !== 'undefined' && wx.openLocation) { wx.openLocation({