protocols.js 1.0 KB
Newer Older
1
// import navigateTo from 'uni-helpers/navigate-to'
2
import redirectTo from '../../helpers/redirect-to'
3
import previewImage from '../../helpers/normalize-preview-image'
4
import getSystemInfo from '../../helpers/system-info'
5
import showActionSheet from '../../helpers/show-action-sheet'
6 7 8
import getAppBaseInfo from '../../helpers/get-app-base-info'
import getDeviceInfo from '../../helpers/get-device-info'
import getWindowInfo from '../../helpers/get-window-info'
9
import getAppAuthorizeSetting from '../../helpers/get-app-authorize-setting'
10

fxy060608's avatar
fxy060608 已提交
11
export const protocols = {
12
  redirectTo,
13
  // navigateTo,  // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP
14
  previewImage,
15
  getSystemInfo,
16
  getSystemInfoSync: getSystemInfo,
17 18 19
  showActionSheet,
  getAppBaseInfo,
  getDeviceInfo,
20 21
  getWindowInfo,
  getAppAuthorizeSetting
fxy060608's avatar
fxy060608 已提交
22
}
23
export const todos = [
fxy060608's avatar
fxy060608 已提交
24 25 26
  'vibrate',
  'preloadPage',
  'unPreloadPage',
fxy060608's avatar
fxy060608 已提交
27
  'loadSubPackage'
W
wangyaqi 已提交
28
]
29
export const canIUses = []