github.com/jincm/wesharechain@v0.0.0-20210122032815-1537409ce26a/app/html/near/add_update_win.html (about)

     1  <!doctype html>
     2  <html>
     3  	<head>
     4  		<meta charset="utf-8">
     5  		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
     6  		<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
     7  		<title>附近动态</title>
     8  		<link rel="stylesheet" type="text/css" href="../../css/api.css" />
     9  		<link rel="stylesheet" type="text/css" href="../../css/aui/aui-win.css" />
    10  		<style type="text/css">
    11  		</style>
    12  	</head>
    13  	<body>
    14  		<header class="aui-bar aui-bar-nav aui-bar-dark" id="aui-header">
    15  			<a class="aui-pull-left"> </a>
    16  			<div class="aui-title">
    17  				发布动态
    18  			</div>
    19  		</header>
    20  	</body>
    21  	<script type="text/javascript" src="../../script/api.js"></script>
    22  	<script type="text/javascript">
    23  		// 解决状态栏重合,并优化fixStatusBar代码,Android4.4版本以上添加25px
    24  		function fixStatusBar(headerid, callback) {
    25  			var header = $api.byId(headerid);
    26  			var systemType = api.systemType;
    27  			var systemVersion = parseFloat(api.systemVersion);
    28  			if (systemType == "ios" || (systemType == "android" && systemVersion >= 4.4)) {
    29  				if (systemType == "android") {
    30  					header.style.paddingTop = '25px';
    31  				}
    32  				$api.fixStatusBar(header);
    33  			} else {
    34  				$api.fixIos7Bar(header);
    35  			}
    36  			var headerPos = $api.offset(header);
    37  			if ( typeof callback == "function") {
    38  				callback(headerPos);
    39  			}
    40  		}
    41  
    42  		apiready = function() {
    43  			fixStatusBar("aui-header", function(headerPos) {
    44  				//console.log("winName is " + api.winName);
    45  				//console.log("frameName is " + api.frameName);
    46  				// 操作功能列表页面
    47  				api.openFrame({
    48  					name : 'add_update_frame',
    49  					url : '../../html/near/add_update_frame.html',
    50  					rect : {
    51  						x : 0,
    52  						y : headerPos.h,
    53  						w : api.winWidth,
    54  						h : api.winHeight - headerPos.h
    55  					},
    56  					pageParam : {},
    57  					bounces : false,
    58  					vScrollBarEnabled : false,
    59  					hScrollBarEnabled : false
    60  				});
    61  			});
    62  		};
    63  	</script>
    64  </html>