order_see.html 2.8 KB
<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <include file="public@head_common"/>
    <link rel="stylesheet" type="text/css" href="__TMPL__/public/mobile/css/pay/my_pay.css" />
    <link rel="stylesheet" type="text/css" href="__TMPL__/public/mobile/css/augly.css" />
    <title>物流单号查询</title>
    <style type="text/css">

    </style>
</head>

<body>
<div class="test_num"></div>
<div class="header">
    <div class="return">
        <span class="back_href">
            <i class="iconfont icon-jiantou-copy"></i>返回
        </span>
    </div>
    物流单号查询
</div>
<div class="header_place"></div>
<!--banner-->
<div class="banner">
    <img src="{:cmf_get_asset_url($slide['image'])}" />
</div>

<div class="see_order">
    <div class="public_input">
        <p class="public_tit">收货人电话</p>
        <input type="text" name="keyword" id="keyword" value="" class="public_detail" placeholder="请输入收货人电话" />
    </div>
    <div class="btn_s">
        查 询
    </div>
</div>

<include file="public@footer"/>
<script type="text/javascript">
    $('.change_close').click(function(){
        $('.mask').hide()
    });
    $('.buy_btn').click(function(){
        $('.mask').show()
    });
    $('.btn_s').click(function(){
        var keyword = $('input[name=keyword]').val();
        if(keyword.length == 0) {
            _error('请输入关键字');
            return false;
        }
        var url = "{:url('portal/Order/search')}";
        var url_array = url.split('.');
        var param = '/keyword/' + $('input[name=keyword]').val();
        var export_url = url_array[0] + param + '.' + url_array[1];
        window.location.href = export_url;
    });

    // 弹窗提示
    var popup_switch = true;
    function _error(test) {
        if(popup_switch) {
            popup_switch = false;
            $('.test_num').html(test);
            $('.test_num').removeClass('Augly-fadeout');
            $('.test_num').addClass('Augly-fadein');
            $('.test_num').show();
            setTimeout(function() {
                $('.test_num').removeClass('Augly-fadein');
                $('.test_num').addClass('Augly-fadeout');
                popup_switch = true
            }, 1500)
        } else {
            popup_switch = true
        }
    }


    //安卓手机弹出框出现顶上去的效果
    var flag = false;
    $("#keyword").focus(function(){
        flag = true;
    });
    window.onresize = function(){
        if(flag){
            $(".footer").css({"position":"initial"});
            flag = false;

        }else {
            $(".footer").css({"position":"fixed"});
            // alert(document.activeElement.id)
            if(document.activeElement.id == "keyword"){
                flag = true;
            };
        };

    };
</script>
</body>

</html>