searchtab01.html 2.57 KB
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="format-detection" content="telephone=no" />
    <meta name="msapplication-tap-highlight" content="no" />
    <!-- WARNING: for iOS 7, remove the width=device-width and height=device-height attributes. See https://issues.apache.org/jira/browse/CB-4323 -->
    <!-- <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" /> -->
    <meta content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" name="viewport" />
    <title>带tab的 搜索01</title>
    <link rel="stylesheet" href="../css/style/common-2.0.css">
    <link rel="stylesheet" href="../css/style/searchtab.css">

    <!-- base seajs -->
    <script type="text/javascript" src="http://static.nong12.com/static/newStatic/common/js/base/sea.js"></script>
    <!-- base jquery -->
    <script type="text/javascript" src="http://static.nong12.com/static/newStatic/common/js/base/jquery-2.1.3.min.js"></script>
</head>
    
<body id="serachtab">
    <div class="m-page">
        <header class="m-header header-light">
            <div class="head">
                <a href="#" class="lt-bar"><i class="m-icon icon-back white"></i></a>
                <ul class="m-tab" searchtab>
                    <li class="active" ><a href="javascript:;" data-target="tab-content-goods">商品</a></li>
                    <li class=""><a href="javascript:;" data-target="tab-content-store">店铺</i></a></li>
                </ul>
            </div>
        </header>
        <section class="m-content tab-content">
            <div id="tab-content-goods">
                <form class="m-form inline-form">
                    <input type="text" autocomplete="off" class="m-input" placeholder="输入要搜索的商品">
                    <button class="m-btn btn-success btn-search">搜 索</button>
                </form>
            </div>

            <div id="tab-content-store" class="m-hide">
                <form class="m-form inline-form">
                    <input type="text" autocomplete="off" class="m-input" placeholder="输入要搜索的店铺">
                    <button class="m-btn btn-success btn-search">搜 索</button>
                </form>
            </div>
        </section>
    </div>
    <script type="text/javascript" src="../js/javascript/common/config.js"></script>
    <script type="text/javascript">
        seajs.use( ['../js/javascript/search/searchtab.js']);
    </script>
</body>
</html>