123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
- <title>Hello APP</title>
- <link rel="stylesheet" type="text/css" href="../css/api.css" />
- <link rel="stylesheet" type="text/css" href="../css/aui-win.css" />
- <link rel="stylesheet" type="text/css" href="css/countdown.css"/>
- <script type="text/javascript" src="../script/api.js"></script>
- <script type="text/javascript" src="../script/httpRequest.js"></script>
- <script src="js/countdown.js"></script>
- </head>
- <style>
- .times{
- display: flex;
- align-items: center;
- font-size:.8rem;
- flex-direction: row;
- color: black;
- }
- .times .hh,.mm,.ss{
- background-color: black;
- color: #ffffff
- }
- </style>
- <body >
- <header class="aui-bar aui-bar-nav aui-bar-info" id="aui-header" style="background-image: url(./image/promotion_bg.png)" >
- <a class="aui-btn aui-btn-info aui-pull-left" tapmode onclick="closeWin()"> <span class="aui-iconfont aui-icon-left" style="color: #666666 !important"></span> </a>
- <div class="aui-title" id="aui-title" style="text-align: left;left:40px">
- <img src="./image/promotion_title.png" style="width:4rem;height:1rem" >
- </div>
- <div style="position: absolute;right:20px">
- <div class="times">
- <div>截至日期:2021/11/11 </div>
-
- </div>
- </div>
- </header>
- </body>
- <script type="text/javascript" src="../script/api.js"></script>
- <script type="text/javascript">
- function closeWin() {
- api.closeWin({
- });
- }
- function downTime(){
- var o = {
- el : 'time',
- st : 0,
- ed : 5400000,
- hh: 'hh',
- mm: 'mm',
- ss: 'ss',
- ms: 'ms'
- }
- var d = new countdown(o);
- d.downsElement();
- }
- function init(){
- // downTime();
- }
- apiready = function() {
- api.parseTapmode();
- var header = $api.byId('aui-header');
- $api.fixStatusBar(header);
- var headerPos = $api.offset(header);
- var body_h = $api.offset($api.dom('body')).h;
- api.openFrame({
- name : 'promotion_body',
- url : 'promotion_body.html',
- bounces : false,
- vScrollBarEnabled : false,
- hScrollBarEnabled : false,
- rect : {
- x : 0,
- y : headerPos.h,
- w : 'auto',
- h : 'auto'
- },
- bgColor:'#f5f5f5',
- });
-
-
- };
- </script>
- </html>
|