|
@@ -0,0 +1,234 @@
|
|
|
+
|
|
|
+<html>
|
|
|
+<head>
|
|
|
+<title>VIP订阅订单</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">
|
|
|
+#viporder{
|
|
|
+ background-color: #f5f5f5;
|
|
|
+}
|
|
|
+#content table{
|
|
|
+ table-layout: fixed;
|
|
|
+ border:0px;
|
|
|
+ font-size:14px;
|
|
|
+}
|
|
|
+
|
|
|
+.table>thead>tr>th:nth-child(1){
|
|
|
+width:14%;
|
|
|
+}
|
|
|
+.table>thead>tr>th:nth-child(2){
|
|
|
+width:14%;
|
|
|
+}
|
|
|
+.table>thead>tr>th:nth-child(3){
|
|
|
+width:14%;
|
|
|
+}
|
|
|
+.table>thead>tr>th:nth-child(4){
|
|
|
+width:7%;
|
|
|
+}
|
|
|
+.table>thead>tr>th:nth-child(5){
|
|
|
+ text-align:right;
|
|
|
+ width:14%;
|
|
|
+}
|
|
|
+.table>thead>tr>th:nth-child(6){
|
|
|
+ padding-left:4%;
|
|
|
+ width:14%;
|
|
|
+}
|
|
|
+.table>thead>tr>th:nth-child(7){
|
|
|
+width:14%;
|
|
|
+}
|
|
|
+.table>thead>tr>th:nth-child(8){
|
|
|
+width:14%;
|
|
|
+}
|
|
|
+.table>tbody>tr>td:nth-child(5){
|
|
|
+ text-align:right;
|
|
|
+}
|
|
|
+.table>tbody>tr>td:nth-child(6){
|
|
|
+ padding-left:4%;
|
|
|
+}
|
|
|
+/*
|
|
|
+.table>thead>tr>th:nth-child(9){
|
|
|
+width:10%;
|
|
|
+text-align: center;
|
|
|
+}
|
|
|
+.table>tbody>tr>td:nth-child(9){
|
|
|
+text-align: center;
|
|
|
+}
|
|
|
+*/
|
|
|
+.table>thead>tr>th{
|
|
|
+border:0px;
|
|
|
+font-size:14px;
|
|
|
+}
|
|
|
+.table>tbody>tr>td{
|
|
|
+white-space: nowrap;
|
|
|
+text-overflow: ellipsis;
|
|
|
+overflow: hidden;
|
|
|
+border:0px;
|
|
|
+border-bottom:1px dashed #999999;
|
|
|
+}
|
|
|
+.table >tbody>tr{
|
|
|
+ cursor: pointer;
|
|
|
+}
|
|
|
+#_Container_0{
|
|
|
+background-color:#FFFFFF;
|
|
|
+}
|
|
|
+.buttonStyle{width:64px;height:22px;line-height:22px;color:#369;text-align:center;background:url({{Msg "seo" "cdn"}}/images/buticon.gif) no-repeat left top;border:0;font-size:12px;}
|
|
|
+.buttonStyle:hover{background:url({{Msg "seo" "cdn"}}/images/buticon.gif) no-repeat left -23px;}
|
|
|
+.pagination>.active>a:hover,.pagination>.active>a:focus{
|
|
|
+background-color:#18CC7D;
|
|
|
+}
|
|
|
+#sidebar { margin-left:0px;}
|
|
|
+.hui{color:#999999;}
|
|
|
+.userinfo{
|
|
|
+ margin: 10px -10px 10px;
|
|
|
+ border-radius: 4px !important;
|
|
|
+ height: 38px;
|
|
|
+}
|
|
|
+</style>
|
|
|
+</head>
|
|
|
+<body>
|
|
|
+{{include "/manage/audithead.html"}}
|
|
|
+<div class="row" style="width:96%; margin:0 auto;">
|
|
|
+{{include "/manage/slider.html"}}
|
|
|
+ <div id="content">
|
|
|
+ <div id="audit"></div>
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
+{{include "/common/bottom.html"}}
|
|
|
+</body>
|
|
|
+<script>
|
|
|
+$(function(){
|
|
|
+ $("#audit").datatable({
|
|
|
+ perPage: 10
|
|
|
+ ,showPagination:true
|
|
|
+ ,checkbox:"" //check radio
|
|
|
+ ,checkboxHeader:false
|
|
|
+ ,idField:"_id"
|
|
|
+ ,classname:"table-hover"
|
|
|
+ ,css:{"height":"450px"}
|
|
|
+ //,post:{"name":"ee"}
|
|
|
+ //<div style="width:27%;margin:10px" class="input-group pull-left" id="search"><input type="text" id="searchtextByOpenId" value="" data-original-title="Search" class="form-control" placeholder="请输入用户openid"><span class="input-group-btn"><button class="btn btn-success" onclick="SearchContentByOpenId()" data-original-title="Search" id="searchtip" type="button" style="height:38px;">查看用户订单</button></span></div>
|
|
|
+ ,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="select1"><option value=""> 订单状态 </option><option value="1"> 已支付 </option><option value="0"> 未支付 </option><option value="-2"> 已取消 </option></select></div>']
|
|
|
+ , url: '/manage/entnicheOrder/p'
|
|
|
+ , columns: [
|
|
|
+ {
|
|
|
+ title: "序号", field: "index"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "产品类型", field: "product_type"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "购买时间",field: "pay_time"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "订单状态", field: "order_status"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "价格", field: "order_money"
|
|
|
+ ,callback:function(ct,cd,val,k,m){
|
|
|
+ if(ct["order_money"]){
|
|
|
+ //return ct["order_money"]/100+"元"
|
|
|
+ //保留小数点后两位
|
|
|
+ var o_money =ct["order_money"]/100
|
|
|
+ if (o_money!=0){
|
|
|
+ var a = num(o_money)
|
|
|
+ }else{
|
|
|
+ var a="0"
|
|
|
+ }
|
|
|
+ //return "<div style='padding-right:50%'>"+a+"</div>"
|
|
|
+ return a;
|
|
|
+ }else{
|
|
|
+ return "0"; //升级费用为0
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "发票状态", field: "applybill_status"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "发票单位", field: "applybill_company"
|
|
|
+ },
|
|
|
+ /*{
|
|
|
+ title: "邮箱", field: "user_mail"
|
|
|
+ ,callback:function(ct,cd,val,k,m){
|
|
|
+ if(ct["user_mail"]){
|
|
|
+ return ct["user_mail"];
|
|
|
+ }else{
|
|
|
+ return "-"; //升级费用为0
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ 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: "order_code"
|
|
|
+ ,callback:function(ct,cd,val,k,m){
|
|
|
+ if(ct["order_code"]){
|
|
|
+ var a=ct["order_code"]
|
|
|
+ return "<a style='display:none' onclick='redirect(\""+ct["order_code"]+"\")' style='color:#4e5051;text-decoration:none'>"+ ct["order_code"]+"</a>"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ });
|
|
|
+
|
|
|
+ $("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");
|
|
|
+ if(!find.options.opost) find.options.opost=find.options.post||{};
|
|
|
+ find.options.post=$.extend(find.options.opost,{strSel1:$("#select1").val(),strSel2:$("#select2").val(),strSel3:$("#select3").val()});
|
|
|
+ find.options.currentPage=1;
|
|
|
+ find.render();
|
|
|
+ });
|
|
|
+ //事件委托
|
|
|
+ $("#content").on("click","#audit>.dt-table-wrapper>.table>tbody>tr",function(){
|
|
|
+ var code = $(this).children().last().children().html();
|
|
|
+ window.open("/manage/entnicheOrder/entnicheOrderDetail/"+code)
|
|
|
+ });
|
|
|
+
|
|
|
+});
|
|
|
+
|
|
|
+//点击跳转新页面 //TODO
|
|
|
+function redirect(code){
|
|
|
+ //sessionStorage.setItem("contentHtml",$("#content").prop("outerHTML"));
|
|
|
+ window.open("/manage/entnicheOrder/entnicheOrderDetail/"+code);
|
|
|
+}
|
|
|
+//
|
|
|
+function SearchContent(){
|
|
|
+ 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.render();
|
|
|
+}//
|
|
|
+function SearchContentByOpenId(){
|
|
|
+ var find=$("#audit").data("datatable");
|
|
|
+ if(!find.options.opost) find.options.opost=find.options.post||{};
|
|
|
+ find.options.post=$.extend(find.options.opost,{queryByOpenId:$("#searchtextByOpenId").val()});
|
|
|
+ find.options.currentPage=1;
|
|
|
+ find.render();
|
|
|
+}
|
|
|
+//保留小数点后两位的方法
|
|
|
+function num(i) {
|
|
|
+ var n = i.toFixed(2);
|
|
|
+ return n
|
|
|
+}
|
|
|
+</script>
|
|
|
+</html>
|