diff --git a/src/platforms/app-plus/service/api/location/open-location-weex.js b/src/platforms/app-plus/service/api/location/open-location-weex.js index 4ee50384247995d3aa9d86fe8fff587ba52ffb61..1132fc75a7de34006e245185387f95d3204c1887 100644 --- a/src/platforms/app-plus/service/api/location/open-location-weex.js +++ b/src/platforms/app-plus/service/api/location/open-location-weex.js @@ -2,14 +2,21 @@ import { showPage } from '../page.js' -export function openLocation (data) { +export function openLocation (data, callbackId) { showPage({ url: '__uniappopenlocation', data, style: { titleNView: { type: 'transparent' - } + }, + popGesture: 'close', + backButtonAutoControl: 'close' + }, + onClose() { + invoke(callbackId, { + errMsg: 'openLocation:fail cancel' + }) } }) return {