From 0fec7c310fe1c1fc037a7617887fb4839177182e Mon Sep 17 00:00:00 2001 From: handongxun Date: Fri, 27 Mar 2020 18:03:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20openLocation=20=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E5=AF=BC=E8=88=AA=E6=A0=8F=E5=90=8E=E9=80=802=E6=AC=A1?= =?UTF-8?q?=E7=9A=84Bug=EF=BC=8C=E6=94=AF=E6=8C=81ios=E4=BE=A7=E6=BB=91?= =?UTF-8?q?=E5=90=8E=E9=80=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/api/location/open-location-weex.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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 4ee5038424..1132fc75a7 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 { -- GitLab