提交 da131df1 编写于 作者: Q qiang

fix: 修复app端uni.chooseLocation、uni.scanCode结果

上级 91326d6a
......@@ -118,13 +118,19 @@ export function showPage ({
animationType: 'pop-in',
animationDuration: 200,
uniNView: {
path: `/${url}.js?from=${getPageId()}&runtime=${runtime}&data=${encodeURIComponent(JSON.stringify(data))}`,
path: `${(typeof process === 'object' && process.env && process.env.VUE_APP_TEMPLATE_PATH) || ''}/${url}.js`,
defaultFontSize: plus_.screen.resolutionWidth / 20,
viewport: plus_.screen.resolutionWidth
}
}
style = Object.assign(defaultStyle, style)
const page = plus_.webview.create('', pageId, style)
const page = plus_.webview.create('', pageId, style, {
extras: {
from: getPageId(),
runtime: runtime,
data
}
})
page.addEventListener('close', onClose)
addEventListener(pageId, message => {
if (typeof onMessage === 'function') {
......@@ -136,4 +142,4 @@ export function showPage ({
})
page.show(style.animationType, style.animationDuration)
return new Page(page)
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册