zhangxinlei1996 vor 6 Jahren
Ursprung
Commit
9cf8843d19

+ 2 - 11
core/src/web/templates/manage/dataExport.html

@@ -44,11 +44,12 @@
 							{{if .T.res.order_status}}
 							{{if eq .T.res.order_status "已支付"}}
 							<li class="row-list nofloat">支付时间:{{.T.res.pay_time}}</li>
+							<li class="row-list nofloat">微信支付单号:{{.T.wxpay.transaction_id}}</li>
 							{{else}}
 							<li class="row-list nofloat">支付时间:-</li>
+							<li class="row-list nofloat">微信支付单号:-</li>
 							{{end}}
 							{{end}}
-							<li class="row-list nofloat">微信支付单号:{{.T.wxpay.transaction_id}}</li>
 						</ul>
 						<div class="line"></div>
 						<ul class="row second"  style="margin-top:20px  !important;">
@@ -226,14 +227,4 @@
 		</div>
 		{{include "/common/bottom.html"}}
 	</body>
-	<script>
-	var ext = {{.T.isExit.noarea}}
-	console.log("---:"+ext)
-	var strSel1= sessionStorage.getItem("strSel1");
-	var strSel2= sessionStorage.getItem("strSel2");
-	
-	console.log("strSel1详情页:"+strSel1);
-	console.log("strSel2详情页:"+strSel2);
-	console.log(sessionStorage.getItem("currentPage"))
-	</script>
 </html>

+ 68 - 59
core/src/web/templates/manage/dataExportOrder.html

@@ -1,7 +1,9 @@
+
 <html>
 <head>
 <title>审核用户</title>
 {{include "/common/inc.html"}}
+<script src="{{Msg "seo" "cdn"}}/js/jquery.cookie.js"></script>
 <script src="/js/qfwtable.js"></script>
 <style type="text/css">
 #dataExportOrder{
