|
@@ -0,0 +1,186 @@
|
|
|
|
+
|
|
|
|
+<html>
|
|
|
|
+<head>
|
|
|
|
+<title>审核用户</title>
|
|
|
|
+{{include "/common/inc.html"}}
|
|
|
|
+<script src="{{Msg "seo" "cdn"}}/js/jquery.cookie.js"></script>
|
|
|
|
+<script type="text/javascript" src="{{Msg "seo" "cdn"}}/js/zDialog.js"></script>
|
|
|
|
+<script type="text/javascript" src="{{Msg "seo" "cdn"}}/js/My97DatePicker/WdatePicker.js"></script>
|
|
|
|
+<script src="/js/qfwtable.js"></script>
|
|
|
|
+<style type="text/css">
|
|
|
|
+#dataReportOrder{
|
|
|
|
+ background-color: #f5f5f5;
|
|
|
|
+}
|
|
|
|
+#content table{
|
|
|
|
+ table-layout: fixed;
|
|
|
|
+ border:0px;
|
|
|
|
+ font-size:14px;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.table>thead>tr>th:nth-child(1){
|
|
|
|
+width:15%;
|
|
|
|
+}
|
|
|
|
+.table>thead>tr>th:nth-child(2){
|
|
|
|
+width:15%;
|
|
|
|
+}
|
|
|
|
+.table>thead>tr>th:nth-child(3){
|
|
|
|
+width:20%;
|
|
|
|
+}
|
|
|
|
+.table>thead>tr>th:nth-child(4){
|
|
|
|
+width:15%;
|
|
|
|
+}
|
|
|
|
+.table>thead>tr>th:nth-child(5){
|
|
|
|
+ width:15%;
|
|
|
|
+}
|
|
|
|
+.table>thead>tr>th:nth-child(6){
|
|
|
|
+ width:25%;
|
|
|
|
+}
|
|
|
|
+.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;}
|
|
|
|
+</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"}
|
|
|
|
+ ,buttons: ['<div style="margin: 0px 15px;"><div style="width:40%;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;width:70px;">检索</button></span></div><div style="margin:5px;" class="controls pull-left"><input type="text" style="background:#fff url({{Msg "seo" "cdn"}}/images/datePicker.gif) no-repeat right;" id="starttime" datatype="*" type="text" name="starttime" class="form-control" onClick="WdatePicker({oncleared:function(dp){oncleared(dp,this)},onpicked:function(dp){picked(dp,this)},dateFmt:\'yyyy-MM-dd\',maxDate:\'#F{$dp.$D(\\\'endtime\\\',{d:0})}\'})" readonly="ture" value="" placeholder="时间选择"></div><div class="controls pull-left" id="zhi" style="line-height: 46px;">至</div><div style="margin:5px;" class="controls pull-left"><input type="text" style="background:#fff url({{Msg "seo" "cdn"}}/images/datePicker.gif) no-repeat right;" id="endtime" datatype="*" type="text" name="endtime" class="form-control" onClick="WdatePicker({oncleared:function(dp){oncleared(dp,this)},onpicked:function(dp){picked(dp,this)},dateFmt:\'yyyy-MM-dd\',minDate:\'#F{$dp.$D(\\\'starttime\\\',{d:0})}\'})" readonly="ture" value="" placeholder="时间选择"></div></div><div id="second"><div class="pull-right" id="allDoBut" style="display: none;"><button id="allDel" onclick="del(\'\',\'A\',\'\')" type="button" class="btn btn-primary">删除</button><button id="allPush" onclick="push(\'all\',\'\')" type="button" class="btn btn-warning">补推</button></div></div>']
|
|
|
|
+ , url: '/manage/dataReport/p'
|
|
|
|
+ , columns: [
|
|
|
|
+ {
|
|
|
|
+ title: "姓名", field: "user_name"
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: "手机号",field: "user_phone"
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: "邮箱", field: "user_mail"
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: "公司名称", field: "user_company"
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: "付款金额", field: "order_money"
|
|
|
|
+ ,callback:function(ct,cd,val,k,m){
|
|
|
|
+ if(ct["order_money"]){
|
|
|
|
+ var o_money =ct["order_money"]/100
|
|
|
|
+ var a = num(o_money)
|
|
|
|
+ return a;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: "付款时间", field: "pay_time"
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: "", field: "order_code"
|
|
|
|
+ ,callback:function(ct,cd,val,k,m){
|
|
|
|
+ if(ct["id"]){
|
|
|
|
+ var a=ct["order_code"]
|
|
|
|
+ return "<a style='display:none' style='color:#4e5051;text-decoration:none'>"+ct["id"]+"</a>"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ //事件委托
|
|
|
|
+ $("#content").on("click","#audit>.dt-table-wrapper>.table>tbody>tr",function(){
|
|
|
|
+ var code = $(this).children().last().prev().children().html();
|
|
|
|
+ window.open("/manage/dataReport/dataDetail/"+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 num(i) {
|
|
|
|
+ var n = i.toFixed(2);
|
|
|
|
+ return n
|
|
|
|
+}
|
|
|
|
+function picked(dp,obj){
|
|
|
|
+ var time = new Date(dp.cal.newdate.y, dp.cal.newdate.M - 1, dp.cal.newdate.d).getTime() + "";
|
|
|
|
+ time = time.substring(0, time.length - 3);
|
|
|
|
+ $(obj).attr("data-value", time);
|
|
|
|
+ var find=$("#audit").data("datatable")
|
|
|
|
+ if(!find.options.opost) find.options.opost=find.options.post||{};
|
|
|
|
+ find.options.post=$.extend(find.options.opost,{starttime:$("#starttime").attr("data-value"),endtime:$("#endtime").attr("data-value")});
|
|
|
|
+ find.options.currentPage=1
|
|
|
|
+ find.render();
|
|
|
|
+
|
|
|
|
+ //全选按钮
|
|
|
|
+ var tdEle =document.getElementsByTagName('td');
|
|
|
|
+ var errorFlag =$("div").hasClass("alert-error");
|
|
|
|
+ if (tdEle[5]!=undefined){
|
|
|
|
+ console.log("!unde")
|
|
|
|
+ if (tdEle[5].innerHTML==" "){
|
|
|
|
+ $(".allSelect").addClass("disno");
|
|
|
|
+ }else{
|
|
|
|
+ $(".allSelect").removeClass("disno");
|
|
|
|
+ }
|
|
|
|
+ }else if (errorFlag){
|
|
|
|
+ console.log("errorFlag")
|
|
|
|
+ $(".allSelect").addClass("disno");
|
|
|
|
+ }else {
|
|
|
|
+ console.log("else")
|
|
|
|
+ $(".allSelect").removeClass("disno");
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+function oncleared(dp,obj){
|
|
|
|
+ $(obj).attr("data-value", "");
|
|
|
|
+ var find=$("#audit").data("datatable")
|
|
|
|
+ if(!find.options.opost) find.options.opost=find.options.post||{};
|
|
|
|
+ find.options.post=$.extend(find.options.opost,{starttime:$("#starttime").attr("data-value"),endtime:$("#endtime").attr("data-value")});
|
|
|
|
+ find.options.currentPage=1
|
|
|
|
+ find.render();
|
|
|
|
+ var tdEle =document.getElementsByTagName('td');
|
|
|
|
+ if (tdEle[5].innerHTML!=" "){
|
|
|
|
+ $(".allSelect").removeClass("disno");
|
|
|
|
+ }else{
|
|
|
|
+ $(".allSelect").addClass("disno");
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+</script>
|
|
|
|
+</html>
|