提交 10b1b4a5 编写于 作者: D DCloud_LXH

feat(app): getAppAuthorizeSetting、getSystemSetting

上级 08553523
...@@ -133,7 +133,9 @@ const device = [ ...@@ -133,7 +133,9 @@ const device = [
'checkIsSoterEnrolledInDevice', 'checkIsSoterEnrolledInDevice',
'startSoterAuthentication', 'startSoterAuthentication',
'onThemeChange', 'onThemeChange',
'onUIStyleChange' 'onUIStyleChange',
'getSystemSetting',
'getAppAuthorizeSetting'
] ]
const keyboard = [ const keyboard = [
......
export function getAppAuthorizeSetting() {
const { getAppAuthorizeSetting } = weex.requireModule('plus')
let appAuthorizeSetting = getAppAuthorizeSetting()
try {
if (typeof appAuthorizeSetting === 'string')
appAuthorizeSetting = JSON.parse(appAuthorizeSetting)
} catch (error) { }
return appAuthorizeSetting
}
\ No newline at end of file
export function getSystemSetting() {
const { getSystemSetting } = weex.requireModule('plus')
let systemSetting = getSystemSetting()
try {
if (typeof systemSetting === 'string')
systemSetting = JSON.parse(systemSetting)
} catch (error) { }
return systemSetting
}
\ No newline at end of file
...@@ -19,6 +19,8 @@ export * from './device/soter-authentication' ...@@ -19,6 +19,8 @@ export * from './device/soter-authentication'
export * from './device/system' export * from './device/system'
export * from './device/vibrate' export * from './device/vibrate'
export * from './device/get-window-info' export * from './device/get-window-info'
export * from './device/get-system-setting'
export * from './device/get-app-authorize-setting'
export * from './file/file' export * from './file/file'
export * from './file/open-document' export * from './file/open-document'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册