| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227 | <!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" />    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">    <title></title>    <link rel="stylesheet" type="text/css" href="./css/api.css" />    <link rel="stylesheet" type="text/css" href="./css/style.css?v=1.2" />    <style>        html,body{height:100%;padding:0px;margin: 0 auto;text-align: center;}        .adv {            height: 100vh;            background-size: auto 100%;            background-repeat: no-repeat;            background-position: center;        }        .weui-btn {            position: relative;            display: block;            width: 184px;            margin-left: auto;            margin-right: auto;            padding: 8px 24px;            box-sizing: border-box;            font-weight: 700;            font-size: 17px;            text-align: center;            text-decoration: none;            color: #FFFFFF;            line-height: 1.41176471;            border-radius: 4px;            -webkit-tap-highlight-color: rgba(0, 0, 0, 0);            overflow: hidden;        }        .weui-btn_mini {            display: inline-block;            width: auto;            padding: 0 0.75em;            line-height: 2;            font-size: 0.32rem;            background: #888;            position: fixed;            z-index: 1;            top: 1.2rem;            right: 0.3rem;        }     </style>    <script>    (function(w, d, m) {        function r() {            var t = 100,                o = 750,                e = d.documentElement.clientWidth || w.innerWidth,                n = m.max(m.min(e, 480), 320),                h = 50;            320 >= n && (h = m.floor(n / o * t * .99)),                n > 320 && 362 >= n && (h = m.floor(n / o * t * 1)),                n > 362 && 375 >= n && (h = m.floor(n / o * t * 1)),                n > 375 && (h = m.floor(n / o * t * .97)),                d.querySelector("html").style.fontSize = h + "px"        };        r();        w.onresize = function() {            r()        }    })(window, document, Math);    </script></head><body>    <div class="topbar"></div>    <div class="adv"></div>    <a href="javascript:redirectIndex();" class="weui-btn weui-btn_mini">跳 过</a></body><script type="text/javascript" src="./script/api.js"></script><script type="text/javascript" src="./script/jquery.min.js"></script><script type="text/javascript" src="./script/jquery.tap.js"></script><script type="text/javascript">var _myalias = '';apiready = function() {    redirectAdv();    // setTimeCloseWin("adv");    setTimeout(function(){        redirectIndex();        setTimeCloseWin("adv");    }, 6000)};function redirectAdv() {    $.ajax({        url: siteurl + 'v2/entry/boot_adv',        dataType: 'json',        type: 'post',        success: function(datas) {            if (datas.result) {                if (datas.data.enable == 1) {                    $('.adv').attr('style', 'background-image: url('+siteurl+'/uploads/home/adv/'+datas.data.images+')');                    $('.adv').attr('type', datas.data.target.type);                    $('.adv').attr('store_id', datas.data.target.store_id);                    $('.adv').attr('goods_id', datas.data.target.goods_id);                    $('.adv').attr('article_id', datas.data.target.article_id);                    return false;                } else {                    redirectIndex();                }            } else {                errcode(datas, datas.code);                return false;            }        }    });}$(".adv").on("tap", function() {    var _type = $('.adv').attr('type');    // redirectIndex();    switch (_type) {        case 'goods':            var _goods_id = $('.adv').attr('goods_id');            var _store_id = $('.adv').attr('store_id');            console.log(_goods_id, _store_id)            to_goods_id(_goods_id, _store_id);            setTimeCloseWin("adv");            break;        case 'store':            var _store_id = $('.adv').attr('store_id');            console.log(_store_id);            to_store_id(_store_id);            setTimeCloseWin("adv");            break;        case 'article':            var _article_id = $('.adv').attr('article_id');            console.log(_article_id);            to_article_id(_article_id);            setTimeCloseWin("adv");            break;    }});function redirectSlide() {    api.openWin({        name: 'slide',        url: 'slide.html',        bounces: false    });}function redirectLogin() {    api.openWin({        name: 'login',        url: 'login.html',        bounces: false    });}function redirectIndex() {    api.openWin({        name: 'index',        url: 'index.html',        bounces: false    });}function redirectHotIndex() {    api.openWin({        name: 'hotelindex',        url: './html/hotel/index.html',        bounces: false    });}function redirectagent() {    api.openWin({        name: 'agentindex',        url: './html/agent/index.html',        bounces: false    });}function to_article_id(_adv_article_id) {    // body...    api.openWin({        name: 'finddetails',        url: './html/find/finddetails.html',        bounces: false,        pageParam: {            keyid: _adv_article_id        }    });    $('.weui-gallery').hide();    return false;}function to_goods_id(_adv_goods_id, _storeid) {    // body...    api.openWin({        name: 'showgoods',        url: './html/home/showgoods.html',        bounces: false,        pageParam: {            keyid: _adv_goods_id,            storeid: _storeid        }    });    $('.weui-gallery').hide();    return false;}function to_store_id(_adv_store_id) {    // body...    api.openWin({        name: 'hoteldtl',        url: './html/home/hoteldtl.html',        bounces: false,        pageParam: {            keyid: _adv_store_id        }    });    $('.weui-gallery').hide();    return false;}</script></html>
 |