123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- <!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/iconfont.css" />
- <link rel="stylesheet" type="text/css" href="../../css/aui-win.css" />
- <script src="../../script/jquery.min.js"></script>
- <style>
- div.screening {
- top: 70px;
- position: inherit;
- }
- div.screening > ul > li {
- line-height: 2.5 rem;
- }
- .slide {
- height: 200px
- }
- .slide li a {
- font-size: 1.1 rem;
- }
- </style>
- </head>
- <style>
- </style>
- <body>
- <header class="aui-bar aui-bar-nav aui-bar-info" id="aui-header">
- <a class="aui-btn aui-btn-info aui-pull-left" tapmode onclick="closeWin()"> <span class="aui-iconfont aui-icon-left"></span> </a>
- <div class="aui-title" id="aui-title">
- 商品列表
- </div>
- <a class="aui-btn aui-btn-info aui-pull-right" tapmode onclick="shaixuan()"><span class="icon iconfont icon-shaixuan" style="font-size: 18px;"></span></a>
- </header>
- <!-- current 为选中样式 -->
- </body>
- <script type="text/javascript" src="../../script/api.js"></script>
- <script type="text/javascript" src="../../script/vue.js"></script>
- <script type="text/javascript">
- function closeWin() {
- api.closeWin({
- });
- }
- var h = 0;
- apiready = function() {
- api.addEventListener({
- name : 'hideFrame'
- }, function(ret, err) {
- _this.$set(_this.btns[_this.btnIndex], "checked", false);
- })
- api.addEventListener({
- name : 'showInfo'
- }, function(ret, err) {
- // 打开选择规格页面
- api.openFrame({
- name : 'storeChoose_body',
- url : 'storeChoose_body.html',
- bounces :false,
- vScrollBarEnabled : false,
- hScrollBarEnabled : false,
- rect : {
- x : 0,
- y : 0,
- w : 'auto',
- h : 'auto'
- },
- pageParam : {
- info : JSON.stringify(ret.value.shopInfo),
- type : ret.value.type,
- agentId : ret.value.agentId
- },
- animation : {
- type : "movein", //动画类型(详见动画类型常量)
- subType : "from_bottom", //动画子类型(详见动画子类型常量)
- duration : 300 //动画过渡时间,默认300毫秒
- },
- bgColor : 'rgba(0,0,0,0)',
- })
- });
- 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;
- h = headerPos.h;
- api.openFrame({
- name : 'storeList1_body',
- url : 'storeList1_body.html',
- bounces : false,
- vScrollBarEnabled : false,
- hScrollBarEnabled : false,
- rect : {
- x : 0,
- y : headerPos.h,
- w : 'auto',
- h : 'auto'
- },
- bgColor : '#f5f5f5',
- pageParam : {
- h : h
- }
- })
- }
- function shaixuan(){
- api.sendEvent({
- name:'kucunjjs_body',
- extra : {
- f : 'kucunjjs_body',
- h : h
- }
- });
- }
- </script>
- </html>
|