提交 46f21d4e 编写于 作者: D DCloud_LXH

fix(app): chooseLocation、openLocation i18n

上级 8d01de47
......@@ -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') {
......
......@@ -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,
......
......@@ -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'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册