f96a47546a049a16a2a03a7b073077ad.php 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673
  1. <?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
  6. <title><?php echo $shoname; ?></title>
  7. <link rel="shortcut icon" href="" />
  8. <meta name="renderer" content="webkit">
  9. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  11. <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
  12. <!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
  13. <!--[if lt IE 9]>
  14. <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
  15. <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
  16. <![endif]-->
  17. <link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
  18. <link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
  19. <script type="text/javascript">
  20. window.sysinfo = {
  21. <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
  22. <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
  23. <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
  24. <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
  25. 'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php }else{ ?>0<?php } ?>,
  26. 'siteroot': '<?php echo ($_W['siteroot']); ?>',
  27. 'siteurl': '<?php echo ($_W['siteurl']); ?>',
  28. 'attachurl': '<?php echo ($_W['attachurl']); ?>',
  29. 'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
  30. 'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
  31. 'module': {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
  32. 'cookie': {'pre': ''},
  33. 'account': <?php echo json_encode($_W['account']);?>,
  34. };
  35. </script>
  36. <script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
  37. <script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
  38. <script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
  39. <script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
  40. <script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
  41. <script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
  42. <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
  43. <link href="/static/css/snailfish.css" rel="stylesheet">
  44. <style>
  45. tbody tr td{
  46. position: relative;
  47. }
  48. tbody tr .icow-weibiaoti--{
  49. visibility: hidden;
  50. display: inline-block;
  51. color: #fff;
  52. height:18px;
  53. width:18px;
  54. background: #e0e0e0;
  55. text-align: center;
  56. line-height: 18px;
  57. vertical-align: middle;
  58. }
  59. tbody tr:hover .icow-weibiaoti--{
  60. visibility: visible;
  61. }
  62. tbody tr .icow-weibiaoti--.hidden{
  63. visibility: hidden !important;
  64. }
  65. .full .icow-weibiaoti--{
  66. margin-left:10px;
  67. }
  68. .full>span{
  69. display: -webkit-box;
  70. display: -webkit-flex;
  71. display: -ms-flexbox;
  72. display: flex;
  73. vertical-align: middle;
  74. align-items: center;
  75. }
  76. tbody tr .label{
  77. margin: 5px 0;
  78. }
  79. .goods_attribute a{
  80. cursor: pointer;
  81. }
  82. .newgoodsflag{
  83. width: 22px;height: 16px;
  84. background-color: #ff0000;
  85. color: #fff;
  86. text-align: center;
  87. position: absolute;
  88. bottom: 70px;
  89. left: 57px;
  90. font-size: 12px;
  91. }
  92. .a{cursor: pointer;}
  93. .img-40 {
  94. width: 40px;
  95. height: 40px;
  96. }
  97. .daterangepicker select.ampmselect, .daterangepicker select.hourselect, .daterangepicker select.minuteselect{
  98. width:auto!important;
  99. }
  100. .div-inline{
  101. display:inline-block;
  102. text-align:center;
  103. height:130px;
  104. width:10%;
  105. margin-right: .5%;
  106. padding: 35px 0;
  107. border-radius:15px;
  108. }
  109. .div-inline2{
  110. display:inline-block;
  111. text-align:center;
  112. height:45px;
  113. width:9%;
  114. padding: 5px 0;
  115. }
  116. .b{
  117. margin-left: 20px;
  118. display: block;
  119. text-align: left;
  120. font-weight: lighter;
  121. font-size: 30px;
  122. color: #fff;
  123. }
  124. .span{
  125. font-size: 14px;
  126. color: #fff;
  127. margin-left: 20px;
  128. display: block;
  129. text-align: left;
  130. margin-top: 12px;
  131. }
  132. .list-tb-div table{
  133. margin-bottom: 1px;
  134. }
  135. </style>
  136. </head>
  137. <body layadmin-themealias="default">
  138. <table id="demo" lay-filter="test"></table>
  139. <div class="layui-fluid">
  140. <div class="layui-card">
  141. <div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">营业数据
  142. </div>
  143. <div class="layui-tab layui-tab-brief" >
  144. <ul class="layui-tab-title">
  145. <li <?php if( empty($tabid) || $tabid=='0' ){ ?>class="layui-this"<?php } ?>><a href="<?php echo U($cur_controller, array('reports_index' => 0));?>">本周</a></li>
  146. <li <?php if( $tabid=='1' ){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U($cur_controller, array('reports_index' => 1));?>">上周</a></li>
  147. <li <?php if( $tabid=='2' ){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U($cur_controller, array('reports_index' => 2));?>">本月</a></li>
  148. <li <?php if( $tabid=='3' ){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U($cur_controller, array('reports_index' => 3));?>">上月</a></li>
  149. <li style="float: right;margin-right: 100px;">
  150. <a href="<?php echo U($cur_controller, array('reports_index' => $_GPC['reports_index'],'reports_index' => $_GPC['reports_index'], 'is_export' => 1 ));?>" target="_blank" class="layui-btn layui-btn-sm layui-btn-primary"><i class="layui-icon-about layui-icon"></i>导出</a>
  151. </li>
  152. </ul>
  153. </div>
  154. <div class="layui-card-body" style="padding:15px;padding-bottom:0px;">
  155. <div>
  156. <div class="div-inline" style="background: rgb(246, 191, 0);" >
  157. <b class="b"><?php echo ($zongdanshu); ?></b>
  158. <span class="span">订单笔数</span>
  159. </div>
  160. <div class="div-inline" style="background: rgb(171,130,255);">
  161. <?php if( empty($quxiaoshu)){ ?> <b class="b">0</b> <?php }else{ ?><b class="b"><?php echo ($quxiaoshu); ?></b><?php } ?>
  162. <span class="span">取消笔数</span>
  163. </div>
  164. <div class="div-inline" style="background: rgb(243, 85, 14);">
  165. <?php $zongxiadan = sprintf("%.2f",$zongxiadan); ?>
  166. <b class="b"><?php echo ($zongxiadan); ?></b>
  167. <span class="span">下单金额</span>
  168. </div>
  169. <div class="div-inline" style="background: rgb(81, 194, 132);">
  170. <?php if( empty($wait_refund_count)){ ?> <b class="b">0</b> <?php }else{ ?><b class="b"><?php echo ($wait_refund_count); ?></b><?php } ?>
  171. <span class="span">申请退款笔数</span>
  172. </div>
  173. <div class="div-inline" style="background: rgb(80, 164, 254);">
  174. <?php $wait_refund_money = sprintf("%.2f",$wait_refund_money); ?>
  175. <?php if( empty($wait_refund_money)){ ?> <b class="b">0</b> <?php }else{ ?><b class="b"><?php echo ($wait_refund_money); ?></b><?php } ?>
  176. <span class="span">申请退款金额</span>
  177. </div>
  178. <div class="div-inline" style="background: rgb(81, 194, 132);">
  179. <?php if( empty($has_refund_count)){ ?> <b class="b">0</b> <?php }else{ ?><b class="b"><?php echo ($has_refund_count); ?></b><?php } ?>
  180. <span class="span">已退款笔数</span>
  181. </div>
  182. <div class="div-inline" style="background: rgb(80, 164, 254);">
  183. <?php $has_refund_money = sprintf("%.2f",$has_refund_money); ?>
  184. <?php if( empty($has_refund_money)){ ?> <b class="b">0</b> <?php }else{ ?><b class="b"><?php echo ($has_refund_money); ?></b><?php } ?>
  185. <span class="span">已退款金额</span>
  186. </div>
  187. <div class="div-inline" style="background: rgb(208, 109, 106);">
  188. <?php $quxiao = sprintf("%.2f",$quxiao); ?>
  189. <b class="b"><?php echo ($quxiao); ?></b>
  190. <span class="span">取消金额</span>
  191. </div>
  192. <div class="div-inline" style="background: rgb(81, 193, 194);">
  193. <?php $xaioji = sprintf("%.2f",$xaioji); ?>
  194. <?php if( empty($xaioji)){ ?> <b class="b">0</b> <?php }else{ ?><b class="b"><?php echo ($xaioji); ?></b><?php } ?>
  195. <span class="span">小计金额</span>
  196. </div>
  197. </div>
  198. <br/>
  199. <form action="" class="layui-form" lay-filter="example" method="post" >
  200. <div class="row">
  201. <div class="list-div list-tb-div">
  202. <table cellpadding="0" cellspacing="0" border="0" style="background-color:#fff;">
  203. <tr>
  204. <th class="div-inline2" style="font-size:15px;font-weight:bold;">下单日期</th>
  205. <th class="div-inline2" style="font-size:15px;font-weight:bold;">订单数</th>
  206. <th class="div-inline2" style="font-size:15px;font-weight:bold;">下单金额</th>
  207. <th class="div-inline2" style="font-size:15px;font-weight:bold;">等待退款笔数</th>
  208. <th class="div-inline2" style="font-size:15px;font-weight:bold;">等待退款金额</th>
  209. <th class="div-inline2" style="font-size:15px;font-weight:bold;">已退款笔数</th>
  210. <th class="div-inline2" style="font-size:15px;font-weight:bold;">已退款金额</th>
  211. <th class="div-inline2" style="font-size:15px;font-weight:bold;">取消笔数</th>
  212. <th class="div-inline2" style="font-size:15px;font-weight:bold;">取消金额</th>
  213. <th class="div-inline2" style="font-size:15px;font-weight:bold;">小计</th>
  214. <tr>
  215. </table>
  216. <table cellpadding="0" cellspacing="0" border="0" style="background-color:#fff;">
  217. <?php foreach($list2 as $k => $w){ ?>
  218. <tr>
  219. <th width="15%" class="div-inline2"><?php echo ($w["date"]); ?></th>
  220. <th width="15%" class="div-inline2"><?php echo ($w["count"]); ?></th>
  221. <!--$order_amount = $w['total']+$w['shipping_fare']-$w['voucher_credit']-$w['fullreduction_money']-$w['score_for_money'];-->
  222. <?php
  223. $order_amount = $w['total']+$w['shipping_fare']+$w['packing_fare']-$w['voucher_credit']-$w['fullreduction_money']-$w['score_for_money']-$w['fare_shipping_free']; $order_amount = sprintf("%.2f",$order_amount); ?>
  224. <th width="15%" class="div-inline2"><?php echo ($order_amount); ?></th>
  225. <th class="div-inline2"><?php echo ($w["daywait_refund_count"]); ?></th>
  226. <?php $w["daywait_refund_money"] = sprintf("%.2f",$w["daywait_refund_money"]); ?>
  227. <th class="div-inline2"><?php echo ($w["daywait_refund_money"]); ?></th>
  228. <th class="div-inline2"><?php echo ($w["dayhas_refund_count"]); ?></th>
  229. <?php $w["dayhas_refund_money"] = sprintf("%.2f",$w["dayhas_refund_money"]); ?>
  230. <th class="div-inline2"><?php echo ($w["dayhas_refund_money"]); ?></th>
  231. <th width="15%" class="div-inline2"><?php echo ($w["dayqu"]); ?></th>
  232. <?php $w["dayquxiao"] = sprintf("%.2f",$w["dayquxiao"]); ?>
  233. <th width="15%" class="div-inline2"><?php echo ($w["dayquxiao"]); ?></th>
  234. <!--$order_ji = $order_amount - $w["daytuikuan"]-$w["dayquxiao"];-->
  235. <?php $order_ji = $order_amount - $w["dayquxiao"]; $order_ji = sprintf("%.2f",$order_ji); ?>
  236. <th width="15%" class="div-inline2"><?php echo ($order_ji); ?></th>
  237. </tr>
  238. <?php } ?>
  239. </table>
  240. </div>
  241. </div>
  242. </form>
  243. </div>
  244. </div>
  245. </div>
  246. <script src="/layuiadmin/layui/layui.js"></script>
  247. <script>
  248. layui.config({
  249. base: '/layuiadmin/' //静态资源所在路径
  250. }).extend({
  251. index: 'lib/index' //主入口模块
  252. }).use('index');
  253. </script>
  254. <script>
  255. //由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
  256. var layer = layui.layer;
  257. var $;
  258. layui.use(['jquery', 'layer','form'], function(){
  259. $ = layui.$;
  260. var form = layui.form;
  261. $('.deldom').click(function(){
  262. var s_url = $(this).attr('data-href');
  263. layer.confirm($(this).attr('data-confirm'), function(index){
  264. $.ajax({
  265. url:s_url,
  266. type:'post',
  267. dataType:'json',
  268. success:function(info){
  269. $('#ajaxModal').removeClass('in');
  270. $('.modal-backdrop').removeClass('in');
  271. if(info.status == 0)
  272. {
  273. layer.msg(info.result.message,{icon: 1,time: 2000});
  274. }else if(info.status == 1){
  275. var go_url = location.href;
  276. if( info.result.hasOwnProperty("url") )
  277. {
  278. go_url = info.result.url;
  279. }
  280. layer.msg('操作成功',{time: 1000,
  281. end:function(){
  282. location.href = info.result.url;
  283. }
  284. });
  285. }
  286. }
  287. })
  288. },function(){
  289. console.log(232323);
  290. $('#ajaxModal').removeClass('in');
  291. $('.modal-backdrop').removeClass('in');
  292. });
  293. return false;
  294. })
  295. $('.btn-operation').click(function(){
  296. var ids_arr = [];
  297. var obj = $(this);
  298. var s_toggle = $(this).attr('data-toggle');
  299. var s_url = $(this).attr('data-href');
  300. $("input[name=item_checkbox]").each(function() {
  301. if( $(this).prop('checked') )
  302. {
  303. ids_arr.push( $(this).val() );
  304. }
  305. })
  306. if(ids_arr.length < 1)
  307. {
  308. layer.msg('请选择要操作的内容');
  309. }else{
  310. var can_sub = true;
  311. if( s_toggle == 'batch-remove' )
  312. {
  313. can_sub = false;
  314. layer.confirm($(obj).attr('data-confirm'), function(index){
  315. $.ajax({
  316. url:s_url,
  317. type:'post',
  318. dataType:'json',
  319. data:{ids:ids_arr},
  320. success:function(info){
  321. if(info.status == 0)
  322. {
  323. layer.msg(info.result.message,{icon: 1,time: 2000});
  324. }else if(info.status == 1){
  325. var go_url = location.href;
  326. if( info.result.hasOwnProperty("url") )
  327. {
  328. go_url = info.result.url;
  329. }
  330. layer.msg('操作成功',{time: 1000,
  331. end:function(){
  332. location.href = info.result.url;
  333. }
  334. });
  335. }
  336. }
  337. })
  338. });
  339. }else{
  340. $.ajax({
  341. url:s_url,
  342. type:'post',
  343. dataType:'json',
  344. data:{ids:ids_arr},
  345. success:function(info){
  346. if(info.status == 0)
  347. {
  348. layer.msg(info.result.message,{icon: 1,time: 2000});
  349. }else if(info.status == 1){
  350. var go_url = location.href;
  351. if( info.result.hasOwnProperty("url") )
  352. {
  353. go_url = info.result.url;
  354. }
  355. layer.msg('操作成功',{time: 1000,
  356. end:function(){
  357. location.href = info.result.url;
  358. }
  359. });
  360. }
  361. }
  362. })
  363. }
  364. }
  365. })
  366. form.on('switch(restwsitch)', function(data){
  367. var s_url = $(this).attr('data-href')
  368. var rest = 1;
  369. if(data.elem.checked)
  370. {
  371. rest = 1;
  372. }else{
  373. rest = 0;
  374. }
  375. $.ajax({
  376. url:s_url,
  377. type:'post',
  378. dataType:'json',
  379. data:{rest:rest},
  380. success:function(info){
  381. if(info.status == 0)
  382. {
  383. layer.msg(info.result.message,{icon: 1,time: 2000});
  384. }else if(info.status == 1){
  385. var go_url = location.href;
  386. if( info.result.hasOwnProperty("url") )
  387. {
  388. go_url = info.result.url;
  389. }
  390. layer.msg('操作成功',{time: 1000,
  391. end:function(){
  392. location.href = info.result.url;
  393. }
  394. });
  395. }
  396. }
  397. })
  398. });
  399. form.on('switch(enablewsitch)', function(data){
  400. var s_url = $(this).attr('data-href')
  401. var enable = 1;
  402. if(data.elem.checked)
  403. {
  404. enable = 1;
  405. }else{
  406. enable = 0;
  407. }
  408. $.ajax({
  409. url:s_url,
  410. type:'post',
  411. dataType:'json',
  412. data:{enable:enable},
  413. success:function(info){
  414. if(info.status == 0)
  415. {
  416. layer.msg(info.result.message,{icon: 1,time: 2000});
  417. }else if(info.status == 1){
  418. var go_url = location.href;
  419. if( info.result.hasOwnProperty("url") )
  420. {
  421. go_url = info.result.url;
  422. }
  423. layer.msg('操作成功',{time: 1000,
  424. end:function(){
  425. location.href = info.result.url;
  426. }
  427. });
  428. }
  429. }
  430. })
  431. });
  432. form.on('switch(statewsitch)', function(data){
  433. var s_url = $(this).attr('data-href')
  434. var state = 1;
  435. if(data.elem.checked)
  436. {
  437. state = 1;
  438. }else{
  439. state = 0;
  440. }
  441. $.ajax({
  442. url:s_url,
  443. type:'post',
  444. dataType:'json',
  445. data:{state:state},
  446. success:function(info){
  447. if(info.status == 0)
  448. {
  449. layer.msg(info.result.message,{icon: 1,time: 2000});
  450. }else if(info.status == 1){
  451. var go_url = location.href;
  452. if( info.result.hasOwnProperty("url") )
  453. {
  454. go_url = info.result.url;
  455. }
  456. layer.msg('操作成功',{time: 1000,
  457. end:function(){
  458. location.href = info.result.url;
  459. }
  460. });
  461. }
  462. }
  463. })
  464. });
  465. form.on('checkbox(checkboxall)', function(data){
  466. if(data.elem.checked)
  467. {
  468. $("input[name=item_checkbox]").each(function() {
  469. $(this).prop("checked", true);
  470. });
  471. $("input[name=checkall]").each(function() {
  472. $(this).prop("checked", true);
  473. });
  474. }else{
  475. $("input[name=item_checkbox]").each(function() {
  476. $(this).prop("checked", false);
  477. });
  478. $("input[name=checkall]").each(function() {
  479. $(this).prop("checked", false);
  480. });
  481. }
  482. form.render('checkbox');
  483. });
  484. //监听提交
  485. form.on('submit(formDemo)', function(data){
  486. $.ajax({
  487. url: data.form.action,
  488. type: data.form.method,
  489. data: data.field,
  490. dataType:'json',
  491. success: function (info) {
  492. if(info.status == 0)
  493. {
  494. layer.msg(info.result.message,{icon: 1,time: 2000});
  495. }else if(info.status == 1){
  496. var go_url = location.href;
  497. if( info.result.hasOwnProperty("url") )
  498. {
  499. go_url = info.result.url;
  500. }
  501. layer.msg('操作成功',{time: 1000,
  502. end:function(){
  503. location.href = info.result.url;
  504. }
  505. });
  506. }
  507. }
  508. });
  509. return false;
  510. });
  511. })
  512. </script>
  513. <script>
  514. var ajax_url = "";
  515. $(function(){
  516. $("[data-toggle='ajaxModal']").click(function () {
  517. var s_url = $(this).attr('data-href');
  518. ajax_url = s_url;
  519. console.log(23);
  520. $.ajax({
  521. url:s_url,
  522. type:"get",
  523. success:function(shtml){
  524. $('#ajaxModal').html(shtml);
  525. $("#ajaxModal").modal();
  526. }
  527. })
  528. });
  529. $(document).delegate(".modal-footer .btn-primary","click",function(){
  530. var s_data = $('#ajaxModal form').serialize();
  531. $.ajax({
  532. url:ajax_url,
  533. type:'post',
  534. dataType:'json',
  535. data:s_data,
  536. success:function(info){
  537. if(info.status == 0)
  538. {
  539. layer.msg(info.result.message,{icon: 1,time: 2000});
  540. }else if(info.status == 1){
  541. var go_url = location.href;
  542. if( info.result.hasOwnProperty("url") )
  543. {
  544. go_url = info.result.url;
  545. }
  546. layer.msg('操作成功',{time: 1000,
  547. end:function(){
  548. location.href = info.result.url;
  549. }
  550. });
  551. }
  552. }
  553. })
  554. return false;
  555. })
  556. })
  557. </script>
  558. <div id="ajaxModal" class="modal fade" style="display: none;">
  559. </div>
  560. <script>
  561. //没有选中时间段不能导出
  562. $(function () {
  563. $('.btn-submit').click(function () {
  564. var e = $(this).data('export');
  565. if(e==1 ){
  566. if($('#keyword').val() !='' ){
  567. $('#export').val(1);
  568. $('#search').submit();
  569. }else if($('#searchtime').val()!=''){
  570. $('#export').val(1);
  571. $('#search').submit();
  572. }else{
  573. $('#export').val(1);
  574. $('#search').submit();
  575. return;
  576. }
  577. }else{
  578. $('#export').val(0);
  579. $('#search').submit();
  580. }
  581. })
  582. })
  583. </script>
  584. </body>