Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
tomleePHP
uni-app
提交
c71e3852
U
uni-app
项目概览
tomleePHP
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
c71e3852
编写于
11月 06, 2019
作者:
fxy060608
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor(v3): template
上级
cfa557f3
变更
18
展开全部
隐藏空白更改
内联
并排
Showing
18 changed file
with
16 addition
and
26304 deletion
+16
-26304
build/build.js
build/build.js
+3
-5
packages/uni-app-plus/dist/view.css
packages/uni-app-plus/dist/view.css
+1
-1435
packages/uni-app-plus/dist/view.umd.js
packages/uni-app-plus/dist/view.umd.js
+0
-23737
packages/uni-app-plus/dist/view.umd.min.js
packages/uni-app-plus/dist/view.umd.min.js
+2
-2
packages/uni-cli-shared/lib/platform.js
packages/uni-cli-shared/lib/platform.js
+5
-2
packages/uni-cli-shared/template/__uniappchooselocation.html
packages/uni-cli-shared/template/__uniappchooselocation.html
+0
-678
packages/uni-cli-shared/template/__uniappmarker@3x.png
packages/uni-cli-shared/template/__uniappmarker@3x.png
+0
-0
packages/uni-cli-shared/template/__uniappopenlocation.html
packages/uni-cli-shared/template/__uniappopenlocation.html
+0
-284
packages/uni-cli-shared/template/__uniapppicker.html
packages/uni-cli-shared/template/__uniapppicker.html
+0
-10
packages/uni-cli-shared/template/__uniappscan.html
packages/uni-cli-shared/template/__uniappscan.html
+0
-146
packages/uni-cli-shared/template/common/__uniappchooselocation.js
.../uni-cli-shared/template/common/__uniappchooselocation.js
+1
-0
packages/uni-cli-shared/template/common/__uniappopenlocation.js
...es/uni-cli-shared/template/common/__uniappopenlocation.js
+1
-0
packages/uni-cli-shared/template/common/__uniapppicker.js
packages/uni-cli-shared/template/common/__uniapppicker.js
+0
-0
packages/uni-cli-shared/template/common/__uniappscancode.js
packages/uni-cli-shared/template/common/__uniappscancode.js
+1
-0
packages/uni-cli-shared/template/v3/__uniappes6.js
packages/uni-cli-shared/template/v3/__uniappes6.js
+0
-0
packages/uni-cli-shared/template/v3/__uniappsuccess.png
packages/uni-cli-shared/template/v3/__uniappsuccess.png
+0
-0
packages/uni-cli-shared/template/v3/__uniappview.html
packages/uni-cli-shared/template/v3/__uniappview.html
+1
-1
packages/vue-cli-plugin-hbuilderx/build/webpack.nvue.conf.js
packages/vue-cli-plugin-hbuilderx/build/webpack.nvue.conf.js
+1
-4
未找到文件。
build/build.js
浏览文件 @
c71e3852
...
@@ -27,11 +27,9 @@ if (process.env.UNI_PLATFORM === 'h5' && process.env.UNI_UI === 'true') {
...
@@ -27,11 +27,9 @@ if (process.env.UNI_PLATFORM === 'h5' && process.env.UNI_UI === 'true') {
entry
=
'
./lib/
'
+
process
.
env
.
UNI_PLATFORM
+
'
/ui.js
'
entry
=
'
./lib/
'
+
process
.
env
.
UNI_PLATFORM
+
'
/ui.js
'
}
}
let
formats
=
process
.
env
.
UNI_WATCH
===
'
true
'
?
'
umd
'
:
'
umd-min
'
if
(
process
.
env
.
UNI_PLATFORM
===
'
app-plus
'
&&
process
.
env
.
UNI_VIEW
===
'
true
'
)
{
if
(
process
.
env
.
UNI_PLATFORM
===
'
app-plus
'
&&
process
.
env
.
UNI_VIEW
===
'
true
'
)
{
name
=
'
uni
'
name
=
'
uni
'
filename
=
'
view
'
filename
=
'
view
'
formats
=
'
umd
'
entry
=
'
./lib/
'
+
process
.
env
.
UNI_PLATFORM
+
'
/view.js
'
entry
=
'
./lib/
'
+
process
.
env
.
UNI_PLATFORM
+
'
/view.js
'
}
}
service
.
run
(
'
build
'
,
{
service
.
run
(
'
build
'
,
{
...
@@ -39,11 +37,11 @@ service.run('build', {
...
@@ -39,11 +37,11 @@ service.run('build', {
filename
,
filename
,
watch
:
process
.
env
.
UNI_WATCH
===
'
true
'
,
watch
:
process
.
env
.
UNI_WATCH
===
'
true
'
,
target
:
'
lib
'
,
target
:
'
lib
'
,
formats
,
formats
:
process
.
env
.
UNI_WATCH
===
'
true
'
?
'
umd
'
:
'
umd-min
'
,
entry
,
entry
,
clean
:
!
process
.
env
.
UNI_VIEW
,
clean
:
!
process
.
env
.
UNI_VIEW
,
mode
:
process
.
env
.
NODE_ENV
mode
:
process
.
env
.
NODE_ENV
}).
then
(
function
()
{
}).
then
(
function
()
{
if
(
if
(
process
.
env
.
UNI_WATCH
!==
'
true
'
&&
process
.
env
.
UNI_WATCH
!==
'
true
'
&&
process
.
env
.
UNI_UI
!==
'
true
'
&&
process
.
env
.
UNI_UI
!==
'
true
'
&&
...
@@ -64,7 +62,7 @@ if (process.env.UNI_PLATFORM === 'h5' && process.env.UNI_WATCH === 'false') {
...
@@ -64,7 +62,7 @@ if (process.env.UNI_PLATFORM === 'h5' && process.env.UNI_WATCH === 'false') {
const
packageJsonPath
=
path
.
join
(
packagePath
,
'
package.json
'
)
const
packageJsonPath
=
path
.
join
(
packagePath
,
'
package.json
'
)
del
(
path
.
join
(
packagePath
,
'
{lib,src}
'
))
del
(
path
.
join
(
packagePath
,
'
{lib,src}
'
))
.
then
(()
=>
{
.
then
(()
=>
{
copy
([
path
.
join
(
__dirname
,
'
../{lib,src}/**/*
'
)],
packagePath
,
function
(
err
,
file
)
{
copy
([
path
.
join
(
__dirname
,
'
../{lib,src}/**/*
'
)],
packagePath
,
function
(
err
,
file
)
{
if
(
err
)
{
if
(
err
)
{
throw
err
throw
err
}
}
...
...
packages/uni-app-plus/dist/view.css
浏览文件 @
c71e3852
此差异已折叠。
点击以展开。
packages/uni-app-plus/dist/view.umd.js
已删除
100644 → 0
浏览文件 @
cfa557f3
此差异已折叠。
点击以展开。
packages/uni-app-plus/dist/view.umd.min.js
浏览文件 @
c71e3852
此差异已折叠。
点击以展开。
packages/uni-cli-shared/lib/platform.js
浏览文件 @
c71e3852
...
@@ -151,9 +151,12 @@ const PLATFORMS = {
...
@@ -151,9 +151,12 @@ const PLATFORMS = {
if
(
process
.
env
.
UNI_USING_V3
)
{
if
(
process
.
env
.
UNI_USING_V3
)
{
view
=
getCopyOptions
([
view
=
getCopyOptions
([
require
.
resolve
(
'
@dcloudio/uni-app-plus/dist/view.css
'
),
require
.
resolve
(
'
@dcloudio/uni-app-plus/dist/view.css
'
),
require
.
resolve
(
'
@dcloudio/uni-app-plus/dist/view.umd.js
'
)
require
.
resolve
(
'
@dcloudio/uni-app-plus/dist/view.umd.
min.
js
'
)
])
])
template
=
getCopyOptions
([
path
.
resolve
(
__dirname
,
'
../template
'
)])
template
=
[
...
getCopyOptions
([
path
.
resolve
(
__dirname
,
'
../template/common
'
)]),
...
getCopyOptions
([
path
.
resolve
(
__dirname
,
'
../template/v3
'
)])
]
}
}
return
[
return
[
...
view
,
...
view
,
...
...
packages/uni-cli-shared/template/__uniappchooselocation.html
已删除
100644 → 0
浏览文件 @
cfa557f3
此差异已折叠。
点击以展开。
packages/uni-cli-shared/template/__uniappmarker@3x.png
已删除
100644 → 0
浏览文件 @
cfa557f3
1.9 KB
packages/uni-cli-shared/template/__uniappopenlocation.html
已删除
100644 → 0
浏览文件 @
cfa557f3
<!DOCTYPE html>
<html
lang=
"zh-CN"
>
<head>
<meta
charset=
"UTF-8"
/>
<script>
var
coverSupport
=
'
CSS
'
in
window
&&
typeof
CSS
.
supports
===
'
function
'
&&
(
CSS
.
supports
(
'
top: env(a)
'
)
||
CSS
.
supports
(
'
top: constant(a)
'
))
document
.
write
(
'
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0
'
+
(
coverSupport
?
'
, viewport-fit=cover
'
:
''
)
+
'
" />
'
)
</script>
<title></title>
<style>
html
,
body
,
.container
{
margin
:
0
;
padding
:
0
;
position
:
absolute
;
left
:
0
;
top
:
0
;
right
:
0
;
bottom
:
0
;
background
:
#ffffff
;
}
#map
{
position
:
absolute
;
left
:
0
;
top
:
0
;
right
:
0
;
bottom
:
80px
;
bottom
:
calc
(
80px
+
constant
(
safe-area-inset-bottom
));
bottom
:
calc
(
80px
+
env
(
safe-area-inset-bottom
));
}
#poi
{
position
:
absolute
;
left
:
0
;
right
:
0
;
bottom
:
0
;
bottom
:
constant
(
safe-area-inset-bottom
);
bottom
:
env
(
safe-area-inset-bottom
);
height
:
80px
;
background
:
#FFFFFF
;
}
.poi-info
{
width
:
100%
;
padding
:
23px
16px
23px
18px
;
box-sizing
:
border-box
;
background
:
#FFFFFF
;
}
.poi-name
{
font-size
:
17px
;
line-height
:
17px
;
color
:
#111111
;
display
:
block
;
margin-right
:
70px
;
word-wrap
:
break-word
;
}
.poi-addr
{
font-size
:
13px
;
line-height
:
13px
;
color
:
#666666
;
display
:
block
;
margin-top
:
4px
;
margin-right
:
70px
;
word-wrap
:
break-word
;
}
.poi-nav
{
display
:
block
;
position
:
absolute
;
top
:
10px
;
right
:
16px
;
width
:
60px
;
height
:
60px
;
border-radius
:
60px
;
overflow
:
hidden
;
}
.poi-nav
i
,
.poi-nav
span
{
position
:
absolute
;
top
:
0
;
width
:
100%
;
height
:
100%
;
display
:
inline-block
;
border-radius
:
60px
;
}
.poi-nav
i
{
background
:
url(data:image/png;base64,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)
no-repeat
;
background-size
:
100%
;
}
</style>
</head>
<body>
<div
id=
"container"
class=
"container"
>
<div
id=
"map"
></div>
<div
id=
"poi"
>
<div
class=
"poi-info"
>
<span
class=
"poi-name"
></span>
<span
class=
"poi-addr"
></span>
<div
class=
"poi-nav"
>
<i></i>
<span></span>
</div>
</div>
</div>
</div>
<script>
var
loc
;
var
serviceWebview
;
var
back
=
function
()
{
var
webview
=
plus
.
webview
.
currentWebview
()
if
(
webview
.
__uniapp_statusbar_style
===
'
light
'
)
{
plus
.
navigator
.
setStatusBarStyle
(
'
light
'
)
}
webview
.
close
(
'
auto
'
);
};
var
isIos
=
!!
navigator
.
userAgent
.
match
(
/iPhone|iPad|iPod/i
);
document
.
addEventListener
(
'
plusready
'
,
function
()
{
serviceWebview
=
plus
.
webview
.
getWebviewById
(
'
__W2A_CONTEXT_
'
)
||
plus
.
webview
.
getLaunchWebview
();
plus
.
key
.
addEventListener
(
'
backbutton
'
,
back
);
})
/**
* 调用系统第三方程序进行导航
*/
function
openSysMap
(
lat
,
lng
,
title
)
{
/**
* 网页版地图源
*/
var
mapsSourceWeb
=
[
{
title
:
'
腾讯地图网页版
'
,
getUrl
:
function
()
{
var
url
url
=
'
https://apis.map.qq.com/uri/v1/routeplan?type=drive
'
+
'
&to=
'
+
encodeURIComponent
(
title
)
+
'
&tocoord=
'
+
encodeURIComponent
(
lat
+
'
,
'
+
lng
)
+
'
&referer=APP
'
return
url
}
}
]
/**
* APP版地图源
*/
var
mapsSource
=
[
{
title
:
'
高德地图
'
,
pname
:
'
com.autonavi.minimap
'
,
action
:
!
isIos
?
'
amapuri://
'
:
'
iosamap://
'
,
getUrl
:
function
()
{
var
url
if
(
!
isIos
)
{
url
=
'
amapuri://route/plan/
'
}
else
{
url
=
'
iosamap://path
'
}
url
+=
'
?sourceApplication=APP&dname=
'
+
encodeURIComponent
(
title
)
+
'
&dlat=
'
+
lat
+
'
&dlon=
'
+
lng
+
'
&dev=0
'
return
url
}
},
{
title
:
'
百度地图
'
,
pname
:
'
com.baidu.BaiduMap
'
,
action
:
'
baidumap://
'
,
getUrl
:
function
()
{
var
url
=
'
baidumap://map/direction?destination=
'
+
encodeURIComponent
(
'
latlng:
'
+
lat
+
'
,
'
+
lng
+
'
|name:
'
+
title
)
+
'
&mode=driving&src=APP&coord_type=gcj02
'
return
url
}
},
{
title
:
'
腾讯地图
'
,
pname
:
'
com.tencent.map
'
,
action
:
'
qqmap://
'
,
getUrl
:
function
()
{
var
url
url
=
'
qqmap://map/routeplan?type=drive
'
+
(
isIos
?
(
'
&from=
'
+
encodeURIComponent
(
'
我的位置
'
))
:
''
)
+
'
&to=
'
+
encodeURIComponent
(
title
)
+
'
&tocoord=
'
+
encodeURIComponent
(
lat
+
'
,
'
+
lng
)
+
'
&referer=APP
'
return
url
}
}
]
var
maps
=
[]
mapsSource
.
forEach
(
function
(
mapsSource
)
{
var
installed
=
plus
.
runtime
.
isApplicationExist
({
pname
:
mapsSource
.
pname
,
action
:
mapsSource
.
action
,
})
if
(
installed
)
{
maps
.
push
(
mapsSource
)
}
})
if
(
isIos
)
{
maps
.
unshift
({
title
:
'
Apple 地图
'
,
getUrl
:
function
()
{
var
url
url
=
'
https://maps.apple.com/?daddr=
'
+
encodeURIComponent
(
title
)
+
'
&sll=
'
+
encodeURIComponent
(
lat
+
'
,
'
+
lng
)
return
url
}
})
}
if
(
maps
.
length
===
0
)
{
maps
=
maps
.
concat
(
mapsSourceWeb
)
}
plus
.
nativeUI
.
actionSheet
({
title
:
'
导航方式
'
,
cancel
:
'
取消
'
,
buttons
:
maps
,
},
function
(
res
)
{
var
index
=
res
.
index
var
map
if
(
index
>
0
)
{
map
=
maps
[
index
-
1
]
plus
.
runtime
.
openURL
(
map
.
getUrl
(),
function
()
{
},
map
.
pname
)
}
})
}
var
ZOOM
=
13
window
.
__openLocation__
=
function
(
params
)
{
var
mapElem
=
document
.
getElementById
(
'
map
'
);
var
poiNameElem
=
document
.
querySelector
(
'
.poi-name
'
);
var
poiAddrElem
=
document
.
querySelector
(
'
.poi-addr
'
);
var
poiNavElem
=
document
.
querySelector
(
'
.poi-nav
'
);
var
latitude
=
params
.
latitude
;
var
longitude
=
params
.
longitude
;
var
scale
=
params
.
scale
;
var
name
=
params
.
name
;
var
address
=
params
.
address
;
var
point
=
new
plus
.
maps
.
Point
(
longitude
,
latitude
);
var
map
=
plus
.
maps
.
create
(
'
map
'
,
{
center
:
point
,
zoom
:
scale
||
ZOOM
,
top
:
0
,
left
:
0
,
width
:
mapElem
.
offsetWidth
,
height
:
mapElem
.
offsetHeight
});
var
marker
=
new
plus
.
maps
.
Marker
(
point
);
marker
.
setIcon
(
'
__uniappmarker@3x.png
'
);
if
(
name
)
{
poiNameElem
.
innerText
=
name
;
// marker.setLabel(name);
}
if
(
address
)
{
poiAddrElem
.
innerText
=
address
;
// var bubble = new plus.maps.Bubble(address);
// marker.setBubble(bubble);
}
map
.
addOverlay
(
marker
);
plus
.
webview
.
currentWebview
().
append
(
map
);
var
userPoint
=
false
map
.
getUserLocation
(
function
(
state
,
point
)
{
if
(
state
)
{
plus
.
nativeUI
.
toast
(
'
定位失败!
'
);
}
else
{
userPoint
=
point
;
}
})
poiNavElem
.
addEventListener
(
'
click
'
,
function
()
{
openSysMap
(
latitude
,
longitude
,
name
)
});
}
</script>
</body>
</html>
\ No newline at end of file
packages/uni-cli-shared/template/__uniapppicker.html
已删除
100644 → 0
浏览文件 @
cfa557f3
此差异已折叠。
点击以展开。
packages/uni-cli-shared/template/__uniappscan.html
已删除
100644 → 0
浏览文件 @
cfa557f3
<!DOCTYPE html>
<html
lang=
"zh-CN"
>
<head>
<meta
charset=
"UTF-8"
/>
<script>
var
coverSupport
=
'
CSS
'
in
window
&&
typeof
CSS
.
supports
===
'
function
'
&&
(
CSS
.
supports
(
'
top: env(a)
'
)
||
CSS
.
supports
(
'
top: constant(a)
'
))
document
.
write
(
'
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0
'
+
(
coverSupport
?
'
, viewport-fit=cover
'
:
''
)
+
'
" />
'
)
</script>
<title>
扫码
</title>
<style>
html
,
body
,
.container
{
margin
:
0
;
padding
:
0
;
position
:
absolute
;
left
:
0
;
top
:
0
;
right
:
0
;
bottom
:
0
;
background
:
#000000
;
}
</style>
</head>
<body>
<div
id=
"scan"
class=
"container"
>
</div>
<script>
var
scan
;
var
lightImg
;
var
lightView
;
var
back
=
function
(
cancel
)
{
if
(
cancel
)
{
plus
.
webview
.
postMessageToUniNView
({
type
:
'
scanCode
'
,
args
:
{
errMsg
:
'
cancel
'
}
},
'
__uniapp__service
'
);
}
lightImg
&&
lightImg
.
clear
();
lightView
&&
lightView
.
clear
();
scan
&&
scan
.
close
();
var
webview
=
plus
.
webview
.
currentWebview
();
if
(
webview
.
__uniapp_dark
)
{
plus
.
navigator
.
setStatusBarStyle
(
'
dark
'
);
}
webview
.
close
(
'
auto
'
);
}
/**
* 绘制照亮开关
*/
function
drawLight
()
{
var
offImg
=
'
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAABjklEQVRoQ+1ZbVHEQAx9TwE4ABTcOQAknANQAKcAUAAOAAXgAHAACsDCKQiTmbYDzJZtNt2bFrJ/m6+Xl2yyU2LmhzOPH/8PgIjcADirxNyapNoffMwMiMgzgMPBHmyCLySPLCoBwJKtAbJbYaBmD1yRvBwAtBMxl5DF+DZkiwCIyBLAzsgBbki+Wm2WAlCaL6zOMvKnJO+sNksB7ALQbO1ZHfbIv5FUVs2nCIB6EZETALdmj2mFY5I6X8ynGEADQllYmL1+VzBfnV/VvQB0aj45ARyQ/Ci14QLQsOBZLe5JaikWnzEA7AN4L4hgA2Dpyb76dANwsOCq/TZhASAYKGie0a7R1lDPI0ebtF0NUi+4yfdAtxr3PEMnD6BbD0QkNfACQO05EAwMuaBqDrIVycdmTpwDuP4R0OR7QFftVRP0g+49cwOQq4DJMxAAchmofY3m/EcJBQOZbTRKKJeBKKEoIePvpFRJ1VzmciUccyCa+C81cerBkuuB7sGTE/zt+yhN7AnAqxsAvBn06n8CkyPwMZKwm+UAAAAASUVORK5CYII=
'
;
var
onImg
=
'
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAB4klEQVRoQ+1ZQU7CUBCdaWVBLFETqUtxB7iQG4hH4AZ4AvUE4gnkBuoJ9AbiDXAhZadby4IQICaS9psqJBVLy5/fkhKHbefPzPvzZv6bgLDmP1zz/OH/ARjZpSYAniVSORQXRt5qyviWrsDQLrUQ8FgmyLK2AsRTzrSqy9p7dgxA5raibFdSgSR7QAi4yu11GlFA/d+lKSTjfBW2JAAj+7Cio7MVZ4KO0AeG+dKW9UkCMHwvNxDhUjZYuL17apjdW1mfJACiX9gef2bbgLgvG3CB/bNhdioUXyQAXqCRXawDaDeUoPNnBLonuXy3RfFFBvADouxx9ogSeHaGMjpjm0LDXrGKQntUAaBn3IPsTveN6kOpAl5QNWkh7gzTqlOTJ0mJ+WAf/WLBmWivskkIEIONjKio3H4sAKhVUOX+7MKUKcQAZLk3Z88VWEQhr0kRYCoN/m5wqe8BvzQOkuDpB+CTB0EPHgOYNnNiTewXaFyBkFGbWAVQE7XNXevhW7X2Sucg8NqfR+p7AADaesateUk7E+0eAH4tLOsAIPSNZQBJT6EoicMV4Ar4OEJZK5lCTCGmkPy/MUGjOTEtxO9A1A1wE3MTp6iJgxaWKAr7F54o27DvsUwhlQRUzzIA1RtUPf8FRKRYQOI+9hQAAAAASUVORK5CYII=
'
;
var
onText
=
'
轻触照亮
'
;
var
offText
=
'
轻触关闭
'
;
var
on
=
false
;
var
viewWidth
=
48
;
var
fontSize
=
12
;
var
imgWidth
=
30
;
function
changeType
()
{
lightView
.
reset
();
lightImg
.
loadBase64Data
(
on
?
onImg
:
offImg
,
function
()
{
lightView
.
drawBitmap
(
lightImg
,
{},
{
top
:
0
,
left
:
(
viewWidth
-
imgWidth
)
/
2
+
'
px
'
,
width
:
imgWidth
+
'
px
'
,
height
:
imgWidth
+
'
px
'
});
});
lightView
.
drawText
(
on
?
offText
:
onText
,
{
top
:
imgWidth
+
'
px
'
,
left
:
'
0px
'
,
width
:
'
100%
'
,
height
:
fontSize
+
'
px
'
},
{
color
:
'
#ffffff
'
,
size
:
fontSize
+
'
px
'
});
scan
.
setFlash
(
on
);
on
=
!
on
;
}
lightImg
=
new
plus
.
nativeObj
.
Bitmap
(
'
lightImg
'
);
lightView
=
new
plus
.
nativeObj
.
View
(
'
lightView
'
,
{
width
:
viewWidth
+
'
px
'
,
height
:
viewWidth
+
'
px
'
,
top
:
window
.
innerHeight
/
2
+
50
+
'
px
'
,
left
:
(
window
.
innerWidth
-
viewWidth
)
/
2
+
'
px
'
,
position
:
'
static
'
});
lightView
.
addEventListener
(
'
click
'
,
function
()
{
changeType
();
});
plus
.
webview
.
currentWebview
().
append
(
lightView
);
changeType
();
}
document
.
addEventListener
(
'
plusready
'
,
function
()
{
var
serviceWebview
=
plus
.
webview
.
getWebviewById
(
'
__W2A_CONTEXT_
'
)
||
plus
.
webview
.
getLaunchWebview
();
plus
.
key
.
addEventListener
(
'
backbutton
'
,
function
()
{
back
(
true
);
});
setTimeout
(
function
()
{
var
webview
=
plus
.
webview
.
currentWebview
();
scan
=
new
plus
.
barcode
.
Barcode
(
'
scan
'
,
webview
.
__uniapp_scan_type
,
{
frameColor
:
'
#118CE9
'
,
scanbarColor
:
'
#118CE9
'
});
scan
.
onmarked
=
function
(
type
,
code
,
file
)
{
var
res
=
{
type
:
type
,
code
:
code
};
back
()
plus
.
webview
.
postMessageToUniNView
({
type
:
'
scanCode
'
,
args
:
res
},
'
__uniapp__service
'
);
};
scan
.
onerror
=
function
(
error
)
{
back
()
plus
.
webview
.
postMessageToUniNView
({
type
:
'
scanCode
'
,
args
:
{
errMsg
:
error
.
message
+
'
,错误码:
'
+
error
.
code
}
},
'
__uniapp__service
'
);
};
scan
.
start
();
drawLight
();
},
500
)
})
</script>
</body>
</html>
packages/uni-cli-shared/template/common/__uniappchooselocation.js
0 → 100644
浏览文件 @
c71e3852
此差异已折叠。
点击以展开。
packages/uni-cli-shared/template/common/__uniappopenlocation.js
0 → 100644
浏览文件 @
c71e3852
此差异已折叠。
点击以展开。
packages/uni-cli-shared/template/__uniapppicker.js
→
packages/uni-cli-shared/template/
common/
__uniapppicker.js
浏览文件 @
c71e3852
文件已移动
packages/uni-cli-shared/template/common/__uniappscancode.js
0 → 100644
浏览文件 @
c71e3852
!
function
(
e
){
var
t
=
{};
function
n
(
a
){
if
(
t
[
a
])
return
t
[
a
].
exports
;
var
o
=
t
[
a
]
=
{
i
:
a
,
l
:
!
1
,
exports
:{}};
return
e
[
a
].
call
(
o
.
exports
,
o
,
o
.
exports
,
n
),
o
.
l
=!
0
,
o
.
exports
}
n
.
m
=
e
,
n
.
c
=
t
,
n
.
d
=
function
(
e
,
t
,
a
){
n
.
o
(
e
,
t
)
||
Object
.
defineProperty
(
e
,
t
,{
enumerable
:
!
0
,
get
:
a
})},
n
.
r
=
function
(
e
){
"
undefined
"
!=
typeof
Symbol
&&
Symbol
.
toStringTag
&&
Object
.
defineProperty
(
e
,
Symbol
.
toStringTag
,{
value
:
"
Module
"
}),
Object
.
defineProperty
(
e
,
"
__esModule
"
,{
value
:
!
0
})},
n
.
t
=
function
(
e
,
t
){
if
(
1
&
t
&&
(
e
=
n
(
e
)),
8
&
t
)
return
e
;
if
(
4
&
t
&&
"
object
"
==
typeof
e
&&
e
&&
e
.
__esModule
)
return
e
;
var
a
=
Object
.
create
(
null
);
if
(
n
.
r
(
a
),
Object
.
defineProperty
(
a
,
"
default
"
,{
enumerable
:
!
0
,
value
:
e
}),
2
&
t
&&
"
string
"
!=
typeof
e
)
for
(
var
o
in
e
)
n
.
d
(
a
,
o
,
function
(
t
){
return
e
[
t
]}.
bind
(
null
,
o
));
return
a
},
n
.
n
=
function
(
e
){
var
t
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
n
.
d
(
t
,
"
a
"
,
t
),
t
},
n
.
o
=
function
(
e
,
t
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
t
)},
n
.
p
=
""
,
n
(
n
.
s
=
41
)}([
function
(
e
,
t
,
n
){
"
use strict
"
;
function
a
(
e
,
t
,
n
,
a
,
o
,
r
,
i
,
s
){
var
c
,
u
=
"
function
"
==
typeof
e
?
e
.
options
:
e
;
if
(
t
&&
(
u
.
render
=
t
,
u
.
staticRenderFns
=
n
,
u
.
_compiled
=!
0
),
a
&&
(
u
.
functional
=!
0
),
r
&&
(
u
.
_scopeId
=
"
data-v-
"
+
r
),
i
?(
c
=
function
(
e
){(
e
=
e
||
this
.
$vnode
&&
this
.
$vnode
.
ssrContext
||
this
.
parent
&&
this
.
parent
.
$vnode
&&
this
.
parent
.
$vnode
.
ssrContext
)
||
"
undefined
"
==
typeof
__VUE_SSR_CONTEXT__
||
(
e
=
__VUE_SSR_CONTEXT__
),
o
&&
o
.
call
(
this
,
e
),
e
&&
e
.
_registeredComponents
&&
e
.
_registeredComponents
.
add
(
i
)},
u
.
_ssrRegister
=
c
):
o
&&
(
c
=
s
?
function
(){
o
.
call
(
this
,
this
.
$root
.
$options
.
shadowRoot
)}:
o
),
c
)
if
(
u
.
functional
){
u
.
_injectStyles
=
c
;
var
l
=
u
.
render
;
u
.
render
=
function
(
e
,
t
){
return
c
.
call
(
t
),
l
(
e
,
t
)}}
else
{
var
f
=
u
.
beforeCreate
;
u
.
beforeCreate
=
f
?[].
concat
(
f
,
c
):[
c
]}
return
{
exports
:
e
,
options
:
u
}}
n
.
d
(
t
,
"
a
"
,
function
(){
return
a
})},
function
(
e
,
t
){
e
.
exports
=
{}},
function
(
e
,
t
,
n
){
"
use strict
"
;
n
.
r
(
t
);
var
a
=
n
(
3
),
o
=
n
.
n
(
a
);
for
(
var
r
in
a
)
"
default
"
!==
r
&&
function
(
e
){
n
.
d
(
t
,
e
,
function
(){
return
a
[
e
]})}(
r
);
t
.
default
=
o
.
a
},
function
(
e
,
t
,
n
){
"
use strict
"
;(
function
(
e
){
Object
.
defineProperty
(
t
,
"
__esModule
"
,{
value
:
!
0
}),
t
.
default
=
void
0
;
var
n
=
{
data
:
function
(){
return
{}},
onLoad
:
function
(
t
){
var
n
=
this
,
a
=
t
.
from
,
o
=
t
.
callback
,
r
=
t
.
type
,
i
=
t
.
data
;
this
.
__from
=
a
,
this
.
__callback
=
o
,
this
.
__type
=
r
,
this
.
__page
=
e
.
webview
.
currentWebview
().
id
;
try
{
this
.
data
=
i
?
JSON
.
parse
(
decodeURIComponent
(
i
)):{}}
catch
(
e
){
this
.
data
=
null
}
e
.
key
.
addEventListener
(
"
backbutton
"
,
function
(){
"
function
"
==
typeof
n
.
onClose
?
n
.
onClose
():
e
.
webview
.
currentWebview
().
close
(
"
auto
"
)}),
weex
.
requireModule
(
"
globalEvent
"
).
addEventListener
(
"
plusMessage
"
,
function
(
e
){
var
t
=
e
.
data
.
__message
;
t
&&
n
.
__onMessageCallback
&&
n
.
__onMessageCallback
(
t
.
data
)})},
methods
:{
postMessage
:
function
(){
var
t
=
arguments
.
length
>
0
&&
void
0
!==
arguments
[
0
]?
arguments
[
0
]:{},
n
=
arguments
.
length
>
1
&&
void
0
!==
arguments
[
1
]
&&
arguments
[
1
],
a
=
{
__message
:{
__page
:
this
.
__page
,
data
:
t
,
keep
:
n
}};
if
(
"
nvue
"
===
this
.
__type
)
e
.
webview
.
postMessageToUniNView
(
a
,
this
.
__from
);
else
{
var
o
=
e
.
webview
.
getWebviewById
(
this
.
__from
);
o
&&
o
.
evalJS
(
"
__plusMessage&&__plusMessage(
"
.
concat
(
JSON
.
stringify
({
data
:
a
}),
"
)
"
))}},
onMessage
:
function
(
e
){
this
.
__onMessageCallback
=
e
}}};
t
.
default
=
n
}).
call
(
this
,
n
(
5
).
weexPlus
)},
function
(
e
,
t
,
n
){
"
use strict
"
;
var
a
=
function
(){
var
e
=
this
.
$createElement
;
return
(
this
.
_self
.
_c
||
e
)(
"
view
"
)},
o
=
[];
n
.
d
(
t
,
"
a
"
,
function
(){
return
a
}),
n
.
d
(
t
,
"
b
"
,
function
(){
return
o
})},
function
(
e
,
t
,
n
){
"
use strict
"
;
var
a
;
Object
.
defineProperty
(
t
,
"
__esModule
"
,{
value
:
!
0
}),
t
.
weexPlus
=
t
.
default
=
void
0
,
a
=
"
function
"
==
typeof
getUni
?
getUni
:
function
(){
var
e
=
function
(
e
){
return
"
function
"
==
typeof
e
},
t
=
/^
\$
|^on|^create|Sync$|Manager$|^pause/
,
n
=
[
"
os
"
,
"
getCurrentSubNVue
"
,
"
getSubNVueById
"
,
"
stopRecord
"
,
"
stopVoice
"
,
"
stopBackgroundAudio
"
,
"
stopPullDownRefresh
"
,
"
hideKeyboard
"
,
"
hideToast
"
,
"
hideLoading
"
,
"
showNavigationBarLoading
"
,
"
hideNavigationBarLoading
"
,
"
canIUse
"
,
"
navigateBack
"
,
"
closeSocket
"
,
"
pageScrollTo
"
,
"
drawCanvas
"
],
a
=
function
(
e
){
return
!
(
t
.
test
(
e
)
&&
"
createBLEConnection
"
!==
e
||~
n
.
indexOf
(
e
))},
r
=
function
(
t
){
return
function
(){
for
(
var
n
=
arguments
.
length
,
a
=
Array
(
n
>
1
?
n
-
1
:
0
),
o
=
1
;
o
<
n
;
o
++
)
a
[
o
-
1
]
=
arguments
[
o
];
var
r
=
arguments
.
length
>
0
&&
void
0
!==
arguments
[
0
]?
arguments
[
0
]:{};
return
e
(
r
.
success
)
||
e
(
r
.
fail
)
||
e
(
r
.
complete
)?
t
.
apply
(
void
0
,[
r
].
concat
(
a
)):
new
Promise
(
function
(
e
,
n
){
t
.
apply
(
void
0
,[
Object
.
assign
({},
r
,{
success
:
e
,
fail
:
n
})].
concat
(
a
)),
Promise
.
prototype
.
finally
=
function
(
e
){
var
t
=
this
.
constructor
;
return
this
.
then
(
function
(
n
){
return
t
.
resolve
(
e
()).
then
(
function
(){
return
n
})},
function
(
n
){
return
t
.
resolve
(
e
()).
then
(
function
(){
throw
n
})})}}).
then
(
function
(
e
){
return
[
null
,
e
]}).
catch
(
function
(
e
){
return
[
e
]})}},
i
=
[],
s
=
void
0
;
function
c
(
e
){
i
.
forEach
(
function
(
t
){
return
t
({
origin
:
s
,
data
:
e
})})}
var
u
=
o
.
webview
.
currentWebview
().
id
,
l
=
new
BroadcastChannel
(
"
UNI-APP-SUBNVUE
"
);
function
f
(
e
){
e
.
$processed
=!
0
;
var
t
=
o
.
webview
.
currentWebview
().
id
===
e
.
id
,
n
=
"
uniNView
"
===
e
.
__uniapp_origin_type
&&
e
.
__uniapp_origin_id
,
a
=
e
.
id
;
if
(
e
.
postMessage
=
function
(
e
){
n
?
l
.
postMessage
({
data
:
e
,
to
:
t
?
n
:
a
}):
m
({
type
:
"
UniAppSubNVue
"
,
data
:
e
})},
e
.
onMessage
=
function
(
e
){
i
.
push
(
e
)},
e
.
__uniapp_mask_id
){
s
=
e
.
__uniapp_host
;
var
r
=
e
.
__uniapp_mask
,
c
=
o
.
webview
.
getWebviewById
(
e
.
__uniapp_mask_id
);
c
=
c
.
parent
()
||
c
;
var
u
=
e
.
show
,
f
=
e
.
hide
,
d
=
e
.
close
,
p
=
function
(){
c
.
setStyle
({
mask
:
"
none
"
})};
e
.
show
=
function
(){
c
.
setStyle
({
mask
:
r
});
for
(
var
t
=
arguments
.
length
,
n
=
Array
(
t
),
a
=
0
;
a
<
t
;
a
++
)
n
[
a
]
=
arguments
[
a
];
return
u
.
apply
(
e
,
n
)},
e
.
hide
=
function
(){
p
();
for
(
var
t
=
arguments
.
length
,
n
=
Array
(
t
),
a
=
0
;
a
<
t
;
a
++
)
n
[
a
]
=
arguments
[
a
];
return
f
.
apply
(
e
,
n
)},
e
.
close
=
function
(){
p
();
for
(
var
t
=
arguments
.
length
,
n
=
Array
(
t
),
a
=
0
;
a
<
t
;
a
++
)
n
[
a
]
=
arguments
[
a
];
return
d
.
apply
(
e
,
n
)}}}
function
d
(
e
){
var
t
=
o
.
webview
.
getWebviewById
(
e
);
return
t
&&!
t
.
$processed
&&
f
(
t
),
t
}
l
.
onmessage
=
function
(
e
){
e
.
data
.
to
===
u
&&
c
(
e
.
data
.
data
)};
var
p
=
weex
.
requireModule
(
"
plus
"
),
g
=
weex
.
requireModule
(
"
globalEvent
"
),
v
=
0
,
y
=
{},
h
=
"
__uniapp__service
"
;
g
.
addEventListener
(
"
plusMessage
"
,
function
(
e
){
"
UniAppJsApi
"
===
e
.
data
.
type
?
A
(
e
.
data
.
id
,
e
.
data
.
data
):
"
UniAppSubNVue
"
===
e
.
data
.
type
?
c
(
e
.
data
.
data
,
e
.
data
.
options
):
"
onNavigationBarButtonTap
"
===
e
.
data
.
type
?
"
function
"
==
typeof
S
&&
S
(
e
.
data
.
data
):
"
onNavigationBarSearchInputChanged
"
===
e
.
data
.
type
?
"
function
"
==
typeof
C
&&
C
(
e
.
data
.
data
):
"
onNavigationBarSearchInputConfirmed
"
===
e
.
data
.
type
?
"
function
"
==
typeof
w
&&
w
(
e
.
data
.
data
):
"
onNavigationBarSearchInputClicked
"
===
e
.
data
.
type
&&
"
function
"
==
typeof
E
&&
E
(
e
.
data
.
data
)});
var
A
=
function
(
e
,
t
){
var
n
=
y
[
e
];
n
?(
n
(
t
),
n
.
keepAlive
||
delete
y
[
e
]):
console
.
error
(
"
callback[
"
+
e
+
"
] is undefined
"
)},
_
=
function
(
t
){
var
n
,
a
,
o
=
t
.
id
,
r
=
t
.
type
,
i
=
t
.
params
;
y
[
o
]
=
(
a
=
function
(
t
){
e
(
n
)?
n
(
t
):
n
&&
(
~
t
.
errMsg
.
indexOf
(
"
:ok
"
)?
e
(
n
.
success
)
&&
n
.
success
(
t
):
~
t
.
errMsg
.
indexOf
(
"
:fail
"
)
&&
e
(
n
.
fail
)
&&
n
.
fail
(
t
),
e
(
n
.
complete
)
&&
n
.
complete
(
t
))},(
e
(
n
=
i
)
||
n
&&
e
(
n
.
callback
))
&&
(
a
.
keepAlive
=!
0
),
a
),
p
.
postMessage
({
id
:
o
,
type
:
r
,
params
:
i
},
h
)};
function
m
(
e
){
p
.
postMessage
(
e
,
h
)}
var
b
=
function
(
e
){
return
function
(
t
){
_
({
id
:
v
++
,
type
:
e
,
params
:
t
})}},
S
=
void
0
,
C
=
void
0
,
w
=
void
0
,
E
=
void
0
;
function
M
(
e
){
S
=
e
}
function
k
(
e
){
C
=
e
}
function
B
(
e
){
w
=
e
}
function
I
(
e
){
E
=
e
}
function
O
(
e
){
return
weex
.
requireModule
(
e
)}
var
N
=
weex
.
requireModule
(
"
dom
"
),
P
=
weex
.
requireModule
(
"
globalEvent
"
),
T
=
[];
function
D
(
e
){
"
function
"
==
typeof
e
&&
(
this
.
isUniAppReady
?
e
():
T
.
push
(
e
))}
P
.
addEventListener
(
"
plusMessage
"
,
function
(
e
){
"
UniAppReady
"
===
e
.
data
.
type
&&
(
D
.
isUniAppReady
=!
0
,
T
.
length
&&
(
T
.
forEach
(
function
(
e
){
return
e
()}),
T
=
[]))});
var
x
=
"
function
"
==
typeof
Symbol
&&
"
symbol
"
==
typeof
Symbol
.
iterator
?
function
(
e
){
return
typeof
e
}:
function
(
e
){
return
e
&&
"
function
"
==
typeof
Symbol
&&
e
.
constructor
===
Symbol
&&
e
!==
Symbol
.
prototype
?
"
symbol
"
:
typeof
e
},
U
=
weex
.
requireModule
(
"
stream
"
),
V
=
"
GET
"
,
R
=
function
(
e
){
var
t
=
arguments
.
length
>
1
&&
void
0
!==
arguments
[
1
]?
arguments
[
1
]:
V
,
n
=
arguments
.
length
>
2
&&
void
0
!==
arguments
[
2
]?
arguments
[
2
]:
"
application/x-www-form-urlencoded
"
;
return
"
object
"
===
(
void
0
===
e
?
"
undefined
"
:
x
(
e
))?
"
POST
"
===
t
.
toUpperCase
()
&&
"
application/json
"
===
n
.
toLowerCase
()?
JSON
.
stringify
(
e
):
Object
.
keys
(
e
).
map
(
function
(
t
){
return
encodeURIComponent
(
t
)
+
"
=
"
+
encodeURIComponent
(
e
[
t
])}).
join
(
"
&
"
):
e
},
F
=
weex
.
requireModule
(
"
plusstorage
"
),
$
=
"
__TYPE
"
,
j
=
weex
.
requireModule
(
"
clipboard
"
),
L
=
function
(){
if
(
"
function
"
==
typeof
getUniEmitter
)
return
getUniEmitter
;
var
e
=
{
$on
:
function
(){
console
.
warn
(
"
uni.$on failed
"
)},
$off
:
function
(){
console
.
warn
(
"
uni.$off failed
"
)},
$once
:
function
(){
console
.
warn
(
"
uni.$once failed
"
)},
$emit
:
function
(){
console
.
warn
(
"
uni.$emit failed
"
)}};
return
function
(){
return
e
}}();
function
Q
(
e
,
t
,
n
){
return
e
[
t
].
apply
(
e
,
n
)}
var
J
=
Object
.
freeze
({
loadFontFace
:
function
(
t
){
var
n
=
t
.
family
,
a
=
t
.
source
,
o
=
(
t
.
desc
,
t
.
success
),
r
=
(
t
.
fail
,
t
.
complete
);
N
.
addRule
(
"
fontFace
"
,{
fontFamily
:
n
,
src
:
a
.
replace
(
/"/g
,
"
'
"
)});
var
i
=
{
errMsg
:
"
loadFontFace:ok
"
,
status
:
"
loaded
"
};
e
(
o
)
&&
o
(
i
),
e
(
r
)
&&
r
(
i
)},
ready
:
D
,
request
:
function
(
t
){
var
n
=
t
.
url
,
a
=
t
.
data
,
o
=
t
.
header
,
r
=
t
.
method
,
i
=
void
0
===
r
?
"
GET
"
:
r
,
s
=
t
.
dataType
,
c
=
void
0
===
s
?
"
json
"
:
s
,
u
=
(
t
.
responseType
,
t
.
success
),
l
=
t
.
fail
,
f
=
t
.
complete
,
d
=!
1
,
p
=!
1
,
g
=
{};
if
(
o
)
for
(
var
v
in
o
)
p
||
"
content-type
"
!==
v
.
toLowerCase
()?
g
[
v
]
=
o
[
v
]:(
p
=!
0
,
g
[
"
Content-Type
"
]
=
o
[
v
]);
return
i
===
V
&&
a
&&
(
n
=
n
+
(
~
n
.
indexOf
(
"
?
"
)?
"
&
"
===
n
.
substr
(
-
1
)
||
"
?
"
===
n
.
substr
(
-
1
)?
""
:
"
&
"
:
"
?
"
)
+
R
(
a
)),
U
.
fetch
({
url
:
n
,
method
:
i
,
headers
:
g
,
type
:
"
json
"
===
c
?
"
json
"
:
"
text
"
,
body
:
i
!==
V
?
R
(
a
,
i
,
g
[
"
Content-Type
"
]):
""
},
function
(
t
){
var
n
=
t
.
status
,
a
=
(
t
.
ok
,
t
.
statusText
,
t
.
data
),
o
=
t
.
headers
,
r
=
{};
!
n
||-
1
===
n
||
d
?(
r
.
errMsg
=
"
request:fail
"
,
e
(
l
)
&&
l
(
r
)):(
r
.
data
=
a
,
r
.
statusCode
=
n
,
r
.
header
=
o
,
e
(
u
)
&&
u
(
r
)),
e
(
f
)
&&
f
(
r
)}),{
abort
:
function
(){
d
=!
0
}}},
getStorage
:
function
(
t
){
var
n
=
t
.
key
,
a
=
(
t
.
data
,
t
.
success
),
o
=
t
.
fail
,
r
=
t
.
complete
;
F
.
getItem
(
n
+
$
,
function
(
t
){
if
(
"
success
"
===
t
.
result
){
var
i
=
t
.
data
;
F
.
getItem
(
n
,
function
(
t
){
if
(
"
success
"
===
t
.
result
){
var
n
=
t
.
data
;
i
&&
n
?(
"
String
"
!==
i
&&
(
n
=
JSON
.
parse
(
n
)),
e
(
a
)
&&
a
({
errMsg
:
"
getStorage:ok
"
,
data
:
n
})):(
t
.
errMsg
=
"
setStorage:fail
"
,
e
(
o
)
&&
o
(
t
))}
else
t
.
errMsg
=
"
setStorage:fail
"
,
e
(
o
)
&&
o
(
t
);
e
(
r
)
&&
r
(
t
)})}
else
t
.
errMsg
=
"
setStorage:fail
"
,
e
(
o
)
&&
o
(
t
),
e
(
r
)
&&
r
(
t
)})},
setStorage
:
function
(
t
){
var
n
=
t
.
key
,
a
=
t
.
data
,
o
=
t
.
success
,
r
=
t
.
fail
,
i
=
t
.
complete
,
s
=
"
String
"
;
"
object
"
===
(
void
0
===
a
?
"
undefined
"
:
x
(
a
))
&&
(
s
=
"
Object
"
,
a
=
JSON
.
stringify
(
a
)),
F
.
setItem
(
n
,
a
,
function
(
t
){
"
success
"
===
t
.
result
?
F
.
setItem
(
n
+
$
,
s
,
function
(
t
){
"
success
"
===
t
.
result
?
e
(
o
)
&&
o
({
errMsg
:
"
setStorage:ok
"
}):(
t
.
errMsg
=
"
setStorage:fail
"
,
e
(
r
)
&&
r
(
t
))}):(
t
.
errMsg
=
"
setStorage:fail
"
,
e
(
r
)
&&
r
(
t
)),
e
(
i
)
&&
i
(
t
)})},
removeStorage
:
function
(
t
){
var
n
=
t
.
key
,
a
=
(
t
.
data
,
t
.
success
),
o
=
t
.
fail
,
r
=
t
.
complete
;
F
.
removeItem
(
n
,
function
(
t
){
"
success
"
===
t
.
result
?
e
(
a
)
&&
a
({
errMsg
:
"
removeStorage:ok
"
}):(
t
.
errMsg
=
"
removeStorage:fail
"
,
e
(
o
)
&&
o
(
t
)),
e
(
r
)
&&
r
(
t
)}),
F
.
removeItem
(
n
+
$
)},
clearStorage
:
function
(
e
){
e
.
key
,
e
.
data
,
e
.
success
,
e
.
fail
,
e
.
complete
},
getClipboardData
:
function
(
t
){
var
n
=
t
.
success
,
a
=
(
t
.
fail
,
t
.
complete
);
j
.
getString
(
function
(
t
){
var
o
=
{
errMsg
:
"
getClipboardData:ok
"
,
data
:
t
.
data
};
e
(
n
)
&&
n
(
o
),
e
(
a
)
&&
a
(
o
)})},
setClipboardData
:
function
(
t
){
var
n
=
t
.
data
,
a
=
t
.
success
,
o
=
(
t
.
fail
,
t
.
complete
),
r
=
{
errMsg
:
"
setClipboardData:ok
"
};
j
.
setString
(
n
),
e
(
a
)
&&
a
(
r
),
e
(
o
)
&&
o
(
r
)},
onSubNVueMessage
:
c
,
getSubNVueById
:
d
,
getCurrentSubNVue
:
function
(){
return
d
(
o
.
webview
.
currentWebview
().
id
)},
$on
:
function
(){
return
Q
(
L
(),
"
$on
"
,[].
concat
(
Array
.
prototype
.
slice
.
call
(
arguments
)))},
$off
:
function
(){
return
Q
(
L
(),
"
$off
"
,[].
concat
(
Array
.
prototype
.
slice
.
call
(
arguments
)))},
$once
:
function
(){
return
Q
(
L
(),
"
$once
"
,[].
concat
(
Array
.
prototype
.
slice
.
call
(
arguments
)))},
$emit
:
function
(){
return
Q
(
L
(),
"
$emit
"
,[].
concat
(
Array
.
prototype
.
slice
.
call
(
arguments
)))}}),
q
=
{
os
:{
nvue
:
!
0
}},
K
=
{};
return
"
undefined
"
!=
typeof
Proxy
?
K
=
new
Proxy
({},{
get
:
function
(
e
,
t
){
if
(
"
os
"
===
t
)
return
{
nvue
:
!
0
};
if
(
"
postMessage
"
===
t
)
return
m
;
if
(
"
requireNativePlugin
"
===
t
)
return
O
;
if
(
"
onNavigationBarButtonTap
"
===
t
)
return
M
;
if
(
"
onNavigationBarSearchInputChanged
"
===
t
)
return
k
;
if
(
"
onNavigationBarSearchInputConfirmed
"
===
t
)
return
B
;
if
(
"
onNavigationBarSearchInputClicked
"
===
t
)
return
I
;
var
n
=
J
[
t
];
return
n
||
(
n
=
b
(
t
)),
a
(
t
)?
r
(
n
):
n
}}):(
Object
.
keys
(
q
).
forEach
(
function
(
e
){
K
[
e
]
=
q
[
e
]}),
K
.
postMessage
=
m
,
K
.
requireNativePlugin
=
O
,
K
.
onNavigationBarButtonTap
=
M
,
K
.
onNavigationBarSearchInputChanged
=
k
,
K
.
onNavigationBarSearchInputConfirmed
=
B
,
K
.
onNavigationBarSearchInputClicked
=
I
,
Object
.
keys
({
uploadFile
:
!
0
,
downloadFile
:
!
0
,
chooseImage
:
!
0
,
previewImage
:
!
0
,
getImageInfo
:
!
0
,
saveImageToPhotosAlbum
:
!
0
,
chooseVideo
:
!
0
,
saveVideoToPhotosAlbum
:
!
0
,
saveFile
:
!
0
,
getSavedFileList
:
!
0
,
getSavedFileInfo
:
!
0
,
removeSavedFile
:
!
0
,
openDocument
:
!
0
,
setStorage
:
!
0
,
getStorage
:
!
0
,
getStorageInfo
:
!
0
,
removeStorage
:
!
0
,
clearStorage
:
!
0
,
getLocation
:
!
0
,
chooseLocation
:
!
0
,
openLocation
:
!
0
,
getSystemInfo
:
!
0
,
getNetworkType
:
!
0
,
makePhoneCall
:
!
0
,
scanCode
:
!
0
,
setScreenBrightness
:
!
0
,
getScreenBrightness
:
!
0
,
setKeepScreenOn
:
!
0
,
vibrateLong
:
!
0
,
vibrateShort
:
!
0
,
addPhoneContact
:
!
0
,
showToast
:
!
0
,
showLoading
:
!
0
,
hideToast
:
!
0
,
hideLoading
:
!
0
,
showModal
:
!
0
,
showActionSheet
:
!
0
,
setNavigationBarTitle
:
!
0
,
setNavigationBarColor
:
!
0
,
navigateTo
:
!
0
,
redirectTo
:
!
0
,
reLaunch
:
!
0
,
switchTab
:
!
0
,
navigateBack
:
!
0
,
getProvider
:
!
0
,
login
:
!
0
,
getUserInfo
:
!
0
,
share
:
!
0
,
requestPayment
:
!
0
,
subscribePush
:
!
0
,
unsubscribePush
:
!
0
,
onPush
:
!
0
,
offPush
:
!
0
}).
forEach
(
function
(
e
){
var
t
=
J
[
e
];
t
||
(
t
=
b
(
e
)),
a
(
e
)?
K
[
e
]
=
r
(
t
):
K
[
e
]
=
t
})),
K
};
var
o
=
new
WeexPlus
(
weex
);
t
.
weexPlus
=
o
;
var
r
=
a
(
weex
,
o
,
BroadcastChannel
);
t
.
default
=
r
},
function
(
e
,
t
,
n
){
Vue
.
prototype
.
__$appStyle__
=
{},
Vue
.
prototype
.
__merge_style
&&
Vue
.
prototype
.
__merge_style
(
n
(
7
).
default
,
Vue
.
prototype
.
__$appStyle__
)},
function
(
e
,
t
,
n
){
"
use strict
"
;
n
.
r
(
t
);
var
a
=
n
(
1
),
o
=
n
.
n
(
a
);
for
(
var
r
in
a
)
"
default
"
!==
r
&&
function
(
e
){
n
.
d
(
t
,
e
,
function
(){
return
a
[
e
]})}(
r
);
t
.
default
=
o
.
a
},
function
(
e
,
t
,
n
){
"
use strict
"
;
n
.
r
(
t
);
var
a
=
n
(
4
),
o
=
n
(
2
);
for
(
var
r
in
o
)
"
default
"
!==
r
&&
function
(
e
){
n
.
d
(
t
,
e
,
function
(){
return
o
[
e
]})}(
r
);
var
i
=
n
(
0
);
var
s
=
Object
(
i
.
a
)(
o
.
default
,
a
.
a
,
a
.
b
,
!
1
,
null
,
null
,
"
3f027017
"
);(
function
(){
this
.
options
.
style
||
(
this
.
options
.
style
=
{}),
Vue
.
prototype
.
__merge_style
&&
Vue
.
prototype
.
__$appStyle__
&&
Vue
.
prototype
.
__merge_style
(
Vue
.
prototype
.
__$appStyle__
,
this
.
options
.
style
)}).
call
(
s
),
t
.
default
=
s
.
exports
},,,
function
(
e
,
t
,
n
){
"
use strict
"
;
var
a
=
n
(
31
),
o
=
n
(
19
),
r
=
n
(
0
);
var
i
=
Object
(
r
.
a
)(
o
.
default
,
a
.
a
,
a
.
b
,
!
1
,
null
,
null
,
"
642c3171
"
);(
function
(){
this
.
options
.
style
||
(
this
.
options
.
style
=
{}),
Vue
.
prototype
.
__merge_style
&&
Vue
.
prototype
.
__$appStyle__
&&
Vue
.
prototype
.
__merge_style
(
Vue
.
prototype
.
__$appStyle__
,
this
.
options
.
style
),
Vue
.
prototype
.
__merge_style
?
Vue
.
prototype
.
__merge_style
(
n
(
35
).
default
,
this
.
options
.
style
):
Object
.
assign
(
this
.
options
.
style
,
n
(
35
).
default
)}).
call
(
i
),
t
.
default
=
i
.
exports
},,,,,,,,
function
(
e
,
t
,
n
){
"
use strict
"
;
var
a
=
n
(
20
),
o
=
n
.
n
(
a
);
t
.
default
=
o
.
a
},
function
(
e
,
t
,
n
){
"
use strict
"
;(
function
(
e
){
Object
.
defineProperty
(
t
,
"
__esModule
"
,{
value
:
!
0
}),
t
.
default
=
void
0
;
var
a
,
o
,
r
=
(
a
=
n
(
8
))
&&
a
.
__esModule
?
a
:{
default
:
a
};
function
i
(
e
,
t
,
n
){
return
t
in
e
?
Object
.
defineProperty
(
e
,
t
,{
value
:
n
,
enumerable
:
!
0
,
configurable
:
!
0
,
writable
:
!
0
}):
e
[
t
]
=
n
,
e
}
var
s
=
e
.
barcode
,
c
=
{
qrCode
:[
s
.
QR
,
s
.
AZTEC
,
s
.
MAXICODE
],
barCode
:[
s
.
EAN13
,
s
.
EAN8
,
s
.
UPCA
,
s
.
UPCE
,
s
.
CODABAR
,
s
.
CODE128
,
s
.
CODE39
,
s
.
CODE93
,
s
.
ITF
,
s
.
RSS14
,
s
.
RSSEXPANDED
],
datamatrix
:[
s
.
DATAMATRIX
],
pdf417
:[
s
.
PDF417
]},
u
=
(
i
(
o
=
{},
s
.
QR
,
"
QR_CODE
"
),
i
(
o
,
s
.
EAN13
,
"
EAN_13
"
),
i
(
o
,
s
.
EAN8
,
"
EAN_8
"
),
i
(
o
,
s
.
DATAMATRIX
,
"
DATA_MATRIX
"
),
i
(
o
,
s
.
UPCA
,
"
UPC_A
"
),
i
(
o
,
s
.
UPCE
,
"
UPC_E
"
),
i
(
o
,
s
.
CODABAR
,
"
CODABAR
"
),
i
(
o
,
s
.
CODE39
,
"
CODE_39
"
),
i
(
o
,
s
.
CODE93
,
"
CODE_93
"
),
i
(
o
,
s
.
CODE128
,
"
CODE_128
"
),
i
(
o
,
s
.
ITF
,
"
CODE_25
"
),
i
(
o
,
s
.
PDF417
,
"
PDF_417
"
),
i
(
o
,
s
.
AZTEC
,
"
AZTEC
"
),
i
(
o
,
s
.
RSS14
,
"
RSS_14
"
),
i
(
o
,
s
.
RSSEXPANDED
,
"
RSSEXPANDED
"
),
o
),
l
=
{
mixins
:[
r
.
default
],
data
:{
filters
:[
0
,
2
,
1
],
backgroud
:
"
#000000
"
,
frameColor
:
"
#118ce9
"
,
scanbarColor
:
"
#118ce9
"
,
enabledFlash
:
!
1
,
flashImage0
:
"
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAABjklEQVRoQ+1ZbVHEQAx9TwE4ABTcOQAknANQAKcAUAAOAAXgAHAACsDCKQiTmbYDzJZtNt2bFrJ/m6+Xl2yyU2LmhzOPH/8PgIjcADirxNyapNoffMwMiMgzgMPBHmyCLySPLCoBwJKtAbJbYaBmD1yRvBwAtBMxl5DF+DZkiwCIyBLAzsgBbki+Wm2WAlCaL6zOMvKnJO+sNksB7ALQbO1ZHfbIv5FUVs2nCIB6EZETALdmj2mFY5I6X8ynGEADQllYmL1+VzBfnV/VvQB0aj45ARyQ/Ci14QLQsOBZLe5JaikWnzEA7AN4L4hgA2Dpyb76dANwsOCq/TZhASAYKGie0a7R1lDPI0ebtF0NUi+4yfdAtxr3PEMnD6BbD0QkNfACQO05EAwMuaBqDrIVycdmTpwDuP4R0OR7QFftVRP0g+49cwOQq4DJMxAAchmofY3m/EcJBQOZbTRKKJeBKKEoIePvpFRJ1VzmciUccyCa+C81cerBkuuB7sGTE/zt+yhN7AnAqxsAvBn06n8CkyPwMZKwm+UAAAAASUVORK5CYII=
"
,
flashImage1
:
"
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAMFBMVEUAAAA3kvI3lfY2k/VAl+43k/U3k/Q4k/M3kvI3k/M4k/Q4lPU2lPU2k/Vdq843k/WWSpNKAAAAD3RSTlMAwD+QINCAcPBgUDDgoBAE044kAAAAdklEQVQ4y2OgOrD/DwffUSTkERIfyZXAtOMbca7iVoKDDSgSbAijJqBI8J2HiX9FM2s+TOITmgQrTEIATYIJJuEA5mJ68S+Gg/0hEi0YEoxQK2gs0WyPQyKBGYeEAhPtJRaw45AIccXpwVEJekuwQyQWMFAfAACeDBJY9aXa3QAAAABJRU5ErkJggg==
"
},
onLoad
:
function
(
e
){
var
t
=
this
,
n
=
JSON
.
parse
(
e
.
data
).
scanType
,
a
=
[];
Array
.
isArray
(
n
)
&&
n
.
length
&&
n
.
forEach
(
function
(
e
){
var
t
=
c
[
e
];
t
&&
(
a
=
a
.
concat
(
t
))}),
a
.
length
||
(
a
=
a
.
concat
(
c
.
qrCode
).
concat
(
c
.
barCode
).
concat
(
c
.
datamatrix
).
concat
(
c
.
pdf417
)),
this
.
filters
=
a
,
this
.
onMessage
(
function
(
e
){
t
.
gallery
()})},
onUnload
:
function
(){
this
.
cancel
()},
methods
:{
start
:
function
(){
this
.
$refs
.
barcode
.
start
({
conserve
:
!
0
,
filename
:
"
_doc/barcode/
"
})},
scan
:
function
(
t
){
var
n
=
this
;
s
.
scan
(
t
,
function
(
e
,
t
,
a
){
n
.
scanSuccess
(
e
,
t
,
a
)},
function
(){
e
.
nativeUI
.
toast
(
"
识别失败
"
)},
this
.
filters
)},
cancel
:
function
(){
this
.
$refs
.
barcode
.
cancel
()},
gallery
:
function
(){
var
t
=
this
;
e
.
gallery
.
pick
(
function
(
e
){
t
.
scan
(
e
)},
function
(
t
){
12
!==
t
.
code
&&
e
.
nativeUI
.
toast
(
"
选择失败
"
)},{
multiple
:
!
1
,
system
:
!
1
})},
onmarked
:
function
(
e
){
var
t
=
e
.
detail
;
this
.
scanSuccess
(
t
.
code
,
t
.
message
,
t
.
file
)},
scanSuccess
:
function
(
e
,
t
,
n
){
this
.
postMessage
({
event
:
"
marked
"
,
detail
:{
scanType
:
u
[
e
],
result
:
t
,
charSet
:
"
utf8
"
,
path
:
n
||
""
}},
!
0
)},
onerror
:
function
(
e
){
this
.
postMessage
({
event
:
"
fail
"
,
message
:
JSON
.
stringify
(
e
)},
!
0
)},
setFlash
:
function
(){
this
.
enabledFlash
=!
this
.
enabledFlash
,
this
.
$refs
.
barcode
.
setFlash
(
this
.
enabledFlash
)}}};
t
.
default
=
l
}).
call
(
this
,
n
(
5
).
weexPlus
)},
function
(
e
,
t
){
e
.
exports
=
{
content
:{
flex
:
1
,
alignItems
:
"
center
"
,
justifyContent
:
"
center
"
},
barcode
:{
position
:
"
absolute
"
,
left
:
0
,
top
:
0
,
right
:
0
,
bottom
:
0
,
zIndex
:
1
},
"
set-flash
"
:{
alignItems
:
"
center
"
,
justifyContent
:
"
center
"
,
transform
:
"
translateY(80px)
"
,
zIndex
:
2
},
"
image-flash
"
:{
width
:
"
28
"
,
height
:
"
28
"
,
marginBottom
:
"
2
"
},
"
image-flash-text
"
:{
fontSize
:
"
12
"
,
color
:
"
#FFFFFF
"
}}},,,,,,,,,,
function
(
e
,
t
,
n
){
"
use strict
"
;
var
a
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
scroll-view
"
,{
staticStyle
:{
flexDirection
:
"
column
"
},
attrs
:{
scrollY
:
!
0
,
enableBackToTop
:
!
0
,
bubble
:
"
true
"
}},[
n
(
"
view
"
,{
staticClass
:[
"
content
"
]},[
n
(
"
barcode
"
,{
ref
:
"
barcode
"
,
staticClass
:[
"
barcode
"
],
attrs
:{
autostart
:
"
true
"
,
backgroud
:
e
.
backgroud
,
frameColor
:
e
.
frameColor
,
scanbarColor
:
e
.
scanbarColor
,
filters
:
e
.
filters
},
on
:{
marked
:
e
.
onmarked
,
error
:
e
.
onerror
}}),
n
(
"
view
"
,{
staticClass
:[
"
set-flash
"
],
on
:{
click
:
e
.
setFlash
}},[
n
(
"
u-image
"
,{
staticClass
:[
"
image-flash
"
],
attrs
:{
src
:
e
.
enabledFlash
?
e
.
flashImage1
:
e
.
flashImage0
,
resize
:
"
stretch
"
}}),
n
(
"
u-text
"
,{
staticClass
:[
"
image-flash-text
"
]},[
e
.
_v
(
e
.
_s
(
e
.
enabledFlash
?
"
轻触关闭
"
:
"
轻触照亮
"
))])],
1
)],
1
)])},
o
=
[];
n
.
d
(
t
,
"
a
"
,
function
(){
return
a
}),
n
.
d
(
t
,
"
b
"
,
function
(){
return
o
})},,,,
function
(
e
,
t
,
n
){
"
use strict
"
;
n
.
r
(
t
);
var
a
=
n
(
21
),
o
=
n
.
n
(
a
);
for
(
var
r
in
a
)
"
default
"
!==
r
&&
function
(
e
){
n
.
d
(
t
,
e
,
function
(){
return
a
[
e
]})}(
r
);
t
.
default
=
o
.
a
},,,,,,
function
(
e
,
t
,
n
){
"
use strict
"
;
n
.
r
(
t
);
n
(
6
);
var
a
=
n
(
11
);
a
.
default
.
mpType
=
"
page
"
,
a
.
default
.
route
=
"
__uniappscancode
"
,
a
.
default
.
el
=
"
#root
"
,
new
Vue
(
a
.
default
)}]);
\ No newline at end of file
packages/uni-cli-shared/template/__uniappes6.js
→
packages/uni-cli-shared/template/
v3/
__uniappes6.js
浏览文件 @
c71e3852
文件已移动
packages/uni-cli-shared/template/__uniappsuccess.png
→
packages/uni-cli-shared/template/
v3/
__uniappsuccess.png
浏览文件 @
c71e3852
文件已移动
packages/uni-cli-shared/template/__uniappview.html
→
packages/uni-cli-shared/template/
v3/
__uniappview.html
浏览文件 @
c71e3852
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
<body>
<body>
<div
id=
"app"
></div>
<div
id=
"app"
></div>
<script
src=
"__uniappes6.js"
></script>
<script
src=
"__uniappes6.js"
></script>
<script
src=
"view.umd.js"
></script>
<script
src=
"view.umd.
min.
js"
></script>
<script
src=
"app-view.js"
></script>
<script
src=
"app-view.js"
></script>
</body>
</body>
...
...
packages/vue-cli-plugin-hbuilderx/build/webpack.nvue.conf.js
浏览文件 @
c71e3852
...
@@ -164,10 +164,7 @@ rules.unshift({
...
@@ -164,10 +164,7 @@ rules.unshift({
if
(
process
.
env
.
UNI_USING_NATIVE
)
{
if
(
process
.
env
.
UNI_USING_NATIVE
)
{
plugins
.
push
(
new
WebpackUniMPPlugin
())
plugins
.
push
(
new
WebpackUniMPPlugin
())
let
nativeTemplatePath
=
path
.
resolve
(
let
nativeTemplatePath
=
path
.
resolve
(
__dirname
,
'
../../uni-cli-shared/template/common
'
)
process
.
env
.
UNI_HBUILDERX_PLUGINS
,
'
weapp-tools/template/v8-native
'
)
if
(
!
fs
.
existsSync
(
nativeTemplatePath
))
{
// 兼容旧版本
if
(
!
fs
.
existsSync
(
nativeTemplatePath
))
{
// 兼容旧版本
nativeTemplatePath
=
path
.
resolve
(
nativeTemplatePath
=
path
.
resolve
(
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录