Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mui
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mui
Commits
258dd0d3
Commit
258dd0d3
authored
Jul 15, 2015
by
hbcui1984
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update manifest.json
parent
f4c3e3d2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
12 deletions
+43
-12
examples/hello-mui/examples/ad.html
examples/hello-mui/examples/ad.html
+23
-4
examples/hello-mui/manifest.json
examples/hello-mui/manifest.json
+9
-3
examples/login/manifest.json
examples/login/manifest.json
+11
-5
No files found.
examples/hello-mui/examples/ad.html
View file @
258dd0d3
...
@@ -44,10 +44,29 @@
...
@@ -44,10 +44,29 @@
url
+=
'
&pss=
'
+
width
+
'
x0
'
;
url
+=
'
&pss=
'
+
width
+
'
x0
'
;
url
+=
'
&rsi0=
'
+
width
+
'
&rsi1=
'
+
adHeight
;
url
+=
'
&rsi0=
'
+
width
+
'
&rsi1=
'
+
adHeight
;
url
+=
'
&ti=
'
+
title
;
url
+=
'
&ti=
'
+
title
;
var
ad
=
plus
.
webview
.
create
(
url
,
'
ad
'
,{
height
:
adHeight
+
'
px
'
,
bottom
:
'
0px
'
});
ad
.
addEventListener
(
'
loaded
'
,
function
()
{
ad
.
show
(
'
slide-in-bottom
'
);
var
adBottom
=
mui
.
os
.
ios
?(
'
-
'
+
adHeight
+
'
px
'
):
'
0
'
;
});
var
ad
=
plus
.
webview
.
create
(
url
,
'
ad
'
,{
height
:
adHeight
+
'
px
'
,
bottom
:
adBottom
});
//目前Android平台不支持子webview的setStyle动画,因此分平台处理;
if
(
mui
.
os
.
ios
){
//为了支持iOS平台左侧边缘滑动关闭页面,需要append进去;
plus
.
webview
.
currentWebview
().
append
(
ad
);
ad
.
addEventListener
(
'
loaded
'
,
function
()
{
ad
.
setStyle
({
bottom
:
'
0
'
,
transition
:
{
duration
:
150
}
});
});
}
else
{
ad
.
addEventListener
(
'
loaded
'
,
function
()
{
ad
.
show
(
'
slide-in-bottom
'
);
});
}
ad
.
appendJsFile
(
'
_www/js/ad.js
'
);
ad
.
appendJsFile
(
'
_www/js/ad.js
'
);
//设置主页面的底部留白,否则会被遮住;
//设置主页面的底部留白,否则会被遮住;
...
...
examples/hello-mui/manifest.json
100644 → 100755
View file @
258dd0d3
...
@@ -39,9 +39,6 @@
...
@@ -39,9 +39,6 @@
"Storage"
:
{
"Storage"
:
{
"description"
:
"管理应用本地数据"
"description"
:
"管理应用本地数据"
},
},
"UI"
:
{
"description"
:
"管理系统原生控件"
},
"Runtime"
:
{
"Runtime"
:
{
"description"
:
"访问运行期环境"
"description"
:
"访问运行期环境"
},
},
...
@@ -53,6 +50,15 @@
...
@@ -53,6 +50,15 @@
},
},
"Zip"
:
{
"Zip"
:
{
"description"
:
"文件压缩与解压缩"
"description"
:
"文件压缩与解压缩"
},
"Webview"
:{
"description"
:
"窗口管理"
},
"NativeUI"
:{
"description"
:
"原生UI控件"
},
"Navigator"
:{
"description"
:
"浏览器信息"
}
}
},
},
"plus"
:
{
"plus"
:
{
...
...
examples/login/manifest.json
100644 → 100755
View file @
258dd0d3
{
{
"@platforms"
:
[
"android"
,
"iPhone"
,
"iPad"
],
"@platforms"
:
[
"android"
,
"iPhone"
,
"iPad"
],
"id"
:
"
H583F81D0
"
,
/*应用的标识,创建应用时自动生成,勿手动修改*/
"id"
:
"
mui-login-setting
"
,
/*应用的标识,创建应用时自动生成,勿手动修改*/
"name"
:
"
login-demo
"
,
/*应用名称,程序桌面图标名称*/
"name"
:
"
mui-login-setting
"
,
/*应用名称,程序桌面图标名称*/
"version"
:
{
"version"
:
{
"name"
:
"1.0.0"
,
/*应用版本名称*/
"name"
:
"1.0.0"
,
/*应用版本名称*/
"code"
:
"83"
"code"
:
"83"
...
@@ -68,9 +68,6 @@
...
@@ -68,9 +68,6 @@
"Storage"
:
{
"Storage"
:
{
"description"
:
"管理应用本地数据"
"description"
:
"管理应用本地数据"
},
},
"UI"
:
{
"description"
:
"管理系统原生控件"
},
"Uploader"
:
{
"Uploader"
:
{
"description"
:
"管理文件上传任务"
"description"
:
"管理文件上传任务"
},
},
...
@@ -103,6 +100,15 @@
...
@@ -103,6 +100,15 @@
},
},
"Statistic"
:
{
"Statistic"
:
{
"description"
:
"管理统计插件"
"description"
:
"管理统计插件"
},
"Webview"
:{
"description"
:
"窗口管理"
},
"NativeUI"
:{
"description"
:
"原生UI控件"
},
"Navigator"
:{
"description"
:
"浏览器信息"
}
}
},
},
"plus"
:
{
"plus"
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment