Commit 258dd0d3 authored by hbcui1984's avatar hbcui1984

update manifest.json

parent f4c3e3d2
...@@ -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');
//设置主页面的底部留白,否则会被遮住; //设置主页面的底部留白,否则会被遮住;
......
...@@ -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": {
......
{ {
"@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": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment