Commit b3f06b978044e8cc7988d21b8d8a19962013b3b9
Merge branch 'master' of http://39.98.150.180/webapp/GreenwayWeb
Showing
1 changed file
with
6 additions
and
4 deletions
lvdao-miniapp/pages/business/businessDetail/businessDetail.vue
| @@ -65,9 +65,10 @@ export default { | @@ -65,9 +65,10 @@ export default { | ||
| 65 | this.tableData.previousEvents = this.tableData.previousEvents.split(','); | 65 | this.tableData.previousEvents = this.tableData.previousEvents.split(','); |
| 66 | } | 66 | } |
| 67 | console.log(this.tableData) | 67 | console.log(this.tableData) |
| 68 | -if (this.tableData.mapMarker) { | ||
| 69 | - this.latitude = parseFloat(this.tableData.mapMarker.split(',')[0]) | ||
| 70 | - this.longitude = parseFloat(this.tableData.mapMarker.split(',')[1]) | 68 | +if (this.tableData.cereBasicInformationVenue.mapMarker&& this.tableData.cereBasicInformationVenue.mapMarker!='') { |
| 69 | + | ||
| 70 | + this.latitude = parseFloat(this.tableData.cereBasicInformationVenue.mapMarker.split(',')[0]) | ||
| 71 | + this.longitude = parseFloat(this.tableData.cereBasicInformationVenue.mapMarker.split(',')[1]) | ||
| 71 | } | 72 | } |
| 72 | let obj ={ | 73 | let obj ={ |
| 73 | id:this.tableData.id, | 74 | id:this.tableData.id, |
| @@ -84,7 +85,8 @@ if (this.tableData.mapMarker) { | @@ -84,7 +85,8 @@ if (this.tableData.mapMarker) { | ||
| 84 | }) | 85 | }) |
| 85 | }, | 86 | }, |
| 86 | // 打开的点击事件,传经纬度和地点名 | 87 | // 打开的点击事件,传经纬度和地点名 |
| 87 | - gomapApp(latitude, longitude, ) { | 88 | + gomapApp(latitude, longitude ) { |
| 89 | + console.log(latitude, longitude); | ||
| 88 | let url = ""; | 90 | let url = ""; |
| 89 | uni.openLocation({ | 91 | uni.openLocation({ |
| 90 | latitude: latitude, | 92 | latitude: latitude, |