doc_home_w.html 3.1 KB
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <script src="../../assets/js/fontsize.js"></script>
    <link rel="stylesheet" href="../../assets/css/api.css"/>
    <link rel="stylesheet" href="../../assets/css/index.css">
    <link rel="stylesheet" href="../../assets/css/doc.css">
    <link rel="stylesheet" href="../../assets/icon/iconfont.css">
</head>
<body>
<div id="app">
    <header id="header">
        <div class="index_header">
            <span class="iconfont icon-fanhui" @click="api.closeWin()"></span>
            <span>家庭医生</span>
            <span class="iconfont icon-fenxiang-tianchong" @click="share"></span>
        </div>
    </header>

</div>
</body>
</html>
<script type="text/javascript" src="../../assets/js/api.js"></script>
<script type="text/javascript" src="../../assets/js/public.js"></script>
<script type="text/javascript" src="../../assets/js/fastclick.js"></script>
<script>
    new FastClick(document.body);
</script>
<script type="text/javascript" src="../../assets/js/vue.min.js"></script>
<script type="text/javascript" src="../../assets/js/axios.min.js"></script>
<script type="text/javascript" src="../../assets/icon/iconfont.js"></script>
<script>
    var app = new Vue({
        el: '#app',
        data: {
            headerH: '',
            footerH: '',
            cid: ''
        },
        created: function () {
            apiready = function () {
                app.cid = api.pageParam.cid;
                $api.fixStatusBar($api.dom('header'));
                api.setStatusBarStyle({
                    style: 'dark'
                });
                app.headerH = $api.offset($api.dom('header')).h;
                api.openFrame({
                    name: 'doc_home_f',
                    url: './doc_home_f.html',
                    bounces: false,
                    rect: {
                        x: 0,
                        y: app.headerH,
                        w: api.frameWidth,
                        h: api.winHeight - app.headerH
                    },
                    pageParam: {
                        cid: app.cid,
                        cityname: app.cityname
                    }
                });
            }
        },
        methods: {
            share: function () {
                api.openFrame({
                    bgColor: 'rgba(0,0,0,0.05)',
                    name: 'share',
                    url: '../common/share.html',
                    bounces: false,
                    animation: {
                        type: "push",
                        subType: "from_bottom",
                        duration: 300
                    },
                    rect: {
                        x: 0,
                        y: 0,
                        w: 'auto',
                        h: 'auto'
                    }
                });
            },
        }
    })
</script>