提交 c6c6f3bc 编写于 作者: Q qiang

fix: template

上级 e5c4832c
...@@ -2,6 +2,6 @@ import * as webview from './scan-code-webview' ...@@ -2,6 +2,6 @@ import * as webview from './scan-code-webview'
import * as weex from './scan-code-weex' import * as weex from './scan-code-weex'
export function scanCode (...array) { export function scanCode (...array) {
const api = __uniConfig.nvueCompiler === 'uni-app' ? weex : webview const api = __uniConfig.nvueCompiler !== 'weex' ? weex : webview
return api.scanCode(...array) return api.scanCode(...array)
} }
...@@ -2,6 +2,6 @@ import * as webview from './choose-location-webview' ...@@ -2,6 +2,6 @@ import * as webview from './choose-location-webview'
import * as weex from './choose-location-weex' import * as weex from './choose-location-weex'
export function chooseLocation (...array) { export function chooseLocation (...array) {
const api = __uniConfig.nvueCompiler === 'uni-app' ? weex : webview const api = __uniConfig.nvueCompiler !== 'weex' ? weex : webview
return api.chooseLocation(...array) return api.chooseLocation(...array)
} }
...@@ -2,6 +2,6 @@ import * as webview from './open-location-webview' ...@@ -2,6 +2,6 @@ import * as webview from './open-location-webview'
import * as weex from './open-location-weex' import * as weex from './open-location-weex'
export function openLocation (...array) { export function openLocation (...array) {
const api = __uniConfig.nvueCompiler === 'uni-app' ? weex : webview const api = __uniConfig.nvueCompiler !== 'weex' ? weex : webview
return api.openLocation(...array) return api.openLocation(...array)
} }
...@@ -84,7 +84,7 @@ export function showPage ({ ...@@ -84,7 +84,7 @@ export function showPage ({
animationType: 'pop-in', animationType: 'pop-in',
animationDuration: 200, animationDuration: 200,
uniNView: { uniNView: {
path: `${(typeof process === 'object' && process.env && process.env.VUE_APP_TEMPLATE_PATH) || '/template'}/${url}.js`, path: `${(typeof process === 'object' && process.env && process.env.VUE_APP_TEMPLATE_PATH) || ''}/${url}.js`,
defaultFontSize: plus_.screen.resolutionWidth / 20, defaultFontSize: plus_.screen.resolutionWidth / 20,
viewport: plus_.screen.resolutionWidth viewport: plus_.screen.resolutionWidth
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册