@@ -75,82 +77,89 @@ background-color:#18CC7D;
 <script>
 $(function(){
 	$("#audit").datatable({
-	   perPage: 10
-	  ,showPagination:true
-	  ,checkbox:"" //check radio
-	  ,checkboxHeader:false
-	  ,idField:"_id"
-	  ,classname:"table-hover"
-	  ,css:{"height":"450px"}
-	  //,post:{"name":"ee"}
-	  ,buttons: ['<div style="width:50%;margin:5px" class="input-group pull-right" id="search"><input type="text" id="searchtext" value=""  data-original-title="Search" class="form-control" placeholder="请输入订单编号"><span class="input-group-btn"><button class="btn btn-success" onclick="SearchContent()" data-original-title="Search" id="searchtip" type="button" style="height:38px;">检索</button></span></div><div style="margin:5px;" class="controls pull-right"><select class="form-control" id="select2" ><option value="">  数据发送状态  </option><option  value="1">  发送成功</option><option value="0">  发送失败 </option></select></div><div style="margin:5px;" class="controls pull-right"><select class="form-control" id="select1"><option value="">  订单状态  </option><option value="1">  已支付 </option><option value="0">  未支付 </option></select></div>']
-	  , url: '/manage/dataExport/p'
-	  , columns: [
-			{
-	            title: "序号", field: "index"	
-	        },
-	        {
-	            title: "订单编号", field: "order_code"
-				,callback:function(ct,cd,val,k,m){
-					if(ct["order_code"]){
-					return "<a href='/manage/dataExport/dataDetail/"+ct["order_code"]+"' style='color:#4e5051;text-decoration:none'>"+   ct["order_code"]+"</a>"
-					}
-				}	
-	        },
-			{
-	            title: "购买时间",field: "pay_time"
-	        },
-			{
-	            title: "数据规格", field: "data_spec"
-	        },
-			{
-	            title: "价格", field: "order_money"
-				,callback:function(ct,cd,val,k,m){
-					if(ct["order_money"]){
-					return 	ct["order_money"]/100+"元"
+		   perPage: 10
+		  ,showPagination:true
+		  ,checkbox:"" //check radio
+		  ,checkboxHeader:false
+		  ,idField:"_id"
+		  ,classname:"table-hover"
+		  ,css:{"height":"450px"}
+		  //,post:{"name":"ee"}
+		  ,buttons: ['<div style="width:50%;margin:5px" class="input-group pull-right" id="search"><input type="text" id="searchtext" value=""  data-original-title="Search" class="form-control" placeholder="请输入订单编号"><span class="input-group-btn"><button class="btn btn-success" onclick="SearchContent()" data-original-title="Search" id="searchtip" type="button" style="height:38px;">检索</button></span></div><div style="margin:5px;" class="controls pull-right"><select class="form-control" id="select2" ><option value="">  数据发送状态  </option><option  value="1">  发送成功</option><option value="0">  发送失败 </option></select></div><div style="margin:5px;" class="controls pull-right"><select class="form-control" id="select1"><option value="">  订单状态  </option><option value="1">  已支付 </option><option value="0">  未支付 </option></select></div>']
+		  , url: '/manage/dataExport/p'
+		  , columns: [
+				{
+		            title: "序号", field: "index"	
+		        },
+		        {
+		            title: "订单编号", field: "order_code"
+					,callback:function(ct,cd,val,k,m){
+						if(ct["order_code"]){
+						return "<a onclick='redirect(\""+ct["order_code"]+"\")' style='color:#4e5051;text-decoration:none'>"+   ct["order_code"]+"</a>"
+						}
+					}	
+		        },
+				{
+		            title: "购买时间",field: "pay_time"
+		        },
+				{
+		            title: "数据规格", field: "data_spec"
+		        },
+				{
+		            title: "价格", field: "order_money"
+					,callback:function(ct,cd,val,k,m){
+						if(ct["order_money"]){
+						return 	ct["order_money"]/100+"元"
+						}
 					}
-				}
-	        },
-			{
-	            title: "支付状态", field: "order_status"
-	        },
-			{
-	            title: "发票状态", field: "applybill_status"
-	        },
-			{
-	            title: "下载链接", field: "download_url"
-				,callback:function(ct,cd,val,k,m){
-					if(ct["download_url"]){
-					return "<a href='"+ct["download_url"]+"' title='"+ct["download_url"]+"'>"+   ct["download_url"]+"</a>"	
+		        },
+				{
+		            title: "支付状态", field: "order_status"
+		        },
+				{
+		            title: "发票状态", field: "applybill_status"
+		        },
+				{
+		            title: "下载链接", field: "download_url"
+					,callback:function(ct,cd,val,k,m){
+						if(ct["download_url"]){
+						return "<a href='"+ct["download_url"]+"' title='"+ct["download_url"]+"'>"+   ct["download_url"]+"</a>"	
+						}
 					}
-				}
-	        },
-			{
-	            title: "数据发送状态", field: "service_status"
-	        }
-	    ]
-	});
+		        },
+				{
+		            title: "数据发送状态", field: "service_status"
+		        }
+		    ]
+		});
+
 	$("select").change(function(){
+	//$("body").on("change","select",function(){
 		//选择已支付,才能选择是否发送成功
 		if($("#select1").val()=="0"){
 			$("#select2").val("").attr("disabled","disabled");
 		}else{
 			$("#select2").removeAttr("disabled","disabled");
 		}
-		
-		var find=$("#audit").data("datatable")
+		var find=$("#audit").data("datatable");
 		if(!find.options.opost) find.options.opost=find.options.post||{};
 		find.options.post=$.extend(find.options.opost,{strSel1:$("#select1").val(),strSel2:$("#select2").val()});
-		find.options.currentPage=1
+		find.options.currentPage=1;
 		find.render();
 	});
-	
 });
+
+//点击跳转新页面
+function redirect(code){
+	//sessionStorage.setItem("contentHtml",$("#content").prop("outerHTML"));
+	window.open("/manage/dataExport/dataDetail/"+code);
+}
+//
 function SearchContent(){
-	var find=$("#audit").data("datatable")
+	var find=$("#audit").data("datatable");
 	if(!find.options.opost) find.options.opost=find.options.post||{};
 	find.options.post=$.extend(find.options.opost,{query:$("#searchtext").val()});
-	find.options.currentPage=1
+	find.options.currentPage=1;
 	find.render();
 }
 </script>