Commit 258dd0d3 authored by hbcui1984's avatar hbcui1984

update manifest.json

parent f4c3e3d2
......@@ -44,10 +44,29 @@
url += '&pss='+width+'x0';
url += '&rsi0='+width+'&rsi1='+adHeight;
url += '&ti='+title;
var ad = plus.webview.create(url,'ad',{height:adHeight+'px',bottom:'0px'});
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');
//设置主页面的底部留白,否则会被遮住;
......
......@@ -39,9 +39,6 @@
"Storage": {
"description": "管理应用本地数据"
},
"UI": {
"description": "管理系统原生控件"
},
"Runtime": {
"description": "访问运行期环境"
},
......@@ -53,6 +50,15 @@
},
"Zip": {
"description": "文件压缩与解压缩"
},
"Webview":{
"description": "窗口管理"
},
"NativeUI":{
"description": "原生UI控件"
},
"Navigator":{
"description": "浏览器信息"
}
},
"plus": {
......
{
"@platforms": ["android", "iPhone", "iPad"],
"id": "H583F81D0",/*应用的标识,创建应用时自动生成,勿手动修改*/
"name": "login-demo",/*应用名称,程序桌面图标名称*/
"id": "mui-login-setting",/*应用的标识,创建应用时自动生成,勿手动修改*/
"name": "mui-login-setting",/*应用名称,程序桌面图标名称*/
"version": {
"name": "1.0.0",/*应用版本名称*/
"code": "83"
......@@ -68,9 +68,6 @@
"Storage": {
"description": "管理应用本地数据"
},
"UI": {
"description": "管理系统原生控件"
},
"Uploader": {
"description": "管理文件上传任务"
},
......@@ -103,6 +100,15 @@
},
"Statistic": {
"description": "管理统计插件"
},
"Webview":{
"description": "窗口管理"
},
"NativeUI":{
"description": "原生UI控件"
},
"Navigator":{
"description": "浏览器信息"
}
},
"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