diff --git a/src/platforms/app-plus/service/api/device/open-app-authorize-setting.js b/src/platforms/app-plus/service/api/device/open-app-authorize-setting.js index 2734a57d234784360ccaabecd0580a64b7eaff5e..da6856fedcadf63cc616a62db310971af3ed9a05 100644 --- a/src/platforms/app-plus/service/api/device/open-app-authorize-setting.js +++ b/src/platforms/app-plus/service/api/device/open-app-authorize-setting.js @@ -2,7 +2,7 @@ import { invoke } from '../../bridge' -export function openAppAuthorizeSetting(options, callbackId) { +export function openAppAuthorizeSetting (options, callbackId) { const { openAppAuthorizeSetting } = weex.requireModule('plus') openAppAuthorizeSetting(ret => { if (ret.type === 'success') { diff --git a/src/platforms/app-plus/service/api/location/choose-location-weex.js b/src/platforms/app-plus/service/api/location/choose-location-weex.js index 4251773fc4efaccbede82c7c760d6f5ab10a6fe5..ce641f0ae4f87bb0f054c772245b4cfd39f6f615 100644 --- a/src/platforms/app-plus/service/api/location/choose-location-weex.js +++ b/src/platforms/app-plus/service/api/location/choose-location-weex.js @@ -6,6 +6,8 @@ import { showPage } from '../../../helpers/page.js' +import { getLocale } from 'uni-core/helpers/i18n' + function getStatusBarStyle () { let style = plus.navigator.getStatusBarStyle() if (style === 'UIStatusBarStyleBlackTranslucent' || style === 'UIStatusBarStyleBlackOpaque' || style === 'null') { @@ -23,7 +25,9 @@ export function chooseLocation (options, callbackId) { let result const page = showPage({ url: '__uniappchooselocation', - data: options, + data: Object.assign({}, options, { + locale: getLocale() + }), style: { animationType: options.animationType || 'slide-in-bottom', titleNView: false, 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 4a41516316212059345d11eb0cc324d0b644b726..c5ab5adca4a50bd37aeeff091c804b55e2321cf4 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 @@ -6,10 +6,14 @@ import { showPage } from '../../../helpers/page.js' +import { getLocale } from 'uni-core/helpers/i18n' + export function openLocation (data, callbackId) { showPage({ url: '__uniappopenlocation', - data, + data: Object.assign({}, data, { + locale: getLocale() + }), style: { titleNView: { type: 'transparent'