shop_detail.html 10.2 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>地利店铺--店铺详情</title>
    <link rel="stylesheet" href="../css/style/common.css">
    <link rel="stylesheet" href="../css/style/jquery.scrollz.css">
    <link rel="stylesheet" href="../css/style/shop_detail.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 class="shopDetail">
    <div class="m-page">
        <header class="m-header header-light">
            <div class="head">
                <a href="javascript:history.go(-1);" class="lt-bar m-icon icon-back">返回</a>
                <h1>地利店铺</h1>
                <a href="#" class="rt-bar m-icon icon-more">更多</a>
            </div>
        </header>
        <section class="m-content">
            <div class="top">
                <div class="shop">
                    <a href="shop_profile.html">
                        <img src="../temp/pic_fq@2x.png" alt="" class="cover">
                        <h3>生鲜一号店</h3>
                        <p>经营类目:海鲜水产</p>
                    </a>
                </div>
                <div class="user-tools">
                    <ul class="clearfix">
                        <li class="br">
                            <a href="user-follow.html">
                                <span class="m-icon icon-call white"></span>
                                <p>立即联系</p>
                            </a>
                        </li>
                        <!--<li class="br">-->
                            <!--<a href="user-collection.html">-->
                                <!--<span class="m-icon icon-scan white"></span>-->
                                <!--<p>店铺二维码</p>-->
                            <!--</a>-->
                        <!--</li>-->
                        <li>
                            <a href="#">
                                <span class="m-icon icon-fav white"></span>
                                <p>收藏店铺</p>
                            </a>
                        </li>
                    </ul>
                </div>
            </div>
            <ul class="m-tab">
                <li class="on"><a href="javascript:;">最新上架</a></li>
                <li><a href="javascript:;">全部商品</a></li>
            </ul>
            <div class="targets" id="targets">
                <ul class="m-table-view" id="content" style="height:555px;">
                    <li class="cell cell-extend-pic">
                        <a href="product_detail.html">
                            <img src="../temp/pic_hlb@2x.png" width="80" height="80" alt="" class="pic">
                            <h3 class="title">西红柿 产地山东潍坊市提货点西红柿 ...</h3>
                            <p class="btm"><em>0.9元/斤</em></p>
                        </a>
                    </li>
                    <li class="cell cell-extend-pic">
                        <a href="product_detail.html">
                            <img src="../temp/pic_fq@2x.png" width="80" height="80" alt="" class="pic">
                            <h3 class="title">西红柿 产地山东潍坊市提货点西红柿 ...</h3>
                            <p class="btm"><em>0.9元/斤</em></p>
                        </a>
                    </li>
                    <li class="cell cell-extend-pic">
                        <a href="product_detail.html">
                            <img src="../images/user-home.png" width="80" height="80" alt="" class="pic">
                            <h3 class="title">西红柿 产地山东潍坊市提货点西红柿 ...</h3>
                            <p class="btm"><em>0.9元/斤</em></p>
                        </a>
                    </li>
                    <li class="cell cell-extend-pic">
                        <a href="product_detail.html">
                            <img src="../temp/pic_fq@2x.png" width="80" height="80" alt="" class="pic">
                            <h3 class="title">西红柿 产地山东潍坊市提货点西红柿 ...</h3>
                            <p class="btm"><em>0.9元/斤</em></p>
                        </a>
                    </li>
                    
                    <li class="cell cell-extend-pic">
                        <a href="product_detail.html">
                            <img src="../images/user-home.png" width="80" height="80" alt="" class="pic">
                            <h3 class="title">西红柿 产地山东潍坊市提货点西红柿 ...</h3>
                            <p class="btm"><em>0.9元/斤</em></p>
                        </a>
                    </li>
                </ul>
                <ul class="m-table-view m-hide">
                    <li class="cell cell-extend-pic">
                        <a href="product_detail.html">
                            <img src="../temp/pic_hlb@2x.png" width="80" height="80" alt="" class="pic">
                            <h3 class="title">西红柿 产地山东潍坊市提货点西红柿 ...</h3>
                            <p class="btm"><em>0.9元/斤</em></p>
                        </a>
                    </li>
                    <li class="cell cell-extend-pic">
                        <a href="product_detail.html">
                            <img src="../temp/pic_fq@2x.png" width="80" height="80" alt="" class="pic">
                            <h3 class="title">西红柿 产地山东潍坊市提货点西红柿 ...</h3>
                            <p class="btm"><em>0.9元/斤</em></p>
                        </a>
                    </li>
                    <li class="cell cell-extend-pic">
                        <a href="product_detail.html">
                            <img src="../images/user-home.png" width="80" height="80" alt="" class="pic">
                            <h3 class="title">西红柿 产地山东潍坊市提货点西红柿 ...</h3>
                            <p class="btm"><em>0.9元/斤</em></p>
                        </a>
                    </li>
                    <li class="cell cell-extend-pic">
                        <a href="product_detail.html">
                            <img src="../images/user-home.png" width="80" height="80" alt="" class="pic">
                            <h3 class="title">西红柿 产地山东潍坊市提货点西红柿 ...</h3>
                            <p class="btm"><em>0.9元/斤</em></p>
                        </a>
                    </li>
                    <li class="cell cell-extend-pic">
                        <a href="product_detail.html">
                            <img src="../images/user-home.png" width="80" height="80" alt="" class="pic">
                            <h3 class="title">西红柿 产地山东潍坊市提货点西红柿 ...</h3>
                            <p class="btm"><em>0.9元/斤</em></p>
                        </a>
                    </li>
                </ul>
            </div>
        </section>
    </div>
    <!-- // <script type="text/javascript" src="../js/javascript/common/config.js"></script> -->
    <script src="../temp/jquery-1.9.1.min.js"></script>
    <script src="../js/javascript/common/dragloader.js"></script>
    <script>
    $(function() {
        $('.m-tab').on('click', 'li', function(e) {
            e.preventDefault();
            $(this).addClass('on').siblings().removeClass('on');
            $('.targets').children().eq($(this).index()).removeClass('m-hide').siblings().addClass('m-hide');
            $('.m-footer .m-btn').eq($(this).index()).removeClass('m-hide').siblings().addClass('m-hide');
        });

        (function() {
                var dragger = new DragLoader(document.getElementsByClassName('targets')[0], {
                    dragDownRegionCls: 'latest',
                    dragUpRegionCls: 'more',
                    dragDownHelper: function(status) {
                        if (status == 'default') {
                            return '<div>向下拉加载最新</div>';
                        } else if (status == 'prepare') {
                            return '<div>释放刷新</div>';
                        } else if (status == 'load') {
                            return '<div>加载中...</div>';
                        }
                    },
                    dragUpHelper: function(status) {
                        if (status == 'default') {
                            return '<div>向上拉加载更多</div>';
                        } else if (status == 'prepare') {
                            return '<div>释放刷新</div>';
                        } else if (status == 'load') {
                            return '<div>加载中...</div>';
                        }
                    }
                });
                dragger.on('dragDownLoad', function() {
                    setTimeout(function() {
                        // 无论何时,必须由业务功能主动调用reset()接口,以还原状态
                        // 比如在onDragDownLoad()回调中使用ajax加载数据时,在ajax的回调函数中应当调用reset()重置drag状态
                        // 如果不重置,drag操作将失效
                        dragger.reset();
                    }, 2000);
                });
                dragger.on('dragUpLoad', function() {
                    setTimeout(function() {
                        dragger.reset();
                    }, 2000);
                });
            })();

    });
    </script>
</body>

</html>