index.js 916 字节
Newer Older
fxy060608's avatar
fxy060608 已提交
1
import {
fxy060608's avatar
fxy060608 已提交
2 3
  uni
} from 'uni-core/service/uni'
fxy060608's avatar
fxy060608 已提交
4 5

import {
6 7
  invokeCallbackHandler,
  removeCallbackHandler
fxy060608's avatar
fxy060608 已提交
8
} from 'uni-helpers/api'
fxy060608's avatar
fxy060608 已提交
9 10

import {
fxy060608's avatar
fxy060608 已提交
11 12
  publishHandler
} from 'uni-platform/service/publish-handler'
fxy060608's avatar
fxy060608 已提交
13

14 15 16 17
import {
  wx
} from './wx'

fxy060608's avatar
fxy060608 已提交
18
import {
fxy060608's avatar
fxy060608 已提交
19 20
  definePage
} from '../page-factory'
fxy060608's avatar
fxy060608 已提交
21 22

import {
fxy060608's avatar
fxy060608 已提交
23 24 25
  getApp,
  registerApp
} from './framework/app'
fxy060608's avatar
fxy060608 已提交
26

fxy060608's avatar
init v3  
fxy060608 已提交
27
import {
fxy060608's avatar
fxy060608 已提交
28 29 30
  registerPage,
  getCurrentPages
} from './framework/page'
fxy060608's avatar
init v3  
fxy060608 已提交
31

fxy060608's avatar
fxy060608 已提交
32
import vuePlugin from './framework/plugins'
fxy060608's avatar
init v3  
fxy060608 已提交
33

34 35 36
// 挂靠在uni上,暂不做全局导出
uni.__$wx__ = wx

fxy060608's avatar
init v3  
fxy060608 已提交
37
UniServiceJSBridge.publishHandler = publishHandler
fxy060608's avatar
fxy060608 已提交
38
UniServiceJSBridge.invokeCallbackHandler = invokeCallbackHandler
39
UniServiceJSBridge.removeCallbackHandler = removeCallbackHandler
fxy060608's avatar
fxy060608 已提交
40 41

export default {
fxy060608's avatar
fxy060608 已提交
42 43
  __vuePlugin: vuePlugin,
  __definePage: definePage,
fxy060608's avatar
fxy060608 已提交
44 45 46 47 48
  __registerApp: registerApp,
  __registerPage: registerPage,
  uni,
  getApp,
  getCurrentPages
49
}