提交 5c1d23b2 编写于 作者: fxy060608's avatar fxy060608

refactor(app-plus): requireNativePlugin

上级 c40b9e42
......@@ -6831,6 +6831,10 @@ var serviceContext = (function () {
}
}
function requireNativePlugin$1 (name) {
return weex.requireModule(name)
}
// 0:图文,1:纯文字,2:纯图片,3:音乐,4:视频,5:小程序
const TYPES = {
'0': {
......@@ -7757,6 +7761,7 @@ var serviceContext = (function () {
unsubscribePush: unsubscribePush,
onPush: onPush,
offPush: offPush,
requireNativePlugin: requireNativePlugin$1,
shareAppMessageDirectly: shareAppMessageDirectly,
share: share,
navigateBack: navigateBack$1,
......
......@@ -438,8 +438,9 @@ module.exports = function (pagesJson, userManifestJson) {
return [manifest, parseConfig(appJson)]
}
if (process.env.UNI_USING_V3) {
appJson.entryPagePath = appJson.pages[0]
appJson.entryPagePath = appJson.pages[0]
// timeout
normalizeNetworkTimeout(appJson)
appJson.page = Object.create(null)
const addPage = function (pagePath, windowOptions) {
......
......@@ -3,5 +3,3 @@ export * from './context/map'
export * from './context/video'
export * from './ui/create-selector-query'
export * from './plugin/require-native-plugin'
......@@ -39,7 +39,8 @@ export * from './network/upload-file'
export * from './plugin/get-provider'
export * from './plugin/oauth'
export * from './plugin/payment'
export * from './plugin/push'
export * from './plugin/push'
export * from './plugin/require-native-plugin'
export * from './plugin/share'
export * from './route/navigate-back'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册