<hi:common_wapheader runat="server" />
<p class="text-center list-empty hide" id="empty">
    没有找到相关文章
</p>
<div class="pbox" id="articlelistContainer">
    <div class="articledetail clearfix" id="articledetail">

        <div class="cssborder">
            <h2 class="h2">
                <%<asp:Literal runat="server" ID="litArticleTitle" />%>
            </h2>
            <div class="art_add_date">
                发布日期：<span class="cORed"><%<Hi:FormatedTimeLabel ID="litArticleAddedDate" runat="server" />%></span>
                <%%>
                <strong class="spanB" style="cursor: pointer;" id="retcategory">【返回列表】 </strong>
            </div>
            <div style="display: none;">
                摘要：<%<asp:Literal runat="server" ID="litArticleDescription" />%>
            </div>
            <div class="art_add_c">
                <%<asp:Literal runat="server" ID="litArticleContent" />%>
            </div>
        </div>
        <div class="csspage_content">
            <b>
                <%<asp:Label ID="lblFront" runat="server" Text="上一篇文章："></asp:Label>%><a target="_self"
                                                                                         runat="server" id="front"><%<asp:Label ID="lblFrontTitle" runat="server"></asp:Label>%></a>
            </b>
            <div>
                <%<asp:Label ID="lblNext" runat="server" Text="下一篇文章："></asp:Label>%><a target="_self"
                                                                                        runat="server" id="next">
                    <%<asp:Label ID="lblNextTitle" runat="server"></asp:Label>%>
                </a>
            </div>
        </div>
    </div>
</div>
< value="" runat="server" clientidmode="static" id="txtCatgoryId" />
<hi:common_wapfooter runat="server" />

<script type="text/javascript">
    $(function () {
        $("#retcategory").click(function (e) {
            var CategoryId = 0;
            CategoryId = parseInt($("#txtCatgoryId").val());
            if (isNaN(CategoryId)) CategoryId = 0;
            document.location.href = "/WapShop/Articles.aspx?CategoryId=" + CategoryId;
        });

        if ($('#articledetail .detail').html().length == 0) {

            $('#articledetailContainer').addClass('hide');
            $('#empty').removeClass('hide');
        }
    });
    $(".hfooter .glyphicon-refresh").click(function () {
        location.reload();
    })

    $(".hfooter .glyphicon-arrow-left").click(function () {
        history.go(-1);
    })

    //隐藏右上角菜单
    document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
        WeixinJSBridge.call('hideOptionMenu');
    });

    //隐藏底部菜单
    document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
        WeixinJSBridge.call('hideToolbar');
    });


    function goUrl(url) {
        //        alert(url);
        //location.replace(url);
        location.href = url;

    }


</script>
