|
@@ -118,9 +118,20 @@
|
|
|
<div class="show_iframe">
|
|
|
<div style="display: none" class="loading"></div>
|
|
|
<%--<iframe scrolling="yes" frameborder="0" src="${pageContext.request.contextPath }/admin/orderStatistics/_sales_order_statistics"></iframe>--%>
|
|
|
- <iframe scrolling="yes" frameborder="0" src="${pageContext.request.contextPath }/common/admin/welcome/welcome.html"></iframe>
|
|
|
+ <iframe id="indexframe" scrolling="yes" frameborder="0" src="${pageContext.request.contextPath }/common/admin/welcome/welcome.html"></iframe>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
+ <div id="selectTodo" class="menu_dropdown bk_2" style="display:none">
|
|
|
+ <div>
|
|
|
+ <%--<a data-id="${pageContext.request.contextPath }/admin/order/selectShopOrder?orderStatus=paySuccess" data-title="订单管理" href="javascript:;" class="J_menuTab" ><span>(</span><span id="sendTheGoods" style="color: #f00">0</span><span>)待发货订单</span></a><br>--%>
|
|
|
+ <a onclick="toOrserList('${pageContext.request.contextPath }/admin/order/selectShopOrder?orderStatus=paySuccess')" ><span>(</span><span id="sendTheGoods" style="color: #f00">0</span><span>)待发货订单</span></a><br>
|
|
|
+ <a onclick="toOrserList('${pageContext.request.contextPath }/admin/order/selectShopOrder?orderStatus=returnOrder')" ><span>(</span><span id="returnGoods" style="color: #f00">0</span><span>)申请退款订单</span></a><br>
|
|
|
+ <a onclick="toOrserList('${pageContext.request.contextPath }/admin/order/selectShopOrder?orderStatus=returnOrderEtc')" ><span>(</span><span id="returnRefund" style="color: #f00">0</span><span>)申请退货订单</span></a><br>
|
|
|
+ <a onclick="toOrserList('${pageContext.request.contextPath }/admin/order/selectShopOrder?orderStatus=inOrder')" ><span>(</span><span id="exchange" style="color: #f00">0</span><span>)申请换货订单</span></a>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
</section>
|
|
|
<script type="text/javascript"
|
|
|
src="${pageContext.request.contextPath }/common/admin/lib/jquery/1.9.1/jquery.min.js"></script>
|
|
@@ -130,6 +141,60 @@
|
|
|
src="${pageContext.request.contextPath }/common/admin/js/H-ui.js"></script>
|
|
|
<script type="text/javascript"
|
|
|
src="${pageContext.request.contextPath }/common/admin/js/H-ui.admin.js"></script>
|
|
|
-
|
|
|
+
|
|
|
+<script>
|
|
|
+
|
|
|
+
|
|
|
+ $.ajax({
|
|
|
+ "type" : "post",
|
|
|
+ "url" : "/admin/order/selectTodo",
|
|
|
+ "dataType" : "json",
|
|
|
+ async:false,
|
|
|
+ "success" : function(data) {
|
|
|
+ if(data.status){
|
|
|
+ $("#sendTheGoods").html(data.data.sendTheGoods);
|
|
|
+ $("#returnGoods").html(data.data.returnGoods);
|
|
|
+ $("#returnRefund").html(data.data.returnRefund);
|
|
|
+ $("#exchange").html(data.data.exchange);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "error":function(data){
|
|
|
+ alert("操作失败,请联系管理员!");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ //页面层
|
|
|
+ layer.open({
|
|
|
+ type: 1,
|
|
|
+ area: ['300px', '180px'], //宽高
|
|
|
+ content: $("#selectTodo").html(),
|
|
|
+ offset: 'rb',
|
|
|
+ shade: 0
|
|
|
+ });
|
|
|
+ function toOrserList(url){
|
|
|
+ $("#min_title_list li").remove();
|
|
|
+ $("#min_title_list").append('<li class="active"><span data-href="/admin/order/selectShopOrder">订单管理</span><i></i><em></em></li>')
|
|
|
+
|
|
|
+ $("#indexframe").attr("src",url);
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ function Hui_admin_tab(obj){
|
|
|
+ if($(obj).attr('_href')){
|
|
|
+ var bStop=false;
|
|
|
+ var bStopIndex=0;
|
|
|
+ var _href = $(obj).attr('_href');
|
|
|
+ _href += "?" + index++;
|
|
|
+ var topWindow=$(window.parent.document);
|
|
|
+ var childs = obj.parentNode.parentNode.childNodes;//获得爷爷辈的节点
|
|
|
+ for (var i = childs.length - 1; i >= 0; i--) {//清除所有父节点级所有样式
|
|
|
+ childs[i].className = "";
|
|
|
+ }
|
|
|
+ obj.parentNode.className="current";//把自己爹样式设置上
|
|
|
+ var iframe_box=topWindow.find("#iframe_box");//获取Iframe
|
|
|
+ iframe_box.find(".show_iframe").hide().eq(bStopIndex).show().find("iframe").attr("src",_href);//将连接的网页装载到Iframe
|
|
|
+ }
|
|
|
+ }
|
|
|
+</script>
|
|
|
</body>
|
|
|
</html>
|