dream vor 6 Monaten
Ursprung
Commit
40bd668900
83 geänderte Dateien mit 0 neuen und 51626 gelöschten Zeilen
  1. 0 312
      Runtime/Cache/Seller/01883b97b5d9a9559eff5f77c537fb11.php
  2. 0 293
      Runtime/Cache/Seller/070fdbff40790cc6bc4790446001414b.php
  3. 0 517
      Runtime/Cache/Seller/08db70c3990648220aca038fccc73892.php
  4. 0 392
      Runtime/Cache/Seller/094b4595641b1c82968b39e1295493b1.php
  5. 0 431
      Runtime/Cache/Seller/0cdc0b93e3ff3ed5c12c73a1eaccfde0.php
  6. 0 194
      Runtime/Cache/Seller/12a95d888f43d458ac24724bd90075cb.php
  7. 0 1716
      Runtime/Cache/Seller/175b16b55997be6651d2eaf8f7c5a1f6.php
  8. 0 479
      Runtime/Cache/Seller/1d9394aa01ab50e942a546ef14893c03.php
  9. 0 361
      Runtime/Cache/Seller/2a03afed2b6c4f4e9dfcf0f560510317.php
  10. 0 377
      Runtime/Cache/Seller/2aeef13833c5df61f9014322fcd82f58.php
  11. 0 473
      Runtime/Cache/Seller/2e27f44892c96df13fde8f7dc71790a4.php
  12. 0 256
      Runtime/Cache/Seller/3514aac2631e1801f91edb504aceaed6.php
  13. 0 213
      Runtime/Cache/Seller/38bad7affcc920c347417771ab7edaf1.php
  14. 0 402
      Runtime/Cache/Seller/40bddc84b9a5cc24ec86c4817bbf8acd.php
  15. 0 322
      Runtime/Cache/Seller/41930977f2627070c139c99d30f907b4.php
  16. 0 507
      Runtime/Cache/Seller/436fb4e3a5fbb8071e0046615b90aa58.php
  17. 0 223
      Runtime/Cache/Seller/49494ef69a735aa5f8c2e4d8589ff4a6.php
  18. 0 453
      Runtime/Cache/Seller/4d987c245e6f9ee3318f71493bcd3b4f.php
  19. 0 528
      Runtime/Cache/Seller/5836808ba7fd76678de1e5abc6faaf68.php
  20. 0 3584
      Runtime/Cache/Seller/58c25f822b10e189075bc1744720d94a.php
  21. 0 1791
      Runtime/Cache/Seller/59e59b8aad3686d7bafd569e725f6361.php
  22. 0 121
      Runtime/Cache/Seller/5a8ceaf3c5794736c0c37dbaea73181a.php
  23. 0 243
      Runtime/Cache/Seller/60d04c8534b5bd44636cafe29899574e.php
  24. 0 245
      Runtime/Cache/Seller/6346191855c9c6e99e0b0b817a23ff71.php
  25. 0 408
      Runtime/Cache/Seller/688451932cb401120021c9d38538ecec.php
  26. 0 616
      Runtime/Cache/Seller/68f14c8180d3ee788d050eeff311c023.php
  27. 0 457
      Runtime/Cache/Seller/6a15c3aef56010bb5d7c1839af77143d.php
  28. 0 1990
      Runtime/Cache/Seller/6f65e6d6f21f6567ef5d3b8661c0b3b1.php
  29. 0 73
      Runtime/Cache/Seller/75a7263d247aabad0ac9f240aa3dd31a.php
  30. 0 228
      Runtime/Cache/Seller/79e233a45c43a7c3619a7ecd64da1168.php
  31. 0 236
      Runtime/Cache/Seller/7b9eaaceef848e97e442d54b0a625e5d.php
  32. 0 617
      Runtime/Cache/Seller/7f938eabde63cdbe39b3b4dc296982c5.php
  33. 0 207
      Runtime/Cache/Seller/80bc5ac29a1e15ca86d8af2ad31be5ac.php
  34. 0 167
      Runtime/Cache/Seller/828e59fef66d270a68f86c37b89568f6.php
  35. 0 220
      Runtime/Cache/Seller/841fd4f93ca16d4c242427d9e2c68016.php
  36. 0 357
      Runtime/Cache/Seller/84ffe101b593fc9ca0c48a40c879b486.php
  37. 0 753
      Runtime/Cache/Seller/856e8eceff86fcd6f7dc05a213365d6d.php
  38. 0 601
      Runtime/Cache/Seller/8695018b03cbba6deb8029650a92b57a.php
  39. 0 806
      Runtime/Cache/Seller/8b3a46fde6f6eed429096b4c56190d74.php
  40. 0 255
      Runtime/Cache/Seller/8ec5db617528ab9d446cd3745409b4c0.php
  41. 0 472
      Runtime/Cache/Seller/8f647ac74f1ea7e0e3cd0f11bdc83a25.php
  42. 0 451
      Runtime/Cache/Seller/8fad575b6f5b906180efe7fcb2be641c.php
  43. 0 566
      Runtime/Cache/Seller/8fc054336a1046e05532693a85899be5.php
  44. 0 544
      Runtime/Cache/Seller/92c2a9518b9323ca7265390a9ea208a4.php
  45. 0 801
      Runtime/Cache/Seller/9452d0749cd1e1cffbeb53bdd2a522b8.php
  46. 0 877
      Runtime/Cache/Seller/973fcf8a2113dfcccb6baf18b6b014f2.php
  47. 0 449
      Runtime/Cache/Seller/99057f10db7a8420345fac848d27e342.php
  48. 0 114
      Runtime/Cache/Seller/9b0d7d73a7c23443e92b2d7f57f199a8.php
  49. 0 553
      Runtime/Cache/Seller/9d59a2e1c0ff5f15f96bc7870720be8b.php
  50. 0 269
      Runtime/Cache/Seller/a693c79c735ecf9a06fc954895c1880f.php
  51. 0 391
      Runtime/Cache/Seller/af3ab7005f7ce248b4e414a7e5585847.php
  52. 0 416
      Runtime/Cache/Seller/b35d6c8ce87923ca2d992cf23f9b784d.php
  53. 0 519
      Runtime/Cache/Seller/b3a24391584f0707c71e3d1139ae041c.php
  54. 0 264
      Runtime/Cache/Seller/b7a03974774151cb8244e9a83e1ba4d5.php
  55. 0 524
      Runtime/Cache/Seller/beebed8f850c8c8fe8fa2a8ea6b3917d.php
  56. 0 426
      Runtime/Cache/Seller/bfd63cf22766f2c8428aeb5a16720709.php
  57. 0 719
      Runtime/Cache/Seller/c23fe33e3876be8a0b2edcd16d7047d3.php
  58. 0 373
      Runtime/Cache/Seller/c2d6e67e633492a2c64048da03d5b216.php
  59. 0 500
      Runtime/Cache/Seller/c5340cd3ba9d6f922dde567552ceac4c.php
  60. 0 1561
      Runtime/Cache/Seller/c691c9c4728d656d559517264a51abb8.php
  61. 0 542
      Runtime/Cache/Seller/c87159976b67c1b71f3a2c49b8397be0.php
  62. 0 180
      Runtime/Cache/Seller/c9bb017f723e87c2da3a950ec8ed4f94.php
  63. 0 2901
      Runtime/Cache/Seller/cd78683d18a1166e9555a43077976e17.php
  64. 0 439
      Runtime/Cache/Seller/d25fd634fd67e36b84ad948f79d2065e.php
  65. 0 2002
      Runtime/Cache/Seller/d2ffc1feb626495d560391e21e1ab33f.php
  66. 0 465
      Runtime/Cache/Seller/d850cab4fec596ceee6fc743b577be20.php
  67. 0 3908
      Runtime/Cache/Seller/da4eb38191866c0b274728e66acb29de.php
  68. 0 350
      Runtime/Cache/Seller/dc9eb484d8e3fbf236c9c0d182ef3856.php
  69. 0 224
      Runtime/Cache/Seller/dec0611a4ba00ea190c42d94ea795ad0.php
  70. 0 684
      Runtime/Cache/Seller/dffe4a6bfa5bb357052b50b8228100cf.php
  71. 0 241
      Runtime/Cache/Seller/e6460db6c725f2eb096ccc6768a43d8f.php
  72. 0 476
      Runtime/Cache/Seller/e6e3bb9a93fd97722e66832c3549276f.php
  73. 0 440
      Runtime/Cache/Seller/e77066148f19aa4e9ebaa215936c1470.php
  74. 0 440
      Runtime/Cache/Seller/ed24800b2cffb39849ddafdd463a8a94.php
  75. 0 144
      Runtime/Cache/Seller/edfcc1d6dcd25cf974f04f0659a15b53.php
  76. 0 946
      Runtime/Cache/Seller/f1419e1db6f46364ff9c2b016888c97d.php
  77. 0 1434
      Runtime/Cache/Seller/f4d6d9be205d97b94c3eacaa75cdc6f7.php
  78. 0 116
      Runtime/Cache/Seller/f5c954841134127f98645e87c5ddd493.php
  79. 0 514
      Runtime/Cache/Seller/f63b8bf4c4d8da369ef6e7983ebd16d0.php
  80. 0 310
      Runtime/Cache/Seller/f8933977a3ee7ea47161438390c291c8.php
  81. 0 673
      Runtime/Cache/Seller/f96a47546a049a16a2a03a7b073077ad.php
  82. 0 340
      Runtime/Cache/Seller/fde2f73d5b86111f14ef7d3e16102128.php
  83. 0 644
      Runtime/Cache/Seller/ff5011d7672ef1d335a7aff6066c4912.php

+ 0 - 312
Runtime/Cache/Seller/01883b97b5d9a9559eff5f77c537fb11.php

@@ -1,312 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname_name; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-  <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
-  <link href="/static/css/snailfish.css?v=2.0.0" rel="stylesheet">
-  <style>
-	.wb-nav .snailfishicon{
-		 position: absolute;
-		 left: 20px;
-		top: 50%;
-		margin-top: -10px;
-	} 
-  </style>
-</head>
-<body class="layui-layout-body">
-  
-  <div id="LAY_app">
-    <div class="layui-layout layui-layout-admin">
-      <div class="layui-header">
-        <!-- 头部区域 -->
-        <ul class="layui-nav layui-layout-left">
-          <li class="layui-nav-item layadmin-flexible" lay-unselect>
-            <a href="javascript:;" layadmin-event="flexible" title="侧边伸缩">
-              <i class="layui-icon layui-icon-shrink-right" id="LAY_app_flexible"></i>
-            </a>
-          </li>
-          <li class="layui-nav-item" lay-unselect>
-            <a href="javascript:;" layadmin-event="refresh" title="刷新">
-              <i class="layui-icon layui-icon-refresh-3"></i>
-            </a>
-          </li>
-        </ul>
-		<?php  $version_info = M('lionfish_comshop_config')->where( array('name' => 'site_version') )->find(); $version = $version_info['value']; ?>
-		
-        <ul class="layui-nav layui-layout-right" lay-filter="layadmin-layout-right">
-		
-			<li id="neworder" style="display:none;" class="layui-nav-item layui-hide-xs" lay-unselect >
-				<a lay-href="<?php echo U('order/index');?>" >
-				  <span  style="margin: -4px -15px 0;"></span>
-				  新订单<span id="notice"><?php echo ($order_count); ?></span>条
-				</a>
-			</li>
-          <li id="orderdistribution" style="display:none;" class="layui-nav-item layui-hide-xs" lay-unselect>
-            <a href="javascript:void(0)">
-              <span  style="margin: -4px -15px 0;"></span>
-              发配送员消息<span id="distributionnotice" style="color:red;"></span>条
-            </a>
-          </li>
-		
-          <li class="layui-nav-item layui-hide-xs" lay-unselect >
-            <a href="<?php echo U('index/index', array('is_new' => 1) );?>" >
-              <span class="layui-badge-dot" style="margin: -4px -15px 0;"></span>
-			  切换新版后台
-            </a>
-          </li>
-		  
-		   
-          <li class="layui-nav-item layui-hide-xs" lay-unselect style="display:none;">
-            <a href="javascript:;" layadmin-event="theme">
-              <i class="layui-icon layui-icon-theme"></i>
-            </a>
-          </li>
-		   <?php if (!defined('ROLE') || ROLE != 'agenter' ) {?>
-          <li class="layui-nav-item layui-hide-xs" lay-unselect >
-            <font  style="color:#009688;">
-              当前社区团购版本18.0 
-            </font>
-          </li>
-          
-		  
-		 <!--  <li class="layui-nav-item" lay-unselect id="new_msg" style=""> 
-            <a lay-href="<?php echo U('index/updatelog'); ?>" layadmin-event="message"  lay-text="更新日志" >
-              <font  style="color:#009688;">更新日志</font>
-              
-            </a>
-          </li> -->
-		 <?php } ?>
-		  
-          <li class="layui-nav-item" lay-unselect>
-            <a href="javascript:;">
-              <cite><?php  if (defined('ROLE') && ROLE == 'agenter' ) { $agent_auth = session('agent_auth'); echo $agent_auth['shopname']; }else{ echo D('Home/Front')->get_config_by_name('shoname'); } ?></cite>
-            </a>
-            <dl class="layui-nav-child" >
-				<dd ><a href="<?php echo U('Public/logout');?>">退出</a></dd>
-            </dl>
-          </li>
-          
-          <li class="layui-nav-item layui-hide-xs" lay-unselect style="display:none;">
-            <a href="javascript:;" layadmin-event="about"><i class="layui-icon layui-icon-more-vertical"></i></a>
-          </li>
-        </ul>
-      </div>
-      
-	 
-	 <?php $sysmenus = D('Seller/menu')->getMenu(true); ?>
-      <!-- 侧边菜单 -->
-      <div class="layui-side layui-side-menu">
-        <div class="layui-side-scroll">
-          <div class="layui-logo" lay-href="<?php echo U('index/analys');?>">
-			<?php $shoplogo = D('Home/Front')->get_config_by_name('shoplogo'); ?>
-		    <?php if( empty($shoplogo) ){ ?>
-				<img class="layui-circle" src="/static/images/default-pic.jpg" height="46px" width="46px">
-		  	<?php }else{ ?>
-				<img class="layui-circle" src="<?php echo tomedia($shoplogo);?>" height="46px" width="46px">
-		    <?php } ?>
-          </div>
-          <ul class="layui-nav layui-nav-tree" lay-shrink="all" id="LAY-system-side-menu" lay-filter="layadmin-system-side-menu">
-			<?php $i =0; foreach($sysmenus['menu'] as $key => $menu){ ?>
-			<li data-name="<?php echo $key; ?>" class="wb-nav layui-nav-item <?php if($i ==0){ ?>layui-nav-itemed<?php } ?>">
-              <a href="javascript:;" <?php if( !empty($menu['route']) ){ ?>lay-href="<?php echo U($menu['route']);?>"<?php } ?> d-r="<?php echo ($menu['route']); ?>" lay-tips="<?php echo ($menu['text']); ?>" lay-direction="2">
-                <i class=" snailfishicon snailfishicon-<?php echo ($menu['icon']); ?>"></i>
-                <cite style="font-size:15px" ><?php echo ($menu['text']); ?></cite>
-              </a>
-              
-			  <?php if(!empty($menu['items'])){ ?>
-			  
-			  
-			  <?php foreach($menu['items'] as $sub_menu){ ?>
-              <dl class="layui-nav-child">
-                <dd data-name="<?php echo ($sub_menu['title']); ?>" >
-                  <a href="javascript:;" <?php if( !empty($sub_menu['route']) ){ ?>lay-href="<?php echo U($sub_menu['route']);?>"<?php } ?>><cite style="font-weight:bold;"><?php echo ($sub_menu['title']); ?></cite></a>
-				  <?php if( !empty($sub_menu['items']) ){ ?>
-				   <dl class="layui-nav-child">
-					<?php foreach($sub_menu['items'] as $third_sub_menu){ ?>
-                    <dd data-name="list"><a lay-href="<?php echo U($third_sub_menu['route']);?>"><cite style="font-size:13px" ><?php echo ($third_sub_menu['title']); ?></cite></a></dd>
-					 <?php } ?>
-                  </dl>
-				  <?php } ?>
-                </dd>
-              </dl>
-			  <?php } ?>
-			   <?php } ?>
-            </li>
-			<?php $i++; } ?>
-          </ul>
-        </div>
-      </div>
-
-      <!-- 页面标签 -->
-      <div class="layadmin-pagetabs" id="LAY_app_tabs">
-        <div class="layui-icon layadmin-tabs-control layui-icon-prev" layadmin-event="leftPage"></div>
-        <div class="layui-icon layadmin-tabs-control layui-icon-next" layadmin-event="rightPage"></div>
-        <div class="layui-icon layadmin-tabs-control layui-icon-down">
-          <ul class="layui-nav layadmin-tabs-select" lay-filter="layadmin-pagetabs-nav">
-            <li class="layui-nav-item" lay-unselect>
-              <a href="javascript:;"></a>
-              <dl class="layui-nav-child layui-anim-fadein">
-                <dd layadmin-event="closeThisTabs"><a href="javascript:;">关闭当前标签页</a></dd>
-                <dd layadmin-event="closeOtherTabs"><a href="javascript:;">关闭其它标签页</a></dd>
-                <dd layadmin-event="closeAllTabs"><a href="javascript:;">关闭全部标签页</a></dd>
-              </dl>
-            </li>
-          </ul>
-        </div>
-        <div class="layui-tab" lay-unauto lay-allowClose="true" lay-filter="layadmin-layout-tabs">
-          <ul class="layui-tab-title" id="LAY_app_tabsheader">
-            <li lay-id="<?php echo U('index/index'); ?>" lay-attr="<?php echo U('index/index'); ?>" class="layui-this"><i class="layui-icon layui-icon-home"></i></li>
-          </ul>
-        </div>
-      </div>
-      
-      
-      <!-- 主体内容 -->
-      <div class="layui-body" id="LAY_app_body">
-        <div class="layadmin-tabsbody-item layui-show">
-          <?php if( empty($perm_url) || $perm_url == '/'){ ?>
-					<iframe src="<?php echo U('index/analys', array('ok' => 1)); ?>" frameborder="0" class="layadmin-iframe"></iframe>
-		  <?php }else{ ?>
-					<iframe src="<?php echo U( $perm_url, array('ok' => 1)); ?>" frameborder="0" class="layadmin-iframe"></iframe>
-		  <?php } ?> 
-        </div>
-      </div>
-      
-      <!-- 辅助元素,一般用于移动设备下遮罩 -->
-      <div class="layadmin-body-shade" layadmin-event="shade"></div>
-    </div>
-  </div>
-
-<script src="/layuiadmin/layui/layui.js"></script>
-<script src="/static/js/jquery-ui.min.js"></script>
-<script>
-	layui.config({
-	base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-	index: 'lib/index' //主入口模块
-	}).use('index');
-	
-	
-</script>
-<audio id="musicClick" src="/static/mp3/click.mp3" preload="auto"></audio>
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-var cur_open_div;
-var form;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-
-    setInterval( function() {
-      order_distribution();
-    },3000);
-    function order_distribution() {
-      $.ajax({
-        url:"<?php echo U('index/order_distribution');?>",
-        type:'get',
-        data:{},
-        dataType:'json',
-        success:function(ret){
-          if(ret.no_send > 0)
-          {
-            $('#orderdistribution').show();
-            $("#distributionnotice").html(ret.no_send);
-          }else{
-            $("#orderdistribution").hide();
-            $("#distributionnotice").html(0);
-          }
-        }
-      })
-    }
-
-	setInterval( function() {
-		$.getJSON("<?php echo "index.php?s=/Cron/index"; ?>");
-	},10000);
-	var i = 0;
-	var y = 0
-	setInterval(notice,10000);
-	function notice() {
-		$.ajax({
-			 url:"<?php echo U('index/order_count');?>",
-			 type:'get',
-			 data:{},
-			 dataType:'json',
-			 success:function(ret){
-			 
-			  if(ret.resultCode == 200 && ret.data > 0 && ret.voice_notice == 1)
-			  {
-				  if(i<3){
-					$('#neworder').show();
-					$("#notice").html(ret.data);
-					$("#musicClick")[0].play();
-					i++;
-					y = ret.data ;
-				  }else{
-					$('#neworder').show();
-					$("#notice").html(ret.data);
-					
-					if( y < ret.data ){
-					    i = 0;
-					}
-					
-				  }
-                  var url = "";
-                  if(ret.order_type == 'pintuan'){
-                    url = "<?php echo U('group/orderlist'); ?>";
-                    $('#neworder').find('a').attr('lay-href',url);
-                  }else if(ret.order_type == 'integral'){
-                    url = "<?php echo U('points/order'); ?>";
-                    $('#neworder').find('a').attr('lay-href',url);
-                  }
-			  
-			  }else{
-				$("#neworder").hide();
-				$("#notice").html(0);
-				i = 0;
-			    
-			  }
-			 }
-		})
-	}
-	
-	<?php if( !isset($is_show_notice001) ){ ?>
-		layer.msg('更新涉及团长提成方式设置,请到“团长”——”团长设置“,查看并设置是否启用“团长等级”提成比例',{time: 10000,
-		});
-	<?php } ?>
-	
-	<?php if(is_seller_login() == 1){ ?>
-
-		setInterval( function() {
-			//check_lionfish_comshop_upgrade();
-		},10000);
-	function check_lionfish_comshop_upgrade() {
-		$.post('<?php echo U("system/upgrade_check");?>', function (ret) {
-			if (ret && ret.status == '1') {
-			
-				var result = ret.result;
-				if (result.filecount > 0 || result.database || result.upgrades) {
-					$('#new_msg').show();
-					$('#new_msg_tip').html('点击升级新版本:'+ result.version);
-				}
-			}
-		}, 'json');
-	   
-	}
-	<?php } ?>
-})
-</script>
-
-
-</body>
-</html>

+ 0 - 293
Runtime/Cache/Seller/070fdbff40790cc6bc4790446001414b.php

@@ -1,293 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-  window.sysinfo = {
-  <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-  
-  <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-  
-  <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-  
-  <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-  
-  'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-  
-  'siteroot': '<?php echo ($_W['siteroot']); ?>',
-    'siteurl': '<?php echo ($_W['siteurl']); ?>',
-    'attachurl': '<?php echo ($_W['attachurl']); ?>',
-    'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-    'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-    'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-    'cookie' : {'pre': ''},
-    'account' : <?php echo json_encode($_W['account']);?>,
-  };
-</script>
-
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-<link href="/static/css/snailfish.css" rel="stylesheet">
-  <style>
-    .layui-table[lay-size=lg] td, .layui-table[lay-size=lg] th {
-      padding: 15px 10px;
-    }
-  </style>
-</head>
-<body layadmin-themealias="default">
-<div class="layui-fluid">
-  <div class="layui-card">
-    <div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">门店管理</span></div>
-    <div class="layui-tab layui-tab-brief">
-      <ul class="layui-tab-title">
-        <li <?php if(empty($state)){ ?>class="layui-this"<?php } ?>><a href="<?php echo U('salesroom/index');?>">全部</a></li>
-        <li <?php if(!empty($state) && $state == 1){ ?>class="layui-this"<?php } ?>><a href="<?php echo U('salesroom/index', array('state' => 1));?>">已启用</a></li>
-        <li <?php if(!empty($state) && $state == 2){ ?>class="layui-this"<?php } ?>><a href="<?php echo U('salesroom/index', array('state' => 2));?>">已禁用</a></li>
-      </ul>
-    </div>
-    <div class="layui-card-body" style="padding:15px;">
-      <form action="" method="get" class="form-horizontal form-search layui-form" role="form">
-        <input type="hidden" name="c" value="salesroom" />
-        <input type="hidden" name="type" value="<?php echo ($type); ?>" />
-        
-        <div class="layui-form-item">
-          <div class="layui-inline">
-          <div class="layui-input-inline">
-            <input type="text" class="layui-input" name='keyword' value="<?php echo ($keyword); ?>" placeholder="门店地址/名称/电话">
-          </div>
-          <div class="layui-input-inline">
-            <button class="layui-btn layui-btn-sm"  type="submit"> 搜索</button>
-          </div>
-          </div>
-        </div>
-        
-      </form>
-      <form action="" class="layui-form" lay-filter="example" method="post" >
-        <div class="row">
-          <div class="col-md-12">
-            <div class="page-table-header">
-              <span>
-                <a href="<?php echo U('salesroom/add', array('ok' => 1));?>" class="layui-btn layui-btn-sm"><i class="fa fa-plus"></i> 新增门店</a>
-              </span>
-            </div>
-            <table class="layui-table" lay-skin="line" lay-size="lg">
-              <thead>
-                <tr>
-                  <th style="width:100px;">排序</th>
-                  <th style="">门店名称</th>
-                  <th style="width:20%;">门店电话/地址</th>
-                  <th style="">所属供应商</th>
-                  <th style="">核销人员</th>
-                  <th style="width: 200px;">门店状态</th>
-                  <th style="width: 250px;">操作</th>
-                </tr>
-              </thead>
-              <tbody>
-              <?php foreach( $list as $item ){ ?>
-                <tr>
-                  <td>
-                    <?php echo ($item['displayorder']); ?>
-                  </td>
-                  <td>
-                    <?php echo ($item['room_name']); ?>
-                  </td>
-                  <td>
-                    <?php echo ($item['mobile']); ?><br/><?php echo ($item['room_address']); ?>
-                  </td>
-                  <td>
-                    <?php echo ($item['supply_name']); ?>
-                  </td>
-                  <td>
-                    <?php if($item['member_count'] > 0){ ?>
-                    <a style="color:#428bca;" href="<?php echo U('salesroom_member/index', array('salesroom_id'=>$item['id'],'ok' => 1));?>" >
-                      <?php echo ($item['member_count']); ?>
-                    </a>
-                    <?php }else{ ?>
-                    <?php echo ($item['member_count']); ?>
-                    <?php } ?>
-                  </td>
-                  <td>
-                    <input type="checkbox" name="" lay-filter="statewsitch" data-href="<?php echo U('salesroom/change',array('type'=>'state','id'=>$item['id']));?>" <?php if( $item['state']==1){ ?>checked<?php  }else{ } ?> lay-skin="switch" lay-text="启用|禁用">
-                    <?php if($item['state'] == 0){ ?>
-                    <br/><span style="font-size: 12px;color: #c3c3c3;">禁用时间:<?php echo ($item['disable_time']); ?></span>
-                    <?php } ?>
-                  </td>
-                  <td style="overflow:visible;position:relative">
-                    <a class='layui-btn layui-btn-xs' href="<?php echo U('salesroom_order/index', array('salesroom_id'=>$item['id']));?>" >
-                      核销统计
-                    </a>
-                    <a class='layui-btn layui-btn-xs' href="<?php echo U('salesroom/add', array('id'=>$item['id'],'ok' => 1));?>" >
-                      <i class="layui-icon layui-icon-edit"></i>编辑
-                    </a>
-                    <a class='layui-btn layui-btn-xs deldom' href="javascript:;" data-href="<?php echo U('salesroom/delete',array('id'=>$item['id']));?>" data-confirm='门店删除后,门店所属的所有商品将变为普通商品,确认删除?'>
-                      <i class="layui-icon">&#xe640;</i>删除
-                    </a>
-                  </td>
-                </tr>
-              <?php } ?>
-              </tbody>
-              <tfoot>
-              <tr>
-                <td colspan="7" style="text-align: right">
-                  <?php echo ($pager); ?>
-                </td>
-              </tr>
-              </tfoot>
-            </table>
-          </div>
-        </div>
-      </form>
-    </div>
-  </div>
-</div>
-
-
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-  layui.config({
-    base: '/layuiadmin/' //静态资源所在路径
-  }).extend({
-    index: 'lib/index' //主入口模块
-  }).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  
-  
-  $('.deldom').click(function(){
-    var s_url = $(this).attr('data-href');
-    layer.confirm($(this).attr('data-confirm'), function(index){
-           $.ajax({
-            url:s_url,
-            type:'post',
-            dataType:'json',
-            success:function(info){
-            
-              if(info.status == 0)
-              {
-                layer.msg(info.result.message,{icon: 1,time: 2000});
-              }else if(info.status == 1){
-                var go_url = location.href;
-                if( info.result.hasOwnProperty("url") )
-                {
-                  go_url = info.result.url;
-                }
-                
-                layer.msg('操作成功',{time: 1000,
-                  end:function(){
-                    location.href = info.result.url;
-                  }
-                }); 
-              }
-            }
-          })
-        }); 
-  })
-  
-  form.on('switch(statewsitch)', function(data){
-    
-    var s_url = $(this).attr('data-href')
-    
-    var s_value = 1;
-    if(data.elem.checked)
-    {
-    s_value = 1;
-    }else{
-    s_value = 0;
-    }
-    if(s_value == 0){
-      layer.confirm('门店禁用后,门店所属的所有商品将变为普通商品,确认禁用门店?', function(index){
-        $.ajax({
-          url:s_url,
-          type:'post',
-          dataType:'json',
-          data:{value:s_value},
-          success:function(info){
-
-            if(info.status == 0)
-            {
-              layer.msg(info.result.message,{icon: 1,time: 2000});
-            }else if(info.status == 1){
-              var go_url = location.href;
-              if( info.result.hasOwnProperty("url") )
-              {
-                go_url = info.result.url;
-              }
-
-              layer.msg('操作成功',{time: 1000,
-                end:function(){
-                  location.href = info.result.url;
-                }
-              });
-            }
-          }
-        })
-      }, function () {
-        location.href = location.href;
-      });
-    }else{
-      $.ajax({
-        url:s_url,
-        type:'post',
-        dataType:'json',
-        data:{value:s_value},
-        success:function(info){
-
-          if(info.status == 0)
-          {
-            layer.msg(info.result.message,{icon: 1,time: 2000});
-          }else if(info.status == 1){
-            var go_url = location.href;
-            if( info.result.hasOwnProperty("url") )
-            {
-              go_url = info.result.url;
-            }
-
-            layer.msg('操作成功',{time: 1000,
-              end:function(){
-                location.href = info.result.url;
-              }
-            });
-          }
-        }
-      })
-    }
-  });
-
-})
-
-</script>  
-</body>
-</html>

+ 0 - 517
Runtime/Cache/Seller/08db70c3990648220aca038fccc73892.php

@@ -1,517 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-	window.sysinfo = {
-	<?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-	
-	<?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-	
-	'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-	
-	'siteroot': '<?php echo ($_W['siteroot']); ?>',
-			'siteurl': '<?php echo ($_W['siteurl']); ?>',
-			'attachurl': '<?php echo ($_W['attachurl']); ?>',
-			'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-			'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-			'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-	'cookie' : {'pre': ''},
-	'account' : <?php echo json_encode($_W['account']);?>,
-	};
-</script>
-
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-<link href="/static/css/snailfish.css" rel="stylesheet">
-<style>
-    tbody tr td{
-        position: relative;
-    }
-    tbody tr  .icow-weibiaoti--{
-        visibility: hidden;
-        display: inline-block;
-        color: #fff;
-        height:18px;
-        width:18px;
-        background: #e0e0e0;
-        text-align: center;
-        line-height: 18px;
-        vertical-align: middle;
-    }
-    tbody tr:hover .icow-weibiaoti--{
-        visibility: visible;
-    }
-    tbody tr  .icow-weibiaoti--.hidden{
-        visibility: hidden !important;
-    }
-    .full .icow-weibiaoti--{
-        margin-left:10px;
-    }
-    .full>span{
-        display: -webkit-box;
-        display: -webkit-flex;
-        display: -ms-flexbox;
-        display: flex;
-        vertical-align: middle;
-        align-items: center;
-    }
-    tbody tr .label{
-        margin: 5px 0;
-    }
-    .goods_attribute a{
-        cursor: pointer;
-    }
-    .newgoodsflag{
-        width: 22px;height: 16px;
-        background-color: #ff0000;
-        color: #fff;
-        text-align: center;
-        position: absolute;
-        bottom: 70px;
-        left: 57px;
-        font-size: 12px;
-    }
-	.a{cursor: pointer;}
-	.img-40 {
-		width: 40px;
-		height: 40px;
-	}
-</style>
-</head>
-<body layadmin-themealias="default">
-
-<table id="demo" lay-filter="test"></table>
-
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">配送员管理</span></div>
-		<div class="layui-card-body" style="padding:15px;">
-			<form action="" method="get" class="form-horizontal form-search layui-form" role="form">
-				<input type="hidden" name="c" value="orderdistribution" />
-				<input type="hidden" name="a" value="index" />
-				<div class="layui-form-item">
-				  <div class="layui-inline">
-					<div class="layui-input-inline">
-					  <input type="text" class="layui-input" name='keyword' value="<?php echo ($keyword); ?>" placeholder="输入关键词然后回车">  
-					</div>
-					<div class="layui-input-inline">
-						<button class="layui-btn layui-btn-sm"  type="submit"> 搜索</button>
-					</div>
-				  </div>
-				</div>
-			</form>
-			<form action="" class="layui-form" lay-filter="example" method="post" >
-       
-				<div class="row">
-					<div class="col-md-12">
-					
-						<div class="page-table-header">
-							<input type='checkbox' name="checkall" lay-skin="primary" lay-filter="checkboxall"  />
-							<span class="pull-right"> 
-								<a href="<?php echo U('Orderdistribution/adddistribution', array('ok' => 1));?>" class="layui-btn layui-btn-sm "><i class="fa fa-plus"></i> 添加配送员
-								</a>
-							</span>
-							<div class="btn-group">
-								<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch-remove' data-confirm="确认要删除,有配送单的不可删除?" data-href="<?php echo U('orderdistribution/deletedistribution');?>">
-									 删除
-								</button>
-							</div>
-						</div>
-						<table class="table table-responsive" lay-even lay-skin="line" lay-size="lg">
-							<thead>
-							 <tr>
-								<th style="width:25px;"></th>
-								 <th style="width:60px;">ID</th>
-								<th style="width:200px;">配送员姓名</th>
-								<th>关联会员</th>
-								<th style="width:120px;">手机号</th>
-								<th style="width:200px;">常驻地址</th>
-								<th style="width:140px;">配送商品总量</th>
-								 <th style="width:100px;">所属供应商</th>
-								<th style="">状态</th>
-								<th style="width: 260px">操作</th>
-							</tr>
-							</thead>
-							<tbody>
-							<?php foreach( $list as $row ){ ?>
-								<tr>
-									<td>
-										<input type='checkbox' name="item_checkbox" lay-skin="primary" value="<?php echo ($row['id']); ?>"/>
-									</td>
-									 <td>
-										<?php echo ($row['id']); ?>
-									</td>
-									<td style="cursor: pointer;" ><?php echo ($row['username']); ?></td>
-									
-									<td style="cursor: pointer;" >
-										<div rel="pop" style="display: flex" >
-										   <img class="img-40" src="<?php echo tomedia($row['mb_info']['avatar']);?>" style='border-radius:50%;border:1px solid #efefef;' />
-										   <span style="display: flex;flex-direction: column;justify-content: center;align-items: flex-start;padding-left: 5px">
-											   <span class="nickname">
-												  <?php echo ($row['mb_info']['nickname']); ?>
-											   </span>
-										   </span>
-										</div>
-									</td>
-									<td ><?php echo ($row['mobile']); ?></td>
-									<td ><?php echo ($row['always_address']); ?></td>
-									<td ><?php echo ($row['has_send_count']); ?></td>
-									<td ><?php echo ($row['storename']); ?></td>
-									<td>
-										  <input type="checkbox" name="" lay-filter="statewsitch" data-href="<?php echo U('orderdistribution/change',array('type'=>'state','id'=>$row['id']));?>" <?php if( $row['state']==1){ ?>checked<?php  }else{ } ?> lay-skin="switch" lay-text="启用|禁用">
-                  
-									</td>
-									<td>
-									
-										<a class="layui-btn layui-btn-xs " href="<?php echo U('orderdistribution/adddistribution', array('id' => $row['id'] , 'ok' => 1));?>">
-											<i class="layui-icon layui-icon-edit"></i>编辑
-										</a>
-						
-										<a  class='layui-btn layui-btn-xs deldom' href="javascript:;" data-href="<?php echo U('orderdistribution/deletedistribution', array('id' => $row['id']));?>" data-confirm='确认要删除,有配送单的不可删除?'>
-											<i class="layui-icon">&#xe640;</i>删除
-										</a>
-
-										<a class="layui-btn layui-btn-xs " href="<?php echo U('orderdistribution/distribution_list', array('id' => $row['id'] , 'ok' => 1));?>">
-											配送记录
-										</a>
-									</td>
-								</tr>
-							<?php } ?>
-							</tbody>
-							<tfoot>
-							<tr>
-								<td colspan="2">
-									<div class="page-table-header">
-										<input type="checkbox" name="checkall" lay-skin="primary" lay-filter="checkboxall">
-										<div class="btn-group">
-											<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch-remove' data-confirm="确认要删除,有配送单的不可删除?" data-href="<?php echo U('user/deletedistribution');?>">
-												 删除
-											</button>
-										</div>
-									</div>
-								</td>
-								<td colspan="8" style="text-align: right">
-									<?php echo ($pager); ?>
-								</td>
-							</tr>
-							</tfoot>
-						</table>
-					</div>
-				</div>
-				
-			</form>
-		</div>
-	</div>
-</div>
-
-
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  
-  
-	$('.deldom').click(function(){
-		var s_url = $(this).attr('data-href');
-		layer.confirm($(this).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						success:function(info){
-						
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-	})
-	
-	$('.btn-operation').click(function(){
-		var ids_arr = [];
-		var obj = $(this);
-		var s_toggle = $(this).attr('data-toggle');
-		var s_url = $(this).attr('data-href');
-		
-		
-		$("input[name=item_checkbox]").each(function() {
-			
-			if( $(this).prop('checked') )
-			{
-				ids_arr.push( $(this).val() );
-			}
-		})
-		if(ids_arr.length < 1)
-		{
-			layer.msg('请选择要操作的内容');
-		}else{
-			var can_sub = true;
-			if( s_toggle == 'batch-remove' )
-			{
-				can_sub = false;
-				
-				layer.confirm($(obj).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						data:{ids:ids_arr},
-						success:function(info){
-						
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-			}else{
-				$.ajax({
-					url:s_url,
-					type:'post',
-					dataType:'json',
-					data:{ids:ids_arr},
-					success:function(info){
-					
-						if(info.status == 0)
-						{
-							layer.msg(info.result.message,{icon: 1,time: 2000});
-						}else if(info.status == 1){
-							var go_url = location.href;
-							if( info.result.hasOwnProperty("url") )
-							{
-								go_url = info.result.url;
-							}
-							
-							layer.msg('操作成功',{time: 1000,
-								end:function(){
-									location.href = info.result.url;
-								}
-							}); 
-						}
-					}
-				})
-			}
-		}
-	})
-  
-	form.on('switch(statewsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var s_value = 1;
-	  if(data.elem.checked)
-	  {
-		s_value = 1;
-	  }else{
-		s_value = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{value:s_value},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	});  
-	form.on('checkbox(checkboxall)', function(data){
-	  
-	  if(data.elem.checked)
-	  {
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", true);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", true);
-		});
-		
-	  }else{
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", false);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", false);
-		});
-	  }
-	  
-	  form.render('checkbox');
-	});
-  
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-})
-
-
-
-</script>  
-
-<script>
-var ajax_url = "";
-$(function(){
-
-	$(".ajaxModal").click(function () {
-        var s_url = $(this).attr('data-href');
-		ajax_url = s_url;
-       $.ajax({
-				url:s_url,
-				type:"get",
-				success:function(shtml){
-					$('#ajaxModal').html(shtml);
-					$("#ajaxModal").modal();
-				}	
-		})
-    });
-	$(document).delegate(".modal-footer .btn-primary","click",function(){
-		var s_data = $('#ajaxModal form').serialize();
-		$.ajax({
-			url:ajax_url,
-			type:'post',
-			dataType:'json',
-			data:s_data,
-			success:function(info){
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-		return false;
-	})
-	
-	
-})
-</script>
-<div id="ajaxModal" class="modal fade" style="display: none;">
-
-</div>
-</body>

+ 0 - 392
Runtime/Cache/Seller/094b4595641b1c82968b39e1295493b1.php

@@ -1,392 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-  window.sysinfo = {
-  <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-  
-  <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-  
-  <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-  
-  <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-  
-  'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-  
-  'siteroot': '<?php echo ($_W['siteroot']); ?>',
-    'siteurl': '<?php echo ($_W['siteurl']); ?>',
-    'attachurl': '<?php echo ($_W['attachurl']); ?>',
-    'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-    'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-    'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-    'cookie' : {'pre': ''},
-    'account' : <?php echo json_encode($_W['account']);?>,
-  };
-</script>
-
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-<link href="/static/css/snailfish.css" rel="stylesheet">
-</head>
-<body layadmin-themealias="default">
-<div class="layui-fluid">
-  <div class="layui-card">
-    <div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">角色管理</span></div>
-    <div class="layui-card-body" style="padding:15px;">
-      <form action="" method="get" class="form-horizontal form-search layui-form" role="form">
-		
-		<input type="hidden" name="c" value="perm" />
-		<input type="hidden" name="a" value="index" />
-        
-				
-        <div class="layui-form-item">
-          <div class="layui-inline">
-				<div class="layui-input-inline" >
-					<select name="status" class='form-control'>
-						<option value="" <?php if($gpc['status'] == ''){ ?>selected<?php } ?>>状态</option>
-						<option value="1" <?php if($gpc['status']== '1'){ ?> selected<?php } ?>>启用</option>
-						<option value="0" <?php if($gpc['status'] == '0'){ ?> selected<?php } ?>>禁用</option>
-					</select>
-				</div>
-				  <div class="layui-input-inline">
-					<input type="text" class="layui-input" name='keyword' value="<?php echo ($gpc['keyword']); ?>" placeholder="请输入关键词">  
-				  </div>
-				  
-			  <div class="layui-input-inline">
-				<button class="layui-btn layui-btn-sm"  type="submit"> 搜索</button>
-			  </div>
-          </div>
-        </div>
-        
-      </form>
-      <form action="" class="layui-form" lay-filter="example" method="post" >
-       
-        <div class="row">
-          <div class="col-md-12">
-            <div class="page-table-header">
-              <span class="pull-right"> 
-                <a href="<?php echo U('perm/addrole');?>" class="layui-btn layui-btn-sm"><i class="fa fa-plus"></i> 添加新角色</a>
-              </span>
-              <div class="btn-group">
-                <button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch' data-href="<?php echo U('perm/rolestatus',array('status'=>1));?>">启用</button>
-                <button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch' data-href="<?php echo U('perm/rolestatus',array('status'=>0));?>">禁用</button>
-                <button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch-remove' data-confirm="确认要删除?" data-href="<?php echo U('perm/roledelete');?>">删除</button>
-              </div>
-            </div>
-            <table class="layui-table" lay-skin="line" lay-size="lg">
-              <thead>
-                  <tr>
-					<th style="width:25px;">
-						<input type='checkbox' name="checkall" lay-skin="primary" lay-filter="checkboxall"  />
-					</th>
-					<th>角色名称</th>
-					<th>操作员数量</th>
-					<th>状态</th>
-					<th style="width: 265px;">操作</th>
-                  </tr>
-              </thead>
-              <tbody>
-				<?php foreach($list as $row){ ?>
-                <tr>
-					<td>
-						<input type='checkbox' name="item_checkbox" lay-skin="primary" value="<?php echo ($row['id']); ?>"/>
-					</td>
-					<td><?php echo ($row['rolename']); ?></td>
-					<td><?php echo ($row['usercount']); ?></td>                            
-					<td>
-						<input type="checkbox" name="" lay-filter="statewsitch" data-href="<?php echo U('perm/rolestatus',array('id'=>$row['id']));?>" <?php if( $row['status']==1){ ?>checked<?php  }else{ } ?> lay-skin="switch" lay-text="启用|禁用">
-						 
-					</td>
-					<td>
-						<a class='layui-btn layui-btn-xs' href="<?php echo U('perm/addrole', array('id' => $row['id']));?>" >
-						  <i class="layui-icon layui-icon-edit"></i>编辑
-						</a>
-						
-						<a class='layui-btn layui-btn-xs deldom' href="javascript:;" data-href="<?php echo U('perm/roledelete', array('id' => $row['id']));?>" data-confirm='确认要删除吗?'>
-						  <i class="layui-icon">&#xe640;</i>删除
-						</a>
-					</td>
-					
-                </tr>
-              <?php } ?>
-              </tbody>
-              <tfoot>
-              <tr>
-                <td colspan="3">
-                  <div class="page-table-header">
-                    <input type="checkbox" name="checkall" lay-skin="primary" lay-filter="checkboxall">
-					  <div class="btn-group">
-						<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch' data-href="<?php echo U('perm/rolestatus',array('status'=>1));?>">启用</button>
-						<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch' data-href="<?php echo U('perm/rolestatus',array('status'=>0));?>">禁用</button>
-						<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch-remove' data-confirm="确认要删除?" data-href="<?php echo U('perm/roledelete');?>">删除</button>
-					  </div>
-                  </div>
-                </td>
-                <td colspan="2" style="text-align: right">
-                  <?php echo ($pager); ?>
-                </td>
-              </tr>
-              </tfoot>
-            </table>
-          </div>
-        </div>
-        
-      </form>
-    </div>
-  </div>
-</div>
-
-
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-  layui.config({
-    base: '/layuiadmin/' //静态资源所在路径
-  }).extend({
-    index: 'lib/index' //主入口模块
-  }).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  
-  
-  $('.deldom').click(function(){
-    var s_url = $(this).attr('data-href');
-    layer.confirm($(this).attr('data-confirm'), function(index){
-           $.ajax({
-            url:s_url,
-            type:'post',
-            dataType:'json',
-            success:function(info){
-            
-              if(info.status == 0)
-              {
-                layer.msg(info.result.message,{icon: 1,time: 2000});
-              }else if(info.status == 1){
-                var go_url = location.href;
-                if( info.result.hasOwnProperty("url") )
-                {
-                  go_url = info.result.url;
-                }
-                
-                layer.msg('操作成功',{time: 1000,
-                  end:function(){
-                    location.href = info.result.url;
-                  }
-                }); 
-              }
-            }
-          })
-        }); 
-  })
-  
-  $('.btn-operation').click(function(){
-    var ids_arr = [];
-    var obj = $(this);
-    var s_toggle = $(this).attr('data-toggle');
-    var s_url = $(this).attr('data-href');
-    
-    
-    $("input[name=item_checkbox]").each(function() {
-      
-      if( $(this).prop('checked') )
-      {
-        ids_arr.push( $(this).val() );
-      }
-    })
-    if(ids_arr.length < 1)
-    {
-      layer.msg('请选择要操作的内容');
-    }else{
-      var can_sub = true;
-      if( s_toggle == 'batch-remove' )
-      {
-        can_sub = false;
-        
-        layer.confirm($(obj).attr('data-confirm'), function(index){
-           $.ajax({
-            url:s_url,
-            type:'post',
-            dataType:'json',
-            data:{ids:ids_arr},
-            success:function(info){
-            
-              if(info.status == 0)
-              {
-                layer.msg(info.result.message,{icon: 1,time: 2000});
-              }else if(info.status == 1){
-                var go_url = location.href;
-                if( info.result.hasOwnProperty("url") )
-                {
-                  go_url = info.result.url;
-                }
-                
-                layer.msg('操作成功',{time: 1000,
-                  end:function(){
-                    location.href = info.result.url;
-                  }
-                }); 
-              }
-            }
-          })
-        }); 
-      }else{
-        $.ajax({
-          url:s_url,
-          type:'post',
-          dataType:'json',
-          data:{ids:ids_arr},
-          success:function(info){
-          
-            if(info.status == 0)
-            {
-              layer.msg(info.result.message,{icon: 1,time: 2000});
-            }else if(info.status == 1){
-              var go_url = location.href;
-              if( info.result.hasOwnProperty("url") )
-              {
-                go_url = info.result.url;
-              }
-              
-              layer.msg('操作成功',{time: 1000,
-                end:function(){
-                  location.href = info.result.url;
-                }
-              }); 
-            }
-          }
-        })
-      }
-    }
-  })
-  
-  form.on('switch(statewsitch)', function(data){
-    
-    var s_url = $(this).attr('data-href')
-    
-    var s_value = 1;
-    if(data.elem.checked)
-    {
-    s_value = 1;
-    }else{
-    s_value = 0;
-    }
-    
-    $.ajax({
-      url:s_url,
-      type:'post',
-      dataType:'json',
-      data:{status:s_value},
-      success:function(info){
-      
-        if(info.status == 0)
-        {
-          layer.msg(info.result.message,{icon: 1,time: 2000});
-        }else if(info.status == 1){
-          var go_url = location.href;
-          if( info.result.hasOwnProperty("url") )
-          {
-            go_url = info.result.url;
-          }
-          
-          layer.msg('操作成功',{time: 1000,
-            end:function(){
-              location.href = info.result.url;
-            }
-          }); 
-        }
-      }
-    })
-  });  
-  form.on('checkbox(checkboxall)', function(data){
-    
-    if(data.elem.checked)
-    {
-    $("input[name=item_checkbox]").each(function() {
-      $(this).prop("checked", true);
-    });
-    $("input[name=checkall]").each(function() {
-      $(this).prop("checked", true);
-    });
-    
-    }else{
-    $("input[name=item_checkbox]").each(function() {
-      $(this).prop("checked", false);
-    });
-    $("input[name=checkall]").each(function() {
-      $(this).prop("checked", false);
-    });
-    }
-    
-    form.render('checkbox');
-  });
-  
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-  
-   $.ajax({
-    url: data.form.action,
-    type: data.form.method,
-    data: data.field,
-    dataType:'json',
-    success: function (info) {
-      
-      if(info.status == 0)
-      {
-        layer.msg(info.result.message,{icon: 1,time: 2000});
-      }else if(info.status == 1){
-        var go_url = location.href;
-        if( info.result.hasOwnProperty("url") )
-        {
-          go_url = info.result.url;
-        }
-        
-        layer.msg('操作成功',{time: 1000,
-          end:function(){
-            location.href = info.result.url;
-          }
-        }); 
-      }
-    }
-  });
-  
-    return false;
-  });
-})
-
-</script> 
-
-</body>
-</html>

+ 0 - 431
Runtime/Cache/Seller/0cdc0b93e3ff3ed5c12c73a1eaccfde0.php

@@ -1,431 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-	window.sysinfo = {
-	<?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-	
-	<?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-	
-	'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-	
-	'siteroot': '<?php echo ($_W['siteroot']); ?>',
-			'siteurl': '<?php echo ($_W['siteurl']); ?>',
-			'attachurl': '<?php echo ($_W['attachurl']); ?>',
-			'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-			'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-			'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-	'cookie' : {'pre': ''},
-	'account' : <?php echo json_encode($_W['account']);?>,
-	};
-</script>
-
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-<link href="/static/css/snailfish.css" rel="stylesheet">
-<style>
-    tbody tr td{
-        position: relative;
-    }
-    tbody tr  .icow-weibiaoti--{
-        visibility: hidden;
-        display: inline-block;
-        color: #fff;
-        height:18px;
-        width:18px;
-        background: #e0e0e0;
-        text-align: center;
-        line-height: 18px;
-        vertical-align: middle;
-    }
-    tbody tr:hover .icow-weibiaoti--{
-        visibility: visible;
-    }
-    tbody tr  .icow-weibiaoti--.hidden{
-        visibility: hidden !important;
-    }
-    .full .icow-weibiaoti--{
-        margin-left:10px;
-    }
-    .full>span{
-        display: -webkit-box;
-        display: -webkit-flex;
-        display: -ms-flexbox;
-        display: flex;
-        vertical-align: middle;
-        align-items: center;
-    }
-    tbody tr .label{
-        margin: 5px 0;
-    }
-    .goods_attribute a{
-        cursor: pointer;
-    }
-    .newgoodsflag{
-        width: 22px;height: 16px;
-        background-color: #ff0000;
-        color: #fff;
-        text-align: center;
-        position: absolute;
-        bottom: 70px;
-        left: 57px;
-        font-size: 12px;
-    }
-	.a{cursor: pointer;}
-</style>
-</head>
-<body layadmin-themealias="default">
-
-<table id="demo" lay-filter="test"></table>
-
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">商品规格管理</span></div>
-		<div class="layui-card-body" style="padding:15px;">
-			<form action="" method="get" class="form-horizontal form-search layui-form" role="form">
-				<input type="hidden" name="c" value="goods" />
-				<input type="hidden" name="a" value="goodsspec" />
-				
-				<div class="layui-form-item">
-				  <div class="layui-inline">
-					<div class="layui-input-inline">
-					  <input type="text" class="layui-input" name='keyword' value="<?php echo ($keyword); ?>" placeholder="输入关键词然后回车">  
-					</div>
-					<div class="layui-input-inline">
-						<button class="layui-btn layui-btn-sm"  type="submit"> 搜索</button>
-					</div>
-				  </div>
-				</div>
-			</form>
-			<form action="" class="layui-form" lay-filter="example" method="post" >
-       
-				<div class="row">
-					<div class="col-md-12">
-						<div class="page-table-header">
-							<input type='checkbox' name="checkall" lay-skin="primary" lay-filter="checkboxall"  />
-							
-							<span class="pull-right"> 
-								<a href="<?php echo U('goods/addspec', array('ok' => 1));?>" class="layui-btn layui-btn-sm"><i class="fa fa-plus"></i> 添加商品规格</a>
-							</span>
-							<div class="btn-group">
-								<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch-remove' data-confirm="确认要删除吗?" data-href="<?php echo U('goods/deletespec');?>">
-									 删除
-								</button>
-							</div>
-						</div>
-						<table class="table table-responsive" lay-even lay-skin="line" lay-size="lg">
-							<thead>
-							 <tr>
-								 <th style="width:25px;"></th>
-								<th>规格名称</th>
-								<th>具体值</th>
-								<th style="width:165px;text-align: center;">操作</th>
-							</tr>
-							</thead>
-							<tbody>
-								<?php foreach( $label as $row ){ ?>
-								<tr>
-									<td>
-										<?php if( $row['id']!='default'){ ?>
-										<input type='checkbox' name="item_checkbox" lay-skin="primary" value="<?php echo ($row['id']); ?>"/>
-										<?php } ?>
-									</td>
-									<td><?php echo ($row['name']); ?></td>
-									 <td><?php echo ($row['value_str']); ?></td>
-								   
-									<td style="text-align: center;">
-										<a  class='layui-btn layui-btn-xs' href="<?php echo U('goods/editspec', array('id' => $row['id'], 'ok' => 1));?>"  >
-											<i class="layui-icon">&#xe608;</i>编辑
-										</a>
-										<?php if( $row['id']!='default'){ ?>
-											<a  class='layui-btn layui-btn-xs deldom' href="javascript:;" data-href="<?php echo U('goods/deletespec', array('id' => $row['id']));?>" data-confirm='确认要删除吗?'>
-												<i class="layui-icon">&#xe640;</i>删除
-											</a>
-										<?php } ?>
-									</td>
-								</tr>
-								<?php } ?>
-							</tbody>
-							<tfoot>
-							<tr>
-								<td colspan="2">
-									<div class="page-table-header">
-										<input type="checkbox" name="checkall" lay-skin="primary" lay-filter="checkboxall">
-										<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch-remove' data-confirm="确认要删除吗?" data-href="<?php echo U('goods/deletespec');?>">
-											 删除
-										</button>
-									</div>
-								</td>
-								<td colspan="2" style="text-align: right">
-									<?php echo ($pager); ?>
-								</td>
-							</tr>
-							</tfoot>
-						</table>
-					</div>
-				</div>
-				
-			</form>
-		</div>
-	</div>
-</div>
-
-
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  
-  
-	$('.deldom').click(function(){
-		var s_url = $(this).attr('data-href');
-		layer.confirm($(this).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						success:function(info){
-						
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-	})
-	
-	$('.btn-operation').click(function(){
-		var ids_arr = [];
-		var obj = $(this);
-		var s_toggle = $(this).attr('data-toggle');
-		var s_url = $(this).attr('data-href');
-		
-		
-		$("input[name=item_checkbox]").each(function() {
-			
-			if( $(this).prop('checked') )
-			{
-				ids_arr.push( $(this).val() );
-			}
-		})
-		if(ids_arr.length < 1)
-		{
-			layer.msg('请选择要操作的内容');
-		}else{
-			var can_sub = true;
-			if( s_toggle == 'batch-remove' )
-			{
-				can_sub = false;
-				
-				layer.confirm($(obj).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						data:{ids:ids_arr},
-						success:function(info){
-						
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-			}else{
-				$.ajax({
-					url:s_url,
-					type:'post',
-					dataType:'json',
-					data:{ids:ids_arr},
-					success:function(info){
-					
-						if(info.status == 0)
-						{
-							layer.msg(info.result.message,{icon: 1,time: 2000});
-						}else if(info.status == 1){
-							var go_url = location.href;
-							if( info.result.hasOwnProperty("url") )
-							{
-								go_url = info.result.url;
-							}
-							
-							layer.msg('操作成功',{time: 1000,
-								end:function(){
-									location.href = info.result.url;
-								}
-							}); 
-						}
-					}
-				})
-			}
-		}
-	})
-  
-	form.on('switch(statewsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var s_value = 1;
-	  if(data.elem.checked)
-	  {
-		s_value = 1;
-	  }else{
-		s_value = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{value:s_value},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	});  
-	form.on('checkbox(checkboxall)', function(data){
-	  
-	  if(data.elem.checked)
-	  {
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", true);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", true);
-		});
-		
-	  }else{
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", false);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", false);
-		});
-	  }
-	  
-	  form.render('checkbox');
-	});
-  
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-})
-
-
-
-</script>  
-</body>

+ 0 - 194
Runtime/Cache/Seller/12a95d888f43d458ac24724bd90075cb.php

@@ -1,194 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><style>
-    .recharge_info{
-        display: -webkit-box;
-        display: -webkit-flex;
-        display: -ms-flexbox;
-        display: flex;
-        justify-content: space-around;
-        margin-bottom: 10px;
-    }
-    .recharge_info>div{
-        -webkit-box-flex: 1;
-        -webkit-flex: 1;
-        -ms-flex: 1;
-        flex: 1;
-        border:1px solid #efefef;
-        margin: 0 10px;
-        padding:10px 22px;
-        line-height: 25px;
-        color: #333;
-    }
-</style>
-
-
-
-<form action="" method="post" class="form-horizontal form-validate" enctype="multipart/form-data">
-
-    <input type="hidden" name="c" value="user" />
-    <input type="hidden" name="a" value="recharge" />
-    
-    <input type='hidden' name='type' value="<?php echo ($type); ?>" id="leixing"/>
-    <input type='hidden' name='id' value="<?php echo ($id); ?>" />
-    <input type="hidden" name="final_type" value="<?php echo ($type); ?>" id="final_type">
-
-    <div class="modal-dialog">
-        <div class="modal-content">
-            <div class="modal-header">
-                <button data-dismiss="modal" class="close" type="button">×</button>
-                <h4 class="modal-title">会员充值</h4>
-            </div>
-            <div class="modal-body">
-
-
-
-                <div class="recharge_info">
-                    <div>
-                        <label class="pull-left" style="margin-right: 25px">粉丝</label>
-                        <div class="pull-left">
-                            <img class="radius50" src='<?php echo ($profile['avatar']); ?>' style='width:20px;height:20px;padding:1px;border:1px solid #ccc'/>
-                            <?php echo ($profile['username']); ?>
-                        </div>
-                    </div>
-                    <div>
-                        <label class="pull-left " style="margin-right: 25px">会员信息</label>
-                            <div class="pull-left">
-                                ID: <?php echo ($profile['id']); ?></br>
-                                姓名: <?php echo ($profile['realname']); ?></br>
-                                手机号: <?php echo ($profile['mobile']); ?>
-                            </div>
-                    </div>
-
-                </div>
-                <div class="tabs-container">
-
-                    <div class="tabs">
-                        <ul class="nav nav-tabs">
-                            
-                            <li <?php if( $type=='score'){ ?>class="active"<?php } ?>><a data-toggle="tab" href="#tab-1" data-rechargetype="score" aria-expanded="true"> 充值积分</a></li>
-                           
-                            <li <?php if( $type=='account_money'){ ?>class="active"<?php } ?>><a data-toggle="tab" href="#tab-2"  data-rechargetype="account_money" aria-expanded="false"> 充值余额</a></li>
-                           
-                        </ul>
-                        <div class="tab-content ">
-                            <div id="tab-1" class="tab-pane <?php if( $type=='score'){ ?>active<?php } ?>">
-                                <div class="form-group"></div>
-                                <div class="form-group">
-                                    <label class="col-sm-2 control-label">当前积分</label>
-                                    <div class="col-sm-9 col-xs-12">
-                                        <div class="form-control-static"><?php echo ($profile['score']); ?></div>
-                                    </div>
-                                </div>
-                            </div>
-                            <div id="tab-2" class="tab-pane <?php if( $type=='account_money'){ ?>active<?php } ?>">
-                                <div class="form-group"></div>
-                                <div class="form-group">
-                                    <label class="col-sm-2 control-label">当前余额</label>
-                                    <div class="col-sm-9 col-xs-12">
-                                        <div class="form-control-static"><?php echo ($profile['account_money']); ?></div>
-                                    </div>
-                                </div>
-                            </div>
-                        </div>
-                    </div>
-                </div>
-                <div class="form-group">
-                    <label class="col-sm-2 control-label">变化</label>
-                    <div class="col-sm-9 col-xs-12">
-                        <label class='radio-inline'>
-                            <input type='radio' name='changetype' value='0' checked /> 增加
-                        </label>
-                        <label class='radio-inline'>
-                            <input type='radio' name='changetype' value='1' /> 减少
-                        </label>
-                        <label class='radio-inline'>
-                            <input type='radio' name='changetype' value='2' /> 最终<span class='name'><?php if( $type=='score'){ ?>积分<?php  }else{ ?>余额<?php } ?></span>
-                        </label>
-                    </div>
-                </div>
-
-
-                <div class="form-group">
-                    <label class="col-sm-2 control-label mustl">充值数目</label>
-                    <div class="col-sm-9 col-xs-12">
-                        <input type="text" name="num" class="form-control" value="" data-rule-number='true' data-rule-required='true' data-rule-min='0.01' />
-                    </div>
-                </div>
-
-                <div class="form-group">
-                    <label class="col-sm-2 control-label">备注</label>
-                    <div class="col-sm-9 col-xs-12">
-                        <textarea name="remark" class="form-control richtext" cols="70"></textarea>
-                    </div>
-                </div>
-
-            </div> <div class="modal-footer">
-            <button class="btn btn-info btn-submit" type="submit" id="recharge">确认充值<?php if( $type=='score'){ ?>积分<?php  }else{ ?>余额<?php } ?></button>
-            <button data-dismiss="modal" class="btn btn-default" type="button">取消</button>
-        </div>
-        </div>
-    </div>
-
-</form>
-<script language='javascript'>
-    $(function(){
-        $('[data-toggle="tab"]').click(function(){
-            var type =$(this).data('rechargetype');
-            console.log(type);
-            if(type=='score') {
-                $('.name').html('积分');
-                $(".btn-submit").text('确认充值积分');
-            }else{
-                $('.name').html('余额');
-                $(".btn-submit").text('确认充值余额');
-            }
-            $("#leixing").val( type) ;
-        });
-
-
-        $("#recharge").click(function(){
-            var myurl = $(this).attr('data-href');
-
-            var s_data = $('#ajaxModal form').serialize();
-            $.ajax({
-
-                url:myurl,
-                type:'post',
-                dataType:'json',
-                data:s_data,
-                success:function(info){
-                    if(info.status == 0)
-                    {
-                        layer.msg(info.result.message,{icon: 1,time: 2000});
-                    }else if(info.status == 1){
-                        var go_url = location.href;
-                        if( info.result.hasOwnProperty("url") )
-                        {
-                            go_url = info.result.url;
-                        }
-
-                        layer.msg('操作成功',{time: 1000,
-                            end:function(){
-                                location.href = info.result.url;
-                            }
-                        });
-                    }
-                }
-            })
-            return false;
-        })
-
-    })
-	
-	
-
-    // $('.btn-submit').click(function() {
-    //     var d = {};
-    //     var t = $('form').serializeArray();
-    //     //t的值为[{name: "a1", value: "xx"},
-    //     //{name: "a2", value: "xx"}...]
-    //     $.each(t, function() {
-    //         d[this.name] = this.value;
-    //     });
-    //     alert(JSON.stringify(d));
-    // });
-</script>

+ 0 - 1716
Runtime/Cache/Seller/175b16b55997be6651d2eaf8f7c5a1f6.php

@@ -1,1716 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-	window.sysinfo = {
-	<?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-	
-	<?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-	
-	'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-	
-	'siteroot': '<?php echo ($_W['siteroot']); ?>',
-			'siteurl': '<?php echo ($_W['siteurl']); ?>',
-			'attachurl': '<?php echo ($_W['attachurl']); ?>',
-			'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-			'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-			'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-	'cookie' : {'pre': ''},
-	'account' : <?php echo json_encode($_W['account']);?>,
-	};
-</script>
-
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-
-<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-<link href="/static/css/snailfish.css" rel="stylesheet">
-<style>
-    tbody tr td{
-        position: relative;
-    }
-    tbody tr  .icow-weibiaoti--{
-        visibility: hidden;
-        display: inline-block;
-        color: #fff;
-        height:18px;
-        width:18px;
-        background: #e0e0e0;
-        text-align: center;
-        line-height: 18px;
-        vertical-align: middle;
-    }
-    tbody tr:hover .icow-weibiaoti--{
-        visibility: visible;
-    }
-    tbody tr  .icow-weibiaoti--.hidden{
-        visibility: hidden !important;
-    }
-    .full .icow-weibiaoti--{
-        margin-left:10px;
-    }
-    .full>span{
-        display: -webkit-box;
-        display: -webkit-flex;
-        display: -ms-flexbox;
-        display: flex;
-        vertical-align: middle;
-        align-items: center;
-    }
-    tbody tr .label{
-        margin: 5px 0;
-    }
-    .goods_attribute a{
-        cursor: pointer;
-    }
-    .newgoodsflag{
-        width: 22px;height: 16px;
-        background-color: #ff0000;
-        color: #fff;
-        text-align: center;
-        position: absolute;
-        bottom: 70px;
-        left: 57px;
-        font-size: 12px;
-    }
-	.a{cursor: pointer;}
-	.daterangepicker select.ampmselect, .daterangepicker select.hourselect, .daterangepicker select.minuteselect{
-		width:auto!important;
-	}
-	.we7-modal-dialog .modal-footer, .modal-dialog .modal-footer{padding:0px;}
-	.modal-footer{padding:0px;}
-</style>
-</head>
-<body layadmin-themealias="default">
-
-<table id="demo" lay-filter="test"></table>
-
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">商品列表</span></div>
-		
-		<div class="layui-tab layui-tab-brief" >
-		  <ul class="layui-tab-title">
-				<li  <?php if(empty($type) || $type=='all'){ ?>class="layui-this"<?php } ?>><a href="<?php echo U('group/goods');?>">全部商品(<?php echo ($all_count); ?>)</a></li>
-                <li  <?php if($type=='saleon'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U('group/goods',array('type'=>'saleon'));?>">出售中(<?php echo ($onsale_count); ?>)</a></li>
-                <li <?php if($type=='stock_notice'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U('group/goods',array('type'=>'stock_notice'));?>">库存预警(<?php echo ($stock_notice_count); ?>)</a></li>
-                <li <?php if($type=='getdown'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U('group/goods',array('type'=>'getdown'));?>">已下架(<?php echo ($getdown_count); ?>)</a></li>
-              
-				<?php if($is_open_shenhe == 1){ ?>
-				<li <?php if($type=='warehouse'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U('group/goods',array('type'=>'warehouse'));?>">仓库(<?php echo ($warehouse_count); ?>)</a></li>
-               <?php } ?>
-			    <li <?php if($type=='recycle'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U('group/goods',array('type'=>'recycle'));?>">回收站(<?php echo ($recycle_count); ?>)</a></li>
-				
-		  </ul>
-		</div>
-		
-		<div class="layui-card-body" style="padding:15px;">
-			<form action="" method="get" class="form-horizontal form-search layui-form" role="form">
-				<input type="hidden" name="c" value="group" />
-				<input type="hidden" name="a" value="goods" />
-				<input type="hidden" name="type" value="<?php echo ($type); ?>" />
-				
-				<div class="layui-form-item">
-				  <div class="layui-inline">
-					<div class="layui-input-inline" >
-						<input type="text" class="layui-input"  name="keyword" value="<?php echo ($keyword); ?>" placeholder="输入商品编码或者名称"/>
-					</div>
-					<div class="layui-input-inline" >
-						<select name='searchtime'  class='layui-input layui-unselect'   style="width:100px;padding:0 5px;">
-							<option value=''>不按时间</option>
-							<option value='create' <?php if($searchtime=='create'){ ?>selected<?php } ?>>团购时间</option>
-						</select>
-					</div>
-					<div class="layui-input-inline" style="width:280px;">
-						<?php echo tpl_form_field_daterange('time', array('starttime'=>date('Y-m-d H:i', $starttime),'endtime'=>date('Y-m-d H:i', $endtime)),true);;?>
-					</div>
-					<div class="layui-input-inline" >
-						<select name="cate" class='layui-input layui-unselect' style="width:200px;" >
-							<option value="" <?php if( empty($cate) ){ ?>selected<?php } ?> >商品分类</option>
-							<?php foreach($category as $c){ ?>
-							<option value="<?php echo ($c['id']); ?>" <?php if( $cate==$c['id'] ){ ?>selected<?php } ?> ><?php echo ($c['name']); ?></option>
-							<?php } ?>
-						</select>
-					</div>
-				  <div class="layui-input-inline" >
-					  <select name="goods_type" class='layui-input layui-unselect' style="width:200px;" >
-						  <option value="" <?php if( empty($goods_type) ){ ?>selected<?php } ?> >商品类型</option>
-						  <option value="1" <?php if( $goods_type==1 ){ ?>selected<?php } ?> >普通商品</option>
-						  <option value="2" <?php if( $goods_type==2 ){ ?>selected<?php } ?> >返利商品</option>
-					  </select>
-				  </div>
-					
-					<div class="layui-input-inline">
-						<button class="layui-btn layui-btn-sm" type="submit"> 搜索</button>
-					</div>
-				  </div>
-				</div>
-			</form>
-			<form action="" class="layui-form" lay-filter="example" method="post" >
-       
-				<div class="row">
-					<div class="col-md-12">
-					
-						<div class="page-table-header">
-							
-							<span class="pull-right"> 
-								<a href="<?php echo U('group/addgoods', array('ok' =>1));?>" class="layui-btn layui-btn-sm"><i class="fa fa-plus"></i> 添加商品</a>
-							</span>
-							<div class="btn-group">
-								<?php if($is_index){ ?>
-								<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch'  data-href="<?php echo U('goods/change',array('type'=>'is_index_show', 'value' => 1));?>">
-									<i class='icow icow-xiajia3'></i> 主页推荐
-								</button>
-								<?php } ?>
-								
-								<?php if($is_updown){ ?>
-								<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch' data-href="<?php echo U('goods/change',array('type'=>'grounding','value'=>1));?>">
-									<i class='icow icow-shangjia2'></i> 上架
-								</button>
-								<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch'  data-href="<?php echo U('goods/change',array('type'=>'grounding','value'=>0));?>">
-									<i class='icow icow-xiajia3'></i> 下架
-								</button>
-								<?php } ?>
-								
-								
-								<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch-group'  id="batchcatesbut" >商品分类</button>
-								
-								<?php if( $pintuan_model_buy == 1 ){ ?>
-								<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch-group'  id="batch_head" >分配售卖团长</button>
-								<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch-group'  id="batch_head_group" >分配售卖团长分组</button>
-								<?php } ?>
-								
-								
-								<button class="btn btn-default btn-sm btn-operation" type="button" data-toggle='batch-group'  id="batchtime" >设置活动时间</button>
-								
-								<?php if($type!='recycle'){ ?>
-								<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch-remove' data-confirm="确认要删除吗,删除后商品将进入回收站?" data-href="<?php echo U('goods/change',array('type'=>'grounding','value'=>3));?>">
-									<i class='icow icow-shanchu1'></i> 删除
-								</button>
-								<?php } ?>
-								<?php if($type=='recycle'){ ?>
-								<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch-remove' data-confirm="确认要彻底删除吗?" data-href="<?php echo U('goods/delete');?>"><i class='icow icow-shanchu1'></i> 彻底删除</button>
-								<?php } ?>
-							</div>
-						</div>
-						<table class="table table-responsive" lay-even lay-skin="line" lay-size="lg">
-						
-							<thead>
-								<tr>
-									<th style="width:25px;">
-										<input type='checkbox' name="checkall" lay-skin="primary" lay-filter="checkboxall"  />
-									</th>
-									<th style="width:80px;text-align:center;">ID</th>
-									<th style="">&nbsp;</th>
-									<th style="width:200px;">商品名称</th>
-									<th style="">活动时间</th>
-									<th style="width: 120px;">价格</th>
-									<th style="width: 80px;">销量</th>
-									<th style="width: 80px;">库存</th>
-									
-									<th  style="width:180px;" >是否上架<?php if($is_open_shenhe==1){ ?><br/>是否审核<?php } ?></th>
-								
-								<?php if($is_top){ ?>
-									<?php if($index_sort_method == 1){ ?>
-									<th>主页排序</th>
-									<?php }else{ ?>
-									<th>置顶</th>
-									<?php } ?>
-								<?php } ?>
-								
-									<?php if($is_index){ ?>
-										<th>主页推荐</th>
-										<?php } ?>
-									<th style="">操作</th>
-								</tr>
-							</tr>
-							</thead>
-							<tbody>
-							
-							<?php foreach($list as $item){ ?>
-							<tr>
-							<td>
-								<input type='checkbox' name="item_checkbox" data_is_all_sale="<?php echo ($item['is_all_sale']); ?>"  class="checkone" lay-skin="primary" value="<?php echo ($item['id']); ?>"/>
-							</td>
-							<td style="text-align:center;">
-								<?php echo ($item['id']); ?>
-							</td>
-							<td>
-								<a href="<?php echo U('group/editgoods', array('id' => $item['id'],'goodsfrom'=>$goodsfrom,'page'=>$page));?>">
-									<img src="<?php echo ($item['thumb']); ?>" style="width:72px;height:72px;padding:1px;border:1px solid #efefef;margin: 7px 0"  />
-								</a>
-							</td>
-							<td class='full' >
-								<span>
-									<span style="display: block;width: 100%;">
-
-										<?php if($item['is_pintuan_rebate'] == 1){?><span class="text" style="color:#009688;">[拼团返利]</span><?php }?>
-										<?php if($item['supply_id'] <=0){ ?><span class="text">[自营<?php if( !empty($item['supply_name']) ){ echo ($item['supply_name']); } ?>]</span><?php }else if( !empty($item['supply_name']) ){ ?><span class="text">[<?php echo ($item['supply_name']); ?>]</span><?php } ?>
-										<a href='javascript:;' data-toggle='ajaxEdit' data-href="<?php echo U('goods/change',array('type'=>'goodsname','id'=>$item['id']));?>" >
-							
-										<span class="text-danger"><?php echo ($item['goodsname']); ?></span>
-										</a>
-										
-										
-										
-										<?php if( !empty($item['cate']) ){ ?>
-											<?php foreach($item['cate'] as $g_cate){ ?>
-											<span class="text-danger">[<?php echo isset($category[$g_cate['cate_id']]) ? $category[$g_cate['cate_id']]['name']: '无分类';?>]</span>
-											<?php } ?>
-										<?php  }else{ ?>
-										<span class="text-danger">[无分类]</span>
-										<?php } ?>
-										
-										<?php if( $pintuan_model_buy == 1 ){ ?>
-										<br/>
-											<?php if( $item['is_all_sale'] == 1 ){ ?>
-											<span class="text-green">[所有团长<?php echo ($item['head_count']); ?>]</span>
-											<?php }else if( $item['head_count'] >0 ){ ?>
-											<span class="text-green">[部分团长<?php echo ($item['head_count']); ?>]</span>
-											<?php }else if( $item['head_count'] == 0 ){ ?>
-											<span class="text-green">[无团长0]</span>
-											<?php } ?>
-										<?php } ?>
-										
-										
-										<?php if($item['is_new_buy'] == 1){ ?>
-										<span class="line-text">新人专享</a>
-										<?php } ?>
-										
-										
-									</span>
-								</span>
-							</td>
-							<td>
-								<?php echo date("Y-m-d H:i:s",$item['begin_time']);?>
-								   <br/>
-								<?php echo date("Y-m-d H:i:s",$item['end_time']);?>
-								<br/>
-								
-								<?php if($item['grounding']==1){ ?>
-									<?php if($item['end_time'] <= time()){ ?>
-									<span class="text-danger">活动已结束</span>
-									<?php } ?>
-									<?php if( $item['begin_time'] <= time() && $item['end_time'] > time() ){ ?>
-									<span class="text-danger">正在进行中</span>
-									<?php } ?>
-								
-									<?php if( $item['begin_time'] > time() ){ ?>
-									<span class="text-danger">活动未开始</span>
-									<?php } ?>
-								<?php  }else{ ?>
-									
-									<?php if( $item['end_time'] <= time() ){ ?>
-									<span class="text-danger">活动已结束</span>
-									<?php } ?>
-									<?php if( $item['begin_time'] <= time() && $item['end_time'] > time() ){ ?>
-									<span class="text-danger">未上架</span>
-									<?php } ?>
-								
-									<?php if( $item['begin_time'] > time() ){ ?>
-									<span class="text-danger">活动未开始</span>
-									<?php } ?>
-								<?php } ?>
-								
-							</td>
-							<td >&yen;
-								<?php if( $item['hasoption']==1 ){ ?>
-									<?php echo ($item['price_arr']['pin_price']); ?> <?php if( isset($item['price_arr']['max_pinprice']) ){ ?>~&yen;<?php echo ($item['price_arr']['max_pinprice']); } ?>
-								<?php  }else{ ?>
-									<a href='javascript:;' data-toggle='ajaxEdit' data-href="<?php echo U('goods/change',array('type'=>'price','id'=>$item['id']));?>" >
-									<?php echo ($item['price_arr']['pin_price']); ?>
-									</a>
-							   <?php } ?>
-							</td>
-							<td><?php echo ($item['seller_count']); ?></td>
-							<td>
-								
-								<?php if( $item['hasoption']==1 ){ ?>
-									<?php echo ($item['total']); ?>
-								<?php  }else{ ?>
-									<a href='javascript:;' data-toggle='ajaxEdit' data-href="<?php echo U('goods/change',array('type'=>'total','id'=>$item['id']));?>" >
-							
-										<span class="text-danger"><?php echo ($item['total']); ?></span>
-									</a>
-							   <?php } ?>
-							</td>
-							
-							<td>
-								<input type="checkbox" name="" lay-filter="undowngroundingsitch" data-href="<?php echo U('goods/change',array('type'=>'grounding','id'=>$item['id']));?>" <?php if( $item['grounding']==1 ){ ?>checked<?php  }else{ } ?> lay-skin="switch" lay-text="上架|下架">
-								
-							</td>
-							
-						<?php if($is_top){ ?>
-							
-							<?php if($index_sort_method == 1){ ?>
-							<td style="text-align:center;">
-								<a href='javascript:;' data-toggle='ajaxEdit' data-href="<?php echo U('goods/change',array('type'=>'index_sort','id'=>$item['id']));?>" >
-									<span class="text-danger"><?php echo ($item['index_sort']); ?></span>
-								</a>
-							</td>	
-							<?php }else{ ?>
-							<td >
-							
-							<input type="checkbox" name="" lay-filter="istop_showsitch" data-href="<?php echo U('goods/settop',array('type'=>'istop','id'=>$item['id']));?>" <?php if($item['istop']==1){ ?>checked<?php  }else{ } ?> lay-skin="switch" lay-text="置顶|未置顶">
-								
-							</td>
-							<?php } ?>
-						<?php } ?>
-							
-							
-							<?php if($is_index){ ?>
-							<td >
-								<input type="checkbox" name="" lay-filter="is_index_showsitch" data-href="<?php echo U('goods/change',array('type'=>'is_index_show','id'=>$item['id']));?>" <?php if( $item['is_index_show']==1 ){ ?>checked<?php  }else{ } ?> lay-skin="switch" lay-text="主页推荐|未推荐">
-									
-							</td>
-							<?php } ?>
-							
-								<td  style="overflow:visible;position:relative">
-									
-									<a  class='layui-btn layui-btn-xs' href="<?php echo U('group/editgoods', array('id' => $item['id'],'ok'=>1,'page'=>$page));?>"  >
-										<i class="layui-icon layui-icon-edit"></i>编辑
-									</a>
-									
-									<?php if($type!='recycle'){ ?>
-									<a  class='layui-btn layui-btn-xs deldom' href="javascript:;" data-href="<?php echo U('goods/change',array('id' => $item['id'],'type'=>'grounding','value'=>3));?>" data-confirm='确认要删除吗,删除后商品将进入回收站?'>
-										<i class="layui-icon">&#xe640;</i>删除
-									</a>
-									<?php } ?>	
-
-
-									<?php if($type=='recycle'){ ?>
-									<a  class='layui-btn layui-btn-xs deldom' href="javascript:;" data-href="<?php echo U('goods/delete', array('id' => $item['id']));?>" data-confirm='确认要彻底删除吗?'>
-										<i class="layui-icon">&#xe640;</i>彻底删除
-									</a>
-									<?php } ?>									
-											
-									<a href="javascript:;" class="js-clip layui-btn layui-btn-xs" data-url="lionfish_comshop/moduleA/pin/goodsDetail?id=<?php echo ($item['id']); ?>"><i class="layui-icon">&#xe64c;</i>小程序链接</a>
-								</td>
-							</tr>
-							<?php } ?>
-							</tbody>
-							<tfoot>
-							<tr>
-								<td colspan="7">
-									<div class="page-table-header">
-										<input type="checkbox" name="checkall" lay-skin="primary" lay-filter="checkboxall">
-										<div class="btn-group">
-											<?php if($is_index){ ?>
-											<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch'  data-href="<?php echo U('goods/change',array('type'=>'is_index_show', 'value' => 1));?>">
-												<i class='icow icow-xiajia3'></i> 主页推荐
-											</button>
-											<?php } ?>
-											
-											
-											<?php if($is_updown){ ?>
-											<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch' data-href="<?php echo U('goods/change',array('type'=>'grounding','value'=>1));?>">
-												<i class='icow icow-shangjia2'></i> 上架
-											</button>
-											<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch'  data-href="<?php echo U('goods/change',array('type'=>'grounding','value'=>0));?>">
-												<i class='icow icow-xiajia3'></i> 下架
-											</button>
-											<?php } ?>
-											
-											
-											<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch-group'  id="batchcatesbut2" >商品分类</button>
-											
-											<?php if( $pintuan_model_buy == 1 ){ ?>
-											<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch-group'  id="batch_head2" >分配售卖团长</button>
-											<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch-group'  id="batch_head_group2" >分配售卖团长分组</button>
-											<?php } ?>
-
-											<button class="btn btn-default btn-sm btn-operation" type="button" data-toggle='batch-group'  id="batchtime" >设置活动时间</button>
-											
-											<?php if($type!='recycle'){ ?>
-											<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch-remove' data-confirm="确认要删除吗,删除后商品将进入回收站?" data-href="<?php echo U('goods/change',array('type'=>'grounding','value'=>3));?>">
-												<i class='icow icow-shanchu1'></i> 删除
-											</button>
-											<?php } ?>
-											
-											<?php if($type=='recycle'){ ?>
-											<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch-remove' data-confirm="确认要彻底删除吗?" data-href="<?php echo U('goods/delete');?>"><i class='icow icow-shanchu1'></i> 彻底删除</button>
-											<?php } ?>
-										</div>
-									</div>
-								</td>
-								<td colspan="5" style="text-align: right">
-									<?php echo ($pager); ?>
-								</td>
-							</tr>
-							</tfoot>
-						</table>
-					</div>
-				</div>
-				
-			</form>
-		</div>
-	</div>
-</div>
-
-
-<div id="batchcates_html" style="display:none;">
-	<div class="layui-card">
-	  <div class="layui-card-body">
-			<div class="modal-body" >
-                <div class="layui-form-item">
-                    <label class="layui-form-label"></label>
-                    <div class="layui-input-block">
-                        <label class="radio-inline"><input type="radio"  name="iscover" value="0" <?php if($iscover ==0){ ?> checked="checked"<?php } ?> /> 保留原有分类</label>
-                        <label class="radio-inline"><input type="radio"  name="iscover" value="1" <?php if($iscover ==1){ ?> checked="checked"<?php } ?> /> 覆盖原有分类</label>
-					</div>
-                </div>
-                <div class="layui-form-item">
-                    <label class="layui-form-label">商品分类</label>
-                    <div class="layui-input-block">
-						<select id="cates2" lay-verify="cates_sel" name='cates' class="form-control " style='' >
-							
-							<?php foreach($category as $c){ ?>
-							<option value="<?php echo ($c['id']); ?>" <?php if(is_array($cates) && in_array($c['id'],$cates)){ ?>selected<?php } ?> ><?php echo ($c['name']); ?></option>
-							<?php } ?>
-						</select>
-                    </div>
-                </div>
-				<div class="layui-form-item">
-					<div class="layui-input-block">
-						<button class="btn btn-primary modal-fenlei">确认</button>
-						<button class="btn btn-default cancle" >取消</button>
-					</div>
-				</div>
-            </div>
-	  </div>
-	</div>
-</div>
-
-
-<div id="batchcates_headgroup_html" style="display:none;">
-	<div class="layui-card">
-	  <div class="layui-card-body">
-			<div class="modal-body" >
-                
-                <div class="layui-form-item">
-                    <label class="layui-form-label">团长分组</label>
-                    <div class="layui-input-block">
-						<select id="group_heads" lay-verify="group_heads" name='group_heads' class="form-control " style='' >
-							
-							<?php foreach($group_list as $c){ ?>
-							<option value="<?php echo ($c['id']); ?>" <?php if(is_array($cates) && in_array($c['id'],$cates)){ ?>selected<?php } ?> ><?php echo ($c['groupname']); ?></option>
-							<?php } ?>
-						</select>
-                    </div>
-                </div>
-				<div class="layui-form-item">
-                    <label class="layui-form-label">仅这个团长可售</label>
-                    <div class="layui-input-block">
-						<label><input type="checkbox" class="is_cancle_old2" id="is_cancle_old2" name="is_cancle_old2" style="vertical-align: text-bottom;">
-						<div class="btn-group" style="color:#666;">
-							备注:会取消以往所有分配
-						</div>
-						</label>
-						<label><input type="checkbox" class="is_cancle_allhead2" id="is_cancle_allhead2" name="is_cancle_allhead2" style="vertical-align: text-bottom;">
-							<div class="btn-group" style="color:#666;">
-								取消商品 “所有团长可售”
-							</div>
-							<div style="color: #999;font-size: 12px;display: none;" id="all_headgroup_tip">所有商品中包含“所有团长可售”商品,建议取消以免设置失效</div>
-						</label>
-                    </div>
-                </div>
-				
-				<div class="layui-form-item">
-					<div class="layui-input-block">
-						<button class="btn btn-primary modal-group-head">确认</button>
-						<button class="btn btn-default cancle" >取消</button>
-					</div>
-				</div>
-            </div>
-	  </div>
-	</div>
-</div>
-
-
-<div id="batchheads" style="z-index: 999;display: none;position: fixed;top: 0;left: 0;right: 0;bottom: 0;background: rgba(0,0,0,0.5)" class="form-horizontal form-validate batchcates"  enctype="multipart/form-data">
-    <div class="modal-dialog" style="position: absolute;margin-top: -300px">
-        <div class="modal-content">
-            <div class="modal-header">
-                <button data-dismiss="modal" class="close" type="button">×</button>
-                <h4 class="modal-title">选取团长</h4>
-            </div>
-            <div class="modal-body" style="height:600px">
-            	<div class="form-group">
-            	<label class="col-sm-2 control-label">社区位置</label>
-                    <div class="col-sm-10 col-xs-12">
-                        <p>
-			                <select id="sel-provance" name="province_id" onChange="selectCity();" class="select form-control" style="width:130px;display:inline;">
-			                    <option value="" selected="true">省/直辖市</option>
-			                </select>
-			                <select id="sel-city" name="city_id" onChange="selectcounty(0)" class="select form-control" style="width:135px;display:inline;">
-			                    <option value="" selected="true">请选择</option>
-			                </select>
-			                <select id="sel-area" name="area_id" onChange="selectstreet(0)" class="select form-control" style="width:130px;display:inline;">
-			                    <option value="" selected="true">请选择</option>
-			                </select>
-			                 <select id="sel-street" name="country_id" class="select form-control" style="width:130px;display:inline;">
-			                    <option value="" selected="true">请选择</option>
-			                </select>
-			            </p>
-                    </div>
-                </div>
-            	<div class="form-group">
-                    <label class="col-sm-2 control-label">团长名称</label>
-                    <div class="col-sm-10 col-xs-12">
-                        <div class="input-group">
-	                        <input type="text" class="form-control" name="keyword" id="supply_id_input" placeholder="团长名称/团长手机号/社区地址">
-			            	<span class="input-group-btn">
-			            		<button type="button" class="btn btn-default" onclick="search_heads()">搜索</button>
-			            	</span>
-		            	</div>
-                    </div>
-                </div>
-                
-                <div class="form-group">
-                    <div class="col-sm-1 control-label">
-                    
-                    </div>
-                    <div class="col-sm-10 col-xs-12">
-                       	<div class="page-table-header">
-		                    <input type="checkbox" class="check_heads_all">
-		                    <div class="btn-group">
-		                    	全选/反选
-		                    </div>
-							
-							<br/>
-							<label><input type="checkbox" class="is_cancle_old" id="is_cancle_old" style="vertical-align: text-bottom;">
-							<div class="btn-group" style="color:#666;">
-		                    	同时取消以前所有分配
-		                    </div>
-							</label>
-							&nbsp;&nbsp;&nbsp;&nbsp;
-							<label>
-								<input type="checkbox" class="is_cancle_allhead" id="is_cancle_allhead" style="vertical-align: text-bottom;">
-								<div class="btn-group" style="color:#666;">
-									同时取消商品 “所有团长可售”
-								</div>
-							</label>
-		                </div>
-                    </div>
-                </div>
-                
-                <div class="row">
-                	<label class="col-sm-1 control-label"></label>
-                	<div class="col-sm-11 col-xs-12">
-	                	<div class="content" style="padding-top:5px;" data-name="supply_id">
-	                		<div style="max-height:450px;overflow:auto;" id="batchheads_content">
-							
-							</div>
-							<div class="" id="batchheads_page">
-								
-							</div>
-						</div>
-					</div>	
-                </div>
-            	
-                
-            </div>
-            <div class="modal-footer">
-                <button class="btn btn-primary model_heads">确认</button>
-                <button class="btn btn-default" >取消</button>
-            </div>
-        </div>
-    </div>
-</div>
-
-
-
-
-<div id="batch_time" style="z-index: 8;display: none;position: fixed;top: 0;left: 0;right: 0;bottom: 0;background: rgba(0,0,0,0.5)" class="form-horizontal form-validate batchtime"  enctype="multipart/form-data">
-    <div class="modal-dialog" style="position: absolute;margin-top: -190px">
-        <div class="modal-content">
-            <div class="modal-header">
-                <button data-dismiss="modal" class="close" type="button">×</button>
-                <h4 class="modal-title">设置活动时间</h4>
-            </div>
-            <div class="modal-body" style="height:270px">
-                <div class="form-group">
-                    <label class="col-sm-2 control-label">活动时间</label>
-                    <div class="col-sm-8 col-xs-12">
-                        <span class="input-group-btn">
-                            <?php echo tpl_form_field_daterange('setsametime', array('starttime'=>date('Y-m-d H:i', $starttime),'endtime'=>date('Y-m-d H:i', $endtime)),true);;?>
-                        </span>
-                    </div>
-                </div>
-            </div>
-            <div class="modal-footer">
-                <button class="btn btn-primary modal-time">确认</button>
-                <button class="btn btn-default cancle" >取消</button>
-            </div>
-        </div>
-    </div>
-</div>
-
-
-
-
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  
-  
-	$('.deldom').click(function(){
-		var s_url = $(this).attr('data-href');
-		layer.confirm($(this).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						success:function(info){
-						
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-	})
-	
-	$('.btn-operation').click(function(){
-		var ids_arr = [];
-		var obj = $(this);
-		var s_toggle = $(this).attr('data-toggle');
-		var s_url = $(this).attr('data-href');
-		
-		
-		$("input[name=item_checkbox]").each(function() {
-			
-			if( $(this).prop('checked') )
-			{
-				ids_arr.push( $(this).val() );
-			}
-		})
-		if(ids_arr.length < 1)
-		{
-			layer.msg('请选择要操作的内容');
-			return false;
-		}else{
-			var can_sub = true;
-			if( s_toggle == 'batch-remove' )
-			{
-				can_sub = false;
-				
-				layer.confirm($(obj).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						data:{ids:ids_arr},
-						success:function(info){
-						
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-			}else{
-				$.ajax({
-					url:s_url,
-					type:'post',
-					dataType:'json',
-					data:{ids:ids_arr},
-					success:function(info){
-					
-						if(info.status == 0)
-						{
-							layer.msg(info.result.message,{icon: 1,time: 2000});
-						}else if(info.status == 1){
-							var go_url = location.href;
-							if( info.result.hasOwnProperty("url") )
-							{
-								go_url = info.result.url;
-							}
-							
-							layer.msg('操作成功',{time: 1000,
-								end:function(){
-									location.href = info.result.url;
-								}
-							}); 
-							
-						}
-					}
-				})
-			}
-		}
-	})
-
-	
-	  
-	form.on('switch(cmwsitch)', function(data){
-		  
-		  var s_url = $(this).attr('data-href')
-		  
-		  var is_take_fullreduction = 1;
-		  if(data.elem.checked)
-		  {
-			is_take_fullreduction = 1;
-		  }else{
-			is_take_fullreduction = 0;
-		  }
-		  
-		  $.ajax({
-				url:s_url,
-				type:'post',
-				dataType:'json',
-				data:{value:is_take_fullreduction},
-				success:function(info){
-				
-					if(info.status == 0)
-					{
-						layer.msg(info.result.message,{icon: 1,time: 2000});
-					}else if(info.status == 1){
-						var go_url = location.href;
-						if( info.result.hasOwnProperty("url") )
-						{
-							go_url = info.result.url;
-						}
-						
-						layer.msg('操作成功',{time: 1000,
-							end:function(){
-								location.href = info.result.url;
-							}
-						}); 
-					}
-				}
-			})
-		});
-
-		form.on('switch(groundingsitch)', function(data){
-		  
-		  var s_url = $(this).attr('data-href')
-		  
-		  var grounding = 1;
-		  if(data.elem.checked)
-		  {
-			grounding = 1;
-		  }else{
-			grounding = 0;
-		  }
-		  
-		  $.ajax({
-				url:s_url,
-				type:'post',
-				dataType:'json',
-				data:{value:grounding},
-				success:function(info){
-				
-					if(info.status == 0)
-					{
-						layer.msg(info.result.message,{icon: 1,time: 2000});
-					}else if(info.status == 1){
-						var go_url = location.href;
-						if( info.result.hasOwnProperty("url") )
-						{
-							go_url = info.result.url;
-						}
-						
-						layer.msg('操作成功',{time: 1000,
-							end:function(){
-								location.href = info.result.url;
-							}
-						}); 
-					}
-				}
-			})
-		});
-
-
-			
-		
-	form.on('switch(unengroundingsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var grounding = 1;
-	  if(data.elem.checked)
-	  {
-		grounding = 5;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{value:grounding},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	});
-	
-	form.on('switch(engroundingsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var grounding = 1;
-	  if(data.elem.checked)
-	  {
-		grounding = 1;
-	  }else{
-		grounding = 5;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{value:grounding},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	});
-
-
-	form.on('switch(undowngroundingsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var grounding = 1;
-	  if(data.elem.checked)
-	  {
-		grounding = 1;
-	  }else{
-		grounding = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{value:grounding},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	});
-
-  
-form.on('switch(is_index_showsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var is_index_show = 1;
-	  if(data.elem.checked)
-	  {
-		is_index_show = 1;
-	  }else{
-		is_index_show = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{value:is_index_show},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	});
-
-   
-
-	form.on('switch(istop_showsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var istop = 1;
-	  if(data.elem.checked)
-	  {
-		istop = 1;
-	  }else{
-		istop = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{value:istop},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	});
-	
-	form.on('switch(restwsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var rest = 1;
-	  if(data.elem.checked)
-	  {
-		rest = 1;
-	  }else{
-		rest = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{rest:rest},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	}); 
-	form.on('switch(enablewsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var enable = 1;
-	  if(data.elem.checked)
-	  {
-		enable = 1;
-	  }else{
-		enable = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{enable:enable},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	}); 
-	
-	form.on('switch(statewsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var state = 1;
-	  if(data.elem.checked)
-	  {
-		state = 1;
-	  }else{
-		state = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{state:state},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	});  
-	form.on('checkbox(checkboxall)', function(data){
-	  
-	  if(data.elem.checked)
-	  {
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", true);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", true);
-		});
-		
-	  }else{
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", false);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", false);
-		});
-	  }
-	  
-	  form.render('checkbox');
-	});
-  
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-})
-
-</script>  
-<script type="text/javascript" src="/static/js/dist/area/cascade.js"></script>
-<script>
-var heads_page = 1;
-
-	$("body").delegate("#batchheads_page .pagination a","click",function(){
-		heads_page = $(this).attr('page');
-		search_heads_do();
-	})
-	function search_heads()
-    {
-		heads_page = 1;
-		search_heads_do();
-	}
-    function search_heads_do()
-    {
-        var province_name = $('#sel-provance').val();
-        var city_name = $('#sel-city').val();
-        var area_name = $('#sel-area').val();
-        var country_name = $('#sel-street').val();
-        var keyword = $('#supply_id_input').val();
-        
-    	$.post("<?php echo U('communityhead/query_head');?>",{page:heads_page,'province_name':province_name,'city_name': city_name,'area_name':area_name,'country_name':country_name,'keyword':keyword}, 
-    	    function (ret) {
-	            if (ret.status == 1) {
-	                $('#batchheads_content').html(ret.html);
-					$('#batchheads_page').html(ret.page_html);
-	                return
-	            } else {
-	                layer.msg('修改失败');
-	            }
-	        }, 'json');
-    }
-    //显示批量分类
-     $('#batchcatesbut').click(function () {
-      //  var index = layer.load(1);
-		var index = layer.open({
-		  type: 1,
-		  area: '500px',
-		  title: '选取分类'
-		  ,content: $('#batchcates_html').html(),
-		  yes: function(index, layero){
-			//do something
-			layer.close(index); //如果设定了yes回调,需进行手工关闭
-		  }
-		}); 
-    })
-	
-	 $('#batch_head_group').click(function () {
-      //  var index = layer.load(1);
-		var index = layer.open({
-		  type: 1,
-		  area: '500px',
-		  title: '选取团长分组'
-		  ,content: $('#batchcates_headgroup_html').html(),
-		  yes: function(index, layero){
-			//do something
-			layer.close(index); //如果设定了yes回调,需进行手工关闭
-		  }
-		}); 
-    })
-	
-	$('#batch_head_group2').click(function () {
-      //  var index = layer.load(1);
-		var index = layer.open({
-		  type: 1,
-		  area: '500px',
-		  title: '选取团长分组'
-		  ,content: $('#batchcates_headgroup_html').html(),
-		  yes: function(index, layero){
-			//do something
-			layer.close(index); //如果设定了yes回调,需进行手工关闭
-		  }
-		}); 
-    })
-	
-   
-    $('.check_heads_all').click(function(){
-    	//head_id
-    	if($(this).is(':checked')){
-    		$('.head_id').prop('checked',true);
-    	}else{
-    		$('.head_id').prop('checked',false);
-    	}
-    })
-    $('#batch_head,#batch_head2').click(function(){
-    	
-    	cascdeInit("1","1","","","","");
-    	search_heads_do();
-		
-		
-		var offs_lf = ( $(window).width() -720 )/2;
-		var offs_ht = ( $(window).height() -690 )/2;
-		
-		
-		$('#batchheads .modal-dialog').css('top',offs_ht+'px');
-		$('#batchheads .modal-dialog').css('margin-top','0px');
-		
-		$('#batchheads .modal-dialog').css('left',offs_lf+'px');
-		$('#batchheads .modal-dialog').css('margin-left','0px');
-		
-    	$('#batchheads').show();
-    })
-    
-    
-    
-    $('#batchcatesbut2').click(function () {
-        var index = layer.open({
-		  type: 1,
-		  area: '500px',
-		  title: '选取分类'
-		  ,content: $('#batchcates_html').html(),
-		  yes: function(index, layero){
-			//do something
-			layer.close(index); //如果设定了yes回调,需进行手工关闭
-		  }
-		}); 
-    })
-
-    //关闭批量分类
-    $('.modal-header .close').click(function () {
-        $('#batchcates').hide();
-        $('#batchheads').hide();
-        $('#batch_time').hide();
-    })
-
-    // 取消批量分类
-    $('.modal-footer .btn.btn-default').click(function () {
-    	$('#batchcates').hide();
-        $('#batchheads').hide();
-        $('#batch_time').hide();
-    })
-    $('.model_heads').click(function(){
-		var head_id_arr = [];
-		$('.head_id').each(function(){
-			if($(this).is(':checked')) {
-				head_id_arr.push( $(this).val() )
-			}
-		})
-		
-		//modal-group-head  
-		var is_clear_old = 0;
-		
-		if( $('#is_cancle_old').is(':checked') )
-		{
-			is_clear_old = 1;
-		}
-
-		var is_cancle_allhead2 = 0;
-
-		if( $('#is_cancle_allhead').is(':checked') )
-		{
-			is_cancle_allhead2 = 1;
-		}
-		
-		
-		if(head_id_arr.length > 0)
-		{
-			var is_tip_notice = 0;
-			var selected_checkboxs = $('.table-responsive tbody tr td:first-child [type="checkbox"]:checked');
-	        var goodsids = selected_checkboxs.map(function () {
-				if( $(this).attr('data_is_all_sale') == 1 )
-				{
-					is_tip_notice = 1;
-				}
-	            return $(this).val()
-	        }).get();
-			if(is_tip_notice  == 1) {
-				layer.confirm('分配售卖团中的商品中有部分商品开启了“<span style="color:red;">所有团长可售</span>”,请确认是否已经取消了“所有团长可售”,未取消的情况下部分商品分配设置可能无效!', function(index){
-					$.post("<?php echo U('goods/ajax_batchheads');?>", {
-						'goodsids': goodsids,
-						'head_id_arr': head_id_arr,
-						'is_clear_old': is_clear_old,
-						'is_cancle_allhead':is_cancle_allhead2
-					}, function (ret) {
-						if (ret.status == 1) {
-							$('#batchheads').hide();
-							layer.msg('分配成功', {
-								time: 1000
-							}, function () {
-								window.location.reload();
-							});
-
-							return
-						} else {
-							layer.msg('修改失败');
-						}
-					}, 'json');
-				});
-			}else{
-				$.post("<?php echo U('goods/ajax_batchheads');?>", {
-					'goodsids': goodsids,
-					'head_id_arr': head_id_arr,
-					'is_clear_old': is_clear_old,
-					'is_cancle_allhead':is_cancle_allhead2
-				}, function (ret) {
-					if (ret.status == 1) {
-						$('#batchheads').hide();
-						layer.msg('分配成功', {
-							time: 1000
-						}, function () {
-							window.location.reload();
-						});
-
-						return
-					} else {
-						layer.msg('修改失败');
-					}
-				}, 'json');
-			}
-		}else{
-			layer.msg('请选择团长');
-		}
-    })
-	//确认
-	var cates2 = 0;
-	$("body").delegate("#cates2","click",function(){
-	
-		cates2 =  $(this).val() ;
-	})
-	
-	var group_heads2 = 'default';
-	$("body").delegate("#group_heads","click",function(){
-		group_heads2 =  $(this).val() ;
-	})
-   
-
-   $("body").delegate(".cancle","click",function(){
-		layer.closeAll();
-	})
-   
-	
-   
-	$("body").delegate(".modal-group-head","click",function(){
-	
-		var group_heads=$('#group_heads').val();
-		if(group_heads2 != 'default')
-		{
-			group_heads = group_heads2;
-		}
-		var is_tip_notice = 0;
-        var selected_checkboxs = $('.table-responsive tbody tr td:first-child [type="checkbox"]:checked');
-        var goodsids = selected_checkboxs.map(function () {
-			if( $(this).attr('data_is_all_sale') == 1 )
-			{
-				is_tip_notice = 1;
-			}
-            return $(this).val()
-        }).get();
-		
-		if(goodsids.length <=0 )
-		{
-			layer.msg('请先选择商品');
-			return false;
-		}
-		
-		
-		var is_clear_old = 0;
-		
-		$('.is_cancle_old2').each(function(){
-			if( $(this).is(':checked') )
-			{
-				is_clear_old = 1;
-			}
-		})
-
-		var is_cancle_allhead = 0;
-
-		$('.is_cancle_allhead2').each(function(){
-			if( $(this).is(':checked') )
-			{
-				is_cancle_allhead = 1;
-			}
-		})
-		
-        var iscover=$('input[name="iscover"]:checked').val();
-		if(is_tip_notice == 1){
-			layer.confirm('分配售卖团长分组中的商品中有部分商品开启了“<span style="color:red;">所有团长可售</span>”,请确认是否已经取消了“所有团长可售”,未取消的情况下部分商品分配设置可能无效!', function(index) {
-				$.post("<?php echo U('goods/ajax_batchcates_headgroup');?>", {
-					'goodsids': goodsids,
-					'groupid': group_heads,
-					'is_clear_old': is_clear_old,
-					'is_cancle_allhead':is_cancle_allhead
-				}, function (ret) {
-					if (ret.status == 1) {
-
-						layer.msg('分配成功', {
-							time: 1000
-						}, function () {
-							window.location.reload();
-						});
-
-						return
-					} else {
-						layer.msg('分配失败');
-					}
-				}, 'json');
-			});
-		}else{
-			$.post("<?php echo U('goods/ajax_batchcates_headgroup');?>", {
-				'goodsids': goodsids,
-				'groupid': group_heads,
-				'is_clear_old': is_clear_old,
-				'is_cancle_allhead':is_cancle_allhead
-			}, function (ret) {
-				if (ret.status == 1) {
-
-					layer.msg('分配成功', {
-						time: 1000
-					}, function () {
-						window.location.reload();
-					});
-
-					return
-				} else {
-					layer.msg('分配失败');
-				}
-			}, 'json');
-		}
-    })
-	
-	$("body").delegate(".modal-fenlei","click",function(){
-	
-		var cates=$('#cates2').val();
-		if(cates2 != 0)
-		{
-			cates = cates2;
-		}
-		
-		
-        var selected_checkboxs = $('.table-responsive tbody tr td:first-child [type="checkbox"]:checked');
-        var goodsids = selected_checkboxs.map(function () {
-            return $(this).val()
-        }).get();
-		//id="cates"
-        var iscover=$('input[name="iscover"]:checked').val();
-        $.post("<?php echo U('goods/ajax_batchcates');?>",{'goodsids':goodsids,'cates': cates,'iscover':iscover}, function (ret) {
-            if (ret.status == 1) {
-                $('#batchcates').hide();
-				
-				layer.msg('修改成功', {
-				  time: 1000
-				}, function(){
-				  window.location.reload();
-				});   
-       
-                return
-            } else {
-                layer.msg('修改失败');
-            }
-        }, 'json');
-    })
-	//----
-
-    //显示时间设置
-    $('#batchtime,#batchtime2').click(function () {
-        
-		var offs_lf = ( $(window).width() -720 )/2;
-		var offs_ht = ( $(window).height() -290 )/2;
-		
-		$('#batch_time .modal-dialog').css('top',offs_ht+'px');
-		$('#batch_time .modal-dialog').css('margin-top','0px');
-		
-		$('#batch_time .modal-dialog').css('left',offs_lf+'px');
-		$('#batch_time .modal-dialog').css('margin-left','0px');
-		
-        $('#batch_time').show();
-    })
-
-    $('.modal-time').click(function () {
-        var selected_checkboxs = $('.table-responsive tbody tr td:first-child [type="checkbox"]:checked');
-        var goodsids = selected_checkboxs.map(function () {
-            return $(this).val()
-        }).get();
-
-        var begin_time=$('#batch_time input[name="setsametime[start]"]').val();
-        var end_time=$('#batch_time input[name="setsametime[end]"]').val();
-        $.post("<?php echo U('goods/ajax_batchtime_pintuan');?>",{'goodsids':goodsids,'begin_time': begin_time,'end_time':end_time}, function (ret) {
-            if (ret.status == 1) {
-                $('#batch_time').hide();
-                layer.msg('设置成功');
-                window.location.reload();
-                return
-            } else {
-                layer.msg('设置失败');
-            }
-        }, 'json');
-    })
-	
-	$(document).on("click", '[data-toggle="ajaxEdit"]', function(e) {
-		var obj = $(this),
-			url = obj.data('href') || obj.attr('href'),
-			data = obj.data('set') || {},
-			html = $.trim(obj.text()),
-			required = obj.data('required') || true,
-			edit = obj.data('edit') || 'input';
-		var oldval = $.trim($(this).text());
-		e.preventDefault();
-		submit = function() {
-			e.preventDefault();
-			var val = $.trim(input.val());
-			if (required) {
-				if (val == '') {
-					 layer.msg(tip.lang.empty);
-					return
-				}
-			}
-			if (val == html) {
-				input.remove(), obj.html(val).show();
-				return
-			}
-			if (url) {
-				$.post(url, {
-					value: val
-				}, function(ret) {
-					ret = eval("(" + ret + ")");
-					if (ret.status == 1) {
-						obj.html(val).show()
-						input.remove();
-						location.reload();
-					}else if(ret.status == 3 ){
-						layer.msg('输入错误,请输入正确的数字', {icon: 2,time: 2000 }, function(){
-							location.reload();
-						}); 
-						 
-					} else {
-						layer.msg(ret.result.message, ret.result.url)
-						input.remove();
-						location.reload();
-					}
-				}).fail(function() {
-					input.remove(),  layer.msg(tip.lang.exception)
-				})
-			} else {
-				input.remove();
-				obj.html(val).show()
-			}
-			obj.trigger('valueChange', [val, oldval])
-		}, obj.hide().html('<i class="fa fa-spinner fa-spin"></i>');
-		var input = $('<input type="text" class="form-control input-sm" style="width: 80%;display: inline;" />');
-		if (edit == 'textarea') {
-			input = $('<textarea type="text" class="form-control" style="resize:none" rows=3 ></textarea>')
-		}
-		obj.after(input);
-		input.val(html).select().blur(function() {
-			submit(input)
-		}).keypress(function(e) {
-			if (e.which == 13) {
-				submit(input)
-			}
-		})
-	})
-</script>
-</body>

+ 0 - 479
Runtime/Cache/Seller/1d9394aa01ab50e942a546ef14893c03.php

@@ -1,479 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-	window.sysinfo = {
-	<?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-	
-	<?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-	
-	'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-	
-	'siteroot': '<?php echo ($_W['siteroot']); ?>',
-			'siteurl': '<?php echo ($_W['siteurl']); ?>',
-			'attachurl': '<?php echo ($_W['attachurl']); ?>',
-			'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-			'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-			'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-	'cookie' : {'pre': ''},
-	'account' : <?php echo json_encode($_W['account']);?>,
-	};
-</script>
-
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-<link href="/static/css/snailfish.css" rel="stylesheet">
-<style>
-    tbody tr td{
-        position: relative;
-    }
-    tbody tr  .icow-weibiaoti--{
-        visibility: hidden;
-        display: inline-block;
-        color: #fff;
-        height:18px;
-        width:18px;
-        background: #e0e0e0;
-        text-align: center;
-        line-height: 18px;
-        vertical-align: middle;
-    }
-    tbody tr:hover .icow-weibiaoti--{
-        visibility: visible;
-    }
-    tbody tr  .icow-weibiaoti--.hidden{
-        visibility: hidden !important;
-    }
-    .full .icow-weibiaoti--{
-        margin-left:10px;
-    }
-    .full>span{
-        display: -webkit-box;
-        display: -webkit-flex;
-        display: -ms-flexbox;
-        display: flex;
-        vertical-align: middle;
-        align-items: center;
-    }
-    tbody tr .label{
-        margin: 5px 0;
-    }
-    .goods_attribute a{
-        cursor: pointer;
-    }
-    .newgoodsflag{
-        width: 22px;height: 16px;
-        background-color: #ff0000;
-        color: #fff;
-        text-align: center;
-        position: absolute;
-        bottom: 70px;
-        left: 57px;
-        font-size: 12px;
-    }
-	.a{cursor: pointer;}
-</style>
-</head>
-<body layadmin-themealias="default">
-
-<table id="demo" lay-filter="test"></table>
-
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">幻灯片管理</span></div>
-		<div class="layui-card-body" style="padding:15px;">
-
-			<span class="line-text">此处为:仅快递的商品列表页。可通过后台——设置——首页相关自定义链接到此页面</span>
-			<br><br>
-			<form action="" method="get" class="form-horizontal form-search layui-form" role="form">
-				<input type="hidden" name="c" value="generalmall" />
-				<input type="hidden" name="a" value="slider" />
-				<input type="hidden" name="type" value="<?php echo ($type); ?>" />
-				
-				<div class="layui-form-item">
-				  <div class="layui-inline">
-					<div class="layui-input-inline" >
-						<select name="enabled" class='layui-input layui-unselect' data-placeholder="状态">
-							<option value="-1" <?php if( empty($_GPC['cate'])){ ?>selected<?php } ?> >状态</option>
-							<option value="1" <?php if( $_GPC['enabled']==1){ ?>selected<?php } ?> >显示</option>
-							<option value="0" <?php if( $_GPC['enabled']==0){ ?>selected<?php } ?> >隐藏</option>
-						</select>
-					</div>
-					<div class="layui-input-inline">
-					  <input type="text" class="layui-input" name='keyword' value="<?php echo ($_GPC['keyword']); ?>" placeholder="输入关键词然后回车">  
-					</div>
-					<div class="layui-input-inline">
-						<button class="layui-btn layui-btn-sm"  type="submit"> 搜索</button>
-					</div>
-				  </div>
-				</div>
-				
-			</form>
-			<form action="" class="layui-form" lay-filter="example" method="post" >
-       
-				<div class="row">
-					<div class="col-md-12">
-						<div class="page-table-header">
-							
-							<span class="pull-right"> 
-								<a href="<?php echo U('generalmall/addslider', array('ok' => 1));?>" class="layui-btn layui-btn-sm"><i class="fa fa-plus"></i> 添加幻灯片</a>
-							</span>
-							<div class="btn-group">
-								<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch' data-href="<?php echo U('generalmall/changeslider',array('type'=>'enabled','value'=>1));?>">
-									 显示
-								</button>
-								<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch'  data-href="<?php echo U('generalmall/changeslider',array('type'=>'enabled','value'=>0));?>">
-									 隐藏
-								</button>
-								<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch-remove' data-confirm="确认要删除吗,删除后商品将进入回收站?" data-href="<?php echo U('generalmall/delete');?>">
-									 删除
-								</button>
-							</div>
-						</div>
-						<table class="table table-responsive" lay-even lay-skin="line" lay-size="lg">
-							<thead>
-							 <tr>
-								<th style="width:25px;">
-									<input type='checkbox' name="checkall" lay-skin="primary" lay-filter="checkboxall"  />
-								</th>
-								<th style="width:80px;text-align:center;">ID</th>
-								<th style="">幻灯片名称</th>
-								
-								<th style="width: 100px;">图片</th>
-								
-								<th style="">链接</th>
-								<th style="width: 100px;">状态</th>
-								<th style="width:80px;">排序</th>
-								
-								<th style="">操作</th>
-							</tr>
-							</thead>
-							<tbody>
-							<?php foreach( $list as $item ){ ?>
-							<tr>
-							<td>
-								<input type='checkbox' name="item_checkbox" lay-skin="primary" value="<?php echo ($item['id']); ?>"/>
-							</td>
-							<td>
-								<?php echo ($item['id']); ?>
-							</td>
-							<td>
-								<?php echo ($item['advname']); ?>
-							</td>
-							<td>
-								<a href="<?php echo U('generalmall/addslider', array('id' => $item['id']));?>">
-									<img src="<?php echo resize($item['thumb'], 100,100 );?>" style="width:72px;padding:1px;border:1px solid #efefef;margin: 7px 0" onerror="this.src='/static/images/nopic.png'" />
-								</a>
-							</td>
-							<td>
-								<?php echo ($item['link']); ?>
-							</td>
-							<td>
-								<input type="checkbox" name="" lay-filter="statewsitch" data-href="<?php echo U('generalmall/changeslider',array('type'=>'enabled','id'=>$item['id']));?>" <?php if( $item['enabled']==1){ ?>checked<?php  }else{ } ?> lay-skin="switch" lay-text="显示|隐藏">
-							</td>
-							<td>
-								<a href='javascript:;' data-toggle='ajaxEdit' data-href="<?php echo U('generalmall/changeslider',array('id'=>$item['id'],'type'=>'displayorder'));?>" ><?php echo ($item['displayorder']); ?></a>
-							</td>
-								<td  style="overflow:visible;position:relative">
-								
-									<a  class='layui-btn layui-btn-xs' href="<?php echo U('generalmall/addslider', array('id' => $item['id'], 'ok' => 1));?>"  >
-										<i class="layui-icon layui-icon-edit"></i>编辑
-									</a>
-									<a  class='layui-btn layui-btn-xs deldom' href="javascript:;" data-href="<?php echo U('generalmall/delete',array('id' => $item['id']));?>" data-confirm='确认要删除吗?'>
-										<i class="layui-icon">&#xe640;</i>删除
-									</a>
-								</td>
-							</tr>
-							<?php } ?>
-							</tbody>
-							<tfoot>
-							<tr>
-								<td colspan="5">
-									<div class="page-table-header">
-										<input type="checkbox" name="checkall" lay-skin="primary" lay-filter="checkboxall">
-										<div class="btn-group">
-											<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch' data-href="<?php echo U('generalmall/changeslider',array('type'=>'enabled','value'=>1));?>">
-												 显示
-											</button>
-											<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch'  data-href="<?php echo U('generalmall/changeslider',array('type'=>'enabled','value'=>0));?>">
-												 隐藏
-											</button>
-											<button class="btn btn-default btn-sm  btn-operation"   type="button" data-toggle='batch-remove' data-confirm="确认要删除吗?" data-href="<?php echo U('generalmall/delete');?>">
-												 删除
-											</button>
-										</div>
-									</div>
-								</td>
-								<td colspan="3" style="text-align: right">
-									<?php echo ($pager); ?>
-								</td>
-							</tr>
-							</tfoot>
-						</table>
-					</div>
-				</div>
-				
-			</form>
-		</div>
-	</div>
-</div>
-
-
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  
-  
-	$('.deldom').click(function(){
-		var s_url = $(this).attr('data-href');
-		layer.confirm($(this).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						success:function(info){
-						
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-	})
-	
-	$('.btn-operation').click(function(){
-		var ids_arr = [];
-		var obj = $(this);
-		var s_toggle = $(this).attr('data-toggle');
-		var s_url = $(this).attr('data-href');
-		
-		
-		$("input[name=item_checkbox]").each(function() {
-			
-			if( $(this).prop('checked') )
-			{
-				ids_arr.push( $(this).val() );
-			}
-		})
-		if(ids_arr.length < 1)
-		{
-			layer.msg('请选择要操作的内容');
-		}else{
-			var can_sub = true;
-			if( s_toggle == 'batch-remove' )
-			{
-				can_sub = false;
-				
-				layer.confirm($(obj).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						data:{ids:ids_arr},
-						success:function(info){
-						
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-			}else{
-				$.ajax({
-					url:s_url,
-					type:'post',
-					dataType:'json',
-					data:{ids:ids_arr},
-					success:function(info){
-					
-						if(info.status == 0)
-						{
-							layer.msg(info.result.message,{icon: 1,time: 2000});
-						}else if(info.status == 1){
-							var go_url = location.href;
-							if( info.result.hasOwnProperty("url") )
-							{
-								go_url = info.result.url;
-							}
-							
-							layer.msg('操作成功',{time: 1000,
-								end:function(){
-									location.href = info.result.url;
-								}
-							}); 
-						}
-					}
-				})
-			}
-		}
-	})
-  
-	form.on('switch(statewsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var s_value = 1;
-	  if(data.elem.checked)
-	  {
-		s_value = 1;
-	  }else{
-		s_value = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{value:s_value},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	});  
-	form.on('checkbox(checkboxall)', function(data){
-	  
-	  if(data.elem.checked)
-	  {
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", true);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", true);
-		});
-		
-	  }else{
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", false);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", false);
-		});
-	  }
-	  
-	  form.render('checkbox');
-	});
-  
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-})
-
-
-
-</script>  
-</body>

+ 0 - 361
Runtime/Cache/Seller/2a03afed2b6c4f4e9dfcf0f560510317.php

@@ -1,361 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-            window.sysinfo = {
-            <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-			
-            <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-			
-            'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-			
-            'siteroot': '<?php echo ($_W['siteroot']); ?>',
-                    'siteurl': '<?php echo ($_W['siteurl']); ?>',
-                    'attachurl': '<?php echo ($_W['attachurl']); ?>',
-                    'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-                    'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-                    'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-            'cookie' : {'pre': ''},
-            'account' : <?php echo json_encode($_W['account']);?>,
-            };
-        </script>
-		
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-  <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-   <link href="/static/css/snailfish.css" rel="stylesheet">
-</head>
-<body layadmin-themealias="default">
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">附件设置</span></div>
-		<div class="layui-card-body" style="padding:15px;">
-			<form action="" method="post" class="layui-form" lay-filter="component-layui-form-item" enctype="multipart/form-data" >
-				<div class="layui-form-item">
-					<label class="layui-form-label">远程附件</label>
-					<div class="layui-input-block attclass">
-						<label class='radio-inline'>
-							<input type='radio' name='parameter[attachment_type]' value='0' <?php if( empty($data) || $data['attachment_type'] ==0){ ?>checked <?php } ?> title="关闭" /> 
-						</label>
-						<label class='radio-inline'>
-							<input type='radio' name='parameter[attachment_type]' value='1' <?php if(!empty($data) && $data['attachment_type'] ==1){ ?>checked <?php } ?> title="七牛云存储" /> 
-						</label>
-						<label class='radio-inline'>
-							<input type='radio' name='parameter[attachment_type]' value='2' <?php if(!empty($data) && $data['attachment_type'] ==2){ ?>checked <?php } ?> title="阿里云OSS" /> 
-						</label>
-						<label class='radio-inline'>
-							<input type='radio' name='parameter[attachment_type]' value='3' <?php if(!empty($data) && $data['attachment_type'] ==3){ ?>checked <?php } ?> title="腾讯云" /> 
-						</label>
-					</div>
-				</div>
-				<div class="row qiniu_row" style="<?php if(!empty($data) && $data['attachment_type'] ==1){ ?> <?php }else{ ?> display:none;<?php } ?>">
-					<div class="layui-form-item qiniu_class">
-						<label class="layui-form-label"></label>
-						<div class="layui-input-block">
-							<div class="summary_box">
-								
-								<div class="summary_lg">
-									启用七牛云存储后,请把/Uploads目录(包括此目录)下的子文件及子目录上传至七牛云存储 :
-									<p><a href="https://portal.qiniu.com/signin" target="_blank">七牛云存储</a></p>
-								</div>
-							</div>
-						</div>
-					</div>
-					<div class="layui-form-item qiniu_class">
-						<label class="layui-form-label">Accesskey</label>
-						<div class="layui-input-block">
-							<input type="text" name="parameter[qiniu_accesskey]" class="form-control" value="<?php echo ($data['qiniu_accesskey']); ?>" />
-							<span class='help-block'>用于签名的公钥</span>
-						</div>
-					</div>
-					<div class="layui-form-item qiniu_class">
-						<label class="layui-form-label">Secretkey</label>
-						<div class="layui-input-block">
-							<input type="text" name="parameter[qiniu_secretkey]" class="form-control" value="<?php echo ($data['qiniu_secretkey']); ?>" />
-							<span class='help-block'>用于签名的私钥</span>
-						</div>
-					</div>
-					<div class="layui-form-item qiniu_class">
-						<label class="layui-form-label">Bucket</label>
-						<div class="layui-input-block">
-							<input type="text" name="parameter[qiniu_bucket]" class="form-control" value="<?php echo ($data['qiniu_bucket']); ?>" />
-							<span class='help-block'>请保证bucket为可公共读取的</span>
-						</div>
-					</div>
-					<div class="layui-form-item qiniu_class">
-						<label class="layui-form-label">Url</label>
-						<div class="layui-input-block">
-							<input type="text" name="parameter[qiniu_url]" class="form-control" value="<?php echo ($data['qiniu_url']); ?>" />
-							<span class='help-block'>七牛支持用户自定义访问域名。注:url开头加http://或https://结尾加 ‘/’例:http://abc.com/</span>
-						</div>
-					</div>
-				</div>
-				
-				<div class="row alioss_row" style="<?php if(!empty($data) && $data['attachment_type'] ==2){ ?> <?php }else{ ?> display:none;<?php } ?>">
-					<div class="layui-form-item">
-						<label class="layui-form-label"></label>
-						<div class="layui-input-block">
-							<div class="summary_box">
-								
-								<div class="summary_lg">
-									<p>启用阿里oss后,请把/Uploads目录(包括此目录)下的子文件及子目录上传至阿里云oss, 相关工具:</p>
-									<p><a href="http://bbs.aliyun.com/read/247023.html?spm=5176.383663.9.29.faitxp" target="_blank">官方推荐工具</a></p>
-								</div>
-							</div>
-						</div>
-					</div>
-					
-					<div class="layui-form-item">
-						<label class="layui-form-label">Access Key ID</label>
-						<div class="layui-input-block">
-							<input type="text" name="parameter[alioss_key]" class="form-control" value="<?php echo ($data['alioss_key']); ?>" />
-							<span class='help-block'>Access Key ID是您访问阿里云API的密钥,具有该账户完全的权限,请您妥善保管。</span>
-						</div>
-					</div>
-					<div class="layui-form-item">
-						<label class="layui-form-label">Access Key Secret</label>
-						<div class="layui-input-block">
-							<input type="text" name="parameter[alioss_secret]" class="form-control" value="<?php echo ($data['alioss_secret']); ?>" />
-							<span class='help-block'>Access Key Secret是您访问阿里云API的密钥,具有该账户完全的权限,请您妥善保管。(填写完Access Key ID 和 Access Key Secret 后请选择bucket)</span>
-						</div>
-					</div>
-					<div class="layui-form-item qiniu_class">
-						<label class="layui-form-label">Bucket</label>
-						<div class="layui-input-block">
-							<input type="text" name="parameter[alioss_bucket]" class="form-control" value="<?php echo ($data['alioss_bucket']); ?>" />
-							<span class='help-block'>请保证bucket为可公共读取的</span>
-						</div>
-					</div>
-					<div class="layui-form-item">
-						<label class="layui-form-label">内网上传</label>
-						<div class="layui-input-block">
-							<label class='radio-inline'>
-								<input type='radio' name='parameter[alioss_internal]' value='1' <?php if(!empty($data) && $data['alioss_internal'] ==1){ ?>checked <?php } ?> title="是" /> 
-							</label>
-							<label class='radio-inline'>
-								<input type='radio' name='parameter[alioss_internal]' value='0' <?php if( empty($data) || $data['alioss_internal'] ==0){ ?>checked <?php } ?> title="否" /> 
-							</label>
-							<span class='help-block'>
-								如果此站点使用的是阿里云ecs服务器,并且服务器与bucket在同一地区(如:同在华北一区),您可以选择通过内网上传的方式上传附件,以加快上传速度、节省带宽。
-							</span>
-						</div>
-					</div>
-					<div class="layui-form-item">
-						<label class="layui-form-label">自定义URL</label>
-						<div class="layui-input-block">
-							<input type="text" name="parameter[alioss_url]" class="form-control" value="<?php echo ($data['alioss_url']); ?>" />
-							<span class='help-block'>
-								阿里云oss支持用户自定义访问域名,如果自定义了URL则用自定义的URL,如果未自定义,则用系统生成出来的URL。
-								注:自定义url开头加http://或https://结尾加 ‘/’例:http://abc.com/
-							</span>
-						</div>
-					</div>
-				</div>
-				
-				
-				<div class="row txyun_row" style="<?php if(!empty($data) && $data['attachment_type'] ==3){ ?> <?php }else{ ?> display:none;<?php } ?>">
-					
-					<div class="layui-form-item">
-						<label class="layui-form-label"></label>
-						<div class="layui-input-block">
-							<div class="summary_box">
-								<div class="summary_lg">
-									<p>启用腾讯云存储后,请把/Uploads目录(包括此目录)下的子文件及子目录上传至腾讯云存储, 相关工具:</p>
-									<p><a href="https://console.qcloud.com/cos/bucket" target="_blank">官方推荐工具</a></p>
-								</div>
-							</div>
-						</div>
-					</div>
-					
-					<div class="layui-form-item">
-						<label class="layui-form-label">APPID</label>
-						<div class="layui-input-block">
-							<input type="text" name="parameter[tx_appid]" class="form-control" value="<?php echo ($data['tx_appid']); ?>" />
-							<span class='help-block'>APPID 是您项目的唯一ID</span>
-						</div>
-					</div>
-					<div class="layui-form-item">
-						<label class="layui-form-label">SecretID</label>
-						<div class="layui-input-block">
-							<input type="text" name="parameter[tx_secretid]" class="form-control" value="<?php echo ($data['tx_secretid']); ?>" />
-							<span class='help-block'>SecretID 是您项目的安全密钥,具有该账户完全的权限,请妥善保管</span>
-						</div>
-					</div>
-					<div class="layui-form-item">
-						<label class="layui-form-label">SecretKEY</label>
-						<div class="layui-input-block">
-							<input type="text" name="parameter[tx_secretkey]" class="form-control" value="<?php echo ($data['tx_secretkey']); ?>" />
-							<span class='help-block'>SecretKEY 是您项目的安全密钥,具有该账户完全的权限,请妥善保管</span>
-						</div>
-					</div>
-					<div class="layui-form-item">
-						<label class="layui-form-label">Bucket</label>
-						<div class="layui-input-block">
-							<input type="text" name="parameter[tx_bucket]" class="form-control" value="<?php echo ($data['tx_bucket']); ?>" />
-							<span class='help-block'>请保证bucket为可公共读取的</span>
-						</div>
-					</div>
-					
-					<?php  $tx_area_list = array( 'ap-beijing-1' => '北京一区(已售罄)', 'ap-beijing' => '北京', 'ap-shanghai' => '上海(华东)', 'ap-guangzhou' => '广州(华南)', 'ap-chengdu' => '成都(西南)', 'ap-chongqing' => '重庆', 'ap-shenzhen-fsi' => '深圳金融', 'ap-shanghai-fsi' => '上海金融', 'ap-beijing-fsi' => '北京金融', 'ap-hongkong' => '中国香港', 'ap-singapore' => '新加坡', 'ap-mumbai' => '孟买', 'ap-seoul' => '首尔', 'ap-bangkok' => '曼谷', 'ap-tokyo' => '东京', 'na-siliconvalley' => '硅谷', 'na-ashburn' => '弗吉尼亚', 'na-toronto' => '多伦多', 'eu-frankfurt' => '法兰克福', 'eu-moscow' => '莫斯科', ); ?>	
-					<div class="layui-form-item">
-						<label class="layui-form-label">地区</label>
-						<div class="layui-input-block">
-							<select name="parameter[tx_area]">
-								<?php foreach($tx_area_list as $key => $val){ ?>
-								<option value="<?php echo ($key); ?>" <?php if( !empty($data['tx_area']) && $data['tx_area'] == $key ){ ?> selected<?php } ?> ><?php echo ($val); ?></option>
-								<?php } ?>
-							</select>
-						</div>
-					</div>
-					<div class="layui-form-item">
-						<label class="layui-form-label">Url</label>
-						<div class="layui-input-block">
-							<input type="text" name="parameter[tx_url]" class="form-control" value="<?php echo ($data['tx_url']); ?>" />
-							<span class='help-block'>腾讯云支持用户自定义访问域名。注:url开头加http://或https://结尾加 ‘/’例:http://abc.com/</span>
-						</div>
-					</div>
-
-				</div>
-		
-				<div class="layui-form-item">
-					<label class="layui-form-label"> </label>
-					<div class="layui-input-block">
-						<input type="submit" value="提交" lay-submit lay-filter="formDemo" class="btn btn-primary"  />
-					</div>
-				</div>
-			</form>
-		</div>
-</div>
-</div>
-
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer','form','colorpicker'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  var colorpicker = layui.colorpicker;
- 
-  
-   //表单赋值
-    colorpicker.render({
-      elem: '#minicolors'
-      ,color: '<?php echo ($data['nav_bg_color']); ?>'
-      ,done: function(color){
-        $('#test-colorpicker-form-input').val(color);
-      }
-    });
-
-    colorpicker.render({
-      elem: '#minicolors2'
-      ,color: '<?php echo ($data['index_top_font_color']); ?>'
-      ,done: function(color){
-        $('#test-colorpicker-form-input2').val(color);
-      }
-    });
-  
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-})
-</script> 
-
-<script language="javascript">
-	 $('.attclass input[type=radio]').click(function(){
-		var s_r = $(this).val();
-		
-		if(s_r == 0)
-		{
-			$('.qiniu_row').hide();
-			$('.alioss_row').hide();
-			$('.txyun_row').hide();
-			
-		}else if(s_r == 1){
-			
-			$('.qiniu_row').show();
-			$('.alioss_row').hide();
-			$('.txyun_row').hide();
-			
-		}else if(s_r == 2){
-			$('.qiniu_row').hide();
-			$('.alioss_row').show();
-			$('.txyun_row').hide();
-		}else if( s_r == 3 )
-		{
-			$('.txyun_row').show();
-			$('.qiniu_row').hide();
-			$('.alioss_row').hide();
-		}
-		
-	 })
-</script> 
-</body>

+ 0 - 377
Runtime/Cache/Seller/2aeef13833c5df61f9014322fcd82f58.php

@@ -1,377 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-  window.sysinfo = {
-  <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-  
-  <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-  
-  <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-  
-  <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-  
-  'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-  
-  'siteroot': '<?php echo ($_W['siteroot']); ?>',
-    'siteurl': '<?php echo ($_W['siteurl']); ?>',
-    'attachurl': '<?php echo ($_W['attachurl']); ?>',
-    'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-    'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-    'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-    'cookie' : {'pre': ''},
-    'account' : <?php echo json_encode($_W['account']);?>,
-  };
-</script>
-
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-<link href="/static/css/snailfish.css" rel="stylesheet">
-  <style>
-    .layui-table[lay-size=lg] td, .layui-table[lay-size=lg] th {
-      padding: 15px 10px;
-    }
-  </style>
-</head>
-<body layadmin-themealias="default">
-<div class="layui-fluid">
-  <div class="layui-card">
-    <div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">核销人员管理</span></div>
-    <div class="layui-tab layui-tab-brief">
-      <ul class="layui-tab-title">
-        <li <?php if(empty($state)){ ?>class="layui-this"<?php } ?>><a href="<?php echo U('salesroom_member/index');?>">全部</a></li>
-        <li <?php if(!empty($state) && $state == 1){ ?>class="layui-this"<?php } ?>><a href="<?php echo U('salesroom_member/index', array('state' => 1));?>">已启用</a></li>
-        <li <?php if(!empty($state) && $state == 2){ ?>class="layui-this"<?php } ?>><a href="<?php echo U('salesroom_member/index', array('state' => 2));?>">已禁用</a></li>
-      </ul>
-    </div>
-    <div class="layui-card-body" style="padding:15px;">
-      <form action="" method="get" class="form-horizontal form-search layui-form" role="form">
-        <input type="hidden" name="c" value="salesroom_member" />
-        <input type="hidden" name="type" value="<?php echo ($type); ?>" />
-        <input type="hidden" name="state" value="<?php echo ($state); ?>" />
-        <div class="layui-form-item">
-          <div class="layui-inline">
-          <div class="layui-input-inline">
-            <input type="text" class="layui-input" name='keyword' value="<?php echo ($keyword); ?>" placeholder="请输入姓名/手机号/会员名">
-          </div>
-          <div class="layui-input-inline">
-          	<select name="room_id" id="room_id">
-          		<option value="">请选择门店</option>
-          		<?php foreach($room_list as $rk=>$rv){ ?>
-          		<option value="<?php echo ($rv['id']); ?>" <?php if($room_id == $rv['id']){ ?>selected="selected"<?php } ?> ><?php echo ($rv['room_name']); ?>(<?php echo ($rv['supply_name']); ?>)</option>
-          		<?php } ?>
-          	</select>
-		  </div>
-          <div class="layui-input-inline">
-            <button class="layui-btn layui-btn-sm"  type="submit"> 搜索</button>
-          </div>
-          </div>
-        </div>
-        
-      </form>
-      <form action="" class="layui-form" lay-filter="example" method="post" >
-        <div class="row">
-          <div class="col-md-12">
-            <div class="page-table-header">
-              <span class="pull-right">
-                <a href="<?php echo U('salesroom_member/add', array('ok' => 1));?>" class="layui-btn layui-btn-sm"><i class="fa fa-plus"></i> 新增核销人员</a>
-              </span>
-              <div class="btn-group">
-                <button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch' data-href="<?php echo U('salesroom_member/change',array('type'=>'state','value'=>1));?>">启用</button>
-                <button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch' data-href="<?php echo U('salesroom_member/change',array('type'=>'state','value'=>0));?>">禁用</button>
-                <button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch-remove' data-confirm="确认要删除吗?" data-href="<?php echo U('salesroom_member/delete');?>">删除</button>
-              </div>
-            </div>
-            <table class="layui-table" lay-skin="line" lay-size="lg">
-              <thead>
-                <tr>
-                  <th style="width:25px;"><input type='checkbox' name="checkall" lay-skin="primary" lay-filter="checkboxall"  /></th>
-                  <th style="width:10%;">姓名</th>
-                  <th style="width:10%;">手机号</th>
-                  <th style="width:10%;">会员名</th>
-                  <th style="width:10%;">所属门店</th>
-                  <th style="width:10%;">创建时间</th>
-                  <th style="width: 200px;">状态</th>
-                  <th style="width: 250px;">操作</th>
-                </tr>
-              </thead>
-              <tbody>
-              <?php foreach( $list as $item ){ ?>
-                <tr>
-                  <td style="width:25px;">
-                    <input type='checkbox' name="item_checkbox" lay-skin="primary" value="<?php echo ($item['id']); ?>"/>
-                  </td>
-                  <td>
-                    <?php echo ($item['username']); ?>
-                  </td>
-                  <td>
-                    <?php echo ($item['mobile']); ?>
-                  </td>
-                  <td>
-                    <?php echo ($item['member_name']); ?>
-                  </td>
-                  <td>
-                    <?php foreach($item['room_list'] as $rk=>$rv){ ?>
-                    <?php echo ($item['supply_name']); ?>-<?php echo ($rv['room_name']); ?><br/>
-                    <?php }?>
-                  </td>
-                  <td>
-                    <?php echo ($item['addtime']); ?>
-                  </td>
-                  <td>
-                    <input type="checkbox" name="" lay-filter="statewsitch" data-href="<?php echo U('salesroom_member/change',array('type'=>'state','id'=>$item['id']));?>" <?php if( $item['state']==1){ ?>checked<?php  }else{ } ?> lay-skin="switch" lay-text="启用|禁用">
-                    <?php if($item['state'] == 0){ ?>
-                    <br/><span style="font-size: 12px;color: #c3c3c3;">禁用时间:<?php echo ($item['disable_time']); ?></span>
-                    <?php } ?>
-                  </td>
-                  <td style="overflow:visible;position:relative">
-                    <a class='layui-btn layui-btn-xs' href="<?php echo U('salesroom_order/member_orders', array('smember_id'=>$item['id']));?>" >
-                      查看核销记录
-                    </a>
-                    <a class='layui-btn layui-btn-xs' href="<?php echo U('salesroom_member/add', array('id'=>$item['id'],'ok' => 1));?>" >
-                      <i class="layui-icon layui-icon-edit"></i>编辑
-                    </a>
-                    <a class='layui-btn layui-btn-xs deldom' href="javascript:;" data-href="<?php echo U('salesroom_member/delete',array('id'=>$item['id']));?>" data-confirm='确认要删除吗?'>
-                      <i class="layui-icon">&#xe640;</i>删除
-                    </a>
-                  </td>
-                </tr>
-              <?php } ?>
-              </tbody>
-              <tfoot>
-              <tr>
-                <td colspan="8" style="text-align: right">
-                  <?php echo ($pager); ?>
-                </td>
-              </tr>
-              </tfoot>
-            </table>
-          </div>
-        </div>
-      </form>
-    </div>
-  </div>
-</div>
-
-
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-  layui.config({
-    base: '/layuiadmin/' //静态资源所在路径
-  }).extend({
-    index: 'lib/index' //主入口模块
-  }).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-
-  form.on('checkbox(checkboxall)', function(data){
-
-    if(data.elem.checked)
-    {
-      $("input[name=item_checkbox]").each(function() {
-        $(this).prop("checked", true);
-      });
-      $("input[name=checkall]").each(function() {
-        $(this).prop("checked", true);
-      });
-
-    }else{
-      $("input[name=item_checkbox]").each(function() {
-        $(this).prop("checked", false);
-      });
-      $("input[name=checkall]").each(function() {
-        $(this).prop("checked", false);
-      });
-    }
-
-    form.render('checkbox');
-  });
-
-  $('.btn-operation').click(function(){
-    var ids_arr = [];
-    var obj = $(this);
-    var s_toggle = $(this).attr('data-toggle');
-    var s_url = $(this).attr('data-href');
-
-
-    $("input[name=item_checkbox]").each(function() {
-
-      if( $(this).prop('checked') )
-      {
-        ids_arr.push( $(this).val() );
-      }
-    })
-    if(ids_arr.length < 1)
-    {
-      layer.msg('请选择要操作的内容');
-    }else{
-      var can_sub = true;
-      if( s_toggle == 'batch-remove' )
-      {
-        can_sub = false;
-
-        layer.confirm($(obj).attr('data-confirm'), function(index){
-          $.ajax({
-            url:s_url,
-            type:'post',
-            dataType:'json',
-            data:{ids:ids_arr},
-            success:function(info){
-
-              if(info.status == 0)
-              {
-                layer.msg(info.result.message,{icon: 1,time: 2000});
-              }else if(info.status == 1){
-                var go_url = location.href;
-                if( info.result.hasOwnProperty("url") )
-                {
-                  go_url = info.result.url;
-                }
-
-                layer.msg('操作成功',{time: 1000,
-                  end:function(){
-                    location.href = info.result.url;
-                  }
-                });
-              }
-            }
-          })
-        });
-      }else{
-        $.ajax({
-          url:s_url,
-          type:'post',
-          dataType:'json',
-          data:{ids:ids_arr},
-          success:function(info){
-
-            if(info.status == 0)
-            {
-              layer.msg(info.result.message,{icon: 1,time: 2000});
-            }else if(info.status == 1){
-              var go_url = location.href;
-              if( info.result.hasOwnProperty("url") )
-              {
-                go_url = info.result.url;
-              }
-
-              layer.msg('操作成功',{time: 1000,
-                end:function(){
-                  location.href = info.result.url;
-                }
-              });
-            }
-          }
-        })
-      }
-    }
-  })
-  
-  $('.deldom').click(function(){
-    var s_url = $(this).attr('data-href');
-    layer.confirm($(this).attr('data-confirm'), function(index){
-           $.ajax({
-            url:s_url,
-            type:'post',
-            dataType:'json',
-            success:function(info){
-            
-              if(info.status == 0)
-              {
-                layer.msg(info.result.message,{icon: 1,time: 2000});
-              }else if(info.status == 1){
-                var go_url = location.href;
-                if( info.result.hasOwnProperty("url") )
-                {
-                  go_url = info.result.url;
-                }
-                
-                layer.msg('操作成功',{time: 1000,
-                  end:function(){
-                    location.href = info.result.url;
-                  }
-                }); 
-              }
-            }
-          })
-        }); 
-  })
-  
-  form.on('switch(statewsitch)', function(data){
-    
-    var s_url = $(this).attr('data-href')
-    
-    var s_value = 1;
-    if(data.elem.checked)
-    {
-    s_value = 1;
-    }else{
-    s_value = 0;
-    }
-    
-    $.ajax({
-      url:s_url,
-      type:'post',
-      dataType:'json',
-      data:{value:s_value},
-      success:function(info){
-      
-        if(info.status == 0)
-        {
-          layer.msg(info.result.message,{icon: 1,time: 2000});
-        }else if(info.status == 1){
-          var go_url = location.href;
-          if( info.result.hasOwnProperty("url") )
-          {
-            go_url = info.result.url;
-          }
-          
-          layer.msg('操作成功',{time: 1000,
-            end:function(){
-              location.href = info.result.url;
-            }
-          }); 
-        }
-      }
-    })
-  });
-
-})
-
-</script>  
-</body>
-</html>

+ 0 - 473
Runtime/Cache/Seller/2e27f44892c96df13fde8f7dc71790a4.php

@@ -1,473 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-	window.sysinfo = {
-	<?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-	
-	<?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-	
-	'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-	
-	'siteroot': '<?php echo ($_W['siteroot']); ?>',
-			'siteurl': '<?php echo ($_W['siteurl']); ?>',
-			'attachurl': '<?php echo ($_W['attachurl']); ?>',
-			'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-			'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-			'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-	'cookie' : {'pre': ''},
-	'account' : <?php echo json_encode($_W['account']);?>,
-	};
-</script>
-
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-<link href="/static/css/snailfish.css" rel="stylesheet">
-<style>
-    tbody tr td{
-        position: relative;
-    }
-    tbody tr  .icow-weibiaoti--{
-        visibility: hidden;
-        display: inline-block;
-        color: #fff;
-        height:18px;
-        width:18px;
-        background: #e0e0e0;
-        text-align: center;
-        line-height: 18px;
-        vertical-align: middle;
-    }
-    tbody tr:hover .icow-weibiaoti--{
-        visibility: visible;
-    }
-    tbody tr  .icow-weibiaoti--.hidden{
-        visibility: hidden !important;
-    }
-    .full .icow-weibiaoti--{
-        margin-left:10px;
-    }
-    .full>span{
-        display: -webkit-box;
-        display: -webkit-flex;
-        display: -ms-flexbox;
-        display: flex;
-        vertical-align: middle;
-        align-items: center;
-    }
-    tbody tr .label{
-        margin: 5px 0;
-    }
-    .goods_attribute a{
-        cursor: pointer;
-    }
-    .newgoodsflag{
-        width: 22px;height: 16px;
-        background-color: #ff0000;
-        color: #fff;
-        text-align: center;
-        position: absolute;
-        bottom: 70px;
-        left: 57px;
-        font-size: 12px;
-    }
-	.a{cursor: pointer;}
-</style>
-</head>
-<body layadmin-themealias="default">
-
-<table id="demo" lay-filter="test"></table>
-
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">兑换码管理</span></div>
-		<div class="layui-card-body" style="padding:15px;">
-			<form action="" method="get" class="form-horizontal form-search layui-form" role="form">
-				<input type="hidden" name="c" value="virtualcard" />
-				<input type="hidden" name="a" value="exchange_code" />
-				
-				<div class="layui-form-item">
-				  <div class="layui-inline">
-
-					<div class="layui-input-inline">
-					  <input type="text" class="layui-input" name='keyword' value="<?php echo ($_GPC['keyword']); ?>" placeholder="输入关键词然后回车">  
-					</div>
-					<div class="layui-input-inline">
-						<button class="layui-btn layui-btn-sm"  type="submit"> 搜索</button>
-					</div>
-				  </div>
-				</div>
-				
-			</form>
-			<form action="" class="layui-form" lay-filter="example" method="post" >
-       
-				<div class="row">
-					<div class="col-md-12">
-						<div class="page-table-header">
-							
-							<span class="pull-right"> 
-								<a href="<?php echo U('virtualcard/addCode', array('ok' => 1));?>" class="layui-btn layui-btn-sm"><i class="fa fa-plus"></i> 添加兑换码</a>
-							</span>
-							<div class="btn-group">
-								<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch' data-href="<?php echo U('virtualcard/changecode',array('type'=>'state','value'=>1));?>">
-									 启用
-								</button>
-								<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch'  data-href="<?php echo U('virtualcard/changecode',array('type'=>'state','value'=>0));?>">
-									 禁用
-								</button>
-								<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch-remove' data-confirm="确认要删除吗?" data-href="<?php echo U('virtualcard/deletecode');?>">
-									 删除
-								</button>
-							</div>
-						</div>
-						<table class="table table-responsive" lay-even lay-skin="line" lay-size="lg">
-							<thead>
-							 <tr>
-								<th style="width:25px;">
-									<input type='checkbox' name="checkall" lay-skin="primary" lay-filter="checkboxall"  />
-								</th>
-								<th style="">ID</th>
-								<th style="">兑换码名称</th>
-								<th style="">有效期</th>
-								<th style="">未使用数量</th>
-								<th style="">已兑换数量</th>
-								<th style="">关联商品数量</th>
-								<th style="display:none;">状态</th>
-
-								<th style="">操作</th>
-							</tr>
-							</thead>
-							<tbody>
-							<?php foreach( $list as $item ){ ?>
-							<tr>
-							<td>
-								<input type='checkbox' name="item_checkbox" lay-skin="primary" value="<?php echo ($item['id']); ?>"/>
-							</td>
-							<td>
-								<?php echo ($item['id']); ?>
-							</td>
-							<td>
-								<?php echo ($item['code_name']); ?>
-							</td>
-							<td>
-								<?php echo ($item['effect_name']); ?>
-							</td>
-							<td>
-								<?php echo ($item['un_use_count']); ?>
-							</td>
-							<td>
-								<?php echo ($item['has_use_count']); ?>
-							</td>
-							<td>
-								<?php echo ($item['goods_count']); ?>
-							</td>
-							<td style="display:none;">
-								<input type="checkbox" name="" lay-filter="statewsitch" data-href="<?php echo U('virtualcard/changecode',array('type'=>'state','id'=>$item['id']));?>" <?php if( $item['state']==1){ ?>checked<?php  }else{ } ?> lay-skin="switch" lay-text="启用|禁用">
-							</td>
-
-								<td  style="overflow:visible;position:relative">
-
-									<a  class='layui-btn layui-btn-xs' href="<?php echo U('virtualcard/addCode', array('id' => $item['id'], 'ok' => 1));?>"  >
-										<i class="layui-icon layui-icon-edit"></i>编辑
-									</a>
-									<a  class='layui-btn layui-btn-xs' href="<?php echo U('virtualcard/exchangerecord', array('code_id' => $item['id'], 'ok' => 1));?>"  >
-									兑换记录
-								</a>
-									<a  class='layui-btn layui-btn-xs deldom' href="javascript:;" data-href="<?php echo U('virtualcard/deletecode',array('id' => $item['id']));?>" data-confirm='确认要删除吗?'>
-										<i class="layui-icon">&#xe640;</i>删除
-									</a>
-								</td>
-							</tr>
-							<?php } ?>
-							</tbody>
-							<tfoot>
-							<tr>
-								<td colspan="5">
-									<div class="page-table-header">
-										<input type="checkbox" name="checkall" lay-skin="primary" lay-filter="checkboxall">
-										<div class="btn-group">
-											<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch' data-href="<?php echo U('virtualcard/changecode',array('type'=>'state','value'=>1));?>">
-												启用
-											</button>
-											<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch'  data-href="<?php echo U('virtualcard/changecode',array('type'=>'state','value'=>0));?>">
-												禁用
-											</button>
-											<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch-remove' data-confirm="确认要删除吗?" data-href="<?php echo U('virtualcard/deletecode');?>">
-												删除
-											</button>
-										</div>
-									</div>
-								</td>
-								<td colspan="3" style="text-align: right">
-									<?php echo ($pager); ?>
-								</td>
-							</tr>
-							</tfoot>
-						</table>
-					</div>
-				</div>
-				
-			</form>
-		</div>
-	</div>
-</div>
-
-
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  
-  
-	$('.deldom').click(function(){
-		var s_url = $(this).attr('data-href');
-		layer.confirm($(this).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						success:function(info){
-						
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-	})
-	
-	$('.btn-operation').click(function(){
-		var ids_arr = [];
-		var obj = $(this);
-		var s_toggle = $(this).attr('data-toggle');
-		var s_url = $(this).attr('data-href');
-		
-		
-		$("input[name=item_checkbox]").each(function() {
-			
-			if( $(this).prop('checked') )
-			{
-				ids_arr.push( $(this).val() );
-			}
-		})
-		if(ids_arr.length < 1)
-		{
-			layer.msg('请选择要操作的内容');
-		}else{
-			var can_sub = true;
-			if( s_toggle == 'batch-remove' )
-			{
-				can_sub = false;
-				
-				layer.confirm($(obj).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						data:{ids:ids_arr},
-						success:function(info){
-						
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-			}else{
-				$.ajax({
-					url:s_url,
-					type:'post',
-					dataType:'json',
-					data:{ids:ids_arr},
-					success:function(info){
-					
-						if(info.status == 0)
-						{
-							layer.msg(info.result.message,{icon: 1,time: 2000});
-						}else if(info.status == 1){
-							var go_url = location.href;
-							if( info.result.hasOwnProperty("url") )
-							{
-								go_url = info.result.url;
-							}
-							
-							layer.msg('操作成功',{time: 1000,
-								end:function(){
-									location.href = info.result.url;
-								}
-							}); 
-						}
-					}
-				})
-			}
-		}
-	})
-  
-	form.on('switch(statewsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var s_value = 1;
-	  if(data.elem.checked)
-	  {
-		s_value = 1;
-	  }else{
-		s_value = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{value:s_value},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	});  
-	form.on('checkbox(checkboxall)', function(data){
-	  
-	  if(data.elem.checked)
-	  {
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", true);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", true);
-		});
-		
-	  }else{
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", false);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", false);
-		});
-	  }
-	  
-	  form.render('checkbox');
-	});
-  
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-})
-
-
-
-</script>  
-</body>

+ 0 - 256
Runtime/Cache/Seller/3514aac2631e1801f91edb504aceaed6.php

@@ -1,256 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-  window.sysinfo = {
-  <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-  
-  <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-  
-  <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-  
-  <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-  
-  'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-  
-  'siteroot': '<?php echo ($_W['siteroot']); ?>',
-    'siteurl': '<?php echo ($_W['siteurl']); ?>',
-    'attachurl': '<?php echo ($_W['attachurl']); ?>',
-    'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-    'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-    'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-    'cookie' : {'pre': ''},
-    'account' : <?php echo json_encode($_W['account']);?>,
-  };
-</script>
-
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-<link href="/static/css/snailfish.css" rel="stylesheet">
-  <link href="/static/css/szyV6.css" rel="stylesheet">
-</head>
-<body layadmin-themealias="default">
-<!-- 菜单组件 begin-->
-<div class="layadmin-tabsbody-item layui-show sub-nav-show">
-	<div class="sub-nav" style="width:125px">
-		<div class="nav-new wb-subnav  layui-this">
-			<div class="subnav-scene" style="font-size: 14px">
-				<?php echo ($menu['title']); ?>
-			</div>
-			<?php foreach($menu['items'] as $sub_menu){ ?>
-			<?php if( !empty($sub_menu['items']) ){ ?>
-
-			<div class="menu-header active">
-				<div class="menu-icon fa fa-caret-right layui-icon " style="color: #656161;">&#xe625;</div>
-				<div style="font-size: 13px;color: #656161;"> <?php echo ($sub_menu['title']); ?></div>
-			</div>
-			<?php }else{ ?>
-			<ul style="display:block;">
-				<li <?php if($perm_url == $sub_menu['route']){ ?>class="active"<?php } ?> data-class="active">
-				<a href="<?php echo U($sub_menu['route']);?>" style="display:block;cursor: pointer;font-size: 13px;color: #656161;"><?php echo ($sub_menu['title']); ?></a>
-				</li>
-			</ul>
-			<?php } ?>
-
-			<?php if( !empty($sub_menu['items']) ){ ?>
-			<ul style="display: block;">
-				<?php foreach($sub_menu['items'] as $third_sub_menu){ ?>
-				<li class="" data-class="active">
-					<a href="<?php echo U($third_sub_menu['route']);?>" style="display:block;cursor: pointer;"><cite style="font-size:12px;padding-left: 10px;" ><?php echo ($third_sub_menu['title']); ?></cite></a>
-				</li>
-				<?php } ?>
-			</ul>
-			<?php } ?>
-
-			<?php } ?>
-
-		</div>
-	</div>
-</div>
-<!-- 菜单组件end -->
-
-<div class="div-iframe">
-
-  <div class="layui-fluid">
-    <div class="layui-card">
-      <div class="layui-card layadmin-header" style="display:block;">
-        <div class="layui-breadcrumb" lay-filter="breadcrumb" style="visibility: visible;">
-          <a href="<?php echo U('application/index');?>">应用</a><span lay-separator="">/</span>
-          <a  href="<?php echo U('mptradecomponts/index');?>"><cite>交易组件</cite></a><span lay-separator="">/</span>
-          <a href="<?php echo U('mptradecomponts/index');?>"><cite>商品列表</cite></a>
-        </div>
-      </div>
-      <!--- 内容开始 -->
-      <div class="layui-card-body" style="padding:15px;">
-        <div class="row">
-          <div class="col-md-12">
-            <div class="page-table-header">
-                <span class="pull-right">
-                  <a href="<?php echo U('mptradecomponts/addGoods', array('ok' => 1));?>" class="layui-btn layui-btn-sm"><i class="fa fa-plus"></i> 添加商品</a>
-                </span>
-            </div>
-
-            <table class="layui-table" lay-skin="line" lay-size="lg">
-              <thead>
-              <tr>
-                <th style="width:80px;">ID</th>
-                <th style="width: 100px;">&nbsp;</th>
-                <th style="width:300px;">商品名称</th>
-                <th style="width: 150px;">商品线上状态</th>
-                <th style="width:150px;">商品草稿状态</th>
-                <th style="width:150px;">创建时间</th>
-                <th style="">操作</th>
-              </tr>
-              </thead>
-              <tbody>
-              <?php foreach( $list as $item ){ ?>
-              <tr>
-
-                <td>
-                  <?php echo ($item['out_product_id']); ?>
-                </td>
-                <td>
-                  <img src="<?php echo ($item['head_img'][0]); ?>" style="width:72px;height:72px;padding:1px;border:1px solid #efefef;margin: 7px 0"  />
-                </td>
-                <td>
-                  <?php echo ($item['title']); ?>
-                </td>
-                <td>
-                  <?php echo ($item['status_name']); ?>
-                </td>
-                <td>
-                  <?php echo ($item['edit_status_name']); ?>
-                </td>
-                <td>
-                  <?php echo ($item['create_time']); ?>
-                </td>
-                <td style="overflow:visible;position:relative">
-
-                  <?php if( $item['edit_status'] == 2 ){ ?>
-                  <a class='layui-btn layui-btn-xs deldom' href="javascript:;" data-href="<?php echo U('mptradecomponts/del_audit',array('out_product_id'=>$item['out_product_id']));?>" data-confirm='确认要撤销审核吗?'>
-                    撤回商品审核
-                  </a>
-                  <?php } ?>
-
-                  <a class='layui-btn layui-btn-xs deldom' href="javascript:;" data-href="<?php echo U('mptradecomponts/del',array('out_product_id'=>$item['out_product_id']));?>" data-confirm='确认要删除吗?删除后不可恢复!'>
-                    删除商品
-                  </a>
-                  <a class='layui-btn layui-btn-xs ' href="<?php echo U('mptradecomponts/update',array('goods_id'=>$item['out_product_id']));?>">
-                    更新商品
-                  </a>
-
-                  <?php if( $item['status'] == 11 ){ ?>
-                  <a class='layui-btn layui-btn-xs deldom' href="javascript:;" data-href="<?php echo U('mptradecomponts/listing',array('out_product_id'=>$item['out_product_id']));?>" data-confirm='确认要上架吗?'>
-                    上架商品
-                  </a>
-                  <?php } ?>
-
-                  <?php if( in_array( $item['status'], [0,5] ) ){ ?>
-                  <a class='layui-btn layui-btn-xs deldom' href="javascript:;" data-href="<?php echo U('mptradecomponts/delisting',array('out_product_id'=>$item['out_product_id']));?>" data-confirm='确认要下架吗?'>
-                    下架商品
-                  </a>
-                  <?php } ?>
-
-                </td>
-              </tr>
-              <?php } ?>
-              </tbody>
-              <tfoot>
-              <tr>
-                <td colspan="7" style="text-align: right">
-                  <?php echo ($pager); ?>
-                </td>
-              </tr>
-              </tfoot>
-            </table>
-
-          </div>
-
-      </div>
-      <!--- 内容结束-->
-    </div>
-  </div>
-</div>
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-  layui.config({
-    base: '/layuiadmin/' //静态资源所在路径
-  }).extend({
-    index: 'lib/index' //主入口模块
-  }).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-
-  $('.sub-nav').css('height',  $(window).height() + 'px');
-
-    $('.deldom').click(function(){
-        var s_url = $(this).attr('data-href');
-        layer.confirm($(this).attr('data-confirm'), function(index){
-
-            $.ajax({
-                url:s_url,
-                type:'post',
-                dataType:'json',
-                success:function(info){
-
-                    if(info.status == 0)
-                    {
-                        layer.msg(info.result.message,{icon: 1,time: 2000});
-                    }else if(info.status == 1){
-                        var go_url = location.href;
-                        if( info.result.hasOwnProperty("url") )
-                        {
-                            go_url = info.result.url;
-                        }
-
-                        layer.msg('操作成功',{time: 1000,
-                            end:function(){
-                                location.href = info.result.url;
-                            }
-                        });
-                    }
-                }
-            })
-
-        });
-    })
-
-})
-
-</script>  
-</body>
-</html>

+ 0 - 213
Runtime/Cache/Seller/38bad7affcc920c347417771ab7edaf1.php

@@ -1,213 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-            window.sysinfo = {
-            <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-			
-            <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-			
-            'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-			
-            'siteroot': '<?php echo ($_W['siteroot']); ?>',
-                    'siteurl': '<?php echo ($_W['siteurl']); ?>',
-                    'attachurl': '<?php echo ($_W['attachurl']); ?>',
-                    'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-                    'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-                    'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-            'cookie' : {'pre': ''},
-            'account' : <?php echo json_encode($_W['account']);?>,
-            };
-        </script>
-		
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-  <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-   <link href="/static/css/snailfish.css" rel="stylesheet">
-</head>
-<body layadmin-themealias="default">
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text"><?php if( !empty($item['id'])){ ?>编辑<?php  }else{ ?>添加<?php } ?>线下兑换码<?php if( !empty($item['id'])){ ?>(<?php echo ($item['code_name']); ?>)<?php } ?></span></div>
-		<div class="layui-card-body" style="padding:15px;">
-			<form action="" method="post" class="layui-form" lay-filter="component-layui-form-item" enctype="multipart/form-data" >
-				
-				<input type="hidden" name="data[id]" value="<?php echo ($item['id']); ?>"/>
-					<div class="layui-form-item">
-						<label class="layui-form-label">兑换码名称</label>
-						<div class="layui-input-block ">
-							<input type="text" id='code_name' lay-verify="required"  name="data[code_name]" class="form-control" value="<?php echo ($item['code_name']); ?>"/>
-						</div>
-					</div>
-
-					<div class="layui-form-item">
-						<label class="layui-form-label">兑换码有效期</label>
-						<div class="layui-input-block">
-							<label class='radio-inline'>
-								<input type='radio' name='data[effect_type]' lay-filter="effecttype"  title="永久有效" value=0 <?php if($item['effect_type']==0 || empty($item)){ ?>checked<?php } ?> />
-							</label>
-							<label class='radio-inline'>
-								<input type='radio' name='data[effect_type]' lay-filter="effecttype" title="限制有效期" value=1 <?php if( $item['effect_type']==1 && !empty($item) ){ ?>checked<?php } ?> />
-							</label>
-						</div>
-					</div>
-
-					<div class="layui-form-item" style="<?php if( $item['effect_type'] !=1 ){ ?>display: none;<?php } ?>" id="effectdays">
-						<label class="layui-form-label">截止日期</label>
-						<div class="layui-input-block ">
-							<?php echo tpl_form_field_date('effect_end_time', empty($item) ? '' : $item['effect_end_time'], true);;?>
-						</div>
-					</div>
-
-					<div class="layui-form-item">
-						<label class="layui-form-label">兑换面额</label>
-						<div class="layui-input-block ">
-							<div class="input-group fixsingle-input-group">
-								<input type="text" name="data[code_money]" class="form-control" value="<?php echo ($item['code_money']); ?>" />
-								<div class="input-group-addon"><b>元</b></div>
-
-							</div>
-							<span class="help-block">
-								例如:兑换码指定面值100元,可以兑换余额也是100元。
-							</span>
-						</div>
-					</div>
-					<div class="layui-form-item">
-						<label class="layui-form-label">生成数量</label>
-						<div class="layui-input-block ">
-							<div class="input-group fixsingle-input-group">
-								<input type="text" name="data[code_quantity]" class="form-control" value="<?php echo ($item['code_quantity']); ?>" />
-								<div class="input-group-addon"><b></b></div>
-							</div>
-							<span class="help-block">
-								线下发送卡密数量,单次最多生成1000张
-							</span>
-						</div>
-					</div>
-
-					<div class="layui-form-item" style="display:none;">
-						<label class="layui-form-label">状态</label>
-						<div class="layui-input-block">
-							<label class='radio-inline'>
-								<input type='radio' name='data[state]' title="有效" value=1 <?php if( $item['state']==1 || empty($item)){ ?>checked<?php } ?> />
-							</label>
-							<label class='radio-inline'>
-								<input type='radio' name='data[state]' title="失效" value=0 <?php if( isset($item['state']) && $item['state']==0 ){ ?>checked<?php } ?> />
-							</label>
-						</div>
-					</div>
-				
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label"> </label>
-					<div class="layui-input-block">
-						<input type="submit" value="提交" lay-submit lay-filter="formDemoCode" class="btn btn-primary"  />
-						
-					</div>
-				</div>
-			</form>
-		</div>
-</div>
-</div>
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-var cur_open_div;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  
-	form.on('radio(effecttype)', function(data){
-		if (data.value == 1) {
-			$('#effectdays').show();
-		} else {
-			$('#effectdays').hide();
-		}
-	});  
-
-
-		
-  //监听提交
-  form.on('submit(formDemoCode)', function(data){
-      var loadingIndex = layer.load();
-
-
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-                layer.close(loadingIndex);
-            }else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						//var backurl = "{php echo shopUrl('Configindex/slider',array('ok'=>'1'))}";
-                        location.href = info.result.url;
-						// location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-})
-
-
-
-</script>  
-</body>

+ 0 - 402
Runtime/Cache/Seller/40bddc84b9a5cc24ec86c4817bbf8acd.php

@@ -1,402 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
-  <!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-  <!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-  <![endif]-->
-
-  <link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-  <link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-  <script type="text/javascript">
-      window.sysinfo = {
-        <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-        <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-        <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-        <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-        'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-        'siteroot': '<?php echo ($_W['siteroot']); ?>',
-        'siteurl': '<?php echo ($_W['siteurl']); ?>',
-        'attachurl': '<?php echo ($_W['attachurl']); ?>',
-        'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-        'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-        'module': {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-        'cookie': {'pre': ''},
-        'account': <?php echo json_encode($_W['account']);?>,
-      };
-  </script>
-        
-  <script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-  <script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-  <script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-  <script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-  <script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-  <script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-  <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-  <link href="/static/css/snailfish.css" rel="stylesheet">
-  <style type="text/css">
-        .img-40 {
-            width: 40px;
-            height: 40px;
-        }
-  </style>
-</head>
-<body layadmin-themealias="default">
-
-<div class="layui-fluid">
-    <div class="layui-card">
-        <div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">配送线路管理</span></div>
-        <div class="layui-card-body" style="padding:15px;">
-            <div class="page-content">
-                <form action="" method="get" class="form-horizontal form-search layui-form" role="form" id="form1">
-            		<input type="hidden" name="c" value="delivery" />
-                    <input type="hidden" name="a" value="delivery_line" />
-                    
-                    <div class="layui-form-item">
-                        <div class="layui-input-inline">
-        					<input type="text" class="input-sm form-control layui-input" name='keyword' value="<?php echo ($gpc['keyword']); ?>" placeholder="输入关键词然后回车">
-                        </div>
-                        <span class="layui-input-inline">
-                            <button class="btn btn-primary" type="submit"> 搜索</button>
-                        </span>
-                    </div>
-                </form>
-	
-                <form action="" method="post" class="layui-form" role="form">
-                    <div class="row">
-                        <div class="col-md-12">
-                            <div class="page-table-header">
-                                <!-- <input type='checkbox' value="<?php echo ($item['id']); ?>" name="checkall" lay-skin="primary" lay-filter="checkboxall"/> -->
-            					<span class="pull-right">
-            						<a href="<?php echo U('delivery/adddeliverylist', array('ok'=>1));?>" class="layui-btn layui-btn-sm"><i class="fa fa-plus"></i> 添加配送路线</a>
-            					</span>
-                                <div class="btn-group">
-                                    <button class="btn btn-default btn-sm btn-operation" type="button" data-toggle='batch-remove' data-confirm="确认要删除吗?" data-href="<?php echo U('delivery/deldeliverylist');?>">
-                                        <i class='icow icow-shanchu1'></i> 删除
-            						</button>
-                                </div>
-                            </div>
-                            <table class="layui-table" lay-skin="line" lay-size="lg">
-                                <thead>
-                                    <tr>
-                						<th style="width:25px;"><input type='checkbox' name="checkall" lay-skin="primary" lay-filter="checkboxall" /></th>
-                						<th style="width:80px;">ID</th>
-                						<th style="">线路名称</th>
-                						<th style="">配送司机</th>
-                						<th style="width: 200px;">配送司机手机号</th>
-                						<th style="">配送社区</th>
-                						<th style="width: 200px;">操作</th>
-                					</tr>
-                                </thead>
-                                <tbody>
-                                    <?php foreach( $list as $item ){ ?>
-                                    <tr>
-                    					<td style="width:25px;">
-                    						<input type='checkbox' value="<?php echo ($item['id']); ?>" name="item_checkbox" lay-skin="primary"/>
-                    					</td>
-                    					<td>
-                    						<?php echo ($item['id']); ?>
-                    					</td>
-                    					<td>
-                    						<?php echo ($item['name']); ?>
-                    					</td>
-                    					<td>
-                    						<?php if( empty($item['clerk_info']) ){ ?>
-                    						--
-                    						<?php }else{ ?>
-                    						<div style="display: flex">
-                    						   <img class="img-40" src="<?php echo tomedia($item['clerk_info']['logo']);?>" style='border-radius:50%;border:1px solid #efefef;' />
-                    						   <span style="display: flex;flex-direction: column;justify-content: center;align-items: flex-start;padding-left: 5px">
-                    							   <span class="nickname">
-                    								   <?php echo ($item['clerk_info']['name']); ?>
-                    							   </span>
-                    						   </span>
-                    						</div>
-                    						<?php } ?>
-                    					</td>
-                    					<td>
-                    						<?php if( empty($item['clerk_info']) ){ ?>
-                    						--
-                    						<?php }else{ ?>
-                    						<?php echo ($item['clerk_info']['mobile']); ?>
-                    						<?php } ?>
-                    					</td>
-                    					<td>
-                    						<?php echo ($item['line_to_str']); ?> 
-                    					</td>
-                						<td  style="overflow:visible;position:relative">
-                							<a class='layui-btn layui-btn-xs btn-operation' href="<?php echo U('delivery/adddeliverylist', array('id' => $item['id'],'ok'=>1));?>" >
-                								<span data-toggle="tooltip" data-placement="top" title="" data-original-title="编辑">
-                									<i class="layui-icon layui-icon-edit"></i>编辑
-                								</span>
-                							</a>
-                                            <a class='layui-btn layui-btn-danger layui-btn-xs deldom deldom' href="javascript:;" data-href="<?php echo U('delivery/deldeliverylist',array('id' => $item['id']));?>" data-confirm='确认要删除吗?'>
-                                                <span data-toggle="tooltip" data-placement="top" title="" data-original-title="删除">
-                                                    <i class="layui-icon">&#xe640;</i>删除
-                                                </span>
-                                            </a>
-                                        </td>
-                                    </tr>
-                                    <?php } ?>
-                                </tbody>
-                                <tfoot>
-                                    <tr>
-                                        <td colspan="3">
-                							<div class="page-table-header">
-                								<input type='checkbox' name="checkall" lay-skin="primary" lay-filter="checkboxall" />
-                								<div class="btn-group">
-                									<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch-remove' data-confirm="确认要删除吗?" data-href="<?php echo U('delivery/deldeliverylist');?>">
-                										<i class='icow icow-shanchu1'></i> 删除
-                									</button>
-                								</div>
-                							</div>
-                                        </td>
-                                        <td colspan="4" style="text-align: right">
-                                            <?php echo ($pager); ?>
-                                        </td>
-                                    </tr>
-                                </tfoot>
-                            </table>
-                        </div>
-                    </div>
-                </form>
-            </div>
-        </div>
-    </div>
-</div>
-
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-    layui.config({
-        base: '/layuiadmin/' //静态资源所在路径
-    }).extend({
-        index: 'lib/index' //主入口模块
-    }).use('index');
-</script>
-
-<script>
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer', 'form'], function(){ 
-    $ = layui.$;
-    var form = layui.form;
-  
-    $('.deldom').click(function(){
-        var s_url = $(this).attr('data-href');
-        layer.confirm($(this).attr('data-confirm'), function(index){
-            $.ajax({
-                url:s_url,
-                type:'post',
-                dataType:'json',
-                success:function(info){
-                
-                    if(info.status == 0)
-                    {
-                        layer.msg(info.result.message,{icon: 1,time: 2000});
-                    }else if(info.status == 1){
-                        var go_url = location.href;
-                        if( info.result.hasOwnProperty("url") )
-                        {
-                            go_url = info.result.url;
-                        }
-                        
-                        layer.msg('操作成功',{time: 1000,
-                            end:function(){
-                                location.href = info.result.url;
-                            }
-                        }); 
-                    }
-                }
-            })
-        }); 
-    })
-    
-    $('.btn-operation').click(function(){
-        var ids_arr = [];
-        var obj = $(this);
-        var s_toggle = $(this).attr('data-toggle');
-        var s_url = $(this).attr('data-href');
-        
-        
-        $("input[name=item_checkbox]").each(function() {
-            
-            if( $(this).prop('checked') )
-            {
-                ids_arr.push( $(this).val() );
-            }
-        })
-        if(ids_arr.length < 1)
-        {
-            layer.msg('请选择要操作的内容');
-        }else{
-            var can_sub = true;
-            if( s_toggle == 'batch-remove' )
-            {
-                can_sub = false;
-                
-                layer.confirm($(obj).attr('data-confirm'), function(index){
-                     $.ajax({
-                        url:s_url,
-                        type:'post',
-                        dataType:'json',
-                        data:{ids:ids_arr},
-                        success:function(info){
-                        
-                            if(info.status == 0)
-                            {
-                                layer.msg(info.result.message,{icon: 1,time: 2000});
-                            }else if(info.status == 1){
-                                var go_url = location.href;
-                                if( info.result.hasOwnProperty("url") )
-                                {
-                                    go_url = info.result.url;
-                                }
-                                
-                                layer.msg('操作成功',{time: 1000,
-                                    end:function(){
-                                        location.href = info.result.url;
-                                    }
-                                }); 
-                            }
-                        }
-                    })
-                }); 
-            }else{
-                $.ajax({
-                    url:s_url,
-                    type:'post',
-                    dataType:'json',
-                    data:{ids:ids_arr},
-                    success:function(info){
-                    
-                        if(info.status == 0)
-                        {
-                            layer.msg(info.result.message,{icon: 1,time: 2000});
-                        }else if(info.status == 1){
-                            var go_url = location.href;
-                            if( info.result.hasOwnProperty("url") )
-                            {
-                                go_url = info.result.url;
-                            }
-                            
-                            layer.msg('操作成功',{time: 1000,
-                                end:function(){
-                                    location.href = info.result.url;
-                                }
-                            }); 
-                        }
-                    }
-                })
-            }
-        }
-    })
-  
-    form.on('switch(statewsitch)', function(data){
-      
-      var s_url = $(this).attr('data-href')
-      
-      var s_value = 1;
-      if(data.elem.checked)
-      {
-        s_value = 1;
-      }else{
-        s_value = 0;
-      }
-      
-      $.ajax({
-            url:s_url,
-            type:'post',
-            dataType:'json',
-            data:{value:s_value},
-            success:function(info){
-            
-                if(info.status == 0)
-                {
-                    layer.msg(info.result.message,{icon: 1,time: 2000});
-                }else if(info.status == 1){
-                    var go_url = location.href;
-                    if( info.result.hasOwnProperty("url") )
-                    {
-                        go_url = info.result.url;
-                    }
-                    
-                    layer.msg('操作成功',{time: 1000,
-                        end:function(){
-                            location.href = info.result.url;
-                        }
-                    }); 
-                }
-            }
-        })
-    });
-
-    form.on('checkbox(checkboxall)', function(data){
-      if(data.elem.checked)
-      {
-        $("input[name=item_checkbox]").each(function() {
-            $(this).prop("checked", true);
-        });
-        $("input[name=checkall]").each(function() {
-            $(this).prop("checked", true);
-        });
-        
-      }else{
-        $("input[name=item_checkbox]").each(function() {
-            $(this).prop("checked", false);
-        });
-        $("input[name=checkall]").each(function() {
-            $(this).prop("checked", false);
-        });
-      }
-      
-      form.render('checkbox');
-    });
-  
-    //监听提交
-    form.on('submit(formDemo)', function(data){
-        $.ajax({
-            url: data.form.action,
-            type: data.form.method,
-            data: data.field,
-            dataType:'json',
-            success: function (info) {
-              
-                if(info.status == 0)
-                {
-                    layer.msg(info.result.message,{icon: 1,time: 2000});
-                }else if(info.status == 1){
-                    var go_url = location.href;
-                    if( info.result.hasOwnProperty("url") )
-                    {
-                        go_url = info.result.url;
-                    }
-                    
-                    layer.msg('操作成功',{time: 1000,
-                        end:function(){
-                            location.href = info.result.url;
-                        }
-                    }); 
-                }
-            }
-        });
-        return false;
-    });
-})
-
-</script>  
-</body>
-</html>

+ 0 - 322
Runtime/Cache/Seller/41930977f2627070c139c99d30f907b4.php

@@ -1,322 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?>
-<!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-            window.sysinfo = {
-            <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-			
-            <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-			
-            'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-			
-            'siteroot': '<?php echo ($_W['siteroot']); ?>',
-                    'siteurl': '<?php echo ($_W['siteurl']); ?>',
-                    'attachurl': '<?php echo ($_W['attachurl']); ?>',
-                    'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-                    'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-                    'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-            'cookie' : {'pre': ''},
-            'account' : <?php echo json_encode($_W['account']);?>,
-            };
-        </script>
-		
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-<link href="/static/css/snailfish.css" rel="stylesheet">
-<style>
-.daterangepicker select.ampmselect, .daterangepicker select.hourselect, .daterangepicker select.minuteselect
-{
-    width: auto!important;
-}
-</style>
-</head>
-<body layadmin-themealias="default">
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">一键设置商品时间</span></div>
-		<div class="layui-card-body" style="padding:15px;">
-			<form action="" method="post" class="layui-form" lay-filter="component-layui-form-item" enctype="multipart/form-data" >
-				
-				<?php  if (defined('ROLE') && ROLE == 'agenter' ) { ?>
-					<div class="layui-form-item">
-						<label class="layui-form-label">统一商品团购时间</label>
-						<div class="layui-input-block">
-							<label class="radio-inline"><input type="radio" lay-filter="is_samedefault_now" name="is_samedefault_now" value="0" <?php if( !isset($data['is_samedefault_now']) || $data['is_samedefault_now'] == 0){ ?>checked="true"<?php } ?> title="默认当前" /> </label>
-							<label class="radio-inline"><input type="radio" lay-filter="is_samedefault_now" name="is_samedefault_now" value="2" <?php if( isset($data['is_samedefault_now']) && $data['is_samedefault_now'] == 2){ ?>checked="true"<?php } ?> title="统一供应商团购时间" /> </label>
-							<br/>
-							<span class="layui-form-mid layui-word-aux" id="same_form">保持目前团购时间不变</span>
-						</div>
-					</div>
-					<div class="layui-form-item" id="samedefault_now" <?php if( !isset($data['is_samedefault_now']) || $data['is_samedefault_now'] == 0 ){ ?> style="display:none;"<?php } ?>>
-						<label class="layui-form-label">团购时间</label>
-						<div class="layui-input-block">
-							<?php echo tpl_form_field_daterange('time', array('starttime'=>date('Y-m-d H:i', $data[goods_same_starttime]),'endtime'=>date('Y-m-d H:i', $data[goods_same_endtime])),true);;?>
-						</div>
-					</div>
-					
-					<div class="layui-form-item">
-						<label class="layui-form-label">统一商品提货时间</label>
-						<div class="layui-input-block">
-							<label class="radio-inline"><input type="radio" lay-filter="is_sametihuo_time" name="is_sametihuo_time" value="0" <?php if( !isset($data['is_sametihuo_time']) || $data['is_sametihuo_time'] == 0){ ?>checked="true"<?php } ?> title="默认当前" /> </label>
-							<label class="radio-inline"><input type="radio" lay-filter="is_sametihuo_time" name="is_sametihuo_time" value="2" <?php if( isset($data['is_sametihuo_time']) && $data['is_sametihuo_time'] == 2){ ?>checked="true"<?php } ?> title="供应商团购时间" /> </label>
-							<br/>
-							<span class="layui-form-mid layui-word-aux" id="same_tihuo">保持目前提货时间不变</span>
-						</div>
-					</div>
-					
-					<div class="layui-form-item" id="sametihuo_time" <?php if( !isset($data['is_sametihuo_time']) || $data['is_sametihuo_time'] == 0){ ?>style="display:none;"<?php } ?>>
-						<label class="layui-form-label">提货时间</label>
-						<div class="col-sm-10 col-xs-12" id="radPickupDateTip"> 
-							
-							<label class="radio-inline"><input type="radio"  name="pick_up_type" <?php if( !isset($data['pick_up_type']) || $data['pick_up_type'] ==0 ){ ?> checked <?php } ?> value="4" title="当日达" /><span class="fake-radio"></span></label>
-							<label  class="radio-inline"><input type="radio"  name="pick_up_type" <?php if( isset($data['pick_up_type']) && $data['pick_up_type'] ==1 ){ ?> checked <?php } ?> value="1" title="次日达" /><span class="fake-radio"></span></label>
-							<label  class="radio-inline"><input type="radio"  name="pick_up_type" <?php if( isset($data['pick_up_type']) && $data['pick_up_type'] ==2 ){ ?> checked <?php } ?> value="2" title="隔日达" /><span class="fake-radio"></span></label>
-							<label  class="radio-inline"><input type="radio"  name="pick_up_type" <?php if( isset($data['pick_up_type']) && $data['pick_up_type'] ==3 ){ ?> checked <?php } ?> value="3" title="自定义" /><span class="fake-radio"></span></label>
-							
-							<input class="form-control " id="txtPickupDateTip" name="pick_up_modify" style="vertical-align: sub; <?php if( isset($data['pick_up_type']) && $data['pick_up_type'] ==3){ ?>display:inline-block;<?php  }else{ ?>display: none;<?php } ?>width: 120px;" type="text" value="<?php echo ($data['pick_up_modify']); ?>">
-							
-							<div style="clear:both;"></div>
-							
-						</div>
-					</div>
-				<?php }else{ ?>
-					<div class="layui-form-item">
-						<label class="layui-form-label">统一商品团购时间</label>
-						<div class="layui-input-block">
-							<label class="radio-inline"><input type="radio" lay-filter="is_samedefault_now" name="is_samedefault_now" value="0" <?php if( !isset($data['is_samedefault_now']) || $data['is_samedefault_now'] == 0){ ?>checked="true"<?php } ?> title="默认当前" /> </label>
-							<label class="radio-inline"><input type="radio" lay-filter="is_samedefault_now" name="is_samedefault_now" value="1" <?php if( isset($data['is_samedefault_now']) && $data['is_samedefault_now'] == 1){ ?>checked="true"<?php } ?> title="统一平台团购时间" /> </label>
-							<label class="radio-inline"><input type="radio" lay-filter="is_samedefault_now" name="is_samedefault_now" value="2" <?php if( isset($data['is_samedefault_now']) && $data['is_samedefault_now'] == 2){ ?>checked="true"<?php } ?> title="统一平台及供应商团购时间" /> </label>
-							<br/>
-							<span class="layui-form-mid layui-word-aux" id="same_form">保持目前团购时间不变</span>
-						</div>
-					</div>
-					<div class="layui-form-item" id="samedefault_now" <?php if( !isset($data['is_samedefault_now']) || $data['is_samedefault_now'] == 0 ){ ?> style="display:none;"<?php } ?> >
-						<label class="layui-form-label">团购时间</label>
-						<div class="layui-input-block">
-							<?php echo tpl_form_field_daterange('time', array('starttime'=>date('Y-m-d H:i', $data[goods_same_starttime]),'endtime'=>date('Y-m-d H:i', $data[goods_same_endtime])),true);;?>
-						</div>
-					</div>
-					
-					<div class="layui-form-item">
-						<label class="layui-form-label">统一商品提货时间</label>
-						<div class="layui-input-block">
-							<label class="radio-inline"><input type="radio" lay-filter="is_sametihuo_time" name="is_sametihuo_time" value="0" <?php if( !isset($data['is_sametihuo_time']) || $data['is_sametihuo_time'] == 0){ ?>checked="true"<?php } ?> title="默认当前" /> </label>
-							<label class="radio-inline"><input type="radio" lay-filter="is_sametihuo_time" name="is_sametihuo_time" value="1" <?php if( isset($data['is_sametihuo_time']) && $data['is_sametihuo_time'] == 1){ ?>checked="true"<?php } ?> title="统一平台提货时间" /> </label>
-							<label class="radio-inline"><input type="radio" lay-filter="is_sametihuo_time" name="is_sametihuo_time" value="2" <?php if( isset($data['is_sametihuo_time']) && $data['is_sametihuo_time'] == 2){ ?>checked="true"<?php } ?> title="统一平台及供应商提货时间" /> </label>
-							<br/>
-							<span class="layui-form-mid layui-word-aux" id="same_tihuo">保持目前提货时间不变</span>
-						</div>
-					</div>
-					
-					<div class="layui-form-item" id="sametihuo_time" <?php if( !isset($data['is_sametihuo_time']) || $data['is_sametihuo_time'] == 0){ ?>style="display:none;"<?php } ?> >
-						<label class="layui-form-label">提货时间</label>
-						<div class="col-sm-10 col-xs-12" id="radPickupDateTip"> 
-							
-							<label class="radio-inline"><input type="radio"  name="pick_up_type" <?php if( !isset($data['pick_up_type']) || $data['pick_up_type'] ==0 ){ ?> checked <?php } ?> value="4" title="当日达" /><span class="fake-radio"></span></label>
-							<label  class="radio-inline"><input type="radio"  name="pick_up_type" <?php if( isset($data['pick_up_type']) && $data['pick_up_type'] ==1 ){ ?> checked <?php } ?> value="1" title="次日达" /><span class="fake-radio"></span></label>
-							<label  class="radio-inline"><input type="radio"  name="pick_up_type" <?php if( isset($data['pick_up_type']) && $data['pick_up_type'] ==2 ){ ?> checked <?php } ?> value="2" title="隔日达" /><span class="fake-radio"></span></label>
-							<label  class="radio-inline"><input type="radio"  name="pick_up_type" <?php if( isset($data['pick_up_type']) && $data['pick_up_type'] ==3 ){ ?> checked <?php } ?> value="3" title="自定义" /><span class="fake-radio"></span></label>
-							
-							<input class="form-control " id="txtPickupDateTip" name="pick_up_modify" style="vertical-align: sub; <?php if( isset($data['pick_up_type']) && $data['pick_up_type'] ==3){ ?>display:inline-block;<?php  }else{ ?>display: none;<?php } ?>width: 120px;" type="text" value="<?php echo ($data['pick_up_modify']); ?>">
-							
-							<div style="clear:both;"></div>
-							
-						</div>
-					</div>
-				<?php } ?>
-				
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label"> </label>
-					<div class="layui-input-block">
-						<input type="submit" value="提交" lay-submit lay-filter="formDemo" class="btn btn-primary"  />
-						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-						
-					</div>
-				</div>
-			</form>
-		</div>
-</div>
-</div>
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-var cur_open_div;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  
-	form.on('radio(is_samedefault_now)', function(data){
-		<?php  if (defined('ROLE') && ROLE == 'agenter' ) { ?>
-			if (data.value == 0) {
-				$('#samedefault_now').hide();
-				$('#same_form').html('保持目前团购时间不变');
-			}
-			else if( data.value == 2 )
-			{
-				$('#samedefault_now').show();
-				$('#same_form').html('此操作会变更独立供应商商品的团购时间(不包含拼团),请谨慎操作。');
-			}
-		
-		<?php }else{ ?>
-		
-			if (data.value == 0) {
-				$('#samedefault_now').hide();
-				$('#same_form').html('保持目前团购时间不变');
-				
-			}else if( data.value == 1 )
-			{
-				$('#samedefault_now').show();
-				$('#same_form').html('此操作会变更所有平台商品的团购时间(不包含拼团),请谨慎操作。');
-			}
-			else if( data.value == 2 )
-			{
-				$('#samedefault_now').show();
-				$('#same_form').html('此操作会变更平台+独立供应商商品的团购时间(不包含拼团),请谨慎操作。');
-			}
-		
-		<?php } ?>
-		
-	}); 
-
-	form.on('radio(is_sametihuo_time)', function(data){
-	
-		<?php  if (defined('ROLE') && ROLE == 'agenter' ) { ?>
-				if (data.value == 0) {
-					$('#sametihuo_time').hide();
-					$('#same_tihuo').html('保持目前提货时间不变');
-				}
-				else if( data.value == 2 )
-				{
-					$('#sametihuo_time').show();
-					$('#same_tihuo').html('此操作会变更独立供应商商品的提货时间(不包含拼团),请谨慎操作。');
-				}
-		<?php }else{ ?>
-			if (data.value == 0) {
-			
-				$('#sametihuo_time').hide();
-				$('#same_tihuo').html('保持目前提货时间不变');
-			}else if( data.value == 1 )
-			{
-				$('#sametihuo_time').show();
-				$('#same_tihuo').html('此操作会变更所有平台商品的提货时间(不包含拼团),请谨慎操作。');
-			}
-			else if( data.value == 2 )
-			{
-				$('#sametihuo_time').show();
-				$('#same_tihuo').html('此操作会变更平台+独立供应商商品的提货时间(不包含拼团),请谨慎操作。');
-			}
-		<?php } ?>
-		
-		
-	});	
-	
-	
-	
-
-	$('#radPickupDateTip input[type=radio]').click(function(){
-		var s_val = $(this).val();
-		if(s_val == 3)
-		{
-			$('#txtPickupDateTip').css('display','inline-block');
-		}else{
-			$('#txtPickupDateTip').css('display', 'none');
-		}
-	})
-								 
-	$('#chose_link').click(function(){
-		cur_open_div = $(this).attr('data-input');
-		$.post("<?php echo U('util.selecturl', array('ok' => 1));?>", {}, function(shtml){
-		 layer.open({
-			type: 1,
-			area: '930px',
-			content: shtml //注意,如果str是object,那么需要字符拼接。
-		  });
-		});
-	})
-		
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	
-	layer.confirm('是否确认统一修改团购时间和提货时间?', function(index){
-	
-		 $.ajax({
-			url: data.form.action,
-			type: data.form.method,
-			data: data.field,
-			dataType:'json',
-			success: function (info) {
-			  
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		});
-		
-	});
-	
-    return false;
-  });
-})
-
-
-
-</script>  
-</body>

+ 0 - 507
Runtime/Cache/Seller/436fb4e3a5fbb8071e0046615b90aa58.php

@@ -1,507 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-	window.sysinfo = {
-	<?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-	
-	<?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-	
-	'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-	
-	'siteroot': '<?php echo ($_W['siteroot']); ?>',
-			'siteurl': '<?php echo ($_W['siteurl']); ?>',
-			'attachurl': '<?php echo ($_W['attachurl']); ?>',
-			'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-			'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-			'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-	'cookie' : {'pre': ''},
-	'account' : <?php echo json_encode($_W['account']);?>,
-	};
-</script>
-
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-<link href="/static/css/snailfish.css" rel="stylesheet">
-<style>
-    tbody tr td{
-        position: relative;
-    }
-    tbody tr  .icow-weibiaoti--{
-        visibility: hidden;
-        display: inline-block;
-        color: #fff;
-        height:18px;
-        width:18px;
-        background: #e0e0e0;
-        text-align: center;
-        line-height: 18px;
-        vertical-align: middle;
-    }
-    tbody tr:hover .icow-weibiaoti--{
-        visibility: visible;
-    }
-    tbody tr  .icow-weibiaoti--.hidden{
-        visibility: hidden !important;
-    }
-    .full .icow-weibiaoti--{
-        margin-left:10px;
-    }
-    .full>span{
-        display: -webkit-box;
-        display: -webkit-flex;
-        display: -ms-flexbox;
-        display: flex;
-        vertical-align: middle;
-        align-items: center;
-    }
-    tbody tr .label{
-        margin: 5px 0;
-    }
-    .goods_attribute a{
-        cursor: pointer;
-    }
-    .newgoodsflag{
-        width: 22px;height: 16px;
-        background-color: #ff0000;
-        color: #fff;
-        text-align: center;
-        position: absolute;
-        bottom: 70px;
-        left: 57px;
-        font-size: 12px;
-    }
-	.a{cursor: pointer;}
-</style>
-</head>
-<body layadmin-themealias="default">
-
-<table id="demo" lay-filter="test"></table>
-
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">运费模板</span></div>
-		<div class="layui-card-body" style="padding:15px;">
-			<form action="" method="get" class="form-horizontal form-search layui-form" role="form">
-				<input type="hidden" name="c" value="shipping" />
-				<input type="hidden" name="a" value="templates" />
-				
-					
-				<div class="layui-form-item">
-				  <div class="layui-inline">
-					<div class="layui-input-inline">
-					  <input type="text" class="layui-input" name='keyword' value="<?php echo ($gpc['keyword']); ?>" placeholder="请输入关键词">  
-					</div>
-					<div class="layui-input-inline">
-						<button class="layui-btn layui-btn-sm"  type="submit"> 搜索</button>
-					</div>
-				  </div>
-				</div>
-				
-			</form>
-			<form action="" class="layui-form" lay-filter="example" method="post" >
-       
-				<div class="row">
-					<div class="col-md-12">
-						<div class="page-table-header">
-						
-							<span class="pull-right"> 
-								<a href="<?php echo U('shipping/addshipping', array('ok' => 1));?>" class="layui-btn layui-btn-sm"><i class="fa fa-plus"></i> 添加运费模板</a>
-							</span>
-							<div class="btn-group">
-								<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch-remove' data-confirm="确认要删除吗,删除后商品将进入回收站?" data-href="<?php echo U('config/shipping.deleteshipping');?>">
-									<i class='icow icow-shanchu1'></i> 删除
-								</button>
-							</div>
-						</div>
-						
-						
-				
-				
-						<table class="table table-responsive" lay-even lay-skin="line" lay-size="lg">
-							<thead>
-							 <tr>
-								<th style="width:25px;">
-									<input type='checkbox' name="checkall" lay-skin="primary" lay-filter="checkboxall"  />
-								</th>
-								<th style='width:50px'></th>
-								<th>名称</th>
-								<th  style='width:150px;'>计费方式</th>
-								<th style='width:200px;'>首重(首件)价格</th>
-								<th style='width:200px;'>续重(续件)价格</th>
-								<th style='width:100px;'>状态</th>
-								<th style='width:160px;'>默认</th>
-								<th style="">操作</th>
-							</tr>
-							</thead>
-							<tbody>
-							
-							<?php foreach( $list as $item ){ ?>
-							<tr>
-								<td>
-									<input type='checkbox' name="item_checkbox" lay-skin="primary"  value="<?php echo ($item['id']); ?>"/>
-								</td>
-								<td>
-									<?php echo ($item['displayorder']); ?>
-								</td>
-								<td><?php echo ($item['name']); ?></td>
-
-								<?php if( $item['type']==1){ ?>
-									<td>按重量计费</td>
-									<td><?php echo ($item['firstprice']); ?></td>
-									<td><?php echo ($item['secondprice']); ?></td>
-								<?php  }else{ ?>
-									<td>按件计费</td>
-									<td><?php echo ($item['firstnumprice']); ?></td>
-									<td><?php echo ($item['secondnumprice']); ?></td>
-								<?php } ?>
-
-								<td>
-									<input type="checkbox" name="" lay-filter="statewsitch" data-href="<?php echo U('shipping/enabled',array('type'=>'enabled','id'=>$item['id']));?>" <?php if( $item['enabled']==1){ ?>checked<?php  }else{ } ?> lay-skin="switch" lay-text="启用|禁用">
-									
-								</td>
-								<td>
-									<input type="checkbox" name="" lay-filter="statewsitch_default" data-href="<?php echo U('shipping/setdefault',array('type'=>'isdefault','id'=>$item['id']));?>" <?php if( $item['isdefault']==1){ ?>checked<?php  }else{ } ?> lay-skin="switch" lay-text="是|否">
-									
-								
-								</td>
-								<td style="text-align:left;">
-									
-										<a href="<?php echo U('shipping/editshipping', array('id' => $item['id'], 'ok' => 1 ));?>" class="layui-btn layui-btn-xs" >
-											<i class="layui-icon layui-icon-edit"></i>编辑
-										</a>
-									
-										<a class='layui-btn layui-btn-xs deldom' href="javascript:;" data-href="<?php echo U('shipping/deleteshipping', array('id' => $item['id']));?>"class="btn btn-op btn-operation" data-confirm='确认要删除此配送方式吗?'>
-											<i class="layui-icon">&#xe640;</i>删除
-										</a>
-									
-								</td>
-							</tr>
-							<?php } ?>
-							</tbody>
-							<tfoot>
-							<tr>
-								<td colspan="5">
-									<div class="page-table-header">
-										<input type="checkbox" name="checkall" lay-skin="primary" lay-filter="checkboxall">
-										<div class="btn-group">
-											<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch-remove' data-confirm="确认要删除吗?" data-href="<?php echo U('shipping/deleteshipping');?>">
-												<i class='icow icow-shanchu1'></i> 删除
-											</button>
-										</div>
-										
-									</div>
-								</td>
-								<td colspan="9" style="text-align: right">
-									<?php echo ($pager); ?>
-								</td>
-							</tr>
-							</tfoot>
-						</table>
-					</div>
-				</div>
-				
-			</form>
-		</div>
-	</div>
-</div>
-
-
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  
-  
-	$('.deldom').click(function(){
-		var s_url = $(this).attr('data-href');
-		layer.confirm($(this).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						success:function(info){
-						
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-	})
-	
-	$('.btn-operation').click(function(){
-		var ids_arr = [];
-		var obj = $(this);
-		var s_toggle = $(this).attr('data-toggle');
-		var s_url = $(this).attr('data-href');
-		
-		
-		$("input[name=item_checkbox]").each(function() {
-			
-			if( $(this).prop('checked') )
-			{
-				ids_arr.push( $(this).val() );
-			}
-		})
-		if(ids_arr.length < 1)
-		{
-			layer.msg('请选择要操作的内容');
-		}else{
-			var can_sub = true;
-			if( s_toggle == 'batch-remove' )
-			{
-				can_sub = false;
-				
-				layer.confirm($(obj).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						data:{ids:ids_arr},
-						success:function(info){
-						
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-			}else{
-				$.ajax({
-					url:s_url,
-					type:'post',
-					dataType:'json',
-					data:{ids:ids_arr},
-					success:function(info){
-					
-						if(info.status == 0)
-						{
-							layer.msg(info.result.message,{icon: 1,time: 2000});
-						}else if(info.status == 1){
-							var go_url = location.href;
-							if( info.result.hasOwnProperty("url") )
-							{
-								go_url = info.result.url;
-							}
-							
-							layer.msg('操作成功',{time: 1000,
-								end:function(){
-									location.href = info.result.url;
-								}
-							}); 
-						}
-					}
-				})
-			}
-		}
-	})
-  						
-									
-	form.on('switch(statewsitch_default)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var isdefault = 1;
-	  if(data.elem.checked)
-	  {
-		isdefault = 1;
-	  }else{
-		isdefault = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{isdefault:isdefault},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	});  
-	
-	form.on('switch(statewsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var s_value = 1;
-	  if(data.elem.checked)
-	  {
-		s_value = 1;
-	  }else{
-		s_value = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{enabled:s_value},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	});  
-	form.on('checkbox(checkboxall)', function(data){
-	  
-	  if(data.elem.checked)
-	  {
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", true);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", true);
-		});
-		
-	  }else{
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", false);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", false);
-		});
-	  }
-	  
-	  form.render('checkbox');
-	});
-  
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-})
-
-
-
-</script>  
-</body>

+ 0 - 223
Runtime/Cache/Seller/49494ef69a735aa5f8c2e4d8589ff4a6.php

@@ -1,223 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-            window.sysinfo = {
-            <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-			
-            <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-			
-            'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-			
-            'siteroot': '<?php echo ($_W['siteroot']); ?>',
-                    'siteurl': '<?php echo ($_W['siteurl']); ?>',
-                    'attachurl': '<?php echo ($_W['attachurl']); ?>',
-                    'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-                    'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-                    'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-            'cookie' : {'pre': ''},
-            'account' : <?php echo json_encode($_W['account']);?>,
-            };
-        </script>
-		
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-  <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-   <link href="/static/css/snailfish.css" rel="stylesheet">
-</head>
-<body layadmin-themealias="default">
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text"><?php if( !empty($group['id'])){ ?>编辑<?php  }else{ ?>添加<?php } ?>配送员</span></div>
-		<div class="layui-card-body" style="padding:15px;">
-			<form action="<?php echo U('Orderdistribution/adddistribution');?>" method="post" class="layui-form" lay-filter="component-layui-form-item" enctype="multipart/form-data" >
-		
-				<input type="hidden" name="id" value="<?php echo ($distribution['id']); ?>" />
-	 
-				<div class="layui-form-item">
-					<label class="layui-form-label">配送员姓名</label>
-					<div class="layui-input-block">
-						<input type="text" name="username" class="form-control" value="<?php echo ($distribution['username']); ?>" data-rule-required="true" />
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label">联系电话</label>
-					<div class="layui-input-block">
-						<input type="text" name="mobile" class="form-control" value="<?php echo ($distribution['mobile']); ?>" data-rule-required="true" />
-					</div>
-				</div>
-				
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label ">关联会员</label>
-					
-					<div class="layui-input-block">
-						<div class="input-group " style="margin: 0;">
-							<input type="text" disabled value="<?php echo ($distribution['member_id']); ?>" class="form-control valid" name="member_id" placeholder="" id="member_id">
-							<span class="input-group-btn">
-								<span data-input="#member_id" id="chose_member_id"  class="btn btn-default">选择会员</span>
-							</span>
-						</div>
-						<?php if( $saler){ ?>
-						<div class="input-group " style="margin: 0;">
-							<div class="layadmin-text-center choose_user">
-								<img style="" src="<?php echo ($saler['avatar']); ?>">
-								<div class="layadmin-maillist-img" style=""><?php echo ($saler['nickname']); ?></div>
-								<button type="button" class="layui-btn layui-btn-sm" onclick="cancle_bind(this,'member_id')"><i class="layui-icon">&#xe640;</i></button>
-							</div>
-						</div>
-						<?php } ?>
-						<div class="layui-form-mid layui-word-aux">关联会员以后,会员可在“底部菜单我的--配送员中心”进行接单配送</div>
-
-					</div>
-				</div>
-				
-				 <div class="layui-form-item">
-                        <label class="layui-form-label">状态</label>
-                        <div class="layui-input-block">
-                            <input type='radio' name='state' title="启用" value=1 <?php if( $distribution['state']==1 || empty($distribution)){ ?>checked<?php } ?> /> 
-                            <input type='radio' name='state' title="禁用" value=0 <?php if( $distribution['state']==0 && !empty($distribution) ){ ?>checked<?php } ?> /> 
-                        </div>
-                 </div>
-				 
-				 <div class="layui-form-item">
-					<label class="layui-form-label">常驻地址</label>
-					<div class="layui-input-block">
-						<input type="text" name="always_address" class="form-control" value="<?php echo ($distribution['always_address']); ?>" data-rule-required="true" />
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label"> </label>
-					<div class="layui-input-block">
-						<input type="submit" value="提交" lay-submit lay-filter="formDemo" class="btn btn-primary"  />
-						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-						<a class="btn btn-default" style='margin-left:10px;' href="<?php echo U('orderdistribution/index',array('ok'=>'1'));?>">返回列表</a>
-						
-					</div>
-				</div>
-			</form>
-		</div>
-</div>
-</div>
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-var cur_open_div;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  
-	form.on('radio(linktype)', function(data){
-		if (data.value == 2) {
-			$('#typeGroup').show();
-		} else {
-			$('#typeGroup').hide();
-		}
-	});  
-
-	
-	$('#chose_member_id').click(function(){
-		cur_open_div = $(this).attr('data-input');
-		$.post("<?php echo U('user/zhenquery', array('ok' => 1));?>", {}, function(shtml){
-		 layer.open({
-			type: 1,
-			area: '930px',
-			content: shtml //注意,如果str是object,那么需要字符拼接。
-		  });
-		});
-	})
-	
-	$('#chose_link').click(function(){
-		cur_open_div = $(this).attr('data-input');
-		$.post("<?php echo U('util.selecturl', array('ok' => 1));?>", {}, function(shtml){
-		 layer.open({
-			type: 1,
-			area: '930px',
-			content: shtml //注意,如果str是object,那么需要字符拼接。
-		  });
-		});
-	})
-		
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	var loadingIndex = layer.load(); // 加载中动画遮罩层(1)
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.close(loadingIndex); // 提交成功失败都需要关闭
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-})
-
-function cancle_bind(obj,sdiv)
-{
-	$('#'+sdiv).val('');
-	$(obj).parent().parent().remove();
-}
-
-</script>  
-</body>

+ 0 - 453
Runtime/Cache/Seller/4d987c245e6f9ee3318f71493bcd3b4f.php

@@ -1,453 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-	window.sysinfo = {
-	<?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-	
-	<?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-	
-	'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-	
-	'siteroot': '<?php echo ($_W['siteroot']); ?>',
-			'siteurl': '<?php echo ($_W['siteurl']); ?>',
-			'attachurl': '<?php echo ($_W['attachurl']); ?>',
-			'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-			'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-			'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-	'cookie' : {'pre': ''},
-	'account' : <?php echo json_encode($_W['account']);?>,
-	};
-</script>
-
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-<link href="/static/css/snailfish.css" rel="stylesheet">
-<style>
-    tbody tr td{
-        position: relative;
-    }
-    tbody tr  .icow-weibiaoti--{
-        visibility: hidden;
-        display: inline-block;
-        color: #fff;
-        height:18px;
-        width:18px;
-        background: #e0e0e0;
-        text-align: center;
-        line-height: 18px;
-        vertical-align: middle;
-    }
-    tbody tr:hover .icow-weibiaoti--{
-        visibility: visible;
-    }
-    tbody tr  .icow-weibiaoti--.hidden{
-        visibility: hidden !important;
-    }
-    .full .icow-weibiaoti--{
-        margin-left:10px;
-    }
-    .full>span{
-        display: -webkit-box;
-        display: -webkit-flex;
-        display: -ms-flexbox;
-        display: flex;
-        vertical-align: middle;
-        align-items: center;
-    }
-    tbody tr .label{
-        margin: 5px 0;
-    }
-    .goods_attribute a{
-        cursor: pointer;
-    }
-    .newgoodsflag{
-        width: 22px;height: 16px;
-        background-color: #ff0000;
-        color: #fff;
-        text-align: center;
-        position: absolute;
-        bottom: 70px;
-        left: 57px;
-        font-size: 12px;
-    }
-	.a{cursor: pointer;}
-	.img-40{
-		width:40px;height:40px;
-	}
-</style>
-</head>
-<body layadmin-themealias="default">
-
-<table id="demo" lay-filter="test"></table>
-
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">兑换记录</span></div>
-		<div class="layui-card-body" style="padding:15px;">
-			<form action="" method="get" class="form-horizontal form-search layui-form" role="form">
-				<input type="hidden" name="c" value="virtualcard" />
-				<input type="hidden" name="a" value="exchangerecord" />
-				<input type="hidden" name="code_id" value="<?php echo ($code_id); ?>" />
-
-				<div class="layui-form-item">
-				  <div class="layui-inline">
-					  <div class="layui-input-inline" style="width:280px;">
-						  <?php echo tpl_form_field_daterange('time', array('starttime'=>date('Y-m-d H:i', $starttime),'endtime'=>date('Y-m-d H:i', $endtime)),true);;?>
-					  </div>
-					<div class="layui-input-inline">
-					  <input type="text" class="layui-input" name='keyword' value="<?php echo ($_GPC['keyword']); ?>" placeholder="输入兑换码然后回车">
-					</div>
-					<div class="layui-input-inline">
-						<button class="layui-btn layui-btn-sm"  type="submit"> 搜索</button>
-					</div>
-				  </div>
-				</div>
-				
-			</form>
-			<form action="" class="layui-form" lay-filter="example" method="post" >
-       
-				<div class="row">
-					<div class="col-md-12">
-
-						<table class="table table-responsive" lay-even lay-skin="line" lay-size="lg">
-							<thead>
-							 <tr>
-								<th style="width:25px;">
-									<input type='checkbox' name="checkall" lay-skin="primary" lay-filter="checkboxall"  />
-								</th>
-								<th style="width:80px;text-align:center;">ID</th>
-								<th style="">兑换号</th>
-								<th>兑换用户</th>
-
-								 <th style="width:180px;">下单用户</th>
-								<th style="">兑换时间</th>
-								<th style="width: 100px;">兑换金额</th>
-							</tr>
-							</thead>
-							<tbody>
-							<?php foreach( $list as $item ){ ?>
-							<tr>
-							<td>
-								<input type='checkbox' name="item_checkbox" lay-skin="primary" value="<?php echo ($item['id']); ?>"/>
-							</td>
-							<td>
-								<?php echo ($item['id']); ?>
-							</td>
-							<td>
-								<?php echo ($item['code_sn']); ?>
-							</td>
-
-							<td>
-								<div rel="pop" style="display: flex" >
-									<img class="img-40" src="<?php echo tomedia($item['use_user_info']['avatar']);?>" style='border-radius:50%;border:1px solid #efefef;' />
-									<span style="display: flex;flex-direction: column;justify-content: center;align-items: flex-start;padding-left: 5px">
-										   <span class="nickname">
-											   <?php echo ($item['use_user_info']['username']); ?>
-											   <br>
-											   手机:<?php if( !empty($item['use_user_info']['telephone']) ){ echo ($item['use_user_info']['telephone']); ?> <?php } else {?>暂无<?php  }?>
-
-										   </span>
-									</span>
-
-								</div>
-							</td>
-							<td>
-								<div rel="pop" style="display: flex" >
-									<img class="img-40" src="<?php echo tomedia($item['buy_user_info']['avatar']);?>" style='border-radius:50%;border:1px solid #efefef;' />
-									<span style="display: flex;flex-direction: column;justify-content: center;align-items: flex-start;padding-left: 5px">
-									   <span class="nickname">
-										   <?php echo ($item['buy_user_info']['username']); ?><br/>
-
-										   手机:<?php if( !empty($item['buy_user_info']['telephone']) ){ echo ($item['buy_user_info']['telephone']); ?> <?php } else {?>暂无<?php  }?>
-
-									   </span>
-								</span>
-
-								</div>
-							</td>
-								<td>
-									<?php echo ($item['adddate']); ?>
-								</td>
-							<td>
-								¥<?php echo ($item['money']); ?>
-							</td>
-
-							</tr>
-							<?php } ?>
-							</tbody>
-							<tfoot>
-							<tr>
-								<td colspan="7" style="text-align: right">
-									<?php echo ($pager); ?>
-								</td>
-							</tr>
-							</tfoot>
-						</table>
-					</div>
-				</div>
-				
-			</form>
-		</div>
-	</div>
-</div>
-
-
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  
-  
-	$('.deldom').click(function(){
-		var s_url = $(this).attr('data-href');
-		layer.confirm($(this).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						success:function(info){
-						
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-	})
-	
-	$('.btn-operation').click(function(){
-		var ids_arr = [];
-		var obj = $(this);
-		var s_toggle = $(this).attr('data-toggle');
-		var s_url = $(this).attr('data-href');
-		
-		
-		$("input[name=item_checkbox]").each(function() {
-			
-			if( $(this).prop('checked') )
-			{
-				ids_arr.push( $(this).val() );
-			}
-		})
-		if(ids_arr.length < 1)
-		{
-			layer.msg('请选择要操作的内容');
-		}else{
-			var can_sub = true;
-			if( s_toggle == 'batch-remove' )
-			{
-				can_sub = false;
-				
-				layer.confirm($(obj).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						data:{ids:ids_arr},
-						success:function(info){
-						
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-			}else{
-				$.ajax({
-					url:s_url,
-					type:'post',
-					dataType:'json',
-					data:{ids:ids_arr},
-					success:function(info){
-					
-						if(info.status == 0)
-						{
-							layer.msg(info.result.message,{icon: 1,time: 2000});
-						}else if(info.status == 1){
-							var go_url = location.href;
-							if( info.result.hasOwnProperty("url") )
-							{
-								go_url = info.result.url;
-							}
-							
-							layer.msg('操作成功',{time: 1000,
-								end:function(){
-									location.href = info.result.url;
-								}
-							}); 
-						}
-					}
-				})
-			}
-		}
-	})
-  
-	form.on('switch(statewsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var s_value = 1;
-	  if(data.elem.checked)
-	  {
-		s_value = 1;
-	  }else{
-		s_value = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{value:s_value},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	});  
-	form.on('checkbox(checkboxall)', function(data){
-	  
-	  if(data.elem.checked)
-	  {
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", true);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", true);
-		});
-		
-	  }else{
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", false);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", false);
-		});
-	  }
-	  
-	  form.render('checkbox');
-	});
-  
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-})
-
-
-
-</script>  
-</body>

+ 0 - 528
Runtime/Cache/Seller/5836808ba7fd76678de1e5abc6faaf68.php

@@ -1,528 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-            window.sysinfo = {
-            <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-			
-            <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-			
-            'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-			
-            'siteroot': '<?php echo ($_W['siteroot']); ?>',
-                    'siteurl': '<?php echo ($_W['siteurl']); ?>',
-                    'attachurl': '<?php echo ($_W['attachurl']); ?>',
-                    'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-                    'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-                    'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-            'cookie' : {'pre': ''},
-            'account' : <?php echo json_encode($_W['account']);?>,
-            };
-        </script>
-		
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-<link href="/static/css/snailfish.css" rel="stylesheet">
-
-   
-<script type="text/javascript" src="/static/js/dist/area/cascade.js"></script>
-<script src="https://map.qq.com/api/js?v=2.exp&key=6R4BZ-WAB3W-JITRG-OE7GY-R2753-P3BZ2" type="text/javascript" charset="utf-8"></script>
-   <style>
-	   .myText{
-		   padding-left: 30px;
-		   font-size: 13px;
-		   color: #C4C4C4;
-	   }
-   </style>
-</head>
-<body layadmin-themealias="default">
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">模板消息设置</span></div>
-		
-		
-		<div class="layui-tab layui-tab-brief" >
-			<ul class="layui-tab-title">
-				<li  <?php if( $type==1 ){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U('weprogram/templateconfig', array('type' => 1));?>">公众号模板消息</a></li>
-				<li  <?php if( $type==2 ){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U('weprogram/templateconfig', array('type' => 2));?>">平台订单通知</a></li>
-				
-			</ul>
-		</div>
-	
-		
-		<?php if( $type == 1 ){ ?>
-		<div class="layui-card-body" style="padding:15px;display:block" >
-			<form action="" method="post" class="layui-form" lay-filter="component-layui-form-item" enctype="multipart/form-data" >
-				<div class="layui-form-item">
-					<label class="layui-form-label">公众号APPID</label>
-					<div class="layui-input-block">
-						<input type="text" name="parameter[weixin_appid]" class="layui-input" value="<?php echo ($data['weixin_appid']); ?>" />
-					</div>
-					<span class="myText" >登录<span style="font-size: 16px;color:#009688">公众号平台</span>,在管理中心-应用详情中查看</span>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label">订单支付成功通知</label>
-					<div class="layui-input-block">
-						<input type="text" name="parameter[weixin_template_pay_order]" class="layui-input" value="<?php echo ($data['weixin_template_pay_order']); ?>" />
-					</div>
-					<span class="myText" >用户订单支付成功,消息通知用户</span>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label">订单发货通知</label>
-					<div class="layui-input-block">
-						<input type="text" name="parameter[weixin_template_send_order]" class="layui-input" value="<?php echo ($data['weixin_template_send_order']); ?>" />
-					</div>
-					<span class="myText">商品订单发货成功,消息通知用户</span>
-				</div>
-				<div class="layui-form-item" >
-					<label class="layui-form-label">核销成功通知</label>
-					<div class="layui-input-block">
-						<input type="text" name="parameter[weixin_template_hexiao_success]" class="layui-input" value="<?php echo ($data['weixin_template_hexiao_success']); ?>" />
-					</div>
-					<span class="myText" >商品订单核销成功,消息通知用户</span>
-				</div>
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label">团长申请成功发送通知</label>
-					<div class="layui-input-block">
-						<input type="text" name="parameter[weixin_template_apply_community]" class="layui-input" value="<?php echo ($data['weixin_template_apply_community']); ?>" />
-					</div>
-					<span class="myText" >用户申请团长,平台通过审核以后,消息通知用户团长申请成功</span>
-				</div>
-				
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label">售后订单申请通知(平台)</label>
-					<div class="layui-input-block">
-						<input type="text" name="parameter[weixin_template_apply_refund]" class="layui-input" value="<?php echo ($data['weixin_template_apply_refund']); ?>" />
-					</div>
-					<span class="myText" >消息通知平台管理人员,有“售后订单"需要处理</span>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label">取消订单通知(平台)</label>
-					<div class="layui-input-block">
-						<input type="text" name="parameter[weixin_template_cancle_order]" class="layui-input" value="<?php echo ($data['weixin_template_cancle_order']); ?>" />
-					</div>
-					<span class="myText" >消息通知平台管理人员,有“取消订单需要处理</span>
-				</div>
-				
-				
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label">会员下单成功提醒团长</label>
-					<div class="layui-input-block">
-						<input type="text" name="parameter[weixin_template_order_buy]" class="layui-input" value="<?php echo ($data['weixin_template_order_buy']); ?>" />
-					</div>
-					<span class="myText" >用户下单成功以后,消息通知团长</span>
-				</div>
-
-				<div class="layui-form-item">
-					<label class="layui-form-label">同城配送骑手接单通知</label>
-					<div class="layui-input-block">
-						<input type="text" name="parameter[weixin_template_order_riders_receive]" class="layui-input" value="<?php echo ($data['weixin_template_order_riders_receive']); ?>" />
-					</div>
-					<span class="myText" >同城配送订单,消息通知骑手进行接单</span>
-				</div>
-					
-				<div class="layui-form-item">
-					<label class="layui-form-label">团长提现到账提醒</label>
-					<div class="layui-input-block">
-						<input type="text" name="parameter[weixin_template_apply_tixian]" class="layui-input" value="<?php echo ($data['weixin_template_apply_tixian']); ?>" />
-					</div>
-
-					<span class="myText" >团长申请提现,消息通知团长提现申请成功</span>
-					<br>
-					<div class="layui-form-mid" style="margin-left: 180px;">
-						注意,公众号需要是小程序的关联主体。(未填写appid 即不发送模板消息)<br>
-					<a href="https://shiziyu.liofis.com/公众号模板消息.docx" style="color:blue;">点击下载设置教程</a>
-					</div>
-				</div>
-				
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label"> </label>
-					<div class="layui-input-block">
-						<input type="submit" value="提交" lay-submit lay-filter="formDemo" class="btn btn-primary"  />
-					</div>
-				</div>
-			</form>
-		</div>
-		
-		<?php }else if( $type == 3 ){ ?>
-		<div class="layui-card-body" style="padding:15px;display:block" >
-			 <form action="<?php echo U('weprogram/templateconfig_fenxi', array('type' => 3));?>" method="post" class="layui-form" lay-filter="component-layui-form-item" enctype="multipart/form-data" >
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label">示例:</label>
-					<div class="layui-input-block">
-						<blockquote class="layui-elem-quote layui-quote-nm">
-						{{first.DATA}}<br/><br/>
-						产品名称:{{hotelName.DATA}}<br/><br/>
-						团购券号:{{voucher_number.DATA}}<br/><br/>
-						{{remark.DATA}}<br/><br/>
-						小程序后台——模板消息——我的模板——某模板详情——详细内容(复制粘粘到此处)<br/>
-						</blockquote>
-					</div>
-				</div>
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label">模板详细内容</label>
-					<div class="layui-input-block">
-						<textarea  name="subtitle" id="subtitle" rows="8"  class="form-control"  ></textarea>
-						<div class="layui-form-mid layui-word-aux"></div>
-					</div>
-				</div>
-				<div id="analy_div">
-				
-				
-				</div>
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label">发送会员类型</label>
-					<div class="layui-input-block">
-						<label class='radio-inline'>
-							<input type='radio' name='all_msg_send_type' lay-filter="all_msg_send_type"  title="指定会员" value=1 checked />
-						</label>
-						<label class='radio-inline'>
-							<input type='radio' name='all_msg_send_type' lay-filter="all_msg_send_type" title="某个会员组" value=2  />
-						</label>
-						<label class='radio-inline'>
-							<input type='radio' name='all_msg_send_type' lay-filter="all_msg_send_type"  title="全部会员" value=3  /> 
-						</label>
-					</div>
-				</div>
-				
-				
-				<div class="layui-form-item" id="type_1">
-					<label class="layui-form-label">关联会员</label>
-					<div class="layui-input-block">
-						<div class="input-group " style="margin: 0;">
-							<input type="text" disabled value="" class="form-control valid" name="" placeholder="" id="agent_id">
-							<span class="input-group-btn">
-								<span data-input="#agent_id" id="chose_agent_id"  class="btn btn-default">选择会员</span>
-							</span>
-						</div>
-					</div>
-				</div>
-					
-					
-				<div class="layui-form-item" id="type_2" style="display:none;">
-					<label class="layui-form-label must">会员组</label>
-					<div class="layui-input-block">
-						<select name="member_group_id">
-							<?php foreach($member_group_list as $val){ ?>
-							<option value="<?php echo ($val['id']); ?>"><?php echo ($val['groupname']); ?></option>
-							<?php } ?>
-						</select>
-					</div>
-				</div>
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label">模板ID</label>
-					<div class="layui-input-block">
-						<input type="text" name="all_send_template_id" class="layui-input" value="" />
-					</div>
-					<div class="layui-form-mid" style="margin-left:25px;">
-						开发者调用模板消息接口时需提供模板ID
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label">点击链接</label>
-					<div class="layui-input-block">
-						<div class="input-group " style="margin: 0;">
-							<input type="text" value="" class="form-control valid" name="link" placeholder="" id="advlink">
-							<span class="input-group-btn">
-								<span data-input="#advlink" id="chose_link"  class="btn btn-default">选择链接</span>
-							</span>
-						</div>
-					</div>
-				</div>
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label"> </label>
-					<div class="layui-input-block">
-						<input type="submit" value="提交" lay-submit lay-filter="formDemo" class="btn btn-primary"  />
-					</div>
-				</div>
-				
-			</form>
-		</div>
-		
-		<?php }else{ ?>
-		<div class="layui-card-body" style="padding:15px;display:block" >
-			<form action="" method="post" class="layui-form" lay-filter="component-layui-form-item" enctype="multipart/form-data" >
-			
-				<div class="layui-form-item" id="user_form_item">
-					<label class="layui-form-label">关联会员</label>
-					<div class="layui-input-block">
-						<div class="input-group " style="margin: 0;">
-							<input type="text" disabled value="" class="form-control valid" name="" placeholder="" id="agent_id">
-							<span class="input-group-btn">
-								<span data-input="#agent_id" id="chose_agent_id"  class="btn btn-default">选择会员</span>
-							</span>
-						</div>
-						<div class="input-group layui-word-aux">订单信息提示,平台用户下单后通知关联会员进行接单处理</div>
-						<?php if(!empty($user_list)){ ?>
-						<?php foreach( $user_list as $a ){ ?>
-						<div class="input-group mult_choose_member_id" data-member-id="<?php echo ($a['member_id']); ?>" style="border-radius: 0;float: left;margin: 10px;margin-left:0px;width: 22%;">	
-							<div class="layadmin-text-center choose_user">		
-								<img style="" src="<?php echo ($a['avatar']); ?>">		
-								<div class="layadmin-maillist-img" style=""><?php echo ($a['nickname']); ?></div>		
-								<button type="button" class="layui-btn layui-btn-sm" onclick="cancle_bind(this)">
-									<i class="layui-icon"></i>
-								</button>	
-							</div>
-						</div>
-						<?php }} ?>
-					</div>
-				</div>
-			
-				<div class="layui-form-item">
-					<label class="layui-form-label"> </label>
-					<div class="layui-input-block">
-						
-						<?php if( $_GPC['type']!='0' && $_GPC['type']!='1' ){ ?>
-						<input type="hidden" name="limit_user_list" value="" id="limit_user_list" />
-						<?php } ?>
-						<input type="submit" value="提交" lay-submit lay-filter="formDemo" class="btn btn-primary"  />
-					</div>
-				</div>
-			
-			</form>
-		</div>
-		
-		</div>
-		<?php } ?>
-</div>
-</div>
-
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-var cur_open_div;
-
-var can_sub = true;
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  
-  form.on('radio(linktype)', function(data){
-		if (data.value == 2) {
-			$('#typeGroup').show();
-		} else {
-			$('#typeGroup').hide();
-		}
-	});  
-
-	form.on('radio(all_msg_send_type)', function(data){
-            if (data.value == 1) {
-                
-				$('#type_1').show();
-				
-            } else if( data.value == 2 )
-			{
-				$('#type_1').hide();
-				$('#type_2').show();
-			}
-			else if( data.value == 3 )
-			{
-				$('#type_1').hide();
-				$('#type_2').hide();
-			}
-			
-        });
-		
-	
-
-	//subtitle
-	$(document).on("input propertychange","#subtitle",function(){
-        
-		//("\r|\n|\\s", "");
-		var s_content = $('#subtitle').val();
-		s_content.replace(/\r|\n|\\s/g,"");
-		
-		var regex3 = /\{{(.+?)}\}/g; // {}
-		
-		var new_arr = s_content.match(regex3);
-		
-		var s_html = "";
-		
-		for( var i in  new_arr )
-		{
-			s_html+='	<div class="layui-form-item">';
-			s_html+='		<label class="layui-form-label">'+new_arr[i]+'内容</label>';
-			s_html+='		<div class="layui-input-block">';
-			s_html+='			<input type="text" name="datas['+new_arr[i]+']" class="layui-input" lay-required="true" value="" />';
-			s_html+='		</div>';
-			s_html+='	</div>';
-			
-		}
-		
-		$('#analy_div').html(s_html);
-		
-    });
-	
-	
-	
-	$('#chose_member_id').click(function(){
-		cur_open_div = $(this).attr('data-input');
-		$.post("<?php echo U('user/zhenquery', array('ok' => 1));?>", {}, function(shtml){
-		 layer.open({
-			type: 1,
-			area: '930px',
-			content: shtml //注意,如果str是object,那么需要字符拼接。
-		  });
-		});
-	})
-	
-	$('#chose_agent_id').click(function(){
-		cur_open_div = $(this).attr('data-input');
-		$.post("<?php echo U('user/zhenquery_many', array('template' => 'mult'));?>", {}, function(shtml){
-		 layer.open({
-			type: 1,
-			area: '930px',
-			content: shtml //注意,如果str是object,那么需要字符拼接。
-		  });
-		});
-	})
-	
-	
-	$('#chose_link').click(function(){
-		cur_open_div = $(this).attr('data-input');
-		$.post("<?php echo U('util/selecturl', array('ok' => 1));?>", {}, function(shtml){
-		 layer.open({
-			type: 1,
-			area: '930px',
-			content: shtml //注意,如果str是object,那么需要字符拼接。
-		  });
-		});
-	})
-  
-  
-  form.on('submit(auto_get)', function(data){
-	var loadingIndex = layer.load(); // 加载中动画遮罩层(1)
-	
-	$.ajax({
-		url: "<?php echo U('weprogram/autotemplateconfig',array('ok'=>'1'));?>",
-		type: 'get',
-		dataType:'json',
-		success: function (info) {
-		   layer.close(loadingIndex); // 提交成功失败都需要关闭
-			if(info.status == 0)
-			{
-				layer.msg('请选择会员',{time: 1000});
-				
-			}else if(info.status == 1){
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						var backurl = "<?php echo U('weprogram/templateconfig');?>";
-						location.href = backurl;
-						// location.href = info.result.url;
-					}
-				});
-
-				can_sub = true;				
-			}
-		}
-	});
-	return false;
-	
-  })
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	 
-	 
-	var gd_ar = [];
-	var gd_str = '';
-	$('.mult_choose_member_id').each(function(){
-		gd_ar.push( $(this).attr('data-member-id') );
-	})
-	gd_str = gd_ar.join(',');
-	
-	data.field.limit_user_list = gd_str;
-	
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-})
-
-
-function cancle_bind(obj,sdiv)
-{
-	$('#'+sdiv).val('');
-	$(obj).parent().parent().remove();
-}
-
-
-
-</script>  
-</body>

+ 0 - 3584
Runtime/Cache/Seller/58c25f822b10e189075bc1744720d94a.php

@@ -1,3584 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-	window.sysinfo = {
-	<?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-	
-	<?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-	
-	'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-	
-	'siteroot': '<?php echo ($_W['siteroot']); ?>',
-			'siteurl': '<?php echo ($_W['siteurl']); ?>',
-			'attachurl': '<?php echo ($_W['attachurl']); ?>',
-			'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-			'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-			'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-	'cookie' : {'pre': ''},
-	'account' : <?php echo json_encode($_W['account']);?>,
-	};
-</script>
-		
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-<link href="/static/css/snailfish.css" rel="stylesheet">
-   
-<script type="text/javascript" src="/static/js/dist/area/cascade.js"></script>
-<script type="text/javascript" src="/static/js/dist/select2/select2.min.js"></script>
-
-<link rel="stylesheet" href="/static/js/dist/select2/select2-bootstrap.css">
-<link rel="stylesheet" href="/static/js/dist/select2/select2.css">
-
-
-<script type="text/javascript" src="/web/resource/js/lib/moment.js"></script>
-<link rel="stylesheet" href="/web/resource/components/datetimepicker/jquery.datetimepicker.css">
-<link rel="stylesheet" href="/web/resource/components/daterangepicker/daterangepicker.css">
-<style type='text/css'>
-    .tabs-container .layui-form-item {overflow: hidden;}
-    .tabs-container .tabs-left > .nav-tabs {}
-    .tab-goods .nav li {float:left;}
-    .spec_item_thumb {position: relative; width: 30px; height: 20px; padding: 0; border-left: none;}
-    .spec_item_thumb i {position: absolute; top: -5px; right: -5px;}
-	.input-group .spec_item_thumb{padding:0px;}
-	
-    .multi-img-details, .multi-audio-details {margin-top:.5em;max-width: 700px; padding:0; }
-    .multi-audio-details .multi-audio-item {width:155px; height: 40px; position:relative; float: left; margin-right: 5px;}
-	.region-goods-details {
-		background: #f8f8f8;
-		margin-bottom: 10px;
-		padding: 0 10px;
-	}
-	.region-goods-left{
-		text-align: center;
-		font-weight: bold;
-		color: #333;
-		font-size: 14px;
-		padding: 20px 0;
-	}
-	.region-goods-right{
-		border-left: 3px solid #fff;
-		padding: 10px 10px;
-	}
-	.input-group .input-group-btn .btn:hover{background-color:#5bc0de}
-	.layui-form-select{display:none;}
-	.daterangepicker select.ampmselect, .daterangepicker select.hourselect, .daterangepicker select.minuteselect {
-		width: auto!important;
-	}
-.input-group .input-group-addon{}
-.fa-arrows{display:none;}
-.spec_item_thumb img{min-height:20px;}
-.choose_room_title{position: absolute;top: 0px;left: -90px;font-size: 14px;}
-</style>
-
-</head>
-<body layadmin-themealias="default">
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text"><?php if( !empty($item['id'])){ ?>编辑<?php  }else{ ?>添加<?php } ?>商品 <small><?php if( !empty($item['id'])){ ?>修改【<span class="text-info"><?php echo ($item['goodsname']); ?></span>】<?php } ?></small></span></div>
-		<div class="layui-card-body" style="padding:15px;">
-			<form action="" method="post" class="layui-form" lay-filter="component-layui-form-item" enctype="multipart/form-data" >
-	
-				<input type="hidden" name="goods_id" id="goods_id" value="<?php echo ($id); ?>"/>
-				<input type="hidden" name="head_id_arr" id="head_id_arr" value="<?php echo ($head_id_arr); ?>"/>
-
-				<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
-				  <ul class="layui-tab-title">
-					<li  <?php if( empty($_GPC['tab']) || $_GPC['tab']=='basic'){ ?>class="layui-this"<?php } ?>>基本信息</li>
-					<li  <?php if( $_GPC['tab']=='option'){ ?>class="layui-this"<?php } ?> >规格库存</li>
-					<li <?php if( $_GPC['tab']=='des'){ ?>class="layui-this"<?php } ?> >商品详情</li>
-					
-					<?php $commiss_level = D('Home/Front')->get_config_by_name('commiss_level'); ?>
-					
-					<li <?php if( $_GPC['tab']=='community_head_level'){ ?>class="layui-this"<?php } ?> >提成/分销/等级</li>
-					
-					<?php if( !empty($is_open_goods_relative_goods) && $is_open_goods_relative_goods == 1 ){ ?>
-					<li <?php if( $_GPC['tab']=='goods_relative_goods'){ ?>class="layui-this"<?php } ?> >推荐商品</li>
-					<?php } ?>
-
-				  </ul>
-				  <div class="layui-tab-content" >
-					
-					<div class="layui-tab-item   <?php if( empty($_GPC['tab']) || $_GPC['tab']=='basic'){ ?>layui-show<?php } ?>" >
-						<!---- 基本信息begin --->
-						<div class="region-goods-details layui-row">
-							
-							<div class="layui-form-item">
-								<div class="layui-form-item" style="padding-top:10px;">
-									<label class="layui-form-label must">商品名称<label style="color:red;font-size:16px;font-weight:900">*</label></label>
-								  
-									<div class="layui-input-block"  style="padding-right:0;" >
-										<input type="text" name="goodsname" id="goodsname" class="form-control" value="<?php echo ($item['goodsname']); ?>" data-rule-required="true" />
-									</div>
-									
-								</div>
-								<div class="layui-form-item">
-									<label class="layui-form-label">商品分类</label>
-									<div class="layui-input-block">
-										<select id="cates"  multiple="multiple"  name='cates[]'  class="form-control select2"  >
-											<?php foreach( $category as $c ){ ?>
-											<option value="<?php echo ($c['id']); ?>" <?php if( is_array($item['cates']) && in_array($c['id'],$item['cates'])){ ?>selected<?php } ?> ><?php echo ($c['name']); ?></option>
-											<?php } ?>
-										</select>
-										
-									</div>
-								</div>
-								<div class="layui-form-item">
-									<label class="layui-form-label">商品简介</label>
-									<div class="layui-input-block">
-										<textarea  name="subtitle" id="subtitle" rows="5"  class="form-control" data-parent=".subtitle" maxlength="100" data-rule-maxlength="100"><?php echo ($item['subtitle']); ?></textarea>
-										<div class="layui-form-mid layui-word-aux">商品名称下方的副标题,标题长度请控制在100字以内</div>
-									</div>
-								</div>
-
-								
-
-
-								
-								<div class="layui-form-item">
-									<label class="layui-form-label">商品简短标题</label>
-									<div class="layui-input-block">
-										<input type="text" name="print_sub_title" id="print_sub_title" class="form-control" value="<?php echo ($item['print_sub_title']); ?>" />
-										<div class="layui-form-mid layui-word-aux">小票打印机使用,请控制字数,未填写默认截取商品标题(无须打印的可以不填写)</div>
-									</div>
-								</div>
-								
-								<div class="layui-form-item">
-									<label class="layui-form-label must">商品视频</label>
-									<div class="layui-input-block gimgs">
-											<?php echo tpl_form_field_video('video',$item['video'] );;?>
-										<span class="layui-form-mid layui-word-aux image-block">
-											请输入视频链接地址或者选择上传视频(支持抖音视频地址)
-										</span>
-									</div>
-								</div>
-								
-								<div class="layui-form-item">
-									<label class="layui-form-label must">首页商品(大图)</label>
-									<div class="layui-input-block gimgs">
-										<?php echo tpl_form_field_image2('big_img',$item['big_img']);?>
-										<span class="layui-form-mid layui-word-aux image-block">此图为首页商品大图模式封面图,最佳尺寸:710*400</span>
-									</div>
-								</div>
-							
-								<div class="layui-form-item">
-									<label class="layui-form-label must">商品图片<label style="color:red;font-size:16px;font-weight:900">*</label></label>
-									<div class="layui-input-block gimgs" id="gimgs_mult">
-										<?php echo tpl_form_field_multi_image3('thumbs',$item['piclist']);?>
-										
-										<span class="layui-form-mid layui-word-aux image-block">商品详情页主图(轮播图),第一张为商品列表调用图,<span style="color: red;">图片类型必须为jpg或者png24,不支持png8</span>,建议为正方型,尺寸建议宽度为640,并保持图片大小一致,可拖拽改变图片顺序</span>
-										
-									</div>
-								</div>
-								
-								
-								<div class="layui-form-item">
-									<label class="layui-form-label">分享标题</label>
-									<div class="layui-input-block">
-										<input type="text" name="share_title" class="form-control" value="<?php echo ($item['share_title']); ?>" />
-										<div class="layui-form-mid layui-word-aux"></div>
-									</div>
-								</div>
-								
-								<div class="layui-form-item">
-									<label class="layui-form-label ">分享图片</label>
-									<div class="layui-input-block gimgs">
-										<?php echo tpl_form_field_image2('goods_share_image',$item['goods_share_image']);?>
-										<span class="layui-form-mid layui-word-aux image-block">此图为商品详情页分享图片(比例为长宽比5:4)</span>
-									</div>
-								</div>
-
-								<div class="layui-form-item">
-									<label class="layui-form-label">起售数量</label>
-									<div class="layui-input-block">
-										<div style="float: left;height: 35px;line-height:35px">商品至少&nbsp;&nbsp;</div>
-										<input style="width: 35px; height: 35px; border: 2px white; float: left;" type="button" value="-" onclick="reduction(this)"/>
-										<input type="text" name="goods_start_count" class="layui-input goods_start_count" value="<?php if( isset($item['goods_start_count']) && !empty($item['goods_start_count'])){echo $item['goods_start_count'];}else{echo '1';} ?>" maxlength="10" style="width: 100px;float: left;" onchange="validationNumber(this, 0)"/>
-										<input style="width: 35px; height: 35px; border: 2px white;float: left;" type="button" value="+" onclick="add(this)"/>
-										<div style="float: left;height: 35px;line-height:35px">&nbsp;&nbsp;件起售</div>
-										<br/>
-										<div style="clear:both;"></div>
-										<span class="layui-form-mid layui-word-aux image-block">起售数量超出商品库存时,买家无法购买该商品</span>
-									</div>
-								</div>
-
-								<?php if($is_updown){ ?>
-								<div class="layui-form-item">
-									<label class="layui-form-label">商品状态</label>
-									<div class="layui-input-block">
-										<label class="radio-inline"><input type="radio" name="grounding" value="1" <?php if( !isset($item['grounding']) || $item['grounding'] == 1){ ?>checked="true"<?php } ?> title="上架" /> </label>
-										<label class="radio-inline"><input type="radio" name="grounding" value="0" <?php if( isset($item['grounding']) && $item['grounding'] == 0){ ?>checked="true"<?php } ?> title="下架" /> </label>
-									</div>
-								</div>
-								<?php } ?>
-								<?php if($is_index){ ?>
-								<div class="layui-form-item">
-									<label class="layui-form-label">首页推荐</label>
-									<div class="layui-input-block">
-										<label class="radio-inline"><input type="radio" name="is_index_show" value="1" <?php if( !isset($item['is_index_show']) || $item['is_index_show'] == 1){ ?>checked="true"<?php } ?> title="是" /> </label>
-										<label class="radio-inline"><input type="radio" name="is_index_show" value="0" <?php if( isset($item['is_index_show']) && $item['is_index_show'] == 0){ ?>checked="true"<?php } ?> title="否" /> </label>
-									</div>
-								</div>
-								<?php } ?>
-								<div class="layui-form-item" style="display:none;">
-									<label class="layui-form-label">分享描述</label>
-									<div class="layui-input-block">
-										<input type="text" name="share_description" class="form-control" value="<?php echo ($item['share_description']); ?>" />
-										<div class="layui-form-mid layui-word-aux">公众号才有的,小程序没有这个描述</div>
-									</div>
-								</div>
-								<div class="layui-form-item price" >
-									<label class="layui-form-label">售价<label style="color:red;font-size:16px;font-weight:900">*</label></label>
-									<div class="layui-input-block">
-
-										<div class="input-group">
-											<input type="text" name="price" id="price" class="form-control" value="<?php echo ($item['price']); ?>" <?php if($item['hasoption']!=1){ ?> <?php } ?> />
-											<span class="input-group-addon">元&nbsp;</span>
-											<span class="input-group-addon">原价(市场价、划线价)</span>
-											<input type="text" name="productprice" id="productprice" class="form-control"  value="<?php echo ($item['productprice']); ?>"   />
-											<span class="input-group-addon">元&nbsp;</span>
-											<span class="input-group-addon"> 成本价</span>
-											<input type="text" name="costprice" id="costpriceprice" class="form-control" value="<?php echo ($item['costprice']); ?>"  placeholder=""/>
-											<span class="input-group-addon">元&nbsp;</span>
-										</div>
-										<span class='layui-form-mid layui-word-aux' style="display:none;">如未启用商品规格,请填写商品价格</span>
-										
-									</div>
-								</div>
-								<?php if( !empty($is_open_vipcard_buy) && $is_open_vipcard_buy == 1 ){ ?>
-								<div class="layui-form-item" >
-									<label class="layui-form-label">付费会员专享价</label>
-									<div class="col-sm-10 col-xs-12" style="width: 600px;">
-										<div class="radio-inline">
-											<input type="checkbox"  lay-skin="primary" lay-filter="is_take_vipcard" name="is_take_vipcard" <?php if( isset($item['is_take_vipcard']) && $item['is_take_vipcard'] ==1 ){ ?> checked <?php } ?> value="1" />
-											<div class="input-group card_price_txt" style="width:500px;float: right; <?php if( isset($item['is_take_vipcard']) && $item['is_take_vipcard'] ==1 ){ }else{?>display: none;<?php } ?>">
-												<span class="input-group-addon">商品付费会员价</span>
-												<input type="text" name="card_price" id="card_price" style="width: 360px;" class="form-control" value="<?php echo ($item['card_price']); ?>" placeholder="请填写会员价"/>
-												<span class="input-group-addon" style="width: auto;">元&nbsp;</span>
-											</div>
-											<div style="clear:both;"></div>
-											<span class="layui-form-mid layui-word-aux">开启后,付费会员下单享专属价格</span>
-										</div>
-									</div>
-								</div>
-								<?php } ?>
-								
-								<?php if($is_vir_count){ ?>
-								<div class="layui-form-item" >
-									<label class="layui-form-label">已出售数</label>
-									<div class="layui-input-block">
-										<div class="input-group">
-											<input type="text" name="sales" id="sales" class="form-control" value="<?php echo ($item['sales']); ?>" />
-											<span class="input-group-addon">备注:前台销量=虚拟销量+实际销量</span>
-										</div>
-									</div>
-								</div>
-								<?php } ?>
-
-								
-								<div class="layui-form-item" style="display:none;">
-									<label class="layui-form-label"></label>
-									<div class="layui-input-block">
-										<label class="checkbox-inline"><input type="checkbox" name="showsales" value="1" <?php if( $item['showsales'] == 1){ ?>checked="true"<?php } ?>   /> 显示销量</label>
-										<span class="layui-form-mid layui-word-aux"></span>
-									</div>
-								</div>
-								<div class="layui-form-item" style="display:none;">
-									<label class="layui-form-label">标签</label>
-									<div class="layui-input-block">
-										<label class="checkbox-inline"><input type="checkbox" name="quality" value="1" <?php if( !empty($item['quality'])){ ?>checked="true"<?php } ?>   /> 正品保证</label>
-										<label class="checkbox-inline"><input type="checkbox" name="seven" value="1" <?php if( !empty($item['seven'])){ ?>checked="true"<?php } ?>   /> 7天无理由退换</label>
-										<label class="checkbox-inline"><input type="checkbox" name="repair" value="1" <?php if( !empty($item['repair'])){ ?>checked="true"<?php } ?>   /> 保修</label>
-									</div>
-								</div>
-								
-								
-								<div class="layui-form-item">
-									<label class="layui-form-label">自定义标签</label>
-									
-									<div class="layui-input-block">
-										<div class="input-group " style="margin: 0;">
-											<input type="text" disabled value="<?php echo ($item['label']['id']); ?>" class="form-control valid" name="labelname" placeholder="" id="label_id">
-											<span class="input-group-btn">
-												<span data-input="#label_id" id="chose_label_id"  class="btn btn-default">选择标签</span>
-											</span>
-										</div>
-										<?php if( $item['label']){ ?>
-										<div class="input-group " style="margin: 0;">
-											<div class="layadmin-text-center choose_user">
-												
-												<div class="" style=""><?php echo ($item['label']['tagname']); ?></div>
-												<button type="button" class="layui-btn layui-btn-sm" onclick="cancle_bind(this,'label_id')"><i class="layui-icon">&#xe640;</i></button>
-											</div>
-										</div>
-										<?php } ?>
-									</div>
-								</div>
-
-								<div class="layui-form-item dispatch_info">
-									<label class="layui-form-label"></label>
-									<div class="layui-input-block" style='padding-left:0'>
-										<div class="input-group">
-											<span class='input-group-addon' style='border:none;padding:0px;'><label class="radio-inline"  style='margin-top:-7px;' >
-											<input type="radio"name="dispatchtype" value="1" <?php if( $item['dispatchtype'] == 1){ ?>checked="true"<?php } ?> title="统一邮费"  /> </label></span>
-											<input type="text" name="dispatchprice" id="dispatchprice" class="form-control" value="<?php echo ($item['dispatchprice']); ?>" />
-											<span class="input-group-addon">元</span>
-										</div>
-
-									</div>
-								</div>
-								
-								<?php  $is_show_fullre = true; if (defined('ROLE') && ROLE == 'agenter' ) { $supper_info = get_agent_logininfo(); if($supper_info['type'] == 1) { $is_show_fullre = false; } } ?>
-								<?php if( $is_show_fullre && !empty($is_open_fullreduction) && $is_open_fullreduction == 1){ ?>
-								
-								<div class="layui-form-item" >
-									<label class="layui-form-label">满减活动</label>
-									<div class="col-sm-10 col-xs-12"> 
-										<label class="radio-inline"><input type="radio"  name="is_take_fullreduction" <?php if( !isset($item['is_take_fullreduction']) || $item['is_take_fullreduction'] ==1 ){ ?> checked <?php } ?> value="1" title="参与" /><span class="fake-radio"></span></label>
-										<label  class="radio-inline"><input type="radio"  name="is_take_fullreduction" <?php if( isset($item['is_take_fullreduction']) && $item['is_take_fullreduction'] ==0 ){ ?> checked <?php } ?> value="0" title="不参与" /><span class="fake-radio"></span></label>
-										<div style="color:red;margin-left: 25px;">独立供应商不参与平台满减活动</div>
-									</div>
-								</div>
-								<?php } ?>
-								
-								<?php if($open_buy_send_score == 1){ ?>
-									<?php if($supply_can_goods_sendscore == 1){ ?>
-									<div class="layui-form-item" >
-										<label class="layui-form-label">下单送积分</label>
-										<div class="col-sm-10 col-xs-12" id="send_score_div"> 
-											
-											<input type="checkbox" lay-filter="is_modify_sendscore" lay-skin="primary"  name="is_modify_sendscore" <?php if(isset($item['is_modify_sendscore']) && $item['is_modify_sendscore'] ==1){ ?> checked <?php } ?> value="1"  />
-												
-											<input class="form-control " id="send_score_divTip" name="send_socre" style="vertical-align: sub; <?php if(isset($item['is_modify_sendscore']) && $item['is_modify_sendscore'] ==1){ ?>display:inline;<?php }else{ ?>display: none;<?php } ?>width: 120px;" type="text" value="<?php echo ($item['send_socre']); ?>" >
-											
-											<div  id="send_score_divTip2" style=" display: inline; <?php if(isset($item['is_modify_sendscore']) && $item['is_modify_sendscore'] ==1){ ?>display:inline;<?php }else{ ?>display: none;<?php } ?>">积分</div>
-
-											
-											<div style="clear:both;"></div>
-											<div style="color:#999">赠送数量 = 商品数量 * 下单送积分数量(未开启,则使用系统全局设置)</div>
-											<div style="color:#999">订单结算,才送积分。订单结算时间,请看订单——订单设置——售后期设置</div>
-										</div>
-									</div>
-									<?php } ?>
-								<?php } ?>
-								
-								<?php if($index_sort_method == 1){ ?>
-								<div class="layui-form-item" >
-									<label class="layui-form-label">首页排序</label>
-									<div class="layui-input-block">
-										<div class="input-group">
-											<input type="text" name="index_sort" id="index_sort" class="form-control" value="<?php echo ($item['index_sort']); ?>" />
-											<span class="input-group-addon">备注:排序越大显示越靠前</span>
-										</div>
-									</div>
-								</div>
-								<?php } ?>
-								
-							</div>
-							
-							
-						</div>
-
-
-
-
-						<div class="region-goods-details ">
-							
-							<div class="layui-form-item">
-								<div class="layui-form-item">
-									<label class="layui-form-label">团购时间</label>
-									<div class="layui-input-block">
-										<?php echo tpl_form_field_daterange('time', array('starttime'=>date('Y-m-d H:i', $item['begin_time']),'endtime'=>date('Y-m-d H:i', $item['end_time'])),true);;?>
-									</div>
-								</div>
-								
-							</div>
-						</div>
-
-						<div class="region-goods-details ">
-							<div class="layui-form-item">
-								<div class="layui-form-item">
-									<label class="layui-form-label">每天限购</label>
-									<div class="layui-input-block">
-										<input type="text" name="oneday_limit_count" class="form-control " value="<?php echo ($item['oneday_limit_count']); ?>" />
-
-										<div class="layui-form-mid layui-word-aux">用户每天提交订单最多可购买数,默认为0表示不限制</div>
-									</div>
-								</div>
-
-							</div>
-						</div>
-
-						<div class="region-goods-details ">
-							<div class="layui-form-item">
-
-								<div class="layui-form-item">
-									<label class="layui-form-label">单次限购</label>
-									<div class="layui-input-block">
-										
-										<input type="text" name="one_limit_count" class="form-control " value="<?php echo ($item['one_limit_count']); ?>" />
-										
-										<div class="layui-form-mid layui-word-aux">用户单次提交订单最多可购买数,默认为0表示不限制</div>
-									</div>
-								</div>
-								<div class="layui-form-item">
-									<label class="layui-form-label">历史限购</label>
-									<div class="layui-input-block">
-										
-										<input type="text" name="total_limit_count" class="form-control" value="<?php echo ($item['total_limit_count']); ?>" />
-										
-										<div class="layui-form-mid layui-word-aux">用户历史累积最多可购买数,默认为0表示不限制</div>
-									</div>
-								</div>
-							</div>
-						</div>
-
-						<div class="region-goods-details ">
-							<div class="layui-form-item">
-
-								<div class="layui-form-item">
-									<label class="layui-form-label">关联兑换码</label>
-									<div class="layui-input-block">
-
-										<select name="virtual_code_id" class="form-control select2">
-											<option value="0">请选择关联兑换码</option>
-											<?php foreach( $virtualcard_code_list as $code_value ){ ?>
-											<option value="<?php echo ($code_value['id']); ?>" <?php if( $goods_virtualcode_id == $code_value['id'] ){ ?> selected<?php } ?> ><?php echo ($code_value['code_name']); ?></option>
-											<?php } ?>
-										</select>
-										<input type="hidden" name="is_virtualcard_goods" value="1" />
-										<div class="layui-form-mid layui-word-aux">商品出售后,在订单详情可以看到对应的兑换码序号</div>
-									</div>
-								</div>
-
-							</div>
-						</div>
-
-						<div class="region-goods-details ">
-
-							<div class="region-goods-right col-sm-10">
-							<!--
-								<?php if( empty($community_head_level) || count($community_head_level) ==1 || $is_head_takegoods ==0 ){ ?>
-								
-								<div class="layui-form-item">
-								<label class="layui-form-label"></label>
-										<div class="layui-col-sm-10 ">
-											<input type="checkbox" id="is_community_head_commission" lay-skin="primary" value="1" name="is_community_head_commission" lay-filter="is_community_head_commission" <?php if( $item['is_community_head_commission']==1){ ?>checked<?php } ?> title="商品启用独立团长提成" />
-											<br />
-											<div class="layui-form-mid layui-word-aux" style="margin-left: 155px;" >勾选使用 商品独立团长提成 计算佣金,不勾选则使用 后台——“团长设置”中团长提成比例 计算佣金</div>	
-										</div>
-										
-								</div>
-								<div id="head_commission_div2" <?php if( empty($item['is_community_head_commission'])){ ?>style="display:none"<?php } ?> >
-								
-									<div class="layui-form-item">
-
-									   <label class="layui-form-label">商品独立团长提成</label>
-
-									   <?php if( !empty($community_money_type) && $community_money_type ==1 ){ ?>
-										<div class="layui-col-sm-10 ">
-											<div class="input-group">
-												<input type="text" name="community_head_commission" id="community_head_commission" class="form-control valid" value="<?php if(empty($item)){ echo ($communityhead_commission); }else{ echo ($item['community_head_commission']); } ?>" />
-												<span class="input-group-addon">元 </span>
-											</div>
-											<div class="layui-form-mid layui-word-aux">预计团长可得佣金¥<font ><?php if(isset($item['community_head_commission'])){ echo round( $item['community_head_commission'] ,2) ; }else{ ?>0.00<?php } ?></font></div>	
-										</div>
-										<?php }else{ ?>
-										<div class="layui-col-sm-10 ">
-											<div class="input-group">
-												<input type="text" name="community_head_commission" id="community_head_commission" class="form-control valid" value="<?php if( empty($item)){ echo ($communityhead_commission); }else{ echo ($item['community_head_commission']); } ?>" />
-												<span class="input-group-addon">% </span>
-											</div>
-											<div class="layui-form-mid layui-word-aux">预计团长可得佣金¥<font id="precommiss_head_money_tip"><?php if( isset($item['community_head_commission'])){ echo round( ($item['community_head_commission']*$item['price'])/100 ,2); }else{ ?>0.00<?php } ?></font>,将根据商品最终的成交价格来计算佣金</div>	
-										</div>
-										<?php } ?>
-										
-										
-									</div>
-								</div>
-								
-								<?php } ?>  -->
-								<!--<div class="layui-form-item">
-								   <label class="layui-form-label">所有团长可销售</label>
-									<div class="layui-input-block ">
-										<input type="checkbox" lay-skin="primary" name="is_all_sale" class="form-control valid" <?php if( empty($item) || $item['is_all_sale'] ==1 || !isset($item['is_all_sale'])){ ?>checked<?php } ?> value="1" />
-											
-									</div>
-								</div>-->
-								<?php if($supply_can_distribution_sale == 1){ ?>
-								<div class="layui-form-item">
-									<label class="layui-form-label">售卖团长</label>
-									<div class="layui-input-block">
-										<label class="radio-inline"><input type="radio" class="radio_sale" name="is_all_sale" value="1" <?php if( !isset($item['is_all_sale']) || $item['is_all_sale'] == 1){ ?>checked="true"<?php } ?> title="所有团长可售" /> </label>
-										<label class="radio-inline"><input type="radio" class="radio_sale" name="is_all_sale" value="0" <?php if( isset($item['is_all_sale']) && $item['is_all_sale'] == 0){ ?>checked="true"<?php } ?> title="部分团长可售" /> </label>
-									</div>
-									<div class="layui-form-mid layui-word-aux" style="margin-left:15px;">选择所有团长可售,部分团长可售失效</div>
-								</div>
-								<?php } ?>
-								
-								<?php if($is_newbuy){ ?>
-								<div class="layui-form-item">
-								   <label class="layui-form-label">新人专享</label>
-									<div class="layui-input-block ">
-										<input type="checkbox" id="xinrenckbox" lay-filter="xinrenckbox" lay-skin="primary" name="is_new_buy" class="form-control valid" <?php if( !empty($item) && $item['is_new_buy'] ==1 ){ ?>checked<?php } ?> value="1" />
-									</div>
-									<div class="layui-form-mid layui-word-aux" style="margin-left:15px;">未付款过的用户。勾选后,只在首页新人专区显示</div>
-								</div>
-								<?php } ?>
-								
-								
-
-								
-								
-								<div class="layui-form-item">
-								   <label class="layui-form-label">限制普通会员下单</label>
-									<div class="layui-input-block ">
-										<input type="checkbox"  lay-skin="primary" name="is_limit_levelunbuy" class="form-control valid" <?php if( !empty($item) && $item['is_limit_levelunbuy'] ==1 ){ ?>checked<?php } ?> value="1" />
-									</div>
-									<div class="layui-form-mid layui-word-aux" style="margin-left:15px;">
-										勾选后,默认等级会员不能购买此商品
-									</div>
-								</div>
-								
-								<div class="layui-form-item">
-								   <label class="layui-form-label">付费会员专享</label>
-									<div class="layui-input-block ">
-										<input type="checkbox"  lay-skin="primary" name="is_limit_vipmember_buy" class="form-control valid" <?php if( !empty($item) && $item['is_limit_vipmember_buy'] ==1 ){ ?>checked<?php } ?> value="1" />
-									</div>
-									<div class="layui-form-mid layui-word-aux" style="margin-left:15px;">
-										勾选后,非vip会员不能购买此商品
-									</div>
-								</div>
-								
-							</div>
-						</div>
-
-
-						<script language="javascript">
-							function validationNumber(e, num) {
-								var regu = /^[\-0-9]+\.?[0-9]*$/;
-								if (e.value != "") {
-									if (!regu.test(e.value)) {
-										e.value = 1;
-										e.focus();
-									} else {
-										if (num == 0) {
-											if (e.value.indexOf('.') > -1) {
-												e.value = e.value.substring(0, e.value.length - e.value.split('.')[1].length - 1);
-												e.focus();
-											}
-										}
-										if (e.value.indexOf('.') > -1) {
-											if (e.value.split('.')[1].length > num) {
-												e.value = e.value.substring(0, e.value.length - e.value.split('.')[1].length - 1);
-												e.focus();
-											}
-										}
-										if(parseFloat(e.value) < 1){
-											e.value = 1;
-											e.focus();
-										}
-									}
-								}
-							}
-
-							function reduction(obj){
-								var goods_start_count = $.trim($('.goods_start_count').val());
-								if(goods_start_count == ''){
-									$('.goods_start_count').val(1);
-								}else{
-									var count = parseInt(goods_start_count)-1;
-									if(count < 1){
-										$('.goods_start_count').val(1);
-									}else{
-										$('.goods_start_count').val(count);
-									}
-								}
-							}
-
-							function add(obj){
-								var goods_start_count = $.trim($('.goods_start_count').val());
-								if(goods_start_count == ''){
-									$('.goods_start_count').val(1);
-								}else{
-									var count = parseInt(goods_start_count)+1;
-									$('.goods_start_count').val(count);
-								}
-							}
-
-							$(function () {
-
-								$('#price').blur(function(){
-									var price = parseFloat( $("#price").val() );
-
-									  var community_head_commission = parseFloat( $("#community_head_commission").val() );
-									  if(price > 0 && community_head_commission >0)
-									  {
-											$('#precommiss_head_money_tip').html( ( (price * community_head_commission) /100 ).toFixed(2) );
-									  }else{
-										$('#precommiss_head_money_tip').html('0.00');
-									  }
-								})
-								
-								$("#community_head_commission").blur(function(){
-								  var price = parseFloat( $("#price").val() );
-
-								  var community_head_commission = parseFloat( $(this).val() );
-								  if(price > 0 && community_head_commission >0)
-								  {
-										$('#precommiss_head_money_tip').html( ( (price * community_head_commission) /100 ).toFixed(2) );
-								  }else{
-									$('#precommiss_head_money_tip').html('0.00');
-								  }
-								  
-								});
-								
-								$('#radPickupDateTip input[type=radio]').click(function(){
-									var s_val = $(this).val();
-									if(s_val == 3)
-									{
-										$('#txtPickupDateTip').css('display','inline-block');
-									}else{
-										$('#txtPickupDateTip').css('display', 'none');
-									}
-								 })
-								$("input[name=isstatustime]").off('click').on('click',function () {
-									if($(this).val()==1){
-										$("#shelves").show()
-									}else{
-										$("#shelves").hide();
-									}
-								})
-							})
-						</script>
-						<!--- 基本信息 end -->
-					</div>
-					<div class="layui-tab-item  <?php if( $_GPC['tab']=='option'){ ?>layui-show<?php } ?>" >
-						<!--规格begin-->
-						
-						<div class="region-goods-details ">
-							<div class="region-goods-left col-sm-2">规格库存</div>
-							<div class="region-goods-right col-sm-10">
-								<div class="layui-form-item">
-									<label class="layui-form-label">商品编码</label>
-									<div class="layui-input-block">
-										<input type="text" name="codes" class="form-control" value="<?php echo ($item['codes']); ?>" />
-										<div class="help-block">商品编码 用部分商家用于统计</div>
-									</div>
-								</div>
-								
-								<div class="layui-form-item">
-									<label class="layui-form-label">重量</label>
-									<div class="layui-input-block">
-										<div class="input-group fixsingle-input-group">
-											<input type="text" name="weight" id="weight" <?php if( $item['hasoption']){ ?>readonly<?php } ?> class="form-control hasoption" value="<?php echo ($item['weight']); ?>"/>
-											<span class="input-group-addon">克</span>
-										</div>
-									</div>
-								</div>
-
-								<div class="layui-form-item">
-									<label class="layui-form-label">库存<label style="color:red;font-size:16px;font-weight:900">*</label></label>
-									<div class="layui-input-block">
-										<input type="text" name="total" id="total" class="form-control hasoption" lay-verify="" value="<?php echo ($item['total']); ?>"  style="width:150px;display: inline;margin-right: 20px;" <?php if( $item['hasoption']){ ?>readonly<?php } ?>/>
-										<span class="help-block">商品的剩余数量, 如启用多规格,则此处设置无效.</span>
-									</div>
-								</div>
-
-								
-							</div>
-
-						</div>
-
-
-
-
-						<div class="region-goods-details ">
-							<div class="region-goods-left  col-sm-2">
-								规格
-							</div>
-							<div class="region-goods-right  col-sm-10">
-								<div class="layui-form-item">
-									<div class="layui-row" style=''>
-									
-										
-										
-											<input type="checkbox" lay-skin="primary" title="启用商品规格" lay-filter="hasoption" value="1" id="hasoption" name="hasoption" <?php if( $item['hasoption']==1){ ?>checked<?php } ?> />
-									
-										<span class="help-block">启用商品规格后,商品的价格及库存以商品规格为准,库存设置为0则会到”已售罄“中,手机也不会显示</span>
-
-										
-									</div>
-								</div>
-
-								<div id='tboption' style="padding-left:15px;<?php if( $item['hasoption']!=1){ ?>display:none<?php } ?>" >
-									<div class="alert alert-info" style="display:none;">
-										1. 拖动规格可调整规格显示顺序, 更改规格及规格项后请点击下方的【刷新规格项目表】来更新数据。<br/>
-										2. 每一种规格代表不同型号,例如颜色为一种规格,尺寸为一种规格,如果设置多规格,手机用户必须每一种规格都选择一个规格项,才能添加购物车或购买。
-									</div>
-									<div id='specs'>
-										<?php foreach( $item['allspecs'] as $spec ){ ?>
-										<!--spec-->
-										 <div class='spec_item spec_class_<?php echo ($cur_cate_id); ?>' id="spec_<?php echo ($spec['id']); ?>" >
-											 <div style='border:1px solid #e7eaec;padding:10px;margin-bottom: 10px;' >
-												<input name="spec_id[]" type="hidden" class="form-control spec_id" value="<?php echo ($spec['id']); ?>"/>
-												<div class="form-group">
-													<div class="col-sm-12">
-														<div class='input-group'>
-															<input name="spec_title[<?php echo ($spec['id']); ?>]" type="text" class="form-control  spec_title" value="<?php echo ($spec['title']); ?>" placeholder="规格名称 (比如: 颜色)"/>
-															<div class='input-group-btn'>
-																<a href="javascript:;" id="add-specitem-<?php echo ($spec['id']); ?>" specid='<?php echo ($spec['id']); ?>' class='btn btn-info add-specitem' onclick="addSpecItem('<?php echo ($spec['id']); ?>')"><i class="fa fa-plus"></i> 添加规格项</a>
-																<a href="javascript:void(0);" class='btn btn-danger' onclick="removeSpec('<?php echo ($spec['id']); ?>')"><i class="fa fa-remove"></i></a>
-															</div>
-														</div>
-													</div>
-												</div>
-												<div class="form-group">
-													<div class="col-md-12">
-														<div id='spec_item_<?php echo ($spec['id']); ?>' class='spec_item_items'>
-														<?php foreach( $spec['items'] as $specitem ){ ?>
-															 <!--spec_item begin-->
-															<div class="spec_item_item" style="float:left;margin:5px;width:250px; position: relative">
-																<input type="hidden" class="form-control spec_item_show" name="spec_item_show_<?php echo ($spec['id']); ?>[]" value="<?php echo ($specitem['show']); ?>" />
-																<input type="hidden" class="form-control spec_item_id" name="spec_item_id_<?php echo ($spec['id']); ?>[]" value="<?php echo ($specitem['id']); ?>" />
-																
-																<div class="input-group">
-																	<span class="input-group-addon">
-																		<input type="checkbox" lay-skin="primary" <?php if( $specitem['id']>0){ ?>checked<?php } ?> value="1" onclick='showItem(this)'>
-																	</span>
-																	<input type="text" class="form-control spec_item_title" onblur="refreshOptions()" name="spec_item_title_<?php echo ($spec['id']); ?>[]" VALUE="<?php echo ($specitem['title']); ?>" />
-																	
-																	<span class="input-group-addon spec_item_thumb <?php if( !empty($specitem['thumb'])){ ?>has_thumb<?php } ?>">
-																				   <input type='hidden'  name="spec_item_thumb_<?php echo ($spec['id']); ?>[]" value="<?php echo ($specitem['thumb']); ?>"
-																					/>
-																			<img onclick="selectSpecItemImage(this)"  
-																				 src="<?php if( empty($specitem['thumb'])){ }else{ echo resize($specitem['thumb'],100); } ?>" style='width:100%;'
-																				 <?php if( !empty($specitem['thumb'])){ ?>
-																						data-toggle='popover'
-																						data-html ='true'
-																						data-placement='top'
-																						data-trigger ='hover'
-																						data-content="<img src='<?php echo tomedia($specitem['thumb']);?>' style='width:100px;height:100px;' />"
-																				  <?php } ?>
-																				 >
-																			<i class="fa fa-times-circle" <?php if( empty($specitem['thumb'])){ ?>style="display:none"<?php } ?>></i> 
-																	</span>
-																	
-																	<span class="input-group-addon">
-																		<a href="javascript:;" onclick="removeSpecItem(this)" title='删除'><i class="fa fa-times"></i></a>
-																		<a href="javascript:;" class="fa fa-arrows" title="拖动调整显示顺序" ></a>
-																	</span>
-																</div>
-															  
-																			
-															</div>
-															 <!--spec_item end-->
-														<?php } ?>
-														</div>
-													</div>
-												</div>
-										   </div> 
-										</div>
-
-										<!--end spec-->
-										<?php } ?>
-									</div>
-									
-									<table class="table">
-										<tr>
-											<td>
-											<div class="layui-form-item">
-												<label class="col-sm-2 control-label">选择已有规格</label>
-												<div class="col-sm-8 col-xs-12">
-													<select id="cates2"   name='options[]' class="form-control select2" style='width:605px;' multiple='' >
-														<?php foreach( $spec_list as $c ){ ?>
-														<option value="<?php echo ($c['id']); ?>" data-names="<?php echo ($c['value_str']); ?>"><?php echo ($c['name']); ?></option>
-														<?php } ?>
-													</select>
-													
-												</div>
-											</div>
-											<td>
-										</tr>
-										<tr>
-											<td>
-												<h4>
-													<a href="javascript:;" class='btn btn-primary' id='add-spec' onclick="addSpec()" style="margin-top:10px;margin-bottom:10px;" title="新建规格"><i class='fa fa-plus'></i> 新建规格</a>
-													<a style="display:none;" href="javascript:;" onclick="refreshOptions();" title="刷新规格项目表" class="btn btn-primary"><i class="fa fa-refresh"></i> 刷新规格项目表</a>
-												</h4>
-											</td>
-										</tr>
-										<tr style="display: none;" >
-											<td>
-												<div class="alert alert-danger">警告:规格数据有变动,请重新点击上方 [刷新规格项目表] 按钮!</div>
-											</td>
-										</tr>
-									</table>
-								
-									<div class="alert alert-info wholesalewarning"  style="display:none;">
-									
-									</div>
-								<div id="options" style="padding:0;"><?php echo ($item['html']); ?></div>
-							</div>
-
-							
-							</div>
-						</div>
-						<input type="hidden" name="optionArray" value=''>
-						<input type="hidden" name="isdiscountDiscountsArray" value=''>
-						<input type="hidden" name="discountArray" value=''>
-						<input type="hidden" name="commissionArray" value=''>
-						
-
-						<!--规格end-->
-					</div>
-					
-					
-					<div class="layui-tab-item <?php if( $_GPC['tab']=='des'){ ?>layui-show<?php } ?>"  > 
-						<div class="region-goods-details row">
-							<div class="region-goods-left col-sm-2">商品详情</div>
-							<div class=" region-goods-right col-sm-10">
-								<div class="" >
-								  
-									<?php echo tpl_ueditor('content',htmlspecialchars_decode($item['content']),array('height'=>'300'));?>
-									
-								</div>
-							</div>
-						</div>
-
-
-					</div>
-					
-				
-					
-					<!---团长分销begin --->
-					<div class="layui-tab-item <?php if( $_GPC['tab']=='community_head_level'){ ?>layui-show<?php } ?>" > 
-						
-						
-						
-						<div class="region-goods-details row">
-							<div class="region-goods-left col-sm-2">团长提成</div>
-							<div class="region-goods-right col-sm-10">
-							
-							<?php if( !empty($community_head_level) && count($community_head_level) > 1 && $is_head_takegoods == 1 ) { ?>
-								<div class="form-group">
-									<label class="col-sm-2 control-label">独立规则</label>
-									<div class="col-sm-9 col-xs-12">
-										
-											<input type="checkbox" id="is_modify_head_commission" lay-skin="primary" value="1" name="is_modify_head_commission" lay-filter="is_modify_head_commission" <?php if( $item['is_modify_head_commission']==1){ ?>checked<?php } ?> title="启用独立团长提成" />
-										
-										<span class="help-block">默认使用团长等级提成设置,启用独立团长提成设置,此商品拥有独自的团长提成比例,不受团长等级比例及默认设置限制,团长提成 = 订单有效金额 * 设置比例</span>
-									</div>
-								</div>
-								<div id="head_commission_div" <?php if( empty($item['is_modify_head_commission'])){ ?>style="display:none"<?php } ?> >
-									<?php foreach($community_head_level as $head_level){ ?>
-									
-									<div class="form-group">
-										<label class="col-sm-2 control-label"><?php echo $head_level['levelname']; ?></label>
-										<div class="col-sm-4 col-xs-12">
-											<div class="input-group">
-												<input type="text" name="head_level<?php echo $head_level['id']; ?>"  class="form-control" value="<?php echo $item['head_level'.$head_level['id']]; ?>" />
-												<?php if( !empty($community_money_type) && $community_money_type ==1 ){ ?>
-												<div class="input-group-addon">元 </div>
-												<?php }else{ ?>
-												<div class="input-group-addon">%</div>
-												<?php } ?>
-											</div>
-										</div>
-									</div>
-									<?php } ?>
-								</div>
-								<?php } ?>
-								
-								
-								<?php if( empty($community_head_level) || count($community_head_level) ==1 || $is_head_takegoods ==0 ){ ?>
-								
-								<div class="form-group">
-										<label class="col-sm-2 control-label">独立规则</label>
-										<div class="col-sm-9 col-xs-12">
-											<input type="checkbox" id="is_community_head_commission" lay-skin="primary" value="1" name="is_community_head_commission" lay-filter="is_community_head_commission" <?php if( $item['is_community_head_commission']==1){ ?>checked<?php } ?> title="商品启用独立团长提成" />
-											<br />
-											<span class="help-block">勾选后此处优先生效,不勾选则使用 后台——“团长设置”中团长提成比例 计算佣金</span>	
-										</div>	
-								</div>								
-								
-								<div id="head_commission_div2" <?php if( empty($item['is_community_head_commission'])){ ?>style="display:none"<?php } ?> >
-								
-									<div class="form-group">
-
-									   <label class="col-sm-2 control-label">商品独立团长提成</label>
-
-									   <?php if( !empty($community_money_type) && $community_money_type ==1 ){ ?>
-										<div class="col-sm-4 col-xs-12">
-											<div class="input-group">
-												<input type="text" name="community_head_commission" id="community_head_commission" class="form-control valid" value="<?php if(empty($item)){ echo ($communityhead_commission); }else{ echo ($item['community_head_commission']); } ?>" />
-												<span class="input-group-addon">元 </span>
-											</div>
-											<div class="layui-form-mid layui-word-aux">预计团长可得佣金¥<font ><?php if(isset($item['community_head_commission'])){ echo round( $item['community_head_commission'] ,2) ; }else{ ?>0.00<?php } ?></font></div>	
-										</div>
-										<?php }else{ ?>
-										<div class="col-sm-4 col-xs-12">
-											<div class="input-group">
-												<input type="text" name="community_head_commission" id="community_head_commission" class="form-control valid" value="<?php if( empty($item)){ echo ($communityhead_commission); }else{ echo ($item['community_head_commission']); } ?>" />
-												<span class="input-group-addon">% </span>
-											</div>
-											<div class="layui-form-mid layui-word-aux">预计团长可得佣金¥<font id="precommiss_head_money_tip"><?php if( isset($item['community_head_commission'])){ echo round( ($item['community_head_commission']*$item['price'])/100 ,2); }else{ ?>0.00<?php } ?></font>,将根据商品最终的成交价格来计算佣金</div>	
-										</div>
-										<?php } ?>
-										
-										
-									</div>
-								</div>
-						
-								<?php } ?>
-								
-							</div>
-						</div>
-							<?php
- $virtualcard_is_takecommiss = D('Home/Front')->get_config_by_name('virtualcard_is_takecommiss'); $virtualcard_is_takecommiss = !isset($virtualcard_is_takecommiss) ? 0 : $virtualcard_is_takecommiss; if( $virtualcard_is_takecommiss == 0 ) { $commission_level = 0; } ?>
-							<?php if($commiss_level > 0 && $virtualcard_is_takecommiss == 1){ ?>
-							<div class="region-goods-details row">					
-								<div class="region-goods-left col-sm-2">会员分销</div>
-								<div class="region-goods-right col-sm-10">
-								
-									<div class="form-group">
-										<label class="col-sm-2 control-label">是否参与分销</label>
-										<div class="col-sm-9 col-xs-12">
-											
-												<input type="radio"  value="0" name="nocommission" <?php if($item['nocommission']==0){ ?>checked<?php } ?> title="参与分销" /> 
-											
-												<input type="radio"  value="1" name="nocommission" <?php if($item['nocommission']==1){ ?>checked<?php } ?> title="不参与分销" /> 
-											
-												<span class="help-block">如果不参与分销,则不产生分销佣金</span>
-										</div>
-									</div>
-
-									<div class="form-group">
-										<label class="col-sm-2 control-label">独立规则</label>
-										<div class="col-sm-9 col-xs-12">
-										   
-											<input type="checkbox" lay-filter="hascommission" lay-skin="primary" id="hascommission"  value="1" name="hascommission" <?php if($item['hascommission']==1){ ?>checked<?php } ?> title="启用独立佣金比例" />
-											
-											<span class="help-block">启用独立佣金设置,此商品拥有独自的佣金比例,不受分销商等级比例及默认设置限制</span>
-										   
-										</div>
-									</div>
-									<div style="clear:both;"></div>
-									<div id="commission_div" <?php if(empty($item['hascommission'])){ ?>style="display:none"<?php } ?> >
-
-
-										<div id="commission_0"  <?php if($commission_type!=0){ ?> style="display:none;" <?php } ?>>
-										<div class='alert alert-danger'>
-											如果比例为空,则使用固定规则,如果都为空则无分销佣金,都填写则以比例优先
-										</div>
-										
-										<?php if($set['commiss_level']>=1){ ?>
-										<div class="form-group">
-											<label class="col-sm-2 control-label">一级分销</label>
-											<div class="col-sm-4 col-xs-12">
-											   
-												<div class="input-group">
-													<input type="text" name="commission1_rate" id="commission1_rate" class="form-control" value="<?php echo ($item['commission1_rate']); ?>" />
-													<div class="input-group-addon">% 固定</div>
-													<input type="text" name="commission1_pay" id="commission1_pay" class="form-control" value="<?php echo ($item['commission1_pay']); ?>" />
-													<div class="input-group-addon">元</div>
-												</div>
-												
-											</div>
-										</div>
-										<?php } ?>
-										<?php if($set['commiss_level']>=2){ ?>
-										
-										<div class="form-group">
-											<label class="col-sm-2 control-label">二级分销</label>
-											<div class="col-sm-4 col-xs-12">
-												
-												<div class="input-group">
-													<input type="text" name="commission2_rate" id="commission2_rate" class="form-control" value="<?php echo ($item['commission2_rate']); ?>" />
-													<div class="input-group-addon">% 固定</div>
-													<input type="text" name="commission2_pay" id="commission2_pay" class="form-control" value="<?php echo ($item['commission2_pay']); ?>" />
-													<div class="input-group-addon">元</div>
-												</div>
-												
-											</div>
-										</div>
-										<?php } ?>
-										<?php if($set['commiss_level']>=3){ ?>
-										<div class="form-group">
-											<label class="col-sm-2 control-label">三级分销</label>
-											<div class="col-sm-4 col-xs-12">
-												<div class="input-group">
-													<input type="text" name="commission3_rate" id="commission3_rate" class="form-control" value="<?php echo ($item['commission3_rate']); ?>" />
-													<div class="input-group-addon">% 固定</div>
-													<input type="text" name="commission3_pay" id="commission3_pay" class="form-control" value="<?php echo ($item['commission3_pay']); ?>" />
-													<div class="input-group-addon">元</div>
-												</div>
-											</div>
-										</div>
-										<?php } ?>
-									</div>
-									
-								</div>
-								</div>
-								
-							</div>
-							<?php } ?>
-						
-							
-							
-							<div class="region-goods-details row">					
-								<div class="region-goods-left col-sm-2">会员等级折扣</div>
-								<div class="region-goods-right col-sm-10">
-								
-									<div class="form-group">
-										<label class="col-sm-2 control-label">是否参与会员折扣</label>
-										<div class="col-sm-9 col-xs-12">
-											
-												<input type="radio"  value="1" name="is_mb_level_buy" <?php if(!isset($item['is_mb_level_buy']) || $item['is_mb_level_buy']==1){ ?>checked<?php } ?> title="参与" /> 
-											
-												<input type="radio"  value="0" name="is_mb_level_buy" <?php if($item['is_mb_level_buy']==0){ ?>checked<?php } ?> title="不参与" /> 
-											
-												<span class="help-block">如果不参与会员折扣,则不打折</span>
-											
-										</div>
-									</div>
-
-									<div class="form-group">
-										<label class="col-sm-2 control-label">独立规则</label>
-										<div class="col-sm-9 col-xs-12">
-											<input type="checkbox" lay-filter="has_mb_level_buy" lay-skin="primary" id="has_mb_level_buy"  value="1" name="has_mb_level_buy" <?php if($item['has_mb_level_buy']==1){ ?>checked<?php } ?> title="启用独立折扣比例" />
-											<span class="help-block">启用独立折扣设置,此商品拥有独立的会员等级折扣比例,不受会员等级折扣设置限制</span>
-										</div>
-									</div>
-
-									<div style="clear:both;"></div>
-									<div id="mb_level_div" <?php if(empty($item['has_mb_level_buy'])){ ?>style="display:none"<?php } ?> >
-										<div id="mb_level_tip">
-											<div class='alert alert-danger'>
-												请填写1-99的<span style="color:red">整数</span>,100不打折。例如:80,打八折,该会员对应等级会员价=商品现价*80%
-												<?php if( empty($member_level_ist) ){ ?>
-													<br>
-												<span style="color:red">暂无会员等级,请前往会员--》会员等级 添加会员等级</span>
-												<?php } ?>
-											</div>
-										</div>
-										<?php foreach($member_level_ist as $k=>$v){?>
-										<div class="form-group">
-											<label class="col-sm-2 control-label"><?php echo $v['levelname']?></label>
-											<div class="col-sm-4 col-xs-4">
-												<div class="input-group">
-													<input type="hidden" name="level_id[]" class="form-control" value="<?php echo $v['id']?>" />
-													<input type="text" name="discount[]" class="form-control" value="<?php echo $mb_level_discount_list[$v['id']];?>" />
-													<div class="input-group-addon">% </div>
-												</div>
-											</div>
-										</div>
-										<?php }?>
-									</div>
-								</div>
-							</div>
-							
-							
-					
-					<!--团长分销end--->
-					
-					
-					
-				  </div>
-				 
-					
-				  <?php if( !empty($is_open_goods_relative_goods) && $is_open_goods_relative_goods == 1 ){ ?>
-				  <div class="layui-tab-item <?php if( $_GPC['tab']=='goods_relative_goods'){ ?>layui-show<?php } ?>"  > 
-						<div class="region-goods-details row">
-							<div class="region-goods-left col-sm-2">推荐商品</div>
-							<div class=" region-goods-right col-sm-10">
-								<div class="input-group " style="margin: 0;">
-									<input type="text" disabled value="" class="form-control valid" name="" placeholder="" id="agent_id">
-									<span class="input-group-btn">
-										<span data-input="#agent_id" id="chose_agent_id2"  class="btn btn-default">选择商品</span>
-									</span>
-								</div>
-								<?php if(!empty($limit_goods)){ ?>
-								<?php foreach( $limit_goods as $goods ){ ?>
-								<div class="input-group mult_choose_goodsid" data-gid="<?php echo ($goods['gid']); ?>" style="border-radius: 0;float: left;margin: 10px;margin-left:0px;width: 22%;">	
-									<div class="layadmin-text-center choose_user">		
-										<img style="" src="<?php echo ($goods['image']); ?>">		
-										<div class="layadmin-maillist-img" style=""><?php echo ($goods['goodsname']); ?></div>		
-										<button type="button" class="layui-btn layui-btn-sm" onclick="cancle_bind(this)">
-											<i class="layui-icon"></i>
-										</button>	
-									</div>
-								</div>
-								<?php }} ?>
-							</div>
-						</div>
-					</div>
-					<?php } ?>
-
-				</div> 
-				
-				<script>
-					$(function(){
-						$(".select2").select2({
-							 placeholder:'请选择',
-							 allowClear:true
-						})
-					})
-				</script>
-				<div class="layui-form-item">
-					<label class="layui-form-label"> </label>
-					<div class="layui-input-block">
-						<input type="submit" value="提交" lay-submit lay-filter="formDemo" class="btn btn-primary"  />
-						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-						<a class="btn btn-default" style='margin-left:10px;' href="<?php echo U('goods/index' , array( 'ok' => 1));?>">返回列表</a>
-						
-					</div>
-				</div>
-			</form>
-		</div>
-</div>
-</div>
-
-
-<div id="batchheads" style="z-index: 999;display: none;position: fixed;top: 0;left: 0;right: 0;bottom: 0;background: rgba(0,0,0,0.5)" class="form-horizontal form-validate batchcates"  enctype="multipart/form-data">
-	<div class="modal-dialog" style="position: absolute;margin-top: -300px">
-		<div class="modal-content">
-			<div class="modal-header" style="padding:5px;">
-				<button data-dismiss="modal" class="close" type="button">×</button>
-				<h4 class="modal-title">选取团长</h4>
-			</div>
-			<div class="modal-body" style="height:600px">
-				<div class="form-group">
-					<label class="col-sm-2 control-label">社区位置</label>
-					<div class="col-sm-10 col-xs-12">
-						<p>
-							<select id="sel-provance" name="province_id" onChange="selectCity();" class="select form-control" style="width:160px;display:inline;">
-								<option value="" selected="true">省/直辖市</option>
-							</select>
-							<select id="sel-city" name="city_id" onChange="selectcounty(0)" class="select form-control" style="width:160px;display:inline;">
-								<option value="" selected="true">请选择</option>
-							</select>
-							<select id="sel-area" name="area_id" onChange="selectstreet(0)" class="select form-control" style="width:160px;display:inline;">
-								<option value="" selected="true">请选择</option>
-							</select>
-							<select id="sel-street" name="country_id" class="select form-control" style="width:160px;display:inline;">
-								<option value="" selected="true">请选择</option>
-							</select>
-						</p>
-					</div>
-				</div>
-				<div class="form-group">
-					<label class="col-sm-2 control-label">团长名称</label>
-					<div class="col-sm-10 col-xs-12">
-						<div class="input-group">
-							<input type="text" class="form-control" name="keyword" id="supply_id_input" placeholder="团长名称/团长手机号/社区地址">
-			            	<span class="input-group-btn">
-			            		<button type="button" class="btn btn-default" onclick="search_heads()">搜索</button>
-			            	</span>
-						</div>
-					</div>
-				</div>
-
-				<div class="form-group">
-					<div class="col-sm-1 control-label">
-
-					</div>
-					<div class="col-sm-10 col-xs-12">
-						<div class="page-table-header">
-							<input type="checkbox" class="check_heads_all">
-							<div class="btn-group">
-								全选/反选
-							</div>
-
-							<br/>
-							<label><input type="checkbox" class="is_cancle_old" id="is_cancle_old" style="vertical-align: text-bottom;">
-								<div class="btn-group" style="color:#666;">
-									同时取消以前所有分配
-								</div>
-							</label>
-							&nbsp;&nbsp;&nbsp;&nbsp;
-
-							<label><input type="checkbox" class="is_cancle_allhead" id="is_cancle_allhead" style="vertical-align: text-bottom;">
-								<div class="btn-group" style="color:#666;">
-									同时取消商品 “所有团长可售”
-								</div>
-							</label>
-
-
-						</div>
-					</div>
-				</div>
-
-				<div class="row">
-					<label class="col-sm-1 control-label"></label>
-					<div class="col-sm-11 col-xs-12">
-						<div class="content" style="padding-top:5px;" data-name="supply_id">
-							<div style="max-height:410px;overflow:auto;" id="batchheads_content">
-
-							</div>
-							<div class="" id="batchheads_page">
-
-							</div>
-						</div>
-					</div>
-				</div>
-
-
-			</div>
-			<div class="modal-footer">
-				<button class="btn btn-primary model_heads">确认</button>
-				<button class="btn btn-default" >取消</button>
-			</div>
-		</div>
-	</div>
-</div>
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script type="text/javascript" src="/static/js/jquery-migrate-1.1.1.js"></script>
-<script src="/static/js/jquery-ui.min.js"></script>
-<style>
-.multi-img-details{width:100%;}
-</style>
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-var cur_open_div;
-var form;
-
-layui.use(['jquery', 'layer','form', 'laydate'], function(){
-  $ = layui.$;
-	form = layui.form;
-	laydate = layui.laydate;
-	laydate.render({
-		elem: '#hx_expire_end_time'
-		,type: 'datetime'
-		,min: '<?php echo date("Y-m-d H:i:s"); ?>'
-	});
-  
-	form.on('radio(linktype)', function(data){
-		if (data.value == 2) {
-			$('#typeGroup').show();
-		} else {
-			$('#typeGroup').hide();
-		}
-	});  
-	
-	form.on('checkbox(is_modify_sendscore)', function(data){
-		console.log(data.elem.checked)
-	  if (data.elem.checked) {
-			console.log(12);
-			$("#send_score_divTip").css('display','inline');
-			$("#send_score_divTip2").css('display','inline');
-		} else {
-			console.log(33);
-			$("#send_score_divTip").hide();
-			$("#send_score_divTip2").hide();
-		}
-		form.render('checkbox');
-	});
-	
-	form.on('checkbox(xinrenckbox)', function(data){
-	  if (data.elem.checked) {
-			$("#xianshickbox").removeAttr("checked");
-		} else {
-			
-		}
-		form.render('checkbox');
-	});
-	
-	form.on('checkbox(xianshickbox)', function(data){
-		if (data.elem.checked) {
-			$("#xinrenckbox").removeAttr("checked");
-		} else {
-			
-		}
-		form.render('checkbox');
-	});
-	
-	form.on('checkbox(hascommission)', function(data){
-		
-		if (data.elem.checked) {
-			$('#commission_div').show();
-		} else {
-			$('#commission_div').hide();
-		}
-	})
-	//hascommission
-
-	form.on('checkbox(has_mb_level_buy)', function(data){
-
-		if (data.elem.checked) {
-			$('#mb_level_div').show();
-		} else {
-			$('#mb_level_div').hide();
-		}
-	})
-
-	form.on('checkbox(is_hx_member)', function(data){
-
-		if (data.elem.checked) {
-			$(this).parent().parent().find('.selectHxMember').show();
-			$(this).parent().parent().find('.hx_smember_list').show();
-		} else {
-			$(this).parent().parent().find('.selectHxMember').hide();
-			$(this).parent().parent().find('.hx_smember_list').hide();
-		}
-	})
-
-	form.on('radio(hexiao_type)', function(data){
-		if (data.elem.value == 1) {
-			$('#hexiao_type_0').hide();
-			$('#hexiao_type_1').show();
-			$('#hx_goods_time').show();
-		} else {
-			$('#hexiao_type_0').show();
-			$('#hexiao_type_1').hide();
-			$('#hx_goods_time').hide();
-		}
-	})
-	form.on('radio(hx_expire_type)', function(data){
-		if (data.elem.value == 1) {
-			$('#hx_expire_type_0').hide();
-			$('#hx_expire_type_1').show();
-		} else {
-			$('#hx_expire_type_0').show();
-			$('#hx_expire_type_1').hide();
-		}
-	})
-	form.on('radio(hx_assign_salesroom)', function(data){
-		if (data.elem.value == 1) {
-			$('#hx_assign_salesroom_1').show();
-			$('#hx_salesroom_list').show();
-		} else {
-			$('#hx_assign_salesroom_1').hide();
-			$('#hx_salesroom_list').hide();
-		}
-	})
-	//同城配送
-	form.on('checkbox(is_only_distribution)', function (data) {
-		if (data.elem.checked) {
-			$("#is_only_hexiao").removeAttr("checked");
-			$("#is_only_express").removeAttr("checked");
-		}
-		form.render('checkbox');
-	});
-	//仅快递
-	form.on('checkbox(is_only_express)', function (data) {
-		if (data.elem.checked) {
-			$("#is_only_distribution").removeAttr("checked");
-			$("#is_only_hexiao").removeAttr("checked");
-		}
-		form.render('checkbox');
-	});
-	//核销
-	form.on('checkbox(is_only_hexiao)', function (data) {
-		if (data.elem.checked) {
-			$("#is_only_distribution").removeAttr("checked");
-			$("#is_only_express").removeAttr("checked");
-		}
-		form.render('checkbox');
-	});
-
-	$('#chose_salesroom_id').click(function(){
-		var supply_id = $('input[name="supply_id"]').val();
-		cur_open_div = $(this).attr('data-input');
-		$.post("<?php echo U('salesroom/query', array('template' => 'mult_goods'));?>", {supply_id:supply_id}, function(shtml){
-			layer.open({
-				type: 1,
-				area: '930px',
-				content: shtml //注意,如果str是object,那么需要字符拼接。
-			});
-		});
-	})
-	$('.chose_smember_id').live('click',function(){
-		var room_id = $(this).parent().parent().parent().find('.mult_choose_roomid').attr('data-roomid');
-        cur_open_div = $(this).attr('data-input');
-        var post_url = "<?php echo U('salesroom_member/query', array('template' => 'mult_goods'));?>";
-        $.post(post_url, {room_id:room_id}, function(shtml){
-            layer.open({
-                type: 1,
-                area: '930px',
-                content: shtml //注意,如果str是object,那么需要字符拼接。
-            });
-        });
-	})
-	
-	/**
-	<?php if($delivery_type_express == 2){?>
-	form.on('checkbox(is_only_express111)', function(data){
-		if (data.elem.checked) {
-			$('#is_only_express').removeAttr("checked");
-			layer.msg("启用仅快递配送模式,请在物流设置开启快递配送方式!",{icon: 2,time: 3000});
-		}
-		form.render('checkbox');
-	})
-	<?php } ?>
-	**/
-									
-	$('#chose_label_id').click(function(){
-		cur_open_div = $(this).attr('data-input');
-		$.post("<?php echo U('goods/labelquery', array('ok' => 1));?>", {}, function(shtml){
-		 layer.open({
-			type: 1,
-			area: '930px',
-			content: shtml //注意,如果str是object,那么需要字符拼接。
-		  });
-		});
-	})
-	
-	$('#chose_member_id').click(function(){
-		cur_open_div = $(this).attr('data-input');
-		$.post("<?php echo U('supply/zhenquery', array('ok' => 1));?>", {}, function(shtml){
-		 layer.open({
-			type: 1,
-			area: '930px',
-			content: shtml //注意,如果str是object,那么需要字符拼接。
-		  });
-		});
-	})
-	$('#chose_agent_id').click(function(){
-		cur_open_div = $(this).attr('data-input');
-		$.post("<?php echo U('communityhead/query_head_user', array('ok' => 1));?>", {}, function(shtml){
-		 layer.open({
-			type: 1,
-			area: '930px',
-			content: shtml //注意,如果str是object,那么需要字符拼接。
-		  });
-		});
-	})
-	$('#chose_link').click(function(){
-		cur_open_div = $(this).attr('data-input');
-		$.post("<?php echo U('util.selecturl', array('ok' => 1));?>", {}, function(shtml){
-		 layer.open({
-			type: 1,
-			area: '930px',
-			content: shtml //注意,如果str是object,那么需要字符拼接。
-		  });
-		});
-	})
-	
-	$('.layui-tab-title li').click(function(){
-		form.render('radio');
-		form.render('checkbox');
-	})
-		
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	var loadingIndex = layer.load();
-
-	  $('input').blur(function () {
-		  $(this).css('border','#e7e7eb 1px solid');
-	  })
-
-	  var goodsname = $.trim($('#goodsname').val());
-	  if(goodsname == ''){
-		  layer.msg('商品名称必须填写',{icon: 1,time: 2000});
-		  $('#goodsname').focus();
-		  $('#goodsname').css('border','red 2px solid');
-		  layer.close(loadingIndex);
-		  return false;
-	  }
-
-	  var price = $.trim($('#price').val());
-	  if(price == ''){
-		  layer.msg('售价必须填写',{icon: 1,time: 2000});
-		  $('#price').focus();
-		  $('#price').css('border','red 2px solid');
-		  layer.close(loadingIndex);
-		  return false;
-	  }
-
-	  var productprice = $.trim($('#productprice').val());
-	  if(productprice == ''){
-		  layer.msg('原价必须填写',{icon: 1,time: 2000});
-		  $('#productprice').focus();
-		  $('#productprice').css('border','red 2px solid');
-		  layer.close(loadingIndex);
-		  return false;
-	  }
-
-	  
-
-
-
-	  if($('#hasoption').get(0).checked == false){
-		  console.log(222);
-		  var total =$('#total').val();
-		  if(total == ''){
-			  layer.msg('库存必须填写',{icon: 1,time: 2000});
-			  $('#total').focus();
-			  $('#total').css('border','red 2px solid');
-			  layer.close(loadingIndex);
-			  return false;
-		  }
-	  }
-
-
-
-
-
-
-
-	  var goods_start_count = $.trim($('input[name="goods_start_count"]').val());
-	  var r = /^\+?[1-9][0-9]*$/;  //正整数
-	  if(r.test(goods_start_count)){
-		  var oneday_limit_count = $.trim($('input[name="oneday_limit_count"]').val());
-		  if(parseInt(oneday_limit_count) > 0){
-			  if(parseInt(goods_start_count) > parseInt(oneday_limit_count)){
-				  layer.msg('起购数量必须小于每天限购',{icon: 1,time: 2000});
-				  $('input[name="goods_start_count"]').focus();
-				  layer.close(loadingIndex);
-				  return false;
-			  }
-		  }
-		  var one_limit_count = $.trim($('input[name="one_limit_count"]').val());
-		  if(parseInt(one_limit_count) > 0){
-			  if(parseInt(goods_start_count) > parseInt(one_limit_count)){
-				  layer.msg('起购数量必须小于单次限购',{icon: 1,time: 2000});
-				  $('input[name="goods_start_count"]').focus();
-				  layer.close(loadingIndex);
-				  return false;
-			  }
-		  }
-		  var total_limit_count = $.trim($('input[name="total_limit_count"]').val());
-		  if(parseInt(total_limit_count) > 0){
-			  if(parseInt(goods_start_count) > parseInt(total_limit_count)){
-				  layer.msg('起购数量必须小于历史限购',{icon: 1,time: 2000});
-				  $('input[name="goods_start_count"]').focus();
-				  layer.close(loadingIndex);
-				  return false;
-			  }
-		  }
-	  }
-	  //判断付费会员价
-	  var is_take_vipcard = $('input[name="is_take_vipcard"]').prop('checked');
-	  if(is_take_vipcard){
-		  var card_price = $.trim($('#card_price').val());
-		  var price = $.trim($('#price').val());
-		  var fix_amountTest=/^(([1-9]\d*)|\d)(\.\d{1,2})?$/;
-		  if(card_price == '' || fix_amountTest.test(card_price)==false){
-			  layer.msg('请填写正确的商品付费会员专享价');
-			  layer.close(loadingIndex);
-			  return false;
-		  }
-		  if(price == '' || fix_amountTest.test(price)==false){
-			  layer.msg('请填写正确的商品价格售价');
-			  layer.close(loadingIndex);
-			  return false;
-		  }
-		  if(parseFloat(card_price) > parseFloat(price)){
-			  layer.msg('付费会员专享价不能大于售价');
-			  layer.close(loadingIndex);
-			  return false;
-		  }
-		  var check_cardprice = true;
-		  var check_market_price = true;
-		  var check_card_market = true;
-		  $('.option_cardprice').each(function(){
-			  var cardprice = $.trim($(this).val());
-			  var marketprice = $.trim($(this).parent().parent().find('.option_marketprice').val());
-			  if(cardprice == '' || fix_amountTest.test(cardprice) == false || parseFloat(cardprice) < 0.01){
-				  check_cardprice = false;
-			  }
-			  if(marketprice == '' || fix_amountTest.test(marketprice) == false || parseFloat(marketprice) < 0.01){
-				  check_market_price = false;
-			  }
-			  if(parseFloat(cardprice) > parseFloat(marketprice)){
-				  check_card_market = false;
-			  }
-		  })
-		  if(!check_cardprice){
-			  layer.msg('多规格付费会员专享价不能为空且最低0.01元');
-			  layer.close(loadingIndex);
-			  return false;
-		  }
-		  if(!check_market_price){
-			  layer.msg('多规格商品售价不能为空且最低0.01元');
-			  layer.close(loadingIndex);
-			  return false;
-		  }
-		  if(!check_card_market){
-			  layer.msg('多规格付费会员专享价不能大于售价');
-			  layer.close(loadingIndex);
-			  return false;
-		  }
-
-	  }
-
-	var s_cates = $('#cates').val();
-	var cate_mult = [];
-	for(var i in s_cates)
-	{
-		cate_mult.push(s_cates[i]);
-	}
-	data.field.cate_mult = cate_mult;
-	
-	<?php if( !empty($is_open_goods_relative_goods) && $is_open_goods_relative_goods == 1 ){ ?>
-	var gd_ar = [];
-	var gd_str = '';
-	$('.mult_choose_goodsid').each(function(){
-		gd_ar.push( $(this).attr('data-gid') );
-	})
-	gd_str = gd_ar.join(',');
-	
-	data.field.limit_goods_list = gd_str;
-	<?php } ?>
-	
-	var is_mult_option = $('input[name=hasoption]').is(':checked');
-
-
-	if( is_mult_option )
-	{
-		var spec_item_all_count = 0;
-		var spec_item_all = false;
-		$('.spec_item').each(function(){
-			spec_item_all_count++;
-		});
-		if(spec_item_all || spec_item_all_count == 0)
-		{
-			layer.msg('请填写商品的规格名称');
-			layer.close(loadingIndex);
-			return false;
-		}
-		var is_spec_break = false;
-		$('.spec_item').each(function(){
-			spec_item_all_count++;
-			//检测商品规格是否配置
-			var spec_val;
-			var spec_item_val;
-			var is_spec = false;
-			var is_spec_item = false;
-			var spec_count = 0;
-			var spec_item_count = 0;
-			
-			$(this).find('.spec_title').each(function(){
-				spec_val = $(this).val();
-				spec_count++;
-				if( spec_val == '' )
-				{
-					is_spec = true;
-				}
-
-				if(is_spec || spec_count == 0)
-				{
-					is_spec_break = true;
-					layer.msg('请填写商品的规格名称',{icon:2});
-					$(this).focus();
-					$(this).css('border','2px solid #FF0000');
-					layer.close(loadingIndex);
-					return false;
-				}
-			})
-			$(this).find('.spec_item_title').each(function(){
-				spec_item_val = $(this).val();
-
-				spec_item_count++;
-				if( spec_item_val == '' )
-				{
-					is_spec_item = true;
-				}
-				if(is_spec_item || spec_item_count == 0){
-					is_spec_break = true;
-					$(this).focus();
-					$(this).css('border','2px solid #FF0000');
-					//$('.hasoption').focus();
-					layer.msg('请填写商品的具体规格值',{icon:2});
-					layer.close(loadingIndex);
-					return false;
-				}
-
-
-
-			})
-
-
-		})
-		if(is_spec_break){
-			layer.close(loadingIndex);
-			return false;
-		}
-
-		var t_val;
-		var is_pos = false;
-		var s_total = 0;
-		var is_break = false;
-		$('.option_stock').each(function(){
-			 t_val = $(this).val();
-			 if(!(/(^[1-9]\d*$)/.test(t_val)) && t_val != 0){
-				layer.msg('多规格商品库存输入错误,请输入正确的数字!',{icon:2});
-				$(this).focus();
-				$(this).css('border','red 2px solid');
-				layer.close(loadingIndex);
-				is_break = true;
-				return false;
-			}
-			 
-			 if( t_val == '' )
-			 {
-				 is_pos = true;
-
-			 }
-			if(is_pos)
-			{
-				layer.msg('多规格商品库存未填写',{icon:2});
-				$(this).focus();
-				$(this).css('border','red 2px solid');
-				console.log(888);
-				layer.close(loadingIndex);
-				is_break = true;
-				return false;
-
-
-
-			}
-
-
-			 s_total += parseInt( t_val );
-		})
-
-
-		if(is_break){
-			return false;
-		}
-
-		
-		var t_val2;
-		var is_pos2 = false;
-		$('.option_marketprice').each(function(){
-			 t_val2 = $(this).val();
-			 if( t_val2 == '' )
-			 {
-				is_pos2 = true;
-			 }
-			console.log(is_pos2);
-			if(is_pos2)
-			{
-				layer.msg('多规格商品价格未填写',{icon:2});
-				$(this).focus();
-				$(this).css('border','red 2px solid');
-				layer.close(loadingIndex);
-				is_break = true;
-				return false;
-			}
-
-		})
-		if(is_break){
-			return false;
-		}
-
-
-		var t_val3;
-		var is_pos3 = false;
-		$('.option_productprice').each(function(){
-			t_val3 = $(this).val();
-			if( t_val3 == '' )
-			{
-				is_pos3 = true;
-			}
-		})
-
-		if(is_pos3)
-		{
-			layer.msg('多规格商品原价未填写',{icon:2});
-			layer.close(loadingIndex);
-			return false;
-		}
-
-		if( s_total > 100000 || s_total< 0 )
-		{
-			layer.msg('商品库存值的取值范围是1~100000',{icon:2});
-			layer.close(loadingIndex); 
-			return false;
-		}
-		
-		if(!(/(^[1-9]\d*$)/.test(s_total)) && s_total != 0){
-			layer.msg('多规格商品库存输入错误,请输入正确的数字!',{icon:2});
-			layer.close(loadingIndex); 
-			return false;
-		}
-		
-	}else{
-		var g_total = $('#total').val();
-		
-		if( g_total > 100000 || g_total< 0 )
-		{
-			layer.msg('商品库存值的取值范围是1~100000',{icon:2});
-			layer.close(loadingIndex); 
-			return false;
-		}
-		
-		if(!(/(^[1-9]\d*$)/.test(g_total)) && g_total != 0){
-			layer.msg('商品库存输入错误,请输入正确的数字!',{icon:2});
-			layer.close(loadingIndex); 
-			return false;
-		}
-		
-	}
-/**
-	  var supply_id = $('input[name=supply_id]').val();
-	  var is_only_distribution = $('input[name=is_only_distribution]').is(':checked');
-	  if(supply_id != '' && supply_id > 0){
-		  if(is_only_distribution){
-			  layer.msg('独立供应商不能开启同城配送');
-			  layer.close(loadingIndex);
-			  return false;
-		  }
-	  }**/
-	  //商品核销
-	  var is_only_hexiao = $('input[name=is_only_hexiao]').is(':checked');
-	  if(is_only_hexiao){
-		  var hx_expire_type = $('input:radio[name="hx_expire_type"]:checked').val();
-		  if(hx_expire_type == 1){
-			  if($.trim($('#hx_expire_end_time').val()) == ''){
-				  layer.msg('指定过期时间不能为空');
-				  layer.close(loadingIndex);
-				  return false;
-			  }
-		  }
-
-		  var goods_room = [];
-		  var goods_room_smember = {};
-		  var goods_is_hx_member = {};
-		  var goods_room_ids = "";
-		  $('#hx_salesroom_list').find('.mult_choose_room_list').each(function(){
-			  var goods_room_sid = [];
-			  var room_id = $(this).find('.mult_choose_roomid').attr('data-roomid');
-			  $(this).find('.mult_choose_smemberid').each(function(){
-				  var smember_id = $(this).attr('data-smemberid');
-				  goods_room_sid.push(smember_id);
-			  });
-			  goods_room_smember[room_id] = goods_room_sid.join(',');
-			  goods_room.push(room_id);
-
-			  $(this).find('.is_hx_member').each(function(){
-				  if($(this).is(':checked')){
-					  goods_is_hx_member[room_id] = 1;
-				  }else{
-					  goods_is_hx_member[room_id] = 0;
-				  }
-			  });
-		  });
-
-		  goods_room_ids = goods_room.join(',');
-		  data.field.goods_room_ids = goods_room_ids;
-		  data.field.goods_room_smember = goods_room_smember;
-		  data.field.goods_is_hx_member = goods_is_hx_member;
-		  var hx_assign_salesroom = $('input:radio[name="hx_assign_salesroom"]:checked').val();
-		  if(hx_assign_salesroom == 1){
-			if(goods_room_ids == ''){
-				layer.msg('请选择指定门店');
-				layer.close(loadingIndex);
-				return false;
-			}
-		  }
-	  }
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-				layer.close(loadingIndex); 
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-  
-  
-  form.on('checkbox(hasoption)', function(data){
-									
-		if(data.elem.checked)
-		{
-			$('#goodssn').attr('readonly',true);
-			$('#productsn').attr('readonly',true);
-			$('#weight').attr('readonly',true);
-			$('#total').attr('readonly',true);
-
-			$("#tboption").show();
-			$("#tbdiscount").show();
-			$("#isdiscount_discounts").show();
-			$("#isdiscount_discounts_default").hide();
-			$("#commission").show();
-			$("#commission_default").hide();
-			$("#discounts_type1").show().parent().show();
-			refreshOptions();
-		}else{
-			$('#weight').removeAttr('readonly');
-			$('#total').removeAttr('readonly');
-			$("#tboption").hide();
-			refreshOptions();
-
-			$("#isdiscount_discounts").hide();
-			var isdiscount_discounts = $("#isdiscount_discounts").html();
-			$("#isdiscount_discounts").html('');
-			
-			$("#isdiscount_discounts").html(isdiscount_discounts);
-			
-
-			$("#tbdiscount").hide();
-			$("#isdiscount_discounts_default").show();
-
-			$("#commission_default").show();
-
-			$('#goodssn').removeAttr('readonly');
-			$('#productsn').removeAttr('readonly');
-
-			$("#discounts_type1").hide().parent().hide();
-			$("#discounts_type0").click();	
-			$(this).prop("checked", false);
-		}
-		
-		form.render('checkbox');
-	});	
-	
-	$('#chose_agent_id2').click(function(){
-		cur_open_div = $(this).attr('data-input');
-		$.post("<?php echo U('goods/query_normal', array('template' => 'mult', 'unselect_goodsid' => $id));?>", {}, function(shtml){
-		 layer.open({
-			type: 1,
-			area: '930px',
-			content: shtml //注意,如果str是object,那么需要字符拼接。
-		  });
-		});
-	})
-	
-	
-	form.on('checkbox(is_modify_head_commission)', function(data){
-    
-		if(data.elem.checked)
-		{
-			$("#head_commission_div").show();
-		}else{
-			$("#head_commission_div").hide();	
-		}
-		
-		form.render('checkbox');
-	});
-	
-	
-	form.on('checkbox(is_community_head_commission)', function(data){
-    
-		if(data.elem.checked)
-		{
-			$("#head_commission_div2").show();
-		}else{
-			$("#head_commission_div2").hide();	
-		}
-		
-		form.render('checkbox');
-	});
-	
-
-	form.on('checkbox(is_take_vipcard)', function(data){
-		if(data.elem.checked)
-		{
-			$(".card_price_txt").show();
-		}else{
-			$(".card_price_txt").hide();
-		}
-
-		form.render('checkbox');
-		refreshOptions();
-	});
-	  
-})
-
-
-function cancle_bind(obj,sdiv)
-{
-	$('#'+sdiv).val('');
-	$(obj).parent().parent().remove();
-
-}
-function cancle_room_bind(obj){
-	$(obj).parent().parent().parent().remove();
-}
-</script> 
-
-
-<script>
-    $(function () {
-        // 拖拽时开始滚动的间距
-        var scrollingSensitivity = 20
-        // 拖拽时滚动速度
-        let scrollingSpeed = 20
-        // 拖拽前的父级节点
-        let dragBeforeParentNode = null
-        // 初始化拖拽函数
-        $('.multi-img-details').sortable({
-            // 自适应placeholder的大小
-            forceHelperSize: true,
-            // 拖拽时的鼠标形状
-            cursor: '-webkit-grabbing',
-            // 拖拽的父级节点(该节点一定要注意,配置错误会导致当前屏幕外的元素没法自动滚动拖拽,两列之间拖拽的滚动也会出问题)
-            appendTo: '.layui-form-item',
-            // 拖拽时的倾斜度
-            rotate: '5deg',
-            // 延迟时间(毫秒),避免和click同时操作时出现的冲突
-            delay: 0,
-            // 以clone方式拖拽
-            helper: 'clone',
-            // 拖拽到边框出现滚动的间距,
-            scrollSensitivity: scrollingSensitivity,
-            // 应用于拖拽空白区域的样式
-            placeholder: 'portlet-placeholder ui-state-highlight',
-            // 允许拖拽预留空白区域
-            forcePlaceholderSize: false,
-            // 多个列表之间的拖拽的dom元素
-            connectWith: '.multi-img-details',
-            // 鼠标到区域则填充
-            tolerance: "pointer",
-            // 可以拖拽的项
-            items: '.multi-item',
-            // 填充动画
-            revert: 0,
-            // 拖拽结束函数
-            stop: (e, ui) => {
-                // 当前拽入的元素
-                let item = $(ui.item)
-                // 当前拽入元素的下标
-                let index = item.index()
-                let kid = ''
-                // xxxx 这里面可以操作数据更新
-            },
-            // 开始拖拽时的函数
-            start: (e, ui) => {
-                // 拖拽前的父级节点
-                dragBeforeParentNode = ui.item[0].parentNode
-                // 让placeholder和源高度一致
-                ui.helper.addClass('item').width(110)
-                // xxxx  这里可以记录一些拖拽前的元素属性
-            },
-            // 处理两列滚动条问题
-            sort: function (event, ui) {
-                var scrollContainer = ui.placeholder[0].parentNode
-                // 设置拽入的列表的滚动位置
-                var overflowOffset = $(scrollContainer).offset()
-                if ((overflowOffset.top + scrollContainer.offsetHeight) - event.pageY <
-                    scrollingSensitivity) {
-                    scrollContainer.scrollTop = scrollContainer.scrollTop + scrollingSpeed
-                } else if (event.pageY - overflowOffset.top < scrollingSensitivity) {
-                    scrollContainer.scrollTop = scrollContainer.scrollTop - scrollingSpeed
-                }
-            }
-        }).disableSelection()
-    })
-</script>
-
-
-
-<script language="javascript">
-						var chose_cate = -1;
-						var chose_cate_id_arr = [];
-							$(function(){
-								
-								$('#cates2').on('change',function(){
-									var s_length = $("#cates2 option:selected").length -1;
-									var options_name = $("#cates2 option:selected:eq("+s_length+")").text();
-									var options_str =  $("#cates2 option:selected:eq("+s_length+")").attr('data-names');
-									
-									if(s_length > chose_cate)
-									{
-										chose_cate++;
-										var cur_cate_id = '';
-										$("#cates2 option:selected").each(function(){
-											var tmp_cate_id = parseInt($(this).val());
-											if( $.inArray( tmp_cate_id, chose_cate_id_arr ) == -1)
-											{
-												chose_cate_id_arr.push( parseInt(tmp_cate_id) );
-												cur_cate_id = tmp_cate_id;
-											}
-										})
-										addSpecList(options_name,options_str,cur_cate_id);
-									}else{
-										chose_cate--;
-										var new_chose_cate_id_arr = [];
-										if(chose_cate_id_arr.length == 1)
-										{
-											$('.spec_class_'+chose_cate_id_arr[0]).remove();
-										}
-										
-										$("#cates2 option:selected").each(function(){
-											var tmp_cate_id = parseInt( $(this).val() );
-											if( $.inArray( tmp_cate_id, chose_cate_id_arr ) != -1)
-											{
-												new_chose_cate_id_arr.push( parseInt(tmp_cate_id) );
-												chose_cate_id_arr.splice($.inArray( tmp_cate_id, chose_cate_id_arr ), 1);
-											}
-										})
-										if(chose_cate_id_arr.length == 1)
-										{
-											$('.spec_class_'+chose_cate_id_arr[0]).remove();
-										}
-										
-										chose_cate_id_arr = new_chose_cate_id_arr;
-										refreshOptions();
-									}
-									
-									
-								})
-								$(document).on('input propertychange change', '#specs input', function () {
-									
-									window.optionchanged = true;
-									$('#optiontip').show();
-								});
-								
-								$(document).on('input propertychange change', '#specs input', function () {
-								
-									window.optionchanged = true;
-									$('#optiontip').show();
-								});
-
-
-								$(".spec_item_thumb").find('i').click(function(){
-									var group  =$(this).parent();
-									group.find('img').attr('src',"{SNAILFISH_LOCAL}static/images/nopic100.jpg");
-									group.find(':hidden').val('');
-									$(this).hide();
-									group.find('img').popover('destroy');
-								});
-
-								
-									
-								
-							});
-							function selectSpecItemImage(obj){
-								util.image('',function(val){
-									$(obj).attr('src',val.url).popover({
-										trigger: 'hover',
-										html: true,
-										container: $(document.body),
-										content: "<img src='" + val.url  + "' style='width:100px;height:100px;' />",
-										placement: 'top'
-									});
-
-									var group  =$(obj).parent();
-
-									group.find(':hidden').val(val.attachment), group.find('i').show().unbind('click').click(function(){
-										$(obj).attr('src',"{SNAILFISH_LOCAL}static/images/nopic100.jpg");
-										group.find(':hidden').val('');
-										group.find('i').hide();
-										$(obj).popover('destroy');
-									});
-								});
-							}
-							function addSpecList(options_name,spec_str, cur_cate_id)
-							{
-							
-								var len = $(".spec_item").length;
-								$("#add-spec").html("正在处理...").attr("disabled", "true").toggleClass("btn-primary");
-								var url = "<?php echo U('goods/mult_tpl',array('tpl'=>'spec'));?>";
-								$.ajax({
-									"url": url,
-									type:'post',
-									data:{options_name:options_name,spec_str:spec_str,cur_cate_id:cur_cate_id},
-									success:function(data){
-										$("#add-spec").html('<i class="fa fa-plus"></i> 新建规格').removeAttr("disabled").toggleClass("btn-primary"); ;
-										$('#specs').append(data);
-										var len = $(".add-specitem").length -1;
-										$(".add-specitem:eq(" +len+ ")").focus();
-										refreshOptions();
-									}
-								});
-							}
-							
-							function addSpec(){
-								var len = $(".spec_item").length;
-								$("#add-spec").html("正在处理...").attr("disabled", "true").toggleClass("btn-primary");
-								var url = "<?php echo U('goods/tpl',array('tpl'=>'spec'));?>";
-								$.ajax({
-									"url": url,
-									success:function(data){
-										$("#add-spec").html('<i class="fa fa-plus"></i> 新建规格').removeAttr("disabled").toggleClass("btn-primary"); ;
-										$('#specs').append(data);
-										var len = $(".add-specitem").length -1;
-										$(".add-specitem:eq(" +len+ ")").focus();
-										refreshOptions();
-									}
-								});
-							}
-							function removeSpec(specid){
-								if (confirm('确认要删除此规格?')){
-									$("#spec_" + specid).remove();
-									refreshOptions();
-								}
-							}
-							function addSpecItem(specid){
-									 $("#add-specitem-" + specid).html("正在处理...").attr("disabled", "true");
-								var url = "<?php echo U('goods/tpl',array('tpl'=>'specitem'));?>" + "&specid=" + specid;
-								$.ajax({
-									"url": url,
-									success:function(data){
-										$("#add-specitem-" + specid).html('<i class="fa fa-plus"></i> 添加规格项').removeAttr("disabled");
-										$('#spec_item_' + specid).append(data);
-										var len = $("#spec_" + specid + " .spec_item_title").length -1;
-										$("#spec_" + specid + " .spec_item_title:eq(" +len+ ")").focus();
-										refreshOptions
-																								if(type==3 && virtual==0){
-																											$(".choosetemp").show();
-																								 }
-									}
-								});
-							}
-							function removeSpecItem(obj){
-								$(obj).closest('.spec_item_item').remove();
-								refreshOptions();
-							}
-
-							function refreshOptions(){
-								// 刷新后重置
-								window.optionchanged = false;
-								$('#optiontip').hide();
-
-
-						 var html = '<table class="table table-bordered table-condensed"><thead><tr class="active">';
-							var specs = [];
-								 if($('.spec_item').length<=0){
-									 $("#options").html('');
-									 $("#discount").html('');
-									 $("#isdiscount_discounts").html('');
-									 $("#commission").html('');
-									
-									 return;
-								 }
-							$(".spec_item").each(function(i){
-								var _this = $(this);
-
-								var spec = {
-									id: _this.find(".spec_id").val(),
-									title: _this.find(".spec_title").val()
-								};
-
-								var items = [];
-								_this.find(".spec_item_item").each(function(){
-									var __this = $(this);
-									var item = {
-										id: __this.find(".spec_item_id").val(),
-										title: __this.find(".spec_item_title").val(),
-																								virtual: __this.find(".spec_item_virtual").val(),
-										show:__this.find(".spec_item_show").get(0).checked?"1":"0"
-									}
-									items.push(item);
-								});
-								spec.items = items;
-								specs.push(spec);
-							});
-							specs.sort(function(x,y){
-								if (x.items.length > y.items.length){
-									return 1;
-								}
-								if (x.items.length < y.items.length) {
-									return -1;
-								}
-							});
-
-							var len = specs.length;
-							var newlen = 1;
-							var h = new Array(len);
-							var rowspans = new Array(len);
-							for(var i=0;i<len;i++){
-								html+="<th>" + specs[i].title + "</th>";
-								var itemlen = specs[i].items.length;
-								if(itemlen<=0) { itemlen = 1 };
-								newlen*=itemlen;
-
-								h[i] = new Array(newlen);
-								for(var j=0;j<newlen;j++){
-									h[i][j] = new Array();
-								}
-								var l = specs[i].items.length;
-								rowspans[i] = 1;
-								for(j=i+1;j<len;j++){
-									rowspans[i]*= specs[j].items.length;
-								}
-							}
-							var is_take_vipcard = $('input[name="is_take_vipcard"]').prop('checked');
-							html += '<th><div class=""><div style="padding-bottom:10px;text-align:center;">库存<label style="color:red;font-size:16px;font-weight:900">*</label></div><div class="input-group"><input type="text" class="form-control  input-sm option_stock_all" VALUE=""/><span class="input-group-addon"><a href="javascript:;" class="fa fa-angle-double-down" title="批量设置" onclick="setCol(\'option_stock\');"></a></span></div></div></th>';
-							
-
-							
-							html += '<th class="type-4"><div class=""><div style="padding-bottom:10px;text-align:center;">售价<label style="color:red;font-size:16px;font-weight:900">*</label></div><div class="input-group"><input type="text" class="form-control  input-sm option_marketprice_all"VALUE=""/><span class="input-group-addon"><a href="javascript:;" class="fa fa-angle-double-down" title="批量设置" onclick="setCol(\'option_marketprice\');"></a></span></div></div></th>';
-							html+='<th class="type-4"><div class=""><div style="padding-bottom:10px;text-align:center;">原价<label style="color:red;font-size:16px;font-weight:900">*</label></div><div class="input-group"><input type="text" class="form-control  input-sm option_productprice_all"VALUE=""/><span class="input-group-addon"><a href="javascript:;" class="fa fa-angle-double-down" title="批量设置" onclick="setCol(\'option_productprice\');"></a></span></div></div></th>';
-
-							<?php if( !empty($is_open_vipcard_buy) && $is_open_vipcard_buy == 1){ ?>
-									html += '<th class="type-4 cardprice_title"><div class=""><div style="padding-bottom:10px;text-align:center;">付费会员专享价</div><div class="input-group"><input type="text" class="form-control  input-sm option_cardprice_all"VALUE=""/><span class="input-group-addon"><a href="javascript:;" class="fa fa-angle-double-down" title="批量设置" onclick="setCol(\'option_cardprice\');"></a></span></div></div></th>';
-							<?php } ?>
-
-							html+='<th class="type-4"><div class=""><div style="padding-bottom:10px;text-align:center;">成本价</div><div class="input-group"><input type="text" class="form-control  input-sm option_costprice_all"VALUE=""/><span class="input-group-addon"><a href="javascript:;" class="fa fa-angle-double-down" title="批量设置" onclick="setCol(\'option_costprice\');"></a></span></div></div></th>';
-							html+='<th><div class=""><div style="padding-bottom:10px;text-align:center;">编码</div><div class="input-group"><input type="text" class="form-control  input-sm option_goodssn_all"VALUE=""/><span class="input-group-addon"><a href="javascript:;" class="fa fa-angle-double-down" title="批量设置" onclick="setCol(\'option_goodssn\');"></a></span></div></div></th>';
-							
-							html+='<th><div class=""><div style="padding-bottom:10px;text-align:center;">重量(克)</div><div class="input-group"><input type="text" class="form-control  input-sm option_weight_all"VALUE=""/><span class="input-group-addon"><a href="javascript:;" class="fa fa-angle-double-down" title="批量设置" onclick="setCol(\'option_weight\');"></a></span></div></div></th>';
-							html+='</tr></thead>';
-
-							for(var m=0;m<len;m++){
-								var k = 0,kid = 0,n=0;
-								for(var j=0;j<newlen;j++){
-									var rowspan = rowspans[m];
-									if( j % rowspan==0){
-										h[m][j]={title: specs[m].items[kid].title, virtual: specs[m].items[kid].virtual,html: "<td class='full' rowspan='" +rowspan + "'>"+ specs[m].items[kid].title+"</td>\r\n",id: specs[m].items[kid].id};
-									}
-									else{
-									
-											h[m][j]={title:specs[m].items[kid].title,virtual: specs[m].items[kid].virtual, html: "",id: specs[m].items[kid].id};
-									}	
-									n++;
-									if(n==rowspan){
-									kid++; if(kid>specs[m].items.length-1) { kid=0; }
-									n=0;
-									}
-								}
-							}
-
-							var hh = "";
-							for(var i=0;i<newlen;i++){
-								hh+="<tr>";
-								var ids = [];
-								var titles = [];
-								var virtuals = [];
-								/*for(var j=0;j<len;j++){
-									hh+=h[j][i].html;
-									ids.push( h[j][i].id);
-									titles.push( h[j][i].title);
-												   virtuals.push( h[j][i].virtual);
-								}*/
-								for(var j=len-1;j >= 0;j--){
-									hh+=h[j][i].html;
-									ids.push( h[j][i].id);
-									titles.push( h[j][i].title);
-									virtuals.push( h[j][i].virtual);
-								}
-								ids =ids.join('_');
-								titles= titles.join('+');
-
-								var val ={ id : "",title:titles, stock : "",presell : "",costprice : "",productprice : "",<?php if( !empty($is_open_vipcard_buy) && $is_open_vipcard_buy == 1 ){ ?>cardprice:"",<?php } ?>marketprice : "",weight:"",productsn:"",goodssn:"",virtual:virtuals };
-
-								if( $(".option_id_" + ids).length>0){
-									val ={
-										id : $(".option_id_" + ids+":eq(0)").val(),
-										title: titles,
-										stock : $(".option_stock_" + ids+":eq(0)").val(),
-										presell : $(".option_presell_" + ids+":eq(0)").val(),
-										costprice : $(".option_costprice_" + ids+":eq(0)").val(),
-										<?php if( !empty($is_open_vipcard_buy) && $is_open_vipcard_buy == 1){ ?>
-										cardprice : $(".option_cardprice_" + ids+":eq(0)").val(),
-										cardprice_hi : $(".option_cardprice_hi_" + ids+":eq(0)").val(),
-										<?php } ?>
-										productprice : $(".option_productprice_" + ids+":eq(0)").val(),
-										marketprice : $(".option_marketprice_" + ids +":eq(0)").val(),
-															goodssn : $(".option_goodssn_" + ids +":eq(0)").val(),
-															productsn : $(".option_productsn_" + ids +":eq(0)").val(),
-										weight : $(".option_weight_" + ids+":eq(0)").val(),
-														  virtual : virtuals
-									}
-								}
-
-								hh += '<td>'
-							
-								hh += '<input name="option_stock_' + ids +'" type="text" class="form-control option_stock option_stock_' + ids +'" value="' +(val.stock=='undefined'?'':val.stock )+'"/></td>';
-							
-								hh += '<input name="option_id_' + ids+'" type="hidden" class="form-control option_id option_id_' + ids +'" value="' +(val.id=='undefined'?'':val.id )+'"/>';
-								hh += '<input name="option_ids[]" type="hidden" class="form-control option_ids option_ids_' + ids +'" value="' + ids +'"/>';
-								hh += '<input name="option_title_' + ids +'" type="hidden" class="form-control option_title option_title_' + ids +'" value="' +(val.title=='undefined'?'':val.title )+'"/></td>';
-								hh += '<input name="option_virtual_' + ids +'" type="hidden" class="form-control option_virtual option_virtual_' + ids +'" value="' +(val.virtual=='undefined'?'':val.virtual )+'"/></td>';
-								hh += '<input name="option_cardprice_hi_' + ids +'" type="hidden" class="form-control option_virtual option_cardprice_hi_' + ids +'" value="' +(val.cardprice=='undefined'?'':val.cardprice )+'"/></td>';
-								hh += '</td>';
-								//hh += '<td class="type-4"><input data-name="option_presell_' + ids+'" type="text" class="form-control option_presell option_presell_' + ids +'" value="' +(val.presell=='undefined'?'':val.presell )+'"/></td>';
-								hh += '<td class="type-4"><input name="option_marketprice_' + ids+'" type="text" class="form-control option_marketprice option_marketprice_' + ids +'" value="' +(val.marketprice=='undefined'?'':val.marketprice )+'"/></td>';
-								hh += '<td class="type-4"><input name="option_productprice_' + ids+'" type="text" class="form-control option_productprice option_productprice_' + ids +'" " value="' +(val.productprice=='undefined'?'':val.productprice )+'"/></td>';
-								<?php if( !empty($is_open_vipcard_buy) && $is_open_vipcard_buy == 1){ ?>
-										if(typeof(val.cardprice) == "undefined" || val.cardprice == 'undefined' || val.cardprice == null){
-											val.cardprice = "";
-										}
-										if(val.cardprice == ""){
-											if(typeof(val.cardprice_hi) == "undefined" || val.cardprice_hi == 'undefined' || val.cardprice_hi == null){
-												val.cardprice = "";
-											}else{
-												val.cardprice = val.cardprice_hi;
-											}
-										}
-										console.log(val.cardprice+'=='+val.cardprice_hi);
-										hh += '<td class="type-4 cardprice_td"><input name="option_cardprice_' + ids + '" type="text" class="form-control option_cardprice option_cardprice_' + ids + '" " value="' + (val.cardprice=='undefined' ? '' : val.cardprice ) + '"/></td>';
-								<?php } ?>
-								hh += '<td class="type-4"><input name="option_costprice_' +ids+'" type="text" class="form-control option_costprice option_costprice_' + ids +'" " value="' +(val.costprice=='undefined'?'':val.costprice )+'"/></td>';
-								hh += '<td><input name="option_goodssn_' +ids+'" type="text" class="form-control option_goodssn option_goodssn_' + ids +'" " value="' +(val.goodssn=='undefined'?'':val.goodssn )+'"/></td>';
-								//hh += '<td><input data-name="option_productsn_' +ids+'" type="text" class="form-control option_productsn option_productsn_' + ids +'" " value="' +(val.productsn=='undefined'?'':val.productsn )+'"/></td>';
-								hh += '<td><input name="option_weight_' + ids +'" type="text" class="form-control option_weight option_weight_' + ids +'" " value="' +(val.weight=='undefined'?'':val.weight )+'"/></td>';
-								hh += "</tr>";
-							}
-							html+=hh;
-							html+="</table>";
-							$("#options").html(html);
-								refreshDiscount();
-								refreshIsDiscount();
-
-								if(window.type=='4'){
-									$('.type-4').hide();
-								}else{
-									$('.type-4').show();
-								}
-
-								if(is_take_vipcard) {
-									$('.cardprice_td').show();
-									$('.cardprice_title').show();
-								}else{
-									$('.cardprice_td').hide();
-									$('.cardprice_title').hide();
-								}
-						}
-
-							function refreshDiscount() {
-								var html = '<table class="table table-bordered table-condensed"><thead><tr class="active">';
-								var specs = [];
-
-								$(".spec_item").each(function (i) {
-									var _this = $(this);
-
-									var spec = {
-										id: _this.find(".spec_id").val(),
-										title: _this.find(".spec_title").val()
-									};
-
-									var items = [];
-									_this.find(".spec_item_item").each(function () {
-										var __this = $(this);
-										var item = {
-											id: __this.find(".spec_item_id").val(),
-											title: __this.find(".spec_item_title").val(),
-											virtual: __this.find(".spec_item_virtual").val(),
-											show: __this.find(".spec_item_show").get(0).checked ? "1" : "0"
-										}
-										items.push(item);
-									});
-									spec.items = items;
-									specs.push(spec);
-								});
-								specs.sort(function (x, y) {
-									if (x.items.length > y.items.length) {
-										return 1;
-									}
-									if (x.items.length < y.items.length) {
-										return -1;
-									}
-								});
-
-								var len = specs.length;
-								var newlen = 1;
-								var h = new Array(len);
-								var rowspans = new Array(len);
-								for (var i = 0; i < len; i++) {
-									html += "<th>" + specs[i].title + "</th>";
-									var itemlen = specs[i].items.length;
-									if (itemlen <= 0) {
-										itemlen = 1
-									}
-									;
-									newlen *= itemlen;
-
-									h[i] = new Array(newlen);
-									for (var j = 0; j < newlen; j++) {
-										h[i][j] = new Array();
-									}
-									var l = specs[i].items.length;
-									rowspans[i] = 1;
-									for (j = i + 1; j < len; j++) {
-										rowspans[i] *= specs[j].items.length;
-									}
-								}
-
-								<?php foreach( $levels as $level ){ ?>
-								<?php if( $level['key']=='default'){ ?>
-								html += '<th><div class=""><div style="padding-bottom:10px;text-align:center;"><?php echo ($level['levelname']); ?></div><div class="input-group"><input type="text" class="form-control  input-sm discount_<?php echo ($level["key"]); ?>_all"VALUE=""/><span class="input-group-addon"><a href="javascript:;" class="fa fa-angle-double-down" title="批量设置" onclick="setCol(\'discount_<?php echo ($level["key"]); ?>\');"></a></span></div></div></th>';
-								<?php  }else{ ?>
-								html += '<th><div class=""><div style="padding-bottom:10px;text-align:center;"><?php echo ($level['levelname']); ?></div><div class="input-group"><input type="text" class="form-control  input-sm discount_level<?php echo ($level['id']); ?>_all"VALUE=""/><span class="input-group-addon"><a href="javascript:;" class="fa fa-angle-double-down" title="批量设置" onclick="setCol(\'discount_level<?php echo ($level['id']); ?>\');"></a></span></div></div></th>';
-								<?php } ?>
-								<?php } ?>
-								html += '</tr></thead>';
-
-								for (var m = 0; m < len; m++) {
-									var k = 0, kid = 0, n = 0;
-									for (var j = 0; j < newlen; j++) {
-										var rowspan = rowspans[m];
-										if (j % rowspan == 0) {
-											h[m][j] = {
-												title: specs[m].items[kid].title,
-												virtual: specs[m].items[kid].virtual,
-												html: "<td class='full' rowspan='" + rowspan + "'>" + specs[m].items[kid].title + "</td>\r\n",
-												id: specs[m].items[kid].id
-											};
-										}
-										else {
-											h[m][j] = {
-												title: specs[m].items[kid].title,
-												virtual: specs[m].items[kid].virtual,
-												html: "",
-												id: specs[m].items[kid].id
-											};
-										}
-										n++;
-										if (n == rowspan) {
-											kid++;
-											if (kid > specs[m].items.length - 1) {
-												kid = 0;
-											}
-											n = 0;
-										}
-									}
-								}
-
-								var hh = "";
-								for (var i = 0; i < newlen; i++) {
-									hh += "<tr>";
-									var ids = [];
-									var titles = [];
-									var virtuals = [];
-									for (var j = 0; j < len; j++) {
-										hh += h[j][i].html;
-										ids.push(h[j][i].id);
-										titles.push(h[j][i].title);
-										virtuals.push(h[j][i].virtual);
-									}
-									ids = ids.join('_');
-									titles = titles.join('+');
-									var val = {
-										id: "",
-										title: titles,
-										<?php foreach( $levels as $level ){ ?>
-										<?php if( $level['key']=='default'){ ?>
-										level<?php echo ($level['key']); ?>: '',
-										<?php  }else{ ?>
-										level<?php echo ($level['id']); ?>: '',
-										<?php } ?>
-										<?php } ?>
-										costprice: "",
-										presell: "",
-										productprice: "",
-										<?php if( !empty($is_open_vipcard_buy) && $is_open_vipcard_buy == 1){ ?>
-										cardprice: "",
-										<?php } ?>
-										marketprice: "",
-										weight: "",
-										productsn: "",
-										goodssn: "",
-										virtual: virtuals
-									};
-
-									var val ={ id : "",title:titles,<?php foreach( $levels as $level ){ if( $level['key']=='default'){ ?> level<?php echo ($level['key']); ?>: '',<?php  }else{ ?> level<?php echo ($level['id']); ?>: '',<?php } } ?>costprice : "",productprice : "",marketprice : "",weight:"",productsn:"",goodssn:"",virtual:virtuals };
-									if ($(".discount_id_" + ids).length > 0) {
-										val = {
-											id: $(".discount_id_" + ids + ":eq(0)").val(),
-											title: titles,
-											<?php foreach( $levels as $level ){ ?>
-										<?php if( $level['key']=='default'){ ?>
-											level<?php echo ($level['key']); ?>: $(".discount_<?php echo ($level['key']); ?>_" + ids + ":eq(0)").val(),
-										<?php  }else{ ?>
-											level<?php echo ($level['id']); ?>: $(".discount_level<?php echo ($level['id']); ?>_" + ids + ":eq(0)").val(),
-										<?php } ?>
-											<?php } ?>
-											costprice: $(".discount_costprice_" + ids + ":eq(0)").val(),
-											presell: $(".discount_presell_" + ids + ":eq(0)").val(),
-											productprice: $(".discount_productprice_" + ids + ":eq(0)").val(),
-											<?php if( !empty($is_open_vipcard_buy) && $is_open_vipcard_buy == 1){ ?>
-											cardprice: $(".discount_cardprice_" + ids + ":eq(0)").val(),
-											<?php } ?>
-											marketprice: $(".discount_marketprice_" + ids + ":eq(0)").val(),
-											presell: $(".discount_presell_" + ids + ":eq(0)").val(),
-											goodssn: $(".discount_goodssn_" + ids + ":eq(0)").val(),
-											productsn: $(".discount_productsn_" + ids + ":eq(0)").val(),
-											weight: $(".discount_weight_" + ids + ":eq(0)").val(),
-											virtual: virtuals
-										}
-									}
-
-									<?php foreach( $levels as $level ){ ?>
-									hh += '<td>'
-									<?php if( $level['key']=='default'){ ?>
-									hh += '<input data-name="discount_level_<?php echo ($level['key']); ?>_' + ids +'"type="text" class="form-control discount_<?php echo ($level['key']); ?> discount_<?php echo ($level['key']); ?>_' + ids +'" value="' +(val.level<?php echo ($level['key']); ?>=='undefined'?'':val.level<?php echo ($level['key']); ?> )+'"/>';
-									<?php  }else{ ?>
-									hh += '<input data-name="discount_level_<?php echo ($level['id']); ?>_' + ids +'"type="text" class="form-control discount_level<?php echo ($level['id']); ?> discount_level<?php echo ($level['id']); ?>_' + ids +'" value="' +(val.level<?php echo ($level['id']); ?>=='undefined'?'':val.level<?php echo ($level['id']); ?> )+'"/>';
-									<?php } ?>
-									hh += '</td>';
-									<?php } ?>
-									hh += '<input data-name="discount_id_' + ids+'"type="hidden" class="form-control discount_id discount_id_' + ids +'" value="' +(val.id=='undefined'?'':val.id )+'"/>';
-									hh += '<input data-name="discount_ids"type="hidden" class="form-control discount_ids discount_ids_' + ids +'" value="' + ids +'"/>';
-									hh += '<input data-name="discount_title_' + ids +'"type="hidden" class="form-control discount_title discount_title_' + ids +'" value="' +(val.title=='undefined'?'':val.title )+'"/></td>';
-									hh += '<input data-name="discount_virtual_' + ids +'"type="hidden" class="form-control discount_virtual discount_virtual_' + ids +'" value="' +(val.virtual=='undefined'?'':val.virtual )+'"/></td>';
-									hh += "</tr>";
-								}
-								html += hh;
-								html += "</table>";
-								$("#discount").html(html);
-							}
-
-							function refreshIsDiscount() {
-								var html = '<table class="table table-bordered table-condensed"><thead><tr class="active">';
-								var specs = [];
-
-								$(".spec_item").each(function (i) {
-									var _this = $(this);
-
-									var spec = {
-										id: _this.find(".spec_id").val(),
-										title: _this.find(".spec_title").val()
-									};
-
-									var items = [];
-									_this.find(".spec_item_item").each(function () {
-										var __this = $(this);
-										var item = {
-											id: __this.find(".spec_item_id").val(),
-											title: __this.find(".spec_item_title").val(),
-											virtual: __this.find(".spec_item_virtual").val(),
-											show: __this.find(".spec_item_show").get(0).checked ? "1" : "0"
-										}
-										items.push(item);
-									});
-									spec.items = items;
-									specs.push(spec);
-								});
-								specs.sort(function (x, y) {
-									if (x.items.length > y.items.length) {
-										return 1;
-									}
-									if (x.items.length < y.items.length) {
-										return -1;
-									}
-								});
-
-								var len = specs.length;
-								var newlen = 1;
-								var h = new Array(len);
-								var rowspans = new Array(len);
-								for (var i = 0; i < len; i++) {
-									html += "<th>" + specs[i].title + "</th>";
-									var itemlen = specs[i].items.length;
-									if (itemlen <= 0) {
-										itemlen = 1
-									}
-									;
-									newlen *= itemlen;
-
-									h[i] = new Array(newlen);
-									for (var j = 0; j < newlen; j++) {
-										h[i][j] = new Array();
-									}
-									var l = specs[i].items.length;
-									rowspans[i] = 1;
-									for (j = i + 1; j < len; j++) {
-										rowspans[i] *= specs[j].items.length;
-									}
-								}
-
-								<?php foreach( $levels as $level ){ ?>
-								<?php if( $level['key']=='default'){ ?>
-								html += '<th><div class=""><div style="padding-bottom:10px;text-align:center;"><?php echo ($level['levelname']); ?></div><div class="input-group"><input type="text" class="form-control  input-sm isdiscount_discounts_<?php echo ($level['key']); ?>_all"VALUE=""/><span class="input-group-addon"><a href="javascript:;" class="fa fa-angle-double-down" title="批量设置" onclick="setCol(\'isdiscount_discounts_<?php echo ($level['key']); ?>\');"></a></span></div></div></th>';
-								<?php  }else{ ?>
-								html += '<th><div class=""><div style="padding-bottom:10px;text-align:center;"><?php echo ($level['levelname']); ?></div><div class="input-group"><input type="text" class="form-control  input-sm isdiscount_discounts_level<?php echo ($level['id']); ?>_all"VALUE=""/><span class="input-group-addon"><a href="javascript:;" class="fa fa-angle-double-down" title="批量设置" onclick="setCol(\'isdiscount_discounts_level<?php echo ($level['id']); ?>\');"></a></span></div></div></th>';
-								<?php } ?>
-								<?php } ?>
-								html += '</tr></thead>';
-
-								for (var m = 0; m < len; m++) {
-									var k = 0, kid = 0, n = 0;
-									for (var j = 0; j < newlen; j++) {
-										var rowspan = rowspans[m];
-										if (j % rowspan == 0) {
-											h[m][j] = {
-												title: specs[m].items[kid].title,
-												virtual: specs[m].items[kid].virtual,
-												html: "<td class='full' rowspan='" + rowspan + "'>" + specs[m].items[kid].title + "</td>\r\n",
-												id: specs[m].items[kid].id
-											};
-										}
-										else {
-											h[m][j] = {
-												title: specs[m].items[kid].title,
-												virtual: specs[m].items[kid].virtual,
-												html: "",
-												id: specs[m].items[kid].id
-											};
-										}
-										n++;
-										if (n == rowspan) {
-											kid++;
-											if (kid > specs[m].items.length - 1) {
-												kid = 0;
-											}
-											n = 0;
-										}
-									}
-								}
-
-								var hh = "";
-								for (var i = 0; i < newlen; i++) {
-									hh += "<tr>";
-									var ids = [];
-									var titles = [];
-									var virtuals = [];
-									for (var j = 0; j < len; j++) {
-										hh += h[j][i].html;
-										ids.push(h[j][i].id);
-										titles.push(h[j][i].title);
-										virtuals.push(h[j][i].virtual);
-									}
-									ids = ids.join('_');
-									titles = titles.join('+');
-									var val = {
-										id: "",
-										title: titles,
-									<?php foreach( $levels as $level ){ ?>
-									<?php if( $level['key']=='default'){ ?>
-									level<?php echo ($level['key']); ?>: '',
-									<?php  }else{ ?>
-									level<?php echo ($level['if']); ?>: '',
-									<?php } ?>
-									<?php } ?>
-									costprice: "",
-											presell: "",
-											productprice: "",
-											marketprice: "",
-											weight: "",
-											productsn: "",
-											goodssn: "",
-											virtual: virtuals
-								};
-
-									var val ={ id : "",title:titles,<?php foreach( $levels as $level ){ if( $level['key']=='default'){ ?> level<?php echo ($level['key']); ?>: '',<?php  }else{ ?> level<?php echo ($level['id']); ?>: '',<?php } } ?>costprice : "",productprice : "",marketprice : "",weight:"",productsn:"",goodssn:"",virtual:virtuals };
-									if ($(".isdiscount_discounts_id_" + ids).length > 0) {
-										val = {
-											id: $(".isdiscount_discounts_id_" + ids + ":eq(0)").val(),
-											title: titles,
-										<?php foreach( $levels as $level ){ ?>
-										<?php if( $level['key']=='default'){ ?>
-										level<?php echo ($level['key']); ?>: $(".isdiscount_discounts_<?php echo ($level['key']); ?>_" + ids + ":eq(0)").val(),
-										<?php  }else{ ?>
-										level<?php echo ($level['id']); ?>: $(".isdiscount_discounts_level<?php echo ($level['id']); ?>_" + ids + ":eq(0)").val(),
-										<?php } ?>
-										<?php } ?>
-										costprice: $(".isdiscount_discounts_costprice_" + ids + ":eq(0)").val(),
-												productprice: $(".isdiscount_discounts_productprice_" + ids + ":eq(0)").val(),
-												marketprice: $(".isdiscount_discounts_marketprice_" + ids + ":eq(0)").val(),
-												presell: $(".isdiscount_discounts_presell_" + ids + ":eq(0)").val(),
-												goodssn: $(".isdiscount_discounts_goodssn_" + ids + ":eq(0)").val(),
-												productsn: $(".isdiscount_discounts_productsn_" + ids + ":eq(0)").val(),
-												weight: $(".isdiscount_discounts_weight_" + ids + ":eq(0)").val(),
-												virtual: virtuals
-									}
-									}
-
-									<?php foreach( $levels as $level ){ ?>
-									hh += '<td>'
-									<?php if( $level['key']=='default'){ ?>
-									hh += '<input data-name="isdiscount_discounts_level_<?php echo ($level['key']); ?>_' + ids +'"type="text" class="form-control isdiscount_discounts_<?php echo ($level['key']); ?> isdiscount_discounts_<?php echo ($level['key']); ?>_' + ids +'" value="' +(val.level<?php echo ($level['key']); ?>=='undefined'?'':val.level<?php echo ($level['key']); ?> )+'"/>';
-									<?php  }else{ ?>
-									hh += '<input data-name="isdiscount_discounts_level_<?php echo ($level['id']); ?>_' + ids +'"type="text" class="form-control isdiscount_discounts_level<?php echo ($level['id']); ?> isdiscount_discounts_level<?php echo ($level['id']); ?>_' + ids +'" value="' +(val.level<?php echo ($level['id']); ?>=='undefined'?'':val.level<?php echo ($level['id']); ?> )+'"/>';
-									<?php } ?>
-									hh += '</td>';
-									<?php } ?>
-									hh += '<input data-name="isdiscount_discounts_id_' + ids+'"type="hidden" class="form-control isdiscount_discounts_id isdiscount_discounts_id_' + ids +'" value="' +(val.id=='undefined'?'':val.id )+'"/>';
-									hh += '<input data-name="isdiscount_discounts_ids"type="hidden" class="form-control isdiscount_discounts_ids isdiscount_discounts_ids_' + ids +'" value="' + ids +'"/>';
-									hh += '<input data-name="isdiscount_discounts_title_' + ids +'"type="hidden" class="form-control isdiscount_discounts_title isdiscount_discounts_title_' + ids +'" value="' +(val.title=='undefined'?'':val.title )+'"/></td>';
-									hh += '<input data-name="isdiscount_discounts_virtual_' + ids +'"type="hidden" class="form-control isdiscount_discounts_virtual isdiscount_discounts_virtual_' + ids +'" value="' +(val.virtual=='undefined'?'':val.virtual )+'"/></td>';
-									hh += "</tr>";
-								}
-								html += hh;
-								html += "</table>";
-								$("#isdiscount_discounts").html(html);
-							}
-
-							function refreshCommission() {
-								var commission_level = <?php echo json_encode($commission_level);?>;
-								var html = '<table class="table table-bordered table-condensed"><thead><tr class="active">';
-								var specs = [];
-
-								$(".spec_item").each(function (i) {
-									var _this = $(this);
-
-									var spec = {
-										id: _this.find(".spec_id").val(),
-										title: _this.find(".spec_title").val()
-									};
-
-									var items = [];
-									_this.find(".spec_item_item").each(function () {
-										var __this = $(this);
-										var item = {
-											id: __this.find(".spec_item_id").val(),
-											title: __this.find(".spec_item_title").val(),
-											virtual: __this.find(".spec_item_virtual").val(),
-											show: __this.find(".spec_item_show").get(0).checked ? "1" : "0"
-										}
-										items.push(item);
-									});
-									spec.items = items;
-									specs.push(spec);
-								});
-								specs.sort(function (x, y) {
-									if (x.items.length > y.items.length) {
-										return 1;
-									}
-									if (x.items.length < y.items.length) {
-										return -1;
-									}
-								});
-
-								var len = specs.length;
-								var newlen = 1;
-								var h = new Array(len);
-								var rowspans = new Array(len);
-								for (var i = 0; i < len; i++) {
-									html += "<th>" + specs[i].title + "</th>";
-									var itemlen = specs[i].items.length;
-									if (itemlen <= 0) {
-										itemlen = 1
-									}
-									;
-									newlen *= itemlen;
-
-									h[i] = new Array(newlen);
-									for (var j = 0; j < newlen; j++) {
-										h[i][j] = new Array();
-									}
-									var l = specs[i].items.length;
-									rowspans[i] = 1;
-									for (j = i + 1; j < len; j++) {
-										rowspans[i] *= specs[j].items.length;
-									}
-								}
-
-								$.each(commission_level,function (key,level) {
-									html += '<th><div class=""><div style="padding-bottom:10px;text-align:center;">'+level.levelname+'</div></div></th>';
-								})
-								html += '</tr></thead>';
-
-								for (var m = 0; m < len; m++) {
-									var k = 0, kid = 0, n = 0;
-									for (var j = 0; j < newlen; j++) {
-										var rowspan = rowspans[m];
-										if (j % rowspan == 0) {
-											h[m][j] = {
-												title: specs[m].items[kid].title,
-												virtual: specs[m].items[kid].virtual,
-												html: "<td class='full' rowspan='" + rowspan + "'>" + specs[m].items[kid].title + "</td>\r\n",
-												id: specs[m].items[kid].id
-											};
-										}
-										else {
-											h[m][j] = {
-												title: specs[m].items[kid].title,
-												virtual: specs[m].items[kid].virtual,
-												html: "",
-												id: specs[m].items[kid].id
-											};
-										}
-										n++;
-										if (n == rowspan) {
-											kid++;
-											if (kid > specs[m].items.length - 1) {
-												kid = 0;
-											}
-											n = 0;
-										}
-									}
-								}
-								var hh = "";
-								for (var i = 0; i < newlen; i++) {
-									hh += "<tr>";
-									var ids = [];
-									var titles = [];
-									var virtuals = [];
-									for (var j = 0; j < len; j++) {
-										hh += h[j][i].html;
-										ids.push(h[j][i].id);
-										titles.push(h[j][i].title);
-										virtuals.push(h[j][i].virtual);
-									}
-									ids = ids.join('_');
-									titles = titles.join('+');
-
-									var val = {
-										id: "",
-										title: titles,
-									<?php foreach( $commission_level as $level ){ ?>
-									<?php if( $level["key"] == "default"){ ?>
-									level<?php echo ($level['key']); ?>: '',
-									<?php  }else{ ?>
-									level<?php echo ($level['id']); ?>: '',
-									<?php } ?>
-									<?php } ?>
-									costprice: "",
-											presell: "",
-											productprice: "",
-											marketprice: "",
-											weight: "",
-											productsn: "",
-											goodssn: "",
-											virtual: virtuals
-								};
-
-									var val ={ id : "",title:titles,<?php foreach( $commission_level as $level ){ ?> <?php if( $level["key"] == "default"){ ?>level<?php echo ($level['key']); ?>: '',<?php  }else{ ?>level<?php echo ($level['id']); ?>: '',<?php } } ?>costprice : "",productprice : "",marketprice : "",weight:"",productsn:"",goodssn:"",virtual:virtuals };
-									<?php foreach( $commission_level as $level ){ ?>
-									<?php if( $level["key"] == "default"){ ?>
-									var level<?php echo ($level['key']); ?> = new Array(3);
-									$(".commission_<?php echo ($level['key']); ?>_"+ ids).each(function(index,val){
-										level<?php echo ($level['key']); ?>[index] = val;
-									})
-									<?php  }else{ ?>
-									var level<?php echo ($level['id']); ?> = new Array(3);
-									$(".commission_level<?php echo ($level['id']); ?>_"+ ids).each(function(index,val){
-										level<?php echo ($level['id']); ?>[index] = val;
-									})
-									<?php } ?>
-									<?php } ?>
-									if ($(".commission_id_" + ids).length > 0) {
-										val = {
-											id: $(".commission_id_" + ids + ":eq(0)").val(),
-											title: titles,
-											costprice: $(".commission_costprice_" + ids + ":eq(0)").val(),
-											presell: $(".commission_presell_" + ids + ":eq(0)").val(),
-												productprice: $(".commission_productprice_" + ids + ":eq(0)").val(),
-												marketprice: $(".commission_marketprice_" + ids + ":eq(0)").val(),
-												goodssn: $(".commission_goodssn_" + ids + ":eq(0)").val(),
-												productsn: $(".commission_productsn_" + ids + ":eq(0)").val(),
-												weight: $(".commission_weight_" + ids + ":eq(0)").val(),
-												virtual: virtuals
-										}
-									}
-									<?php foreach( $commission_level as $level ){ ?>
-									hh += '<td>';
-									var level_temp = <?php if( $level['key'] == 'default'){ ?>level<?php echo ($level['key']); }else{ ?>level<?php echo ($level['id']); } ?>;
-									if (len >= i && typeof (level_temp) != 'undefined')
-									{
-										if('<?php echo ($level['key']); ?>' == 'default')
-										{
-											for (var li = 0; li<<?php echo ($shopset_level); ?>;li++)
-											{
-												if (typeof (level_temp[li])!= "undefined")
-												{
-													hh += '<input data-name="commission_level_<?php echo ($level['key']); ?>_' +ids+ '"  type="text" class="form-control commission_<?php echo ($level['key']); ?> commission_<?php echo ($level['key']); ?>_' +ids+ '" value="' +$(level_temp[li]).val()+ '" style="display:inline;width: '+96/parseInt(<?php echo ($shopset_level); ?>)+'%;"/> ';
-												}
-												else
-												{
-													hh += '<input data-name="commission_level_<?php echo ($level['key']); ?>_' +ids+ '"  type="text" class="form-control commission_<?php echo ($level['key']); ?> commission_<?php echo ($level['key']); ?>_' +ids+ '" value="" style="display:inline;width: '+96/parseInt(<?php echo ($shopset_level); ?>)+'%;"/> ';
-												}
-											}
-										}
-										else
-										{
-											for (var li = 0; li<<?php echo ($shopset_level); ?>;li++)
-											{
-												if (typeof (level_temp[li])!= "undefined")
-												{
-													hh += '<input data-name="commission_level_<?php echo ($level['id']); ?>_' +ids+ '"  type="text" class="form-control commission_level<?php echo ($level['id']); ?> commission_level<?php echo ($level['id']); ?>_' +ids+ '" value="' +$(level_temp[li]).val()+ '" style="display:inline;width: '+96/parseInt(<?php echo ($shopset_level); ?>)+'%;"/> ';
-												}
-												else
-												{
-													hh += '<input data-name="commission_level_<?php echo ($level['id']); ?>_' +ids+ '"  type="text" class="form-control commission_level<?php echo ($level['id']); ?> commission_level<?php echo ($level['id']); ?>_' +ids+ '" value="" style="display:inline;width: '+96/parseInt(<?php echo ($shopset_level); ?>)+'%;"/> ';
-												}
-											}
-										}
-									}
-									else
-									{
-										if('<?php echo ($level['key']); ?>' == 'default')
-										{
-											for (var li = 0; li<<?php echo ($shopset_level); ?>;li++)
-											{
-												if (typeof (level_temp[li])!= "undefined")
-												{
-													hh += '<input data-name="commission_level_<?php echo ($level['key']); ?>_' +ids+ '"  type="text" class="form-control commission_<?php echo ($level['key']); ?> commission_<?php echo ($level['key']); ?>_' +ids+ '" value="' +$(level_temp[li]).val()+ '" style="display:inline;width: '+96/parseInt(<?php echo ($shopset_level); ?>)+'%;"/> ';
-												}
-												else
-												{
-													hh += '<input data-name="commission_level_<?php echo ($level['key']); ?>_' +ids+ '"  type="text" class="form-control commission_<?php echo ($level['key']); ?> commission_<?php echo ($level['key']); ?>_' +ids+ '" value="" style="display:inline;width: '+96/parseInt(<?php echo ($shopset_level); ?>)+'%;"/> ';
-												}
-											}
-										}
-										else
-										{
-											for (var li = 0; li<<?php echo ($shopset_level); ?>;li++)
-											{
-												if (typeof (level_temp[li])!= "undefined")
-												{
-													hh += '<input data-name="commission_level_<?php echo ($level['id']); ?>_' +ids+ '"  type="text" class="form-control commission_level<?php echo ($level['id']); ?> commission_level<?php echo ($level['id']); ?>_' +ids+ '" value="' +$(level_temp[li]).val()+ '" style="display:inline;width: '+96/parseInt(<?php echo ($shopset_level); ?>)+'%;"/> ';
-												}
-												else
-												{
-													hh += '<input data-name="commission_level_<?php echo ($level['id']); ?>_' +ids+ '"  type="text" class="form-control commission_level<?php echo ($level['id']); ?> commission_level<?php echo ($level['id']); ?>_' +ids+ '" value="" style="display:inline;width: '+96/parseInt(<?php echo ($shopset_level); ?>)+'%;"/> ';
-												}
-											}
-										}
-									}
-									hh += '</td>';
-									<?php } ?>
-									hh += '<input data-name="commission_id_' + ids+'"type="hidden" class="form-control commission_id commission_id_' + ids +'" value="' +(val.id=='undefined'?'':val.id )+'"/>';
-									hh += '<input data-name="commission_ids"type="hidden" class="form-control commission_ids commission_ids_' + ids +'" value="' + ids +'"/>';
-									hh += '<input data-name="commission_title_' + ids +'"type="hidden" class="form-control commission_title commission_title_' + ids +'" value="' +(val.title=='undefined'?'':val.title )+'"/></td>';
-									hh += '<input data-name="commission_virtual_' + ids +'"type="hidden" class="form-control commission_virtual commission_virtual_' + ids +'" value="' +(val.virtual=='undefined'?'':val.virtual )+'"/></td>';
-									hh += "</tr>";
-								}
-								html += hh;
-								html += "</table>";
-								$("#commission").html(html);
-							}
-
-						function setCol(cls){
-							$("."+cls).val( $("."+cls+"_all").val());
-						}
-						function showItem(obj){
-							var show = $(obj).get(0).checked?"1":"0";
-							$(obj).parents('.spec_item_item').find('.spec_item_show:eq(0)').val(show);
-						}
-						function nofind(){
-							var img=event.srcElement;
-							img.src="./resource/image/module-nopic-small.jpg";
-							img.onerror=null;
-						}
-
-							function choosetemp(id){
-							$('#modal-module-chooestemp').modal();
-							$('#modal-module-chooestemp').data("temp",id);
-						}
-						function addtemp(){
-							var id = $('#modal-module-chooestemp').data("temp");
-							var temp_id = $('#modal-module-chooestemp').find("select").val();
-							var temp_name = $('#modal-module-chooestemp option[value='+temp_id+']').text();
-							//alert(temp_id+":"+temp_name);
-							$("#temp_name_"+id).val(temp_name);
-							$("#temp_id_"+id).val(temp_id);
-							$('#modal-module-chooestemp .close').click();
-							refreshOptions()
-						}
-
-						function setinterval(type)
-						{
-							var intervalfloor =$('#intervalfloor').val();
-							if(intervalfloor=="")
-							{
-								intervalfloor=0;
-							}
-							intervalfloor = parseInt(intervalfloor);
-
-							if(type=='plus')
-							{
-								if(intervalfloor==3)
-								{
-									tip.msgbox.err("最多添加三个区间价格");
-									return;
-								}
-								intervalfloor=intervalfloor+1;
-							}
-							else if(type=='minus')
-							{
-								if(intervalfloor==0)
-								{
-									tip.msgbox.err("请最少添加一个区间价格");
-									return;
-								}
-								intervalfloor=intervalfloor-1;
-							}else
-							{
-								return;
-							}
-
-							if(intervalfloor<1)
-							{
-
-								$('#interval1').hide();
-								$('#intervalnum1').val("");
-								$('#intervalprice1').val("");
-							}else
-							{
-								$('#interval1').show();
-							}
-
-							if(intervalfloor<2)
-							{
-
-								$('#interval2').hide();
-								$('#intervalnum2').val("");
-								$('#intervalprice2').val("");
-							}else
-							{
-								$('#interval2').show();
-							}
-
-							if(intervalfloor<3)
-							{
-
-								$('#interval3').hide();
-								$('#intervalnum3').val("");
-								$('#intervalprice3').val("");
-							}else
-							{
-								$('#interval3').show();
-							}
-
-
-							$('#intervalfloor').val(intervalfloor);
-
-						}
-
-
-						</script>
-						<script language="javascript">
-							$(function() {
-								
-								
-									
-								
-							})
-						</script>
-
-
-<script>
-	var heads_page = 1;
-
-	$("body").delegate("#batchheads_page .pagination a","click",function(){
-		heads_page = $(this).attr('page');
-		search_heads_do();
-	})
-	function search_heads()
-	{
-		heads_page = 1;
-		search_heads_do();
-	}
-	function search_heads_do()
-	{
-		var province_name = $('#sel-provance').val();
-		var city_name = $('#sel-city').val();
-		var area_name = $('#sel-area').val();
-		var country_name = $('#sel-street').val();
-		var keyword = $('#supply_id_input').val();
-
-		$.post("<?php echo U('communityhead/query_head');?>",{page:heads_page,'province_name':province_name,'city_name': city_name,'area_name':area_name,'country_name':country_name,'keyword':keyword},
-				function (ret) {
-					if (ret.status == 1) {
-						$('#batchheads_content').html(ret.html);
-						$('#batchheads_page').html(ret.page_html);
-						return
-					} else {
-						layer.msg('修改失败');
-					}
-				}, 'json');
-	}
-	//显示批量分类
-	$('#batchcatesbut').click(function () {
-		//  var index = layer.load(1);
-		var index = layer.open({
-			type: 1,
-			area: '500px',
-			title: '选取分类'
-			,content: $('#batchcates_html').html(),
-			yes: function(index, layero){
-				//do something
-				layer.close(index); //如果设定了yes回调,需进行手工关闭
-			}
-		});
-	})
-
-	$('#batch_head_group').click(function () {
-		//  var index = layer.load(1);
-		var index = layer.open({
-			type: 1,
-			area: '500px',
-			title: '选取团长分组'
-			,content: $('#batchcates_headgroup_html').html(),
-			yes: function(index, layero){
-				//do something
-				layer.close(index); //如果设定了yes回调,需进行手工关闭
-			}
-		});
-	})
-
-	$('#batch_head_group2').click(function () {
-		//  var index = layer.load(1);
-		var index = layer.open({
-			type: 1,
-			area: '500px',
-			title: '选取团长分组'
-			,content: $('#batchcates_headgroup_html').html(),
-			yes: function(index, layero){
-				//do something
-				layer.close(index); //如果设定了yes回调,需进行手工关闭
-			}
-		});
-	})
-
-
-	$('.check_heads_all').click(function(){
-		//head_id
-		if($(this).is(':checked')){
-			$('.head_id').prop('checked',true);
-		}else{
-			$('.head_id').prop('checked',false);
-		}
-	})
-	$(".radio_sale").click(function(){
-		var checkedvalue = $("input[name='is_all_sale']:checked").val();
-		if(checkedvalue == 1){
-
-		}else{
-			cascdeInit("1","1","","","","");
-			search_heads_do();
-
-
-			var offs_lf = ( $(window).width() -720 )/2;
-			var offs_ht = ( $(window).height() -690 )/2;
-
-
-			$('#batchheads .modal-dialog').css('top',offs_ht+'px');
-			$('#batchheads .modal-dialog').css('margin-top','0px');
-
-			$('#batchheads .modal-dialog').css('left',offs_lf+'px');
-			$('#batchheads .modal-dialog').css('margin-left','0px');
-
-			$('#batchheads').show();
-		}
-
-	})
-
-
-
-	$('#batchcatesbut2').click(function () {
-		var index = layer.open({
-			type: 1,
-			area: '500px',
-			title: '选取分类'
-			,content: $('#batchcates_html').html(),
-			yes: function(index, layero){
-				//do something
-				layer.close(index); //如果设定了yes回调,需进行手工关闭
-			}
-		});
-	})
-
-	//关闭批量分类
-	$('.modal-header .close').click(function () {
-		$('#batchcates').hide();
-		$('#batchheads').hide();
-		$('#batch_time').hide();
-	})
-
-	// 取消批量分类
-	$('.modal-footer .btn.btn-default').click(function () {
-		$('#batchcates').hide();
-		$('#batchheads').hide();
-		$('#batch_time').hide();
-	})
-	$('.model_heads').click(function(){
-		var head_id_arr = [];
-		$('.head_id').each(function(){
-			if($(this).is(':checked')) {
-				head_id_arr.push( $(this).val() )
-			}
-		})
-
-		//modal-group-head
-		var is_clear_old = 0;
-
-		if( $('#is_cancle_old').is(':checked') )
-		{
-			is_clear_old = 1;
-		}
-
-		var is_cancle_allhead2 = 0;
-
-		if( $('#is_cancle_allhead').is(':checked') )
-		{
-			is_cancle_allhead2 = 1;
-		}
-		is_cancle_allhead2 = 1;
-		//is_cancle_allhead2
-
-
-		if(head_id_arr.length > 0)
-		{
-			var goodsids = [];
-			var goods_id = $('#goods_id').val();
-			goodsids.push(goods_id);
-			if(goods_id != '')
-			{
-				$.post("<?php echo U('goods/ajax_batchheads');?>",{'goodsids':goodsids,'head_id_arr': head_id_arr,'is_cancle_allhead':is_cancle_allhead2,'is_clear_old':is_clear_old}, function (ret) {
-					if (ret.status == 1) {
-						$('#batchheads').hide();
-						layer.msg('分配成功', {
-							time: 1000
-						}, function(){
-							window.location.reload();
-						});
-
-						return
-					} else {
-						layer.msg('修改失败');
-					}
-				}, 'json');
-			}else{
-				$('#head_id_arr').val(head_id_arr);
-				$('#batchheads').hide();
-				layer.msg('团长选择成功', {
-					time: 1000
-				});
-			}
-		}else{
-			layer.msg('请选择团长');
-		}
-	})
-	//确认
-	var cates2 = 0;
-	$("body").delegate("#cates2","click",function(){
-
-		cates2 =  $(this).val() ;
-	})
-
-	var group_heads2 = 'default';
-	$("body").delegate("#group_heads","click",function(){
-		group_heads2 =  $(this).val() ;
-	})
-
-
-	$("body").delegate(".cancle","click",function(){
-		layer.closeAll();
-	})
-
-
-
-	$("body").delegate(".modal-group-head","click",function(){
-
-		var group_heads=$('#group_heads').val();
-		if(group_heads2 != 'default')
-		{
-			group_heads = group_heads2;
-		}
-
-		var selected_checkboxs = $('.table-responsive tbody tr td:first-child [type="checkbox"]:checked');
-		var goodsids = selected_checkboxs.map(function () {
-			return $(this).val()
-		}).get();
-
-		if(goodsids.length <=0 )
-		{
-			layer.msg('请先选择商品');
-			return false;
-		}
-
-
-		var is_clear_old = 0;
-
-		$('.is_cancle_old2').each(function(){
-			if( $(this).is(':checked') )
-			{
-				is_clear_old = 1;
-			}
-		})
-
-		var is_cancle_allhead = 0;
-
-		$('.is_cancle_allhead2').each(function(){
-			if( $(this).is(':checked') )
-			{
-				is_cancle_allhead = 1;
-			}
-		})
-
-		var iscover=$('input[name="iscover"]:checked').val();
-		$.post("<?php echo U('goods/ajax_batchcates_headgroup');?>",{'goodsids':goodsids,'groupid': group_heads,'is_cancle_allhead':is_cancle_allhead,'is_clear_old' : is_clear_old }, function (ret) {
-			if (ret.status == 1) {
-
-				layer.msg('分配成功', {
-					time: 1000
-				}, function(){
-					window.location.reload();
-				});
-
-				return
-			} else {
-				layer.msg('分配失败');
-			}
-		}, 'json');
-	})
-
-	$('.layui-table-sort').click(function(){
-		$(this).attr('lay-sort','asc');
-	})
-
-	$("body").delegate(".modal-fenlei","click",function(){
-
-		var cates=$('#cates2').val();
-		if(cates2 != 0)
-		{
-			cates = cates2;
-		}
-
-
-		var selected_checkboxs = $('.table-responsive tbody tr td:first-child [type="checkbox"]:checked');
-		var goodsids = selected_checkboxs.map(function () {
-			return $(this).val()
-		}).get();
-		//id="cates"
-		var iscover=$('input[name="iscover"]:checked').val();
-		$.post("<?php echo U('goods/ajax_batchcates');?>",{'goodsids':goodsids,'cates': cates,'iscover':iscover}, function (ret) {
-			if (ret.status == 1) {
-				$('#batchcates').hide();
-
-				layer.msg('修改成功', {
-					time: 1000
-				}, function(){
-					window.location.reload();
-				});
-
-				return
-			} else {
-				layer.msg('修改失败');
-			}
-		}, 'json');
-	})
-	//----
-
-	//显示时间设置
-	$('#batchtime,#batchtime2').click(function () {
-
-		var offs_lf = ( $(window).width() -720 )/2;
-		var offs_ht = ( $(window).height() -290 )/2;
-
-		$('#batch_time .modal-dialog').css('top',offs_ht+'px');
-		$('#batch_time .modal-dialog').css('margin-top','0px');
-
-		$('#batch_time .modal-dialog').css('left',offs_lf+'px');
-		$('#batch_time .modal-dialog').css('margin-left','0px');
-
-		$('#batch_time').show();
-	})
-
-	$('.modal-time').click(function () {
-		var selected_checkboxs = $('.table-responsive tbody tr td:first-child [type="checkbox"]:checked');
-		var goodsids = selected_checkboxs.map(function () {
-			return $(this).val()
-		}).get();
-
-		var begin_time=$('#batch_time input[name="setsametime[start]"]').val();
-		var end_time=$('#batch_time input[name="setsametime[end]"]').val();
-		$.post("<?php echo U('goods/ajax_batchtime');?>",{'goodsids':goodsids,'begin_time': begin_time,'end_time':end_time}, function (ret) {
-			if (ret.status == 1) {
-				$('#batch_time').hide();
-				layer.msg('设置成功');
-				window.location.reload();
-				return
-			} else {
-				layer.msg('设置失败');
-			}
-		}, 'json');
-	})
-
-	$(document).on("click", '[data-toggle="ajaxEdit"]', function(e) {
-		var obj = $(this),
-				url = obj.data('href') || obj.attr('href'),
-				data = obj.data('set') || {},
-				html = $.trim(obj.text()),
-				required = obj.data('required') || true,
-				edit = obj.data('edit') || 'input';
-		var oldval = $.trim($(this).text());
-		e.preventDefault();
-		submit = function() {
-			e.preventDefault();
-			var val = $.trim(input.val());
-			if (required) {
-				if (val == '') {
-					layer.msg(tip.lang.empty);
-					return
-				}
-			}
-			if (val == html) {
-				input.remove(), obj.html(val).show();
-				return
-			}
-			if (url) {
-				$.post(url, {
-					value: val
-				}, function(ret) {
-					ret = eval("(" + ret + ")");
-					if (ret.status == 1) {
-						obj.html(val).show()
-					} else {
-						layer.msg(ret.result.message, ret.result.url)
-					}
-					input.remove()
-				}).fail(function() {
-					input.remove(),  layer.msg(tip.lang.exception)
-				})
-			} else {
-				input.remove();
-				obj.html(val).show()
-			}
-			obj.trigger('valueChange', [val, oldval])
-		}, obj.hide().html('<i class="fa fa-spinner fa-spin"></i>');
-		var input = $('<input type="text" class="form-control input-sm" style="width: 80%;display: inline;" />');
-		if (edit == 'textarea') {
-			input = $('<textarea type="text" class="form-control" style="resize:none" rows=3 ></textarea>')
-		}
-		obj.after(input);
-		input.val(html).select().blur(function() {
-			submit(input)
-		}).keypress(function(e) {
-			if (e.which == 13) {
-				submit(input)
-			}
-		})
-	})
-</script>
-</body>

+ 0 - 1791
Runtime/Cache/Seller/59e59b8aad3686d7bafd569e725f6361.php

@@ -1,1791 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html xmlns="http://www.w3.org/1999/html">
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-	window.sysinfo = {
-	<?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-	
-	<?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-	
-	'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-	
-	'siteroot': '<?php echo ($_W['siteroot']); ?>',
-			'siteurl': '<?php echo ($_W['siteurl']); ?>',
-			'attachurl': '<?php echo ($_W['attachurl']); ?>',
-			'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-			'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-			'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-	'cookie' : {'pre': ''},
-	'account' : <?php echo json_encode($_W['account']);?>,
-	};
-</script>
-
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-<link href="/static/css/snailfish.css?v=32" rel="stylesheet">
-<style>
-    tbody tr td{
-        position: relative;
-    }
-    tbody tr  .icow-weibiaoti--{
-        visibility: hidden;
-        display: inline-block;
-        color: #fff;
-        height:18px;
-        width:18px;
-        background: #e0e0e0;
-        text-align: center;
-        line-height: 18px;
-        vertical-align: middle;
-    }
-    tbody tr:hover .icow-weibiaoti--{
-        visibility: visible;
-    }
-    tbody tr  .icow-weibiaoti--.hidden{
-        visibility: hidden !important;
-    }
-    .full .icow-weibiaoti--{
-        margin-left:10px;
-    }
-    .full>span{
-        display: -webkit-box;
-        display: -webkit-flex;
-        display: -ms-flexbox;
-        display: flex;
-        vertical-align: middle;
-        align-items: center;
-    }
-    tbody tr .label{
-        margin: 5px 0;
-    }
-    .goods_attribute a{
-        cursor: pointer;
-    }
-    .newgoodsflag{
-        width: 22px;height: 16px;
-        background-color: #ff0000;
-        color: #fff;
-        text-align: center;
-        position: absolute;
-        bottom: 70px;
-        left: 57px;
-        font-size: 12px;
-    }
-	.a{cursor: pointer;}
-	.img-40 {
-		width: 40px;
-		height: 40px;
-	}
-	.daterangepicker select.ampmselect, .daterangepicker select.hourselect, .daterangepicker select.minuteselect{
-		width:auto!important;
-	}
-	.list-tb-div th .tDiv{color:#000;}
-	.ul_left{float:right;}
-	.ul_left li{margin: 5px 10px;float:left;}
-	.ts_delivery_btn,.renew_delivery_btn{cursor:pointer;}
-</style>
-
-</head>
-<body layadmin-themealias="default">
-
-<table id="demo" lay-filter="test"></table>
-
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">订单管理
-    <span>&nbsp;&nbsp;&nbsp;&nbsp;订单数:  <span class='text-danger'><?php echo ($total); ?></span> 订单金额:  <span class='text-danger'><?php echo ($total_money); ?></span> 
-	</span></span>
-	</div>
-		
-		<?php if($order_status_id != 12){ ?>
-	
-		<div class="layui-tab layui-tab-brief" >
-		  <ul class="layui-tab-title">
-			<?php if($is_community == 1){ ?>
-				<li  <?php if( empty($order_status_id) || $order_status_id=='0'){ ?>class="layui-this"<?php } ?>><a href="<?php echo U($cur_controller, array('order_status_id' => 0,'headid'=>$headid));?>">全部订单(<?php echo ($all_count); ?>)</a></li>
-				<li  <?php if( $order_status_id=='3'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U($cur_controller, array('order_status_id' => 3,'headid'=>$headid));?>">待付款(<?php echo ($count_status_3); ?>)</a></li>
-				<li  <?php if( $order_status_id=='1'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U($cur_controller, array('order_status_id' => 1,'headid'=>$headid));?>">待发货(<?php echo ($count_status_1); ?>)</a></li>
-				<li  <?php if( $order_status_id=='14'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U($cur_controller, array('order_status_id' => 14,'headid'=>$headid ));?>">配送中(<?php echo ($count_status_14); ?>)</a></li>
-				<li  <?php if( $order_status_id=='4'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U($cur_controller, array('order_status_id' => 4,'headid'=>$headid ));?>">待收货(<?php echo ($count_status_4); ?>)</a></li>
-				<li  <?php if( $order_status_id=='11'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U($cur_controller, array('order_status_id' => 11,'headid'=>$headid ));?>">已完成(<?php echo ($count_status_11); ?>)</a></li>
-				<li  <?php if( $order_status_id=='5'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U($cur_controller, array('order_status_id' => 5,'headid'=>$headid ));?>">已取消(<?php echo ($count_status_5); ?>)</a></li>
-				<li  <?php if( $order_status_id=='7'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U($cur_controller, array('order_status_id' => 7,'headid'=>$headid ));?>">已退款(<?php echo ($count_status_7); ?>)</a></li>
-			
-			<?php } else if($_GPC['is_fenxiao'] == 1 && $_GPC['commiss_member_id'] > 0){ ?>
-				<li  <?php if( empty($order_status_id) || $order_status_id =='0' ){ ?>class="layui-this"<?php } ?>><a href="<?php echo U($cur_controller, array('is_fenxiao' => 1,'commiss_member_id' => $_GPC['commiss_member_id'],'order_status_id' => 0));?>">全部订单(<?php echo ($all_count); ?>)</a></li>
-				<li  <?php if( $_GPC['order_status_id']=='3' ){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U($cur_controller, array('order_status_id' => 3,'is_fenxiao' => 1,'commiss_member_id' => $_GPC['commiss_member_id']));?>">待付款(<?php echo ($count_status_3); ?>)</a></li>
-				<li  <?php if( $_GPC['order_status_id']=='1' ){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U($cur_controller, array('order_status_id' => 1,'is_fenxiao' => 1,'commiss_member_id' => $_GPC['commiss_member_id']));?>">待发货(<?php echo ($count_status_1); ?>)</a></li>
-				<li  <?php if( $_GPC['order_status_id']=='14' ){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U($cur_controller, array('order_status_id' => 14,'is_fenxiao' => 1,'commiss_member_id' => $_GPC['commiss_member_id']));?>">配送中(<?php echo ($count_status_14); ?>)</a></li>
-				<li  <?php if( $_GPC['order_status_id']=='4' ){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U($cur_controller, array('order_status_id' => 4,'is_fenxiao' => 1,'commiss_member_id' => $_GPC['commiss_member_id']));?>">待收货(<?php echo ($count_status_4); ?>)</a></li>
-				<li  <?php if( $_GPC['order_status_id']=='11' ){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U($cur_controller, array('order_status_id' => 11,'is_fenxiao' => 1,'commiss_member_id' => $_GPC['commiss_member_id']));?>">已完成(<?php echo ($count_status_11); ?>)</a></li>
-				<li  <?php if( $_GPC['order_status_id']=='5' ){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U($cur_controller, array('order_status_id' => 5,'is_fenxiao' => 1,'commiss_member_id' => $_GPC['commiss_member_id']));?>">已取消(<?php echo ($count_status_5); ?>)</a></li>
-				<li  <?php if( $_GPC['order_status_id']=='7' ){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U($cur_controller, array('order_status_id' => 7,'is_fenxiao' => 1,'commiss_member_id' => $_GPC['commiss_member_id']));?>">已退款(<?php echo ($count_status_7); ?>)</a></li>
-
-			  <?php } else if( $is_presale_order == 1 ){ ?>
-			  <!-- 预售 -->
-				  <li  <?php if( empty($order_status_id) || $order_status_id=='0'){ ?>class="layui-this"<?php } ?>><a href="<?php echo U($cur_controller, array('order_status_id' => 0, 'presale_order' =>1 ));?>">全部订单(<?php echo ($all_count); ?>)</a></li>
-				  <li  <?php if( $order_status_id=='3'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U($cur_controller, array('order_status_id' => 3 , 'presale_order' =>1 ));?>">待付款(<?php echo ($count_status_3); ?>)</a></li>
-				  <li  <?php if( $order_status_id=='1'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U($cur_controller, array('order_status_id' => 1 , 'presale_order' =>1 ));?>">待发货(<?php echo ($count_status_1); ?>)</a></li>
-				  <li  <?php if( $order_status_id=='14'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U($cur_controller, array('order_status_id' => 14 , 'presale_order' =>1 ));?>">配送中(<?php echo ($count_status_14); ?>)</a></li>
-				  <li  <?php if( $order_status_id=='4'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U($cur_controller, array('order_status_id' => 4 , 'presale_order' =>1 ));?>">待收货(<?php echo ($count_status_4); ?>)</a></li>
-				  <li  <?php if( $order_status_id=='11'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U($cur_controller, array('order_status_id' => 11 , 'presale_order' =>1 ));?>">已完成(<?php echo ($count_status_11); ?>)</a></li>
-				  <li  <?php if( $order_status_id=='5'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U($cur_controller, array('order_status_id' => 5 , 'presale_order' =>1 ));?>">已取消(<?php echo ($count_status_5); ?>)</a></li>
-				  <li  <?php if( $order_status_id=='7'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U($cur_controller, array('order_status_id' => 7 , 'presale_order' =>1 ));?>">已退款(<?php echo ($count_status_7); ?>)</a></li>
-			  <?php }else if( $is_virtualcard_order == 1 ){ ?>
-			  <!-- 礼品卡 -->
-			  <li  <?php if( empty($order_status_id) || $order_status_id=='0'){ ?>class="layui-this"<?php } ?>><a href="<?php echo U($cur_controller, array('order_status_id' => 0, 'virtualcard_order' =>1 ));?>">全部订单(<?php echo ($all_count); ?>)</a></li>
-			  <li  <?php if( $order_status_id=='3'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U($cur_controller, array('order_status_id' => 3 , 'virtualcard_order' =>1 ));?>">待付款(<?php echo ($count_status_3); ?>)</a></li>
-			  <li  <?php if( $order_status_id=='1'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U($cur_controller, array('order_status_id' => 1 , 'virtualcard_order' =>1 ));?>">待发货(<?php echo ($count_status_1); ?>)</a></li>
-			  <li  <?php if( $order_status_id=='14'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U($cur_controller, array('order_status_id' => 14 , 'virtualcard_order' =>1 ));?>">配送中(<?php echo ($count_status_14); ?>)</a></li>
-			  <li  <?php if( $order_status_id=='4'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U($cur_controller, array('order_status_id' => 4 , 'virtualcard_order' =>1 ));?>">待收货(<?php echo ($count_status_4); ?>)</a></li>
-			  <li  <?php if( $order_status_id=='11'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U($cur_controller, array('order_status_id' => 11 , 'virtualcard_order' =>1 ));?>">已完成(<?php echo ($count_status_11); ?>)</a></li>
-			  <li  <?php if( $order_status_id=='5'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U($cur_controller, array('order_status_id' => 5 , 'virtualcard_order' =>1 ));?>">已取消(<?php echo ($count_status_5); ?>)</a></li>
-			  <li  <?php if( $order_status_id=='7'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U($cur_controller, array('order_status_id' => 7 , 'virtualcard_order' =>1 ));?>">已退款(<?php echo ($count_status_7); ?>)</a></li>
-
-			  <?php } else { ?>
-				<li  <?php if( empty($order_status_id) || $order_status_id=='0'){ ?>class="layui-this"<?php } ?>><a href="<?php echo U($cur_controller, array('order_status_id' => 0));?>">全部订单(<?php echo ($all_count); ?>)</a></li>
-				<li  <?php if( $order_status_id=='3'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U($cur_controller, array('order_status_id' => 3));?>">待付款(<?php echo ($count_status_3); ?>)</a></li>
-				<li  <?php if( $order_status_id=='1'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U($cur_controller, array('order_status_id' => 1));?>">待发货(<?php echo ($count_status_1); ?>)</a></li>
-				<li  <?php if( $order_status_id=='14'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U($cur_controller, array('order_status_id' => 14));?>">配送中(<?php echo ($count_status_14); ?>)</a></li>
-				<li  <?php if( $order_status_id=='4'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U($cur_controller, array('order_status_id' => 4));?>">待收货(<?php echo ($count_status_4); ?>)</a></li>
-				<li  <?php if( $order_status_id=='11'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U($cur_controller, array('order_status_id' => 11));?>">已完成(<?php echo ($count_status_11); ?>)</a></li>
-				<li  <?php if( $order_status_id=='5'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U($cur_controller, array('order_status_id' => 5));?>">已取消(<?php echo ($count_status_5); ?>)</a></li>
-				<li  <?php if( $order_status_id=='7'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U($cur_controller, array('order_status_id' => 7));?>">已退款(<?php echo ($count_status_7); ?>)</a></li>
-			<?php } ?>
-		  </ul>
-		</div>
-	  
-		<?php } ?>
-		<div class="layui-card-body" style="padding:15px;">
-		
-			<form action="" method="get" class="form-horizontal form-search layui-form" role="form">
-				
-				<?php if($order_status_id != 12 && empty($is_fenxiao) && empty($is_community)){ ?>
-					<input type="hidden" name="c" value="order" />
-					<input type="hidden" name="a" value="index" />
-				 <?php }else if($is_fenxiao == 1){ ?>
-				 	<input type="hidden" name="c" value="distribution" />
-					<input type="hidden" name="a" value="distributionorder" />
-				 <?php }else if($is_community == 1){ ?>
-					<input type="hidden" name="headid" value="<?php echo ($headid); ?>" />
-					<input type="hidden" name="c" id="c" value="communityhead" />
-					<input type="hidden" name="a" id="a" value="distributionorder" />
-				 <?php }else{ ?>
-					 <input type="hidden" name="c" value="order" />
-					 <input type="hidden" name="a" value="orderaftersales" />
-				 <?php } ?>
-				<input type="hidden" name="order_status_id" value="<?php echo ($order_status_id); ?>" />
-
-
-				<?php if( $is_presale_order == 1 ){ ?>
-				<input type="hidden" name="presale_order" value="1" />
-				<?php }else if( $is_virtualcard_order == 1 ){ ?>
-				<input type="hidden" name="virtualcard_order" value="1" />
-				<?php } ?>
-
-				<div class="layui-form-item">
-				  <div class="layui-inline">
-				  
-					<div class="layui-input-inline" style="width:100px;">
-						<select name='type'  class='layui-input layui-unselect' lay-ignore style="width:100px;padding:0 5px;"  id="type">
-							<?php if( $is_presale_order == 1 ){ ?>
-							<option value='normal' <?php if( $is_presale_order == 1){ ?> selected <?php } ?>>预售订单</option>
-							<?php }else if( $is_virtualcard_order == 1 ){ ?>
-							<option value='normal' <?php if( $is_presale_order == 1){ ?> selected <?php } ?>>礼品卡订单</option>
-							<?php }else{ ?>
-							<option value=''>订单类型</option>
-							<option value='normal' <?php if( $type=='normal'){ ?>selected<?php } ?>>普通订单</option>
-							<option value='integral' <?php if( $type=='integral'){ ?> selected <?php } ?>>积分订单</option>
-							<option value='soli' <?php if( $is_soli==1){ ?> selected <?php } ?>>接龙订单</option>
-							<?php } ?>
-
-						</select>
-					</div>
-					<div class="layui-input-inline" style="width:100px;">
-						<select name='searchtime' lay-ignore  class='layui-input layui-unselect' style="width:100px;padding:0 5px;"  id="searchtime">
-							<option value=''>不按时间</option>
-							<option value='create' <?php if( $searchtime=='create'){ ?>selected<?php } ?>>下单时间</option>
-							<option value='pay' <?php if( $searchtime=='pay'){ ?>selected<?php } ?>>付款时间</option>
-							<option value='send' <?php if( $searchtime=='send'){ ?>selected<?php } ?>>发货时间</option>
-							<option value='finish' <?php if( $searchtime=='finish'){ ?>selected<?php } ?>>完成时间</option>
-						</select>
-					</div>
-					<div class="layui-input-inline" style="width:280px;">
-						<?php echo tpl_form_field_daterange('time', array('starttime'=>date('Y-m-d H:i', $starttime),'endtime'=>date('Y-m-d H:i', $endtime)),true);;?>
-					</div>
-
-					<?php  if( $is_virtualcard_order != 1 ){ ?>
-					<div class="layui-input-inline" style="width:100px;">
-						<select name='delivery' lay-ignore class='layui-input layui-unselect' style="width:100px;padding:0 5px;"  id="type">
-							<option value=''>配送方式</option>
-							<option value='pickup' <?php if( $delivery=='pickup'){ ?>selected<?php } ?>>社区自提</option>
-							<option value='tuanz_send' <?php if( $delivery=='tuanz_send'){ ?>selected<?php } ?>>团长配送</option>
-							<option value='express' <?php if( $delivery=='express'){ ?>selected<?php } ?>>快递</option>
-							<option value='localtown_delivery' <?php if( $delivery=='localtown_delivery'){ ?>selected<?php } ?>>同城配送</option>
-							<option value='hexiao' <?php if( $delivery=='hexiao'){ ?>selected<?php } ?>>到店核销</option>
-							<option value='cashon_delivery' <?php if( $delivery=='cashon_delivery'){ ?>selected<?php } ?>>货到付款</option>
-						</select>	
-					</div>
-					<?php } ?>
-
-					<div class="layui-input-inline" style="width:110px;">
-						<select name='searchfield' lay-ignore class='layui-input layui-unselect'   style="width:110px;padding:0 5px;"  >
-							<option value='ordersn' <?php if( $searchfield=='ordersn'){ ?>selected<?php } ?>>订单号</option>
-							<option value='member' <?php if( $searchfield=='member'){ ?>selected<?php } ?>>会员信息</option>
-							<option value='mobile' <?php if( $searchfield=='mobile'){ ?>selected<?php } ?>>手机号</option>
-							<option value='address' <?php if( $searchfield=='address'){ ?>selected<?php } ?>>收件人信息</option>
-							<option value='location' <?php if( $searchfield=='location'){ ?>selected<?php } ?>>地址信息</option>
-							<option value='shipping_no' <?php if( $searchfield=='shipping_no'){ ?>selected<?php } ?>>快递单号</option>
-							<option value='goodstitle' <?php if( $searchfield=='goodstitle'){ ?>selected<?php } ?>>商品名称</option>
-							<option value='trans_id' <?php if( $searchfield=='trans_id'){ ?>selected<?php } ?>>微信支付单号</option>
-							<?php if($is_community != 1){ ?>
-							<option value='head_name' <?php if( $searchfield=='head_name'){ ?>selected<?php } ?>>团长姓名</option>
-							<option value='head_address' <?php if( $searchfield=='head_address'){ ?>selected<?php } ?>>小区名称</option>
-							<?php } ?>
-							<?php  if (!defined('ROLE') || ROLE != 'agenter' ) { ?>
-							<option value='supply_name' <?php if( $searchfield=='supply_name'){ ?>selected<?php } ?>>供应商名称</option>
-							<?php } ?>
-							<option value='member_id' <?php if( $searchfield=='member_id'){ ?>selected<?php } ?>>会员ID</option>
-							
-							<!--<option value='goodssn' <?php if( $searchfield=='goodssn'){ ?>selected<?php } ?>>商品编码</option>-->
-						   
-						</select>
-					</div>
-					<div class="layui-input-inline" >
-						<input type="text" class="layui-input"  name="keyword" value="<?php echo ($keyword); ?>" placeholder="请输入关键词"/>
-					</div>
-					 <input type="hidden" name="export" id="export" value="0">
-					
-					<div class="layui-input-inline" style="width:585px;">
-						<button class="layui-btn layui-btn-sm unbtn_export" data-export="0" type="submit"> 搜索</button>
-						<button type="submit" name=""  data-export="1" value="1" class="layui-btn layui-btn-sm  btn-submit">导出</button>				
-						<button type="submit" name="" data-export="2" value="2" class="layui-btn layui-btn-sm btn-submit">按订单导出</button>
-						
-						<?php if(!empty($open_feier_print) && $open_feier_print >=1){ ?>
-						<a href="javascript:;" class="layui-btn layui-btn-sm btn_all_print">批量打印小票</a>
-						<?php } ?>
-						<?php if($data['kdniao_status'] == 1 && $order_status_id=='1'){ ?>
-						<a href="javascript:;" class="layui-btn layui-btn-sm kdn_select_btn" id="kdn_exit_btn">打印选中电子面单(<span id="kdn_select_num">0</span>)</a>
-						<a href="javascript:;" class="layui-btn layui-btn-sm kdn_all_btn">打印所有电子面单(<span id="kdn_all_num"><?php echo ($count_status_express); ?></span>)</a>
-						<a href="javascript:;" class="kdn_print_list" style="color:#428bca;"><span id="kdn_print_content">打印成功</span></a>
-						<?php }else{ ?>
-						<a href="javascript:;" class="layui-btn layui-btn-sm kdn_select_btn" id="kdn_other_btn" style="display:none;">打印选中电子面单(<span id="kdn_select_num">0</span>)</a>
-						<?php }?>
-					</div>
-               
-				  </div>
-				</div>
-			</form>
-			<form action="" class="layui-form" lay-filter="example" method="post" >
-       
-				
-				<div class="row">
-					<div class="list-div list-tb-div">
-						<table cellpadding="0" cellspacing="0" border="0">
-                            <thead>
-                                <tr>
-                                    <th width="3%" class="sign"><div class="tDiv">
-										<input type='checkbox' name="checkall" lay-skin="primary" lay-filter="checkboxall"  />
-										</div>
-									</th>
-                                    <th width="25%"><div class="tDiv">订单号</div></th>
-                                    <th width="9%"><div class="tDiv">单价/数量</div></th>
-                                    <th width="12%"><div class="tDiv">买家</div></th>
-                                    <th width="8%"><div class="tDiv">支付/配送</div></th>
-                                    <th width="14%"><div class="tDiv">小区/团长</div></th>
-                                    <th width="10%"><div class="tDiv">价格</div></th>
-                                    <th width="9%"><div class="tDiv">操作</div></th>
-                                    <th width="8%"><div class="tDiv">状态</div></th>
-                                </tr>
-                            </thead>
-                        </table>
-						
-						<table cellpadding="0" cellspacing="0" border="0">
-                            <colgroup>
-                                <col width="28%">
-                                <col width="9%">
-                                <col width="12%">
-                                <col width="8%">
-                                <col width="14%">
-                                <col width="10%">
-                                <col width="9%">
-                                <col width="8%">
-                            </colgroup>
-                            <tbody>
-								<?php foreach( $list as $item ){ ?>
-                                <tr class="tr-order-sn">
-                                    <td colspan="10">
-                                        <div class="tDiv ml10">
-                                            <span class="sign">
-												<input type='checkbox' name="item_checkbox" class="checkone" lay-skin="primary" value="<?php echo ($item['order_id']); ?>" lay-filter="item_checkbox" order_delivery="<?php echo ($item['delivery']); ?>" order_status="<?php echo ($item['order_status_id']); ?>"/>
-                                            </span>
-											<span class="words">流水号: #<?php echo ($item['day_paixu']); ?></span>
-											
-												<?php if( $item['type']=='pintuan'){ ?>
-														<span class="layui-badge" type="margin:0,15px,0,0;">拼团</span>
-												<?php } ?>
-												
-												<?php foreach($item['goods'] as $k => $g){ ?>		
-													<?php if( $item['type']=='normal' && $g['goods_type']['type']=='pin' ){ ?>
-															<span class="layui-badge" type="margin:0,15px,0,0;">单独购买</span>
-													<?php } ?>
-												<?php } ?>
-												
-												<?php if( !empty($item['soli_id'])){ ?>
-														<span class="layui-badge" type="margin:0,15px,0,0;">接龙</span>		
-												<?php } ?>
-												
-                                            <span class="words">订单号: <?php echo ($item['order_num_alias']); ?></span>
-                                            <span class="words">下单时间:<?php echo date('Y-m-d',$item['date_added']);?>&nbsp <?php echo date('H:i:s',$item['date_added']);?></span>
-											<span class="words">
-												<?php if( in_array($item['order_status_id'], array(1,2,4,6,11,14))){ ?>&nbsp;<span class="label label-success"><?php echo ($order_status_arr[$item['order_status_id']]); ?></span><?php } ?>
-                            
-												<?php if( in_array($item['order_status_id'], array(7,8,9))){ ?><label class='label label-danger'><?php echo ($order_status_arr[$item['order_status_id']]); ?></label><?php } ?>
-												
-												<?php if( in_array($item['order_status_id'], array(3,5,10,12,13))){ ?><label class='label label-default'><?php echo ($order_status_arr[$item['order_status_id']]); ?></label><?php } ?>
-												
-											</span>
-											<span style='background:#fdeeee;color:red;'>
-												<?php if( !empty($item['remarksaler']) ){ ?>
-													卖家备注:<?php echo ($item['remarksaler']); ?>
-												<?php } ?>			
-											</span>
-												
-											<div style='text-align:right;font-size:12px;display:inline-block;' >
-													<a class='op'  data-toggle="ajaxModal" href="javascript:;" data-href="<?php echo U('order/opremarksaler', array('id' => $item['order_id']));?>" >
-													<?php if( !empty($item['remarksaler'])){ ?>
-													<i class="icow icow-flag-o" style="color: #df5254;display: inline-block;vertical-align: middle" title="  查看备注"></i>
-													备注
-													&nbsp
-													<?php  }else{ ?>
-													<i class="icow icow-yibiaoji" style="color: #999;display: inline-block;vertical-align: middle" title="  添加备注" ></i>
-													备注
-													&nbsp
-													<?php } ?>
-												</a>
-												<?php if($item['order_status_id'] != 3 ){ ?>
-												 <a href="<?php echo U('order/order_print_dan', array('id' => $item['order_id']));?>" class="text-primary" target="_blank">打印</a>
-												 <?php }?>
-												 <?php $is_printer_list = D('Home/Front')->get_config_by_name('is_printer_list'); ?>
-												<?php if( ( empty($open_feier_print) && !empty($is_printer_list) ) || $open_feier_print >=1 && !in_array($item['order_status_id'], array(3))){ ?>
-												<a href="javascript:;"  data-confirm="确认打印订单小票吗?" class="deldom" data-href="<?php echo U('order/opprint',array('id'=>$item['order_id']));?>">
-												  &nbsp;&nbsp;打印小票
-												</a>&nbsp;&nbsp;
-												<?php } ?>
-												<?php if( $item['is_print_suc'] == 0 ){ ?>
-												<span class="layui-badge">打印失败</span>
-												<?php } ?>
-												
-												
-												<?php if( in_array($item['order_status_id'], array(1,4,6,10,11,12,14)) && $is_can_nowrfund_order ){ ?>
-												<a href="javascript:;" style="display:none;" data-confirm="确认立即退款吗?" class="deldom" data-href="<?php echo U('order/oprefund_do',array('id'=>$item['order_id']));?>">
-												  &nbsp;&nbsp;立即退款
-												</a>&nbsp;&nbsp;
-												
-												<a class='op' <?php if($item['is_statements_state'] == 1){ ?>data-confirm="订单已结算,再发生退款,佣金不可追回" <?php } ?>  data-toggle="ajaxModal" href="javascript:;" data-href="<?php echo U('order/oprefund_do', array('id' => $item['order_id']));?>" >
-													<i class="icow icow-yibiaoji" style="color: #999;display: inline-block;vertical-align: middle" title="  立即退款" ></i>
-													整个订单立即退款
-												</a>&nbsp;&nbsp;
-												<?php } ?>
-												
-												
-												
-												<?php if( ( in_array($item['order_status_id'], array(1,4,7)) && $item['delivery']== 'delivery' && $item['is_virtualcard'] == 0 ) ){ ?>
-													<a class="op" data-toggle="ajaxModal" href="javascript:;" data-href="<?php echo U('order/op/changeexpress', array('id' => $item['order_id']));?>">
-														<i class="icow icow-wuliu" title="修改物流" style="color: #999;display: inline-block;vertical-align: middle"></i>
-														修改物流
-														&nbsp
-													</a>
-												<?php } ?>
-												<?php if( $item['order_status_id'] == 3){ ?>
-													<a class='op'  data-toggle='ajaxModal' href="javascript:;" style="display:none;" data-href="<?php echo U('order/opchangeprice',array('id'=>$item['order_id']));?>">
-														<i class="icow icow-gaijia" title="订单改价"  style="color: #999;display: inline-block;vertical-align: middle"></i>
-														订单改价
-														&nbsp
-													</a>
-													<a class='op'  data-toggle='ajaxModal' href="javascript:;" data-href="<?php echo U('order/opclose',array('id'=>$item['order_id']));?>" >
-														<i class="icow icow-shutDown" title="删除订单"  style="color: #999;margin-right: 3px;display: inline-block;vertical-align: middle"></i>
-														删除订单
-														&nbsp
-													</a>
-												<?php } ?>
-
-												<?php if($data['kdniao_status'] == 1 && $item['delivery'] == 'express'){ ?>
-													<?php if($item['is_kdn_print'] == 1){ echo '<span style="color:#009688;">面单打印成功</span>'; }else if($item['is_kdn_print'] == 2){ echo '<span style="color:red;">面单打印失败,请检查物流接口是否支持此快递面单,稍后重新打印</span>'; }?>
-												<?php } ?>
-											</div>
-                                        </div>
-                                    </td>
-                                </tr>
-                                <tr class="">
-                                    <td class="td-product">
-                                    		
-										
-										<?php $i =1; $member_youhui = 0; foreach($item['goods'] as $k => $g){ $member_youhui += ($g['oldprice'] - $g['price'])*$g['quantity']; ?>
-										<div class="tDiv relative tpinfo <?php if($i == count($item['goods'])){ ?>last<?php } ?> ">
-                                            <div class="img"><img width="70" src="<?php echo tomedia($g['goods_images']);?>" alt="" /></div>
-                                            <div class="product-info">
-                                                <div class="name mb5">
-                                                    <?php echo ($g['name']); ?>&nbsp;&nbsp;
-													<?php if( !empty($g['hexiao_info'])){ ?>
-													<?php if($g['hexiao_info']['hexiao_type'] == 0){?>
-													(订单核销)
-													<?php }else{ ?>
-													(按次核销)
-													<?php } ?>
-													<?php } ?>
-                                                </div>
-                                                <div>
-													<?php if( !empty($g['option_sku'])){ echo ($g['option_sku']); } ?>
-												</div>
-                                                <div class="order_icon_items">  
-													<?php if($item['order_status_id'] == 7){ ?>
-														已退款
-													<?php }else if($g['is_refund_state'] == 1 && !empty($g['refund_info']) ){ ?>		
-														退款金额:<?php echo $g['refund_info']['ref_money']; ?> 元,
-														<?php if($g['refund_info']['state'] == 0 ){ ?>
-															<span class="layui-badge">申请中</span>
-														<?php }else if($g['refund_info']['state'] == 3){ ?>
-															<span class="label label-success">退款成功</span>
-														<?php }else if($g['refund_info']['state'] == 4){ ?>
-															<span class="label label-default">退款失败</span>
-														<?php  } ?>
-														<br/><br/>
-														<a class="btn btn-primary btn-xs " href="<?php echo U('order/oprefund', array('id' => $item['order_id'], 'ref_id' => $g['refund_info']['ref_id'] ));?>" >退款详情</a>
-														
-													<?php  } ?>	
-                                                </div>
-												
-												
-                                            </div>
-										</div>
-										<?php $i++; } ?>
-                                    </td>
-                                    <td class="td-price" style="vertical-align: top;">
-										<?php $i =1; foreach($item['goods'] as $k => $g){ ?>		
-										<div class="tDiv tpinfo <?php if($i == count($item['goods'])){ ?>last<?php } ?>" style="display: flex;align-items: center;">¥<?php echo round($g['old_total']/$g['quantity'],2); ?> 
-										x <?php echo ($g['quantity']); ?> <?php if($g['has_refund_quantity'] > 0){ ?>(已退<?php echo ($g['has_refund_quantity']); ?>个)<?php } ?> </br>
-										
-											<?php if($g['is_level_buy'] == 1){ ?>
-												<?php if( $g['member_disc'] < 100 ){ ?>
-												<!--<span class="label label-primary">会员折扣:<?php echo ($g['member_disc']); ?>%</span>-->
-												<?php } ?>
-											<?php } ?>
-										</div>
-										<?php $i++; } ?>
-									</td>
-                               
-                                    <td>
-										<div class="tDiv" >
-												<font style="color: #999;"><?php echo ($item['shipping_name']); ?></font><br/><font style="color: #999;"><?php echo ($item['shipping_tel']); ?></font>
-												<br/>
-												
-												<?php if (defined('ROLE') && ROLE == 'agenter' ){ ?>
-												<font style="color: #999;">会员名:</font><?php echo ($item['nickname']); ?>
-												<?php if( !empty($item['member_content']) ){ ?>
-												 <br/><font class="text-danger"><?php echo ($item['member_content']); ?></font>
-												<?php } ?>
-												<?php }else{ ?>
-												<?php if($s_id == 1){ ?>
-														<a class="text-primary" href="<?php echo U('user/detail',array('id'=>$item['member_id']));?>"><font style="color: #999;">会员名:</font><?php echo ($item['nickname']); ?><font style="color: #999;"><br>会员ID:<?php echo ($item['member_id']); ?></font></a>
-												<?php }else{ ?>
-														<a class="text-primary user"><font style="color: #999;">会员名:</font><?php echo ($item['nickname']); ?><font style="color: #999;"><br>会员ID:<?php echo ($item['member_id']); ?></font></a>
-												<?php } ?>
-												<?php if( !empty($item['member_content']) ){ ?>
-												 <br/><font class="text-danger"><?php echo ($item['member_content']); ?></font>
-												<?php } ?>
-												
-												<?php } ?>
-												<br/>
-												
-										</div>
-									</td>
-                                    <td>
-                                    <div class="tDiv" style="height: 100px;">
-                                    	<!-- 已支付 -->
-										<?php if( $item['order_status_id'] != 3 && $item['order_status_id'] != 5){ ?>
-											<?php if( $item['payment_code']=='yuer'){ ?>
-											   <span> <i class="text-warning" style="font-size: 17px;"></i><span>余额支付</span></span>
-											
-											<?php }else if( $item['payment_code']=='admin' ){ ?>
-											   <span> <i class=" text-danger" style="font-size: 17px"></i>后台付款</span>
-											<?php }else if( $item['payment_code']=='supply_mobile' ){ ?>
-												<span> <i class=" text-danger" style="font-size: 17px"></i>供应商手机端付款</span>
-											<?php  }else if( $item['payment_code']=='cashon_delivery' ){ ?>
-												<span> <i class=" text-danger" style="font-size: 17px"></i>货到付款</span>
-											<?php  }else{ ?>
-											   <span class="line-text"> 微信支付</span>
-											<?php } ?>
-										<?php }elseif( $item['order_status_id'] == 3 || $item['order_status_id'] == 5 ){ ?>
-											<!-- 未支付 -->
-											
-											<?php if($item['payment_code']=='yuer'){ ?>
-											    <span> <i class="text-warning" style="font-size: 17px;"></i><span>余额支付</span></span>
-											<?php }elseif($item['payment_code']=='admin'){ ?>
-											    <span> <i class=" text-danger" style="font-size: 17px"></i>后台付款</span>
-											<?php }else if($item['payment_code']=='weixin'){ ?>
-											    <span class="line-text"> 微信支付</span>
-											<?php }else if( $item['payment_code']=='cashon_delivery' ){ ?>
-												<span> <i class=" text-danger" style="font-size: 17px"></i>货到付款</span>
-											<?php  }else{ ?>
-												<label class='label label-default'>未支付</label>
-											<?php } ?>
-												
-										<?php } ?>
-										<br/>
-										<?php if( $item['delivery']=='pickup'){ ?><font class="text-danger">(社区自提)</font><?php } ?>
-										<?php if( $item['delivery']=='express'){ ?><font class="text-danger">(快递)</font><?php } ?>
-										<?php if( $item['delivery']=='localtown_delivery'){ ?><font class="text-danger">(同城配送)</font><?php } ?>
-										<?php if( $item['delivery']=='tuanz_send'){ ?><font class="text-danger">(团长配送)</font><?php } ?>
-										<?php if( $item['delivery']=='hexiao'){ ?><font class="text-danger">(到店核销)</font><?php } ?>
-                                    </div>
-                                    </td>
-									<?php if($is_can_look_headinfo){ ?>
-                                    <td>
-										<div class="tDiv" style="text-align: left;">
-											<div style='margin-top:5px;display:block;float:left;'>
-												<?php echo ($item['head_name']); ?>
-											</div>
-											<div style='margin-top:5px;display:block;float:left;'>
-												电话:<?php echo ($item['head_mobile']); ?>
-											</div>
-											 <div style='margin-top:5px;display:block;float:left;cursor: pointer;' >
-												<font style="color: #999;">小区:</font>  <font class="line-text"><?php echo ($item['community_name']); ?>   (<?php echo ($item['province']); ?> <?php echo ($item['city']); ?>)
-											</div>
-										</div>
-									
-									</td>
-									<?php }else{ ?>
-									 <td>
-										<div class="tDiv" style="text-align: left;">
-											<div style='margin-top:5px;display:block; text-align: center;'>
-												<?php echo ($item['head_name']); ?>
-											</div>
-											
-										</div>
-									</td>
-									<?php } ?>
-                                    <td>
-                                    	<div class="tDiv" style="">
-											<?php if($member_youhui >0){ ?>
-												<span style='margin-top:5px;margin-left:5px;display:block;'>
-												商品合计:<?php echo round($item['old_price']+$member_youhui,2);?>
-												</span>
-											<?php }else{ ?>
-												<span style='margin-top:5px;margin-left:5px;display:block;'>
-												商品合计:<?php echo round($item['old_price'],2);?>
-												</span>
-											<?php } ?>
-											<?php if($item['is_free_shipping_fare'] == 1){ ?>
-											<span style='margin-top:5px;margin-left:5px;display:block;'>
-											运 费:+<?php echo round( $item['fare_shipping_free'],2);?>
-											</span>
-											<span style='margin-top:5px;margin-left:5px;display:block;'>
-											满<?php echo ($item['man_e_money']); ?>免运费:-<?php echo round( $item['fare_shipping_free'],2);?>
-											</span>
-											<?php }else{ ?>
-											<span style='margin-top:5px;margin-left:5px;display:block;'>
-											运 费:+<?php echo round( $item['shipping_fare'],2);?>
-											</span>
-											<?php } ?>
-
-											<?php if($item['packing_fare'] > 0){ ?>
-											<span style='margin-top:5px;margin-left:5px;display:block;'>
-											<?php echo ($localtown_modifypickingname); ?>:+<?php echo round( $item['packing_fare'],2);?>
-											</span>
-											<?php } ?>
-											<?php if($item['voucher_credit'] >0){ ?>
-											<span style='margin-top:5px;margin-left:5px;display:block;'>
-											优惠券:-<?php echo round( $item['voucher_credit'],2);?>
-											</span>
-											<?php } ?>
-											<?php if($item['fullreduction_money'] >0){ ?>
-											<span style='margin-top:5px;margin-left:5px;display:block;'>
-											满减优惠:-<?php echo round( $item['fullreduction_money'],2);?>
-											</span>
-											<?php } ?>
-											<?php if( $item['score_for_money']>0 ){ ?>
-											<span style='margin-top:5px;margin-left:5px;display:block;'>
-											积分抵扣:-¥<?php echo ($item['score_for_money']); ?>
-											</span>
-											<?php } ?>
-                                            
-
-											<?php if($member_youhui >0){ ?>
-											<span style='margin-top:5px;margin-left:5px;display:block;'>
-											会员等级折扣优惠:-<?php echo round( $member_youhui,2);?>
-											</span>
-											<?php } ?>
-
-											<?php
- if($item['is_change_price'] == 1){ $change_price = $item['total'] - $item['old_price']; if($change_price > 0){ ?>
-													<span style='margin-top:5px;margin-left:5px;display:block;'>
-													商家改价:+<?php echo round( $change_price,2);?>
-													</span>
-											<?php }else if($change_price < 0){ ?>
-													<span style='margin-top:5px;margin-left:5px;display:block;'>
-													商家改价:<?php echo round( $change_price,2);?>
-													</span>
-											<?php } } ?>
-											<?php if(!empty($item['localtown_add_shipping_fare']) && $item['localtown_add_shipping_fare'] > 0){ ?>
-											<span style='margin-top:5px;margin-left:5px;display:block;'>
-											加价配送:+<?php echo round($item['localtown_add_shipping_fare'],2);?>
-											</span>
-											<?php }?>
-
-											
-											<span style='margin-top:5px;margin-left:5px;display:block;'>
-											<?php if($item['shipping_fare'] <= 0 ){ $item['fare_shipping_free'] = 0; } ?>
-											<?php $free_tongji = $item['total']+$item['packing_fare']+$item['shipping_fare']-$item['voucher_credit']-$item['fullreduction_money']- $item['score_for_money']+$item['localtown_add_shipping_fare']- $item['fare_shipping_free']; if($free_tongji < 0){ $free_tongji = 0; } ?>
-											实付款:<?php echo round($free_tongji ,2);?>
-											</span>
-                                        </div>    
-                                    </td>
-                                    <td>
-                                        <div class="tDiv" style="">
-											<?php
- if(empty(cookie('is_new_backadmin')) || cookie('is_new_backadmin') == 1){ ?>
-                                            <a class='op text-primary'  href="<?php echo U('order/detail', array('id' => $item['order_id'], 'ok' => 1));?>">查看详情</a>
-											<?php
- }else{ ?>
-											<a class='op text-primary'  href="javascript:void(0);" onclick="window.parent.layui.index.openTabsPage('<?php echo U('order/detail', array('id' => $item['order_id'], 'ok' => 1));?>', '查看详情')">查看详情</a>
-											<?php } ?>
-											<?php if( $item['addressid']!=0 && $item['statusvalue']>=2 && $item['sendtype']==0){ ?>
-											<a class='op text-primary'  data-toggle="ajaxModal" href="javascript:;" data-href="<?php echo U('util/express', array('id' => $item['order_id'],'express'=>$item['express'],'expresssn'=>$item['expresssn']));?>"   >物流信息</a>
-											<?php } ?>
-											<br/>
-											<?php
- if($item['order_status_id'] == 1 && $data['kdniao_status'] == 1 && $item['delivery'] == 'express'){ if($item['is_kdn_print'] == 0 || $item['is_kdn_print'] == 2){ ?>
-											<a class='op text-primary print_order' href="javascript:void(0);" order_id="<?php echo ($item['order_id']); ?>">打印面单</a>
-											<?php
- }else if($item['is_kdn_print'] == 1){ ?>
-											<a class='op text-primary print_kdn' href="javascript:void(0);" order_id="<?php echo ($item['order_id']); ?>">打印面单</a>
-											<?php
- } } ?>
-											<?php if($item['delivery'] == 'localtown_delivery' && $item['order_status_id'] == 4 && $item['orderdistribution_order']['state'] == 1){ ?>
-												<br/>
-												<?php if(($item['orderdistribution_order']['delivery_type'] == 0 && empty($item['third_distribution_type'])) || $item['orderdistribution_order']['delivery_type'] == 1){ ?>
-													<a class='btn btn-primary btn-xs ajaxPost'  data-toggle="ajaxModal" href="javascript:;" data-href="<?php echo U('orderdistribution/choosemember', array('id' => $item['order_id'] ));?>"   >指定配送员配送</a>
-												<?php } ?>
-											<?php } ?>
-
-											<?php if(($item['orderdistribution_order']['state'] == 1 && empty($item['third_distribution_type'])) || (!empty($item['third_distribution_type']) && $item['orderdistribution_order']['state'] == 5)){ ?>
-											<?php } ?>
-
-											<?php if($item['delivery'] == 'localtown_delivery' && $item['order_status_id'] == 4 && $item['orderdistribution_order']['state'] != 1 && $item['orderdistribution_order']['orderdistribution_id'] > 0){ ?>
-												<br/>
-												配送员:<?php echo ($item['orderdistribution_order']['username']); ?>
-											<?php } ?>
-											<?php if($is_can_third_delivery || true){ ?>
-											<?php
- $third_name = ""; if($item['third_distribution_type'] == 'imdada'){ $third_name = '达达平台'; }else if($item['third_distribution_type'] == 'sf'){ $third_name = '顺丰同城'; }else if($item['third_distribution_type'] == 'make'){ $third_name = '码科配送'; }else if($item['third_distribution_type'] == 'uupt'){ $third_name = 'UU跑腿'; }else if($item['third_distribution_type'] == 'dianwoda'){ $third_name = '点我达'; }else if($item['third_distribution_type'] == 'ele'){ $third_name = '蜂鸟即配'; } ?>
-											<?php if($item['delivery'] == 'localtown_delivery' && $item['order_status_id'] == 4 && !empty($item['third_distribution_type']) && $item['orderdistribution_order']['delivery_type'] != 1 && $item['orderdistribution_order']['state'] != 5){ ?>
-											<br/>
-											<span style="color: #009688;">
-											<a href="javascript:void(0)" data-orderid="<?php echo $item['order_id'];?>" class="third_log"><?php
- echo $third_name; ?>配送中</a></span>
-											<?php }?>
-
-											<?php if($item['delivery'] == 'localtown_delivery' && $item['order_status_id'] == 4 && !empty($item['third_distribution_type']) && $item['orderdistribution_order']['delivery_type'] != 1 && $item['orderdistribution_order']['state'] == 5){ ?>
-											<br/>
-											<a style="color: #009688;" class="renew_delivery_btn" data-type="<?php echo ($item['third_distribution_type']); ?>" data-order-id="<?php echo ($item['order_id']); ?>">重新配送</a>
-											<?php }?>
-											<?php }?>
-                                        </div>
-                                    </td>
-                                    <td>
-                                        <div class="tDiv" style="">
-                                           <span class='text-<?php echo ($item[order_status_id]); ?>'><?php echo ($order_status_arr[$item['order_status_id']]); ?></span><br/>
-											<?php  $is_ops_show = true; if (defined('ROLE') && ROLE == 'agenter' ) { $supper_info = get_agent_logininfo(); if( $supper_info['type'] != 1) { $is_ops_show = false; } } ?>
-											<?php if($is_ops_show){ ?>
-											<!---操作开始-->
-											
-											
-											<?php if( $item['order_status_id'] == 3){ ?>
-											<!--未付款-->
-											<?php  $is_pay_show = true; if (defined('ROLE') && ROLE == 'agenter' ) { $supper_info = get_agent_logininfo(); $is_pay_show = false; } ?>
-											<?php
- if($is_pay_show){ if(!isset($data['open_admin_payment']) || $data['open_admin_payment']=='1'){ ?>
-												<a class="btn btn-primary btn-xs deldom" data-toggle="ajaxPost" href="javascript:;" data-href="<?php echo U('order/oppay', array('id' => $item['order_id']));?>" data-confirm="确认此订单已付款吗?">确认付款</a>
-											<?php
- } } ?>
-											<?php }elseif( $item['order_status_id'] == 1 ){ ?>
-											<!--已付款-->
-												<?php if( $item['order_status_id'] == 1 && $item['delivery'] == 'express' ){ ?>
-												<!--快递 发货-->
-																						
-												<a class="btn btn-primary btn-xs ajaxPost" data-toggle='ajaxModal' href="javascript:;" data-href="<?php echo U('order/opsend', array('id' => $item['order_id']));?>" data-confirm="确认此订单发货吗?">确认发货</a>
-
-												<?php }elseif( $item['order_status_id'] == 1 && ($item['delivery'] == 'pickup' || $item['delivery'] == 'tuanz_send' ) ){ ?>
-												
-												  <a class="btn btn-primary btn-xs deldom" href="javascript:;"   data-confirm="确认此订单发货吗?" data-href="<?php echo U('order/opsend_tuanz', array('id' => $item['order_id']));?>">确认配送</a>
-											
-												<?php  }else if( $item['order_status_id'] == 1 && $item['delivery'] == 'localtown_delivery' ){ ?>
-														
-												  <a class="btn btn-primary btn-xs deldom" href="javascript:;"   data-confirm="确认此订单发货吗?" data-href="<?php echo U('order/opsend_localtown', array('id' => $item['order_id']));?>">确认配送</a>	
-
-												<?php }?>
-
-
-												
-											
-											<?php }elseif( $item['order_status_id'] == 14 && ($item['delivery'] == 'pickup' || $item['delivery'] == 'tuanz_send') ){ ?>
-													
-													
-													<?php if($is_can_confirm_delivery){ ?>
-														<a class="btn btn-primary btn-xs deldom" href="javascript:;" data-href="<?php echo U('order/opsend_tuanz_over', array('id' => $item['order_id']));?>" data-confirm="确认送达团长吗?">确认送达团长</a>
-													<?php }else{ ?>
-														
-													<?php } ?>
-											
-											<?php }elseif( $item['order_status_id'] == 14 && ($item['delivery'] == 'express') ){ ?>
-												<a class="btn btn-primary btn-xs deldom" href="javascript:;" data-href="<?php echo U('order/opreceive', array('id' => $item['order_id']));?>" data-confirm="确认订单收货吗?">确认收货</a><br />
-
-											<?php }elseif( $item['order_status_id'] == 4 || $item['order_status_id'] == 6 ){ ?>
-											<!--已发货-->
-												<?php if( $item['order_status_id'] == 4){ ?>
-											<!--快递 取消发货-->
-
-												<?php if( $item['delivery'] == 'hexiao' ){ ?>
-													<a class="btn btn-primary btn-xs deldom" href="javascript:;"   data-confirm="确认使用该订单吗?<br/><span style='color:#ad0909;font-size:13px;'>确认使用订单以后,订单下面全部商品默认核销成功。</span>" data-href="<?php echo U('order/order_hexiao', array('id' => $item['order_id']));?>">确认使用</a>
-												<?php }else{ ?>
-												
-												
-												<?php if($is_can_confirm_receipt){ ?>
-														<a class="btn btn-primary btn-xs deldom" href="javascript:;" data-href="<?php echo U('order/opreceive', array('id' => $item['order_id']));?>" data-confirm="确认订单收货吗?">确认收货</a><br />
-														<?php if($item['delivery'] == 'localtown_delivery' && $item['orderdistribution_order']['delivery_type'] == 0 && $item['orderdistribution_order']['state'] == 5){ ?>
-															<br /><a class="btn btn-primary btn-xs deldom" href="javascript:;"   data-confirm="确认此订单发货吗?" data-href="<?php echo U('order/opsend_localtown', array('id' => $item['order_id']));?>">平台配送</a>
-														<?php } ?>
-												<?php }else{ ?>
-														
-												<?php }} ?>
-												
-												
-												
-												<?php if( $item['delivery'] == 'express' && $item['is_virtualcard'] == 0 ){ ?>
-												<a class="text-primary " data-toggle="ajaxModal" href="javascript:;" data-href="<?php echo U('order/opchangeexpress', array('id' => $item['order_id']));?>">修改物流</a>
-												
-												<?php } ?>
-												
-												<?php  }else{ ?>
-												  
-												  <a class="btn btn-primary btn-xs deldom"  style="display:none;" href="javascript:;" data-href="<?php echo U('order/opfinish', array('id' => $item['order_id']));?>" data-confirm="确认完成订单吗?">确认完成</a>
-												<?php } ?>
-											<?php }elseif($item['order_status_id'] == 3){ ?>
-
-											<?php } ?>
-											<!---操作结束--->
-											<?php } ?>
-                                        </div>
-                                    </td>
-                                </tr>
-								<tr id="order_delivery_<?php echo $item['order_id'];?>">
-									<td colspan="8">
-										<font style="color: #999;padding-left: 10px;">供应商:</font>
-										<?php if(!empty($g['shopname']['shopname']) ){ ?> 
-												<?php echo ($g['shopname']['shopname']); if( $g['shopname']['type'] == 1 ){ ?>(独立供应商)<?php }else{ ?>(平台供应商)<?php } ?>
-										<?php }else{ ?>
-												平台自营(自营)
-										<?php  } ?>
-										<?php if( $item['soli_id'] > 0 ){ ?>
-										(接龙商品)
-										<?php } ?>
-										<?php if(($is_can_third_delivery && $item['store_id'] > 0) || $item['store_id'] == 0){ ?>
-										<?php if($item['delivery'] == 'localtown_delivery' && $item['order_status_id'] == 1 && empty($item['third_distribution_type']) && $item['orderdistribution_order']['delivery_type'] != 1){ ?>
-										<ul style="float:right;" class="ul_left">
-											<?php if($is_localtown_mk_status == 1){ ?>
-											<li>
-												<a class="ts_delivery_btn" data-type="make" data-order-id="<?php echo $item['order_id']?>">推送到码科配送</a>
-												<?php if($is_make_prequery_status == 1){ ?>
-												<br/>
-												<span style="color: rgb(0, 150, 136);">预计配送费:<?php echo !empty($item['pre_mk_delivery_fee']) ? $item['pre_mk_delivery_fee'] : 0; ?></span>
-												<?php } ?>
-											</li>
-											<?php } ?>
-											<?php if($is_localtown_imdada_status == 1){ ?>
-											<li>
-												<a class="ts_delivery_btn" data-type="imdada" data-order-id="<?php echo $item['order_id']?>">推送到达达配送</a>
-												<?php if($is_imdada_prequery_status == 1){ ?>
-												<br/>
-												<span style="color: rgb(0, 150, 136);">预计配送费:<?php echo !empty($item['pre_imdada_delivery_fee']) ? $item['pre_imdada_delivery_fee'] : 0; ?></span>
-												<?php } ?>
-											</li>
-											<?php } ?>
-											<?php if($is_localtown_sf_status == 1){ ?>
-											<li>
-												<a class="ts_delivery_btn" data-type="sf" data-order-id="<?php echo $item['order_id']?>">推送到顺丰同城</a>
-												<?php if($is_sf_prequery_status == 1){ ?>
-												<br/>
-												<span style="color: rgb(0, 150, 136);">预计配送费:<?php echo !empty($item['pre_sf_delivery_fee']) ? $item['pre_sf_delivery_fee'] : 0; ?></span>
-												<?php } ?>
-											</li>
-											<?php } ?>
-											<?php if($is_localtown_ele_status == 1){ ?>
-											<li>
-												<a class="ts_delivery_btn" data-type="ele" data-order-id="<?php echo $item['order_id']?>">推送到蜂鸟即配</a>
-											</li>
-											<?php } ?>
-										</ul>
-										<?php } ?>
-
-										<?php if($item['delivery'] == 'localtown_delivery' && $item['order_status_id'] == 4 && !empty($item['third_distribution_type']) && $item['orderdistribution_order']['state'] == 5 && $item['orderdistribution_order']['delivery_type'] != 1){ ?>
-										<ul style="float:right;" class="ul_left">
-											<?php if($is_localtown_imdada_status == 1){ ?>
-												<?php if($item['third_distribution_type'] == 'imdada'){ ?>
-													<li>
-														<a class="ts_delivery_error_btn" style="color:red;">达达配送平台:<?php echo ($item['orderdistribution_order']['cancel_reason']); ?></a>
-														<?php if($is_imdada_prequery_status == 1){ ?>
-														<br/>
-														<span style="color: rgb(0, 150, 136);">预计配送费:<?php echo !empty($item['pre_imdada_delivery_fee']) ? $item['pre_imdada_delivery_fee'] : 0; ?></span>
-														<?php } ?>
-													</li>
-												<?php }else{ ?>
-													<li>
-														<a class="ts_delivery_btn" data-type="imdada" data-order-id="<?php echo $item['order_id']?>">推送到达达配送</a>
-														<?php if($is_imdada_prequery_status == 1){ ?>
-														<br/>
-														<span style="color: rgb(0, 150, 136);">预计配送费:<?php echo !empty($item['pre_imdada_delivery_fee']) ? $item['pre_imdada_delivery_fee'] : 0; ?></span>
-														<?php } ?>
-													</li>
-												<?php } ?>
-											<?php } ?>
-											<?php if($is_localtown_sf_status == 1){ ?>
-												<?php if($item['third_distribution_type'] == 'sf'){ ?>
-													<li>
-														<a class="ts_delivery_error_btn" style="color:red;">顺丰同城平台:<?php echo ($item['orderdistribution_order']['cancel_reason']); ?></a>
-														<?php if($is_sf_prequery_status == 1){ ?>
-														<br/>
-														<span style="color: rgb(0, 150, 136);">预计配送费:<?php echo !empty($item['pre_sf_delivery_fee']) ? $item['pre_sf_delivery_fee'] : 0; ?></span>
-														<?php } ?>
-													</li>
-												<?php }else{ ?>
-													<li>
-														<a class="ts_delivery_btn" data-type="sf" data-order-id="<?php echo $item['order_id']?>">推送到顺丰同城</a>
-														<?php if($is_sf_prequery_status == 1){ ?>
-														<br/>
-														<span style="color: rgb(0, 150, 136);">预计配送费:<?php echo !empty($item['pre_sf_delivery_fee']) ? $item['pre_sf_delivery_fee'] : 0; ?></span>
-														<?php } ?>
-													</li>
-												<?php } ?>
-											<?php } ?>
-											<?php if($is_localtown_mk_status == 1){ ?>
-
-											<?php if($item['third_distribution_type'] == 'make'){ ?>
-
-												<li>
-													<a class="ts_delivery_error_btn" style="color:red;">码科配送:<?php echo ($item['orderdistribution_order']['cancel_reason']); ?></a>
-													<?php if($is_sf_prequery_status == 1){ ?>
-													<br/>
-													<span style="color: rgb(0, 150, 136);">预计配送费:<?php echo !empty($item['pre_mk_delivery_fee']) ? $item['pre_mk_delivery_fee'] : 0; ?></span>
-													<?php } ?>
-												</li>
-
-											<?php }else{ ?>
-												<li>
-													<a class="ts_delivery_btn" data-type="make" data-order-id="<?php echo $item['order_id']?>">推送到码科配送</a>
-													<?php if($is_make_prequery_status == 1){ ?>
-													<br/>
-													<span style="color: rgb(0, 150, 136);">预计配送费:<?php echo !empty($item['pre_mk_delivery_fee']) ? $item['pre_mk_delivery_fee'] : 0; ?></span>
-													<?php } ?>
-												</li>
-											<?php } ?>
-
-											<?php } ?>
-
-											<?php if($is_localtown_ele_status == 1){ ?>
-											<?php if($item['third_distribution_type'] == 'ele'){ ?>
-											<li>
-												<a class="ts_delivery_error_btn" style="color:red;">蜂鸟即配平台:<?php echo ($item['orderdistribution_order']['cancel_reason']); ?></a>
-											</li>
-											<?php }else{ ?>
-											<li>
-												<a class="ts_delivery_btn" data-type="ele" data-order-id="<?php echo $item['order_id']?>">推送到蜂鸟即配</a>
-											</li>
-											<?php } ?>
-											<?php } ?>
-										</ul>
-										<?php }?>
-										<?php }?>
-
-										<input type="hidden" class="imdada_has_send" name="imdada_has_send" value="<?php echo $item['imdada_has_send']; ?>"/>
-										<input type="hidden" class="sf_has_send" name="sf_has_send" value="<?php echo $item['sf_has_send']; ?>"/>
-									</td>
-								</tr>
-								<?php if( !empty($item['comment'])){ ?>
-								<tr>
-									<td colspan="8"><div style='background:#fdeeee;color:red;'>买家备注: <?php echo ($item['comment']); ?></div></td>
-								</tr>
-								<?php } ?>
-								 <tr>
-									<td colspan="8">
-										<div style="height:20px;">&nbsp;</div>
-									</td>
-								 </tr>
-								
-								<?php } ?>
-                            </tbody>
-							<tfoot>
-							<tr>
-								<td colspan="0">
-									<div class="page-table-header">
-										
-									</div>
-								</td>
-								<td colspan="8" style="text-align: right">
-									<?php echo ($pager); ?>
-								</td>
-							</tr>
-							</tfoot>
-                        </table>
-					</div>
-				</div>
-			</form>
-		</div>
-	</div>
-</div>
-
-
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-	var element = layui.element;
-  
-	$('.deldom').click(function(){
-		var s_url = $(this).attr('data-href');
-		var lock = false;
-		layer.confirm($(this).attr('data-confirm'), function(index){
-			if(!lock){
-				lock = true;
-				$.ajax({
-					url:s_url,
-					type:'post',
-					dataType:'json',
-					success:function(info){
-						$('#ajaxModal').removeClass('in');
-						$('.modal-backdrop').removeClass('in');
-						if(info.status == 0)
-						{
-							layer.msg(info.result.msg,{icon: 1,time: 2000});
-						}else if(info.status == 1){
-							var go_url = location.href;
-							if( info.result.hasOwnProperty("url") )
-							{
-								go_url = info.result.url;
-							}
-
-							layer.msg('操作成功',{time: 1000,
-								end:function(){
-									location.href = info.result.url;
-								}
-							});
-						}
-					}
-				})
-			}
-		},function(){
-			$('#ajaxModal').removeClass('in');
-			$('.modal-backdrop').removeClass('in');
-		});
-
-	})
-	
-	$('.btn-operation').click(function(){
-		var ids_arr = [];
-		var obj = $(this);
-		var s_toggle = $(this).attr('data-toggle');
-		var s_url = $(this).attr('data-href');
-		
-		
-		$("input[name=item_checkbox]").each(function() {
-			
-			if( $(this).prop('checked') )
-			{
-				ids_arr.push( $(this).val() );
-			}
-		})
-		if(ids_arr.length < 1)
-		{
-			layer.msg('请选择要操作的内容');
-		}else{
-			var can_sub = true;
-			if( s_toggle == 'batch-remove' )
-			{
-				can_sub = false;
-				
-				layer.confirm($(obj).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						data:{ids:ids_arr},
-						success:function(info){
-						
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-			}else{
-				$.ajax({
-					url:s_url,
-					type:'post',
-					dataType:'json',
-					data:{ids:ids_arr},
-					success:function(info){
-					
-						if(info.status == 0)
-						{
-							layer.msg(info.result.message,{icon: 1,time: 2000});
-						}else if(info.status == 1){
-							var go_url = location.href;
-							if( info.result.hasOwnProperty("url") )
-							{
-								go_url = info.result.url;
-							}
-							
-							layer.msg('操作成功',{time: 1000,
-								end:function(){
-									location.href = info.result.url;
-								}
-							}); 
-						}
-					}
-				})
-			}
-		}
-	})
-
-	form.on('switch(restwsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var rest = 1;
-	  if(data.elem.checked)
-	  {
-		rest = 1;
-	  }else{
-		rest = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{rest:rest},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	}); 
-	form.on('switch(enablewsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var enable = 1;
-	  if(data.elem.checked)
-	  {
-		enable = 1;
-	  }else{
-		enable = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{enable:enable},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	}); 
-	
-	form.on('switch(statewsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var state = 1;
-	  if(data.elem.checked)
-	  {
-		state = 1;
-	  }else{
-		state = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{state:state},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	});  
-	form.on('checkbox(checkboxall)', function(data){
-	  var count = 0;
-	  var kdn_count = 0;
-	  if(data.elem.checked)
-	  {
-		$("input[name=item_checkbox]").each(function() {
-			var delivery = $(this).attr("order_delivery");
-			var order_status = $(this).attr("order_status");
-			if(delivery == 'express' && order_status == 1){
-				if($('#kdn_exit_btn').length == 0){
-					$('#kdn_other_btn').show();
-				}
-				kdn_count++;
-			}
-			count++;
-			$(this).prop("checked", true);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", true);
-		});
-
-	  }else{
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", false);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", false);
-		});
-	  }
-	  $('#kdn_select_num').html(kdn_count);
-	  form.render('checkbox');
-	});
-
-	form.on('checkbox(item_checkbox)', function(data){
-		var count = 0;
-		$("input[name=item_checkbox]").each(function() {
-			if($(this).prop("checked")){
-				var delivery = $(this).attr("order_delivery");
-				var order_status = $(this).attr("order_status");
-				if(delivery == 'express' && order_status == 1){
-					if($('#kdn_exit_btn').length == 0){
-						$('#kdn_other_btn').show();
-					}
-					count++;
-				}
-			}
-		});
-		$('#kdn_select_num').html(count);
-		form.render('checkbox');
-	});
-  
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	 var loadingIndex = layer.load();
-	
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-				layer.close(loadingIndex); 
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-})
-
-</script>  
-<script>
-var ajax_url = "";
-$(function(){
-
-	$("[data-toggle='ajaxModal']").click(function () {
-        var s_url = $(this).attr('data-href');
-		ajax_url = s_url;
-		console.log(23);
-		//
-		var s_confirm = $(this).attr('data-confirm');
-		
-		console.log(s_confirm);
-		
-		if( s_confirm )
-		{
-		
-			layer.confirm(s_confirm, function(index){
-					layer.close(index);
-					$.ajax({
-						url:s_url,
-						type:"get",
-						success:function(shtml){
-							$('#ajaxModal').html(shtml);
-							$("#ajaxModal").modal();
-						}	
-				})
-			})
-		}else{
-			$.ajax({
-				url:s_url,
-				type:"get",
-				success:function(shtml){
-					$('#ajaxModal').html(shtml);
-					$("#ajaxModal").modal();
-				}	
-			})
-		}
-		
-       
-    });
-	$(document).delegate(".modal-footer .btn-primary","click",function(){
-		var loadingIndex = layer.load();
-	//
-		var s_data = $('#ajaxModal form').serialize();
-		$.ajax({
-			url:ajax_url,
-			type:'post',
-			dataType:'json',
-			data:s_data,
-			success:function(info){
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-					layer.close(loadingIndex); 
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-		return false;
-	})
-	
-	
-})
-</script>
-<div id="ajaxModal" class="modal fade" style="display: none;">
-
-</div>
-
-<script>
-    //没有选中时间段不能导出
-    $(function () {
-
-		$('.btn-submit').click(function(){
-			//
-			var e = $(this).data('export');
-            if(e>0 ){
-                if($('#keyword').val() !='' ){
-                    $('#export').val(e);
-                   
-                }else if($('#searchtime').val()!=''){
-                    $('#export').val(e);
-                   
-                }else{
-                    layer.msg('请先选择时间段!');
-                    return false;
-                }
-            }else{
-                $('#export').val(0);
-                
-            }
-			
-			var form_data = $('.form-search').serialize();
-			
-				
-				
-				var a = form_data.replace('c=order&a=index','');
-				var s = a.replace('c=communityhead&a=distributionorder','');
-				
-				s = s.replace('c=distribution&a=distributionorder','');
-				
-				
-				$.post("<?php echo U('order/export_form', array('sec' => 1) );?>", s, function(shtml){
-				 layer.open({
-					type: 1,
-					area: '930px',
-					content: shtml //注意,如果str是object,那么需要字符拼接。
-				  });
-				});
-			   return false;
-			
-		})
-		$('.unbtn_export').click(function(){
-			//
-			$('#export').val(0);
-			
-			
-		})
-		
-	
-	
-		$('.btn_all_print').click(function(){
-			var loadingIndex = layer.load();
-			var ids_arr = [];
-			
-			$("input[name=item_checkbox]").each(function() {
-			
-				if( $(this).prop('checked') )
-				{
-					ids_arr.push( $(this).val() );
-				}
-			})
-			
-			if(ids_arr.length < 1)
-			{
-				layer.close(loadingIndex); 
-				layer.msg('请选择要打印的订单');
-				return false;
-			}else{
-				layer.close(loadingIndex); 
-				layer.confirm('确认要批量打印这些订单小票吗', function(index){
-					 $.post("<?php echo U('order/all_opprint', array('sec' => 1) );?>", {order_arr:ids_arr}, function(shtml){
-						layer.open({
-							type: 1,
-							area: '930px',
-							content: shtml //注意,如果str是object,那么需要字符拼接。
-						});
-					});
-				}); 
-				
-				
-			   return false;
-			
-			}
-			
-		})
-		
-	
-        $('.btn-submit').click(function () {
-            var e = $(this).data('export');
-            if(e==1 ){
-				
-				
-                if($('#keyword').val() !='' ){
-                    $('#export').val(1);
-                    $('#search').submit();
-                }else if($('#searchtime').val()!=''){
-                    $('#export').val(1);
-                    $('#search').submit();
-                }else{
-                   $('#export').val(1);
-                    $('#search').submit();
-                    return;
-                }
-            }else{
-			
-                $('#export').val(0);
-                $('#search').submit();
-            }
-        })
-
-
-		$('.print_order').click(function(){
-			var order_id = $(this).attr("order_id");
-			$.ajax({
-				url:"<?php echo U('order/check_kdniao');?>",
-				type:'post',
-				dataType:'json',
-				success:function(info){
-					if(info.status == 0)
-					{
-						kdniao_set();
-					}else if(info.status == 1){
-						$.post("<?php echo U('order/express_list');?>", {type:'one',order_id:order_id}, function(shtml){
-							layer.open({
-								type: 1,
-								area: '930px',
-								content: shtml //注意,如果str是object,那么需要字符拼接。
-							});
-						});
-					}
-				}
-			})
-			return false;
-		})
-
-		$('.print_kdn').click(function(){
-			var order_id = $(this).attr("order_id");
-			$.post("<?php echo U('order/kdn_info');?>", {order_id:order_id}, function(shtml){
-				layer.open({
-					title: "快递面单",
-					type: 1,
-					area: ['450px', '700px'],
-					content: shtml
-				});
-			});
-		});
-
-		$('.kdn_all_btn').click(function(){
-			$.ajax({
-				url:"<?php echo U('order/check_kdniao');?>",
-				type:'post',
-				dataType:'json',
-				success:function(info){
-					if(info.status == 0)
-					{
-						kdniao_set();
-					}else if(info.status == 1){
-						kdn_all_print();
-					}
-				}
-			})
-			return false;
-		});
-
-		$('.kdn_select_btn').click(function(){
-			$.ajax({
-				url:"<?php echo U('order/check_kdniao');?>",
-				type:'post',
-				dataType:'json',
-				success:function(info){
-					if(info.status == 0)
-					{
-						kdniao_set();
-					}else if(info.status == 1){
-						kdn_select_print();
-					}
-				}
-			})
-			return false;
-		});
-
-		$('#kdn_print_content').click(function(){
-			$.post("<?php echo U('order/kdn_print_log_list');?>", {}, function(shtml){
-				layer.open({
-					type: 1,
-					area: '500px',
-					content: shtml //注意,如果str是object,那么需要字符拼接。
-				});
-			});
-		});
-		
-		
-		$('.user').click(function(){
-				layer.msg('权限不足!',{icon: 2,time: 1200});
-		})
-		
-		
-
-		$('.ts_delivery_btn').click(function(){
-			var data_type = $(this).attr("data-type");
-			var order_id = $(this).attr("data-order-id");
-			$.ajax({
-				url:"<?php echo U('order/check_delivery_config');?>",
-				type:'post',
-				dataType:'json',
-				data: {data_type:data_type},
-				success:function(res){
-					if(res.status == 0)
-					{
-						var html = '推送失败,平台参数设置错误请重新设置';
-						layer.confirm(html, {
-							btn: ['确定','取消'] //按钮
-						}, function(){
-							layer.closeAll();
-						}, function(){
-							layer.closeAll();
-						});
-					}else if(res.status == 1){
-						thirth_delivery_order(data_type,order_id,1);
-					}
-				}
-			})
-		});
-
-		$('.renew_delivery_btn').click(function(){
-			var data_type = $(this).attr("data-type");
-			var order_id = $(this).attr("data-order-id");
-			$.ajax({
-				url:"<?php echo U('order/check_delivery_config');?>",
-				type:'post',
-				dataType:'json',
-				data: {data_type:data_type},
-				success:function(res){
-					if(res.status == 0)
-					{
-						var html = '推送失败,平台参数设置错误请重新设置';
-						layer.confirm(html, {
-							btn: ['确定','取消'] //按钮
-						}, function(){
-							layer.closeAll();
-						}, function(){
-							layer.closeAll();
-						});
-					}else if(res.status == 1){
-						thirth_delivery_order(data_type,order_id,2);
-					}
-				}
-			})
-		});
-
-		$('.third_log').click(function(){
-			var order_id = $(this).attr("data-orderid");
-			$.post("<?php echo U('order/third_delivery_log_list');?>", {order_id:order_id}, function(shtml){
-				layer.open({
-					type: 1,
-					area: ['900px', '600px'],
-					content: shtml //注意,如果str是object,那么需要字符拼接。
-				});
-			});
-		});
-    })
-
-	function thirth_delivery_order(data_type,order_id,state){
-		var thirth_name = "达达平台";
-		var has_send = 0;
-		if(data_type == 'imdada'){
-			thirth_name = "达达平台";
-			has_send = $('#order_delivery_'+order_id).find('.imdada_has_send').val();
-		}else if(data_type == 'sf'){
-			thirth_name = "顺丰同城";
-			has_send = $('#order_delivery_'+order_id).find('.sf_has_send').val();
-		}else if(data_type == 'make'){
-			thirth_name = "码科配送";
-			//has_send = $('#sf_has_send').val();
-		}else if(data_type == 'ele'){
-			thirth_name = "蜂鸟即配";
-			//has_send = $('#sf_has_send').val();
-		}
-		var html = "";
-		var post_url = "";
-		if(state == 1){
-			html = "确认推送到"+thirth_name+"配送吗?";
-			if(has_send == 1){
-				post_url = "<?php echo U('order/thirth_renew_delivery_order');?>";
-			}else{
-				post_url = "<?php echo U('order/thirth_delivery_order');?>";
-			}
-		}else{
-			html = "确认重新推送到"+thirth_name+"配送吗?";
-			post_url = "<?php echo U('order/thirth_renew_delivery_order');?>";
-		}
-		layer.confirm(html, {
-			btn: ['确定','取消'] //按钮
-		}, function(index){
-			layer.close(index);
-			$.ajax({
-				url:post_url,
-				type:'post',
-				dataType:'json',
-				data: {data_type:data_type,order_id:order_id},
-				success:function(res){
-					console.log(res);
-					if(res.status == 0)
-					{
-						layer.msg(res.result.msg,{icon: 2,time: 2000});
-						return false;
-					}else if(res.status == 1){
-						var go_url = location.href;
-
-						layer.msg('推送成功',{time: 1000,
-							end:function(){
-								location.href = go_url;
-							}
-						});
-					}
-				}
-			})
-		}, function(){
-			layer.closeAll();
-		});
-	}
-
-	function kdn_all_print(){
-		var count = $('#kdn_all_num').html();
-		var html = '批量打印面单,面单打印成功,即为自动发货成功,打印失败,即为自动发货失败,共计<span style="color:red;">'+count+'</span>个快递订单,确认将全部快递订单打印电子面单自动发货?';
-		layer.confirm(html, {
-			btn: ['确定打印','取消'] //按钮
-		}, function(index){
-			layer.close(index);
-			$.post("<?php echo U('order/express_list');?>", {type:"all"}, function(shtml){
-				layer.open({
-					type: 1,
-					area: '930px',
-					content: shtml //注意,如果str是object,那么需要字符拼接。
-				});
-			});
-		}, function(){
-			layer.closeAll();
-		});
-	}
-
-	function kdn_select_print(){
-		var count = $('#kdn_select_num').html();
-		if(count == 0){
-			layer.msg("请在左侧选中待发货快递订单",{icon: 2,time: 2000});
-			return false;
-		}else{
-			var order_ids = "";
-			$("input[name=item_checkbox]").each(function() {
-
-				if( $(this).prop('checked') )
-				{
-					var delivery = $(this).attr("order_delivery");
-					var order_status = $(this).attr("order_status");
-					if(delivery == 'express' && order_status == 1){
-						if(order_ids == ''){
-							order_ids = $(this).val();
-						}else{
-							order_ids = order_ids+','+$(this).val();
-						}
-					}
-				}
-			})
-			var html = '批量打印面单,面单打印成功,即为自动发货成功,打印失败,即为自动发货失败,确认将<br/>选中的<span style="color:red;">'+count+'</span>个快递订单打印成电子面单自动发货?';
-			layer.confirm(html, {
-				btn: ['确定打印','取消'] //按钮
-			}, function(index){
-				layer.close(index);
-				$.post("<?php echo U('order/express_list');?>", {type:"select",order_id:order_ids}, function(shtml){
-					layer.open({
-						type: 1,
-						area: '930px',
-						content: shtml //注意,如果str是object,那么需要字符拼接。
-					});
-				});
-			}, function(){
-				layer.closeAll();
-			});
-		}
-	}
-
-	function kdniao_set(){
-		var html = '暂未设置"快递鸟"电子面单物流接口,请先到后台<br/><span style="color:#428bca;">设置</span>——<span style="color:#428bca;">物流设置</span>——<span style="color:#428bca;">物流接口设置</span>,设置好参数后,再进行打印面单操作';
-		layer.confirm(html, {
-			btn: ['去设置','取消'] //按钮
-		}, function(){
-			window.location.href = "<?php echo U('logistics/inface');?>";
-		}, function(){
-			layer.closeAll();
-		});
-	}
-</script>
-</body>

+ 0 - 121
Runtime/Cache/Seller/5a8ceaf3c5794736c0c37dbaea73181a.php

@@ -1,121 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><div style='max-height:500px;overflow:auto;min-width:850px;'>
-	<div class="input-group layui-row" style="margin:10px;">
-		<input type="text" placeholder="请输入昵称或手机号进行搜索" id="select-url-kw" value="" class="form-control">
-		<span class="input-group-addon btn btn-default select-btn" data-type="url">搜索</span>
-	</div>
-<table class="table supplyquery table-hover supplyquery" style="min-width:850px;">
-    <tbody>   
-        <?php foreach( $ds as $row ){ ?>
-        <tr>
-            <td><img src="<?php echo ($row['avatar']); ?>" style='width:30px;height:30px;padding1px;border:1px solid #ccc' /> <?php echo ($row['nickname']); ?></td>
-          
-		   
-            <td><?php echo ($row['mobile']); ?></td>
-			 <?php if($row['exist'] == 0){ ?>
-            <td style="width:80px;"><a href="javascript:;" class="choose_dan_link" data-json='<?php echo json_encode($row);;?>'>选择</a></td>
-			<?php }else{ ?>
-			 <td style="width:80px; border: #ccc">选择</td>
-			<?php } ?>
-			
-        </tr>
-        <?php } ?>
-        <?php if( count($ds)<=0){ ?>
-        <tr> 
-            <td colspan='4' align='center'>未找到会员</td>
-        </tr>
-        <?php } ?>
-    </tbody>
-	<?php if( count($ds) > 0){ ?>
-	<tfoot>
-		<tr>
-			<td colspan='4' align='center' id="pager_ajax"><?php echo ($pager); ?></td>
-		</tr>
-	</tfoot>
-	<?php } ?>
-</table>
-    </div>
-<script>
-var query_kwd = '<?php echo ($kwd); ?>';
-<?php if( !empty($url)){ ?>
-
-var query_url = "<?php echo U($url, array('is_not_hexiao' => $is_not_hexiao));?>";
-<?php  }else{ ?>
-var query_url = "<?php echo U('user/zhenquery', array('is_not_hexiao' => $is_not_hexiao));?>";
-<?php } ?>
-var can_next = true;
-
-
-
-$(document).delegate(".choose_dan_link","click",function(){
-	
-	//data-json
-	var json_obj = JSON.parse($(this).attr('data-json')); 
-	var p_html = '';
-	p_html+= '<div class="input-group " style="margin: 0;">';
-	p_html+= '	<div class="layadmin-text-center choose_user">';
-	p_html+= '		<img style="" src="'+json_obj.avatar+'">';
-	p_html+= '		<div class="layadmin-maillist-img" style="">'+json_obj.username+'</div>';
-	p_html+= '		<button type="button" class="layui-btn layui-btn-sm" onclick="cancle_bind(this)"><i class="layui-icon">&#xe640;</i></button>';
-	p_html+= '	</div>';
-	p_html+= '</div>';
-	
-	$(cur_open_div).parent().siblings().remove();
-	$(cur_open_div).parent().after(p_html);
-	
-	$(cur_open_div).val( json_obj.member_id );
-	layer.close(layer.index); 
-});
-				
-$(".select-btn").click(function(){
-	
-	query_kwd = $.trim($("#select-url-kw").val());
-	
-	var s_page = $(this).attr('page');
-	if(!can_next)
-	{
-		return false;
-	}
-	can_next = false;
-	$.ajax({
-		url:query_url,
-		type:'post',
-		dataType:'json',
-		data:{keyword:query_kwd, page:1,is_ajax:1},
-		success:function(ret){
-			if(ret.code == 0)
-			{
-				$('.supplyquery tbody').html(ret.html);
-
-				$('#pager_ajax').html(ret.pager);
-			}
-			can_next = true;
-		}
-	})
-});
-$("body").delegate(".pagination a","click",function(){
-	var s_page = $(this).attr('page');
-	if(!can_next)
-	{
-		return false;
-	}
-	can_next = false;
-	$.ajax({
-		url:query_url,
-		type:'post',
-		dataType:'json',
-		data:{keyword:query_kwd, page:s_page,is_ajax:1},
-		success:function(ret){
-			if(ret.code == 0)
-			{
-				$('.supplyquery tbody').html(ret.html);
-				$('#pager_ajax').html(ret.pager);
-				
-			}
-			can_next = true;
-		}
-	})
-})
-
-
-
-</script>

+ 0 - 243
Runtime/Cache/Seller/60d04c8534b5bd44636cafe29899574e.php

@@ -1,243 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-  window.sysinfo = {
-  <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-  
-  <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-  
-  <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-  
-  <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-  
-  'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-  
-  'siteroot': '<?php echo ($_W['siteroot']); ?>',
-    'siteurl': '<?php echo ($_W['siteurl']); ?>',
-    'attachurl': '<?php echo ($_W['attachurl']); ?>',
-    'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-    'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-    'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-    'cookie' : {'pre': ''},
-    'account' : <?php echo json_encode($_W['account']);?>,
-  };
-</script>
-
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-<link href="/static/css/snailfish.css" rel="stylesheet">
-  <link href="/static/css/szyV6.css" rel="stylesheet">
-</head>
-<body layadmin-themealias="default">
-<!-- 菜单组件 begin-->
-<div class="layadmin-tabsbody-item layui-show sub-nav-show">
-	<div class="sub-nav" style="width:125px">
-		<div class="nav-new wb-subnav  layui-this">
-			<div class="subnav-scene" style="font-size: 14px">
-				<?php echo ($menu['title']); ?>
-			</div>
-			<?php foreach($menu['items'] as $sub_menu){ ?>
-			<?php if( !empty($sub_menu['items']) ){ ?>
-
-			<div class="menu-header active">
-				<div class="menu-icon fa fa-caret-right layui-icon " style="color: #656161;">&#xe625;</div>
-				<div style="font-size: 13px;color: #656161;"> <?php echo ($sub_menu['title']); ?></div>
-			</div>
-			<?php }else{ ?>
-			<ul style="display:block;">
-				<li <?php if($perm_url == $sub_menu['route']){ ?>class="active"<?php } ?> data-class="active">
-				<a href="<?php echo U($sub_menu['route']);?>" style="display:block;cursor: pointer;font-size: 13px;color: #656161;"><?php echo ($sub_menu['title']); ?></a>
-				</li>
-			</ul>
-			<?php } ?>
-
-			<?php if( !empty($sub_menu['items']) ){ ?>
-			<ul style="display: block;">
-				<?php foreach($sub_menu['items'] as $third_sub_menu){ ?>
-				<li class="" data-class="active">
-					<a href="<?php echo U($third_sub_menu['route']);?>" style="display:block;cursor: pointer;"><cite style="font-size:12px;padding-left: 10px;" ><?php echo ($third_sub_menu['title']); ?></cite></a>
-				</li>
-				<?php } ?>
-			</ul>
-			<?php } ?>
-
-			<?php } ?>
-
-		</div>
-	</div>
-</div>
-<!-- 菜单组件end -->
-
-<div class="div-iframe">
-
-  <div class="layui-fluid">
-    <div class="layui-card">
-      <div class="layui-card layadmin-header" style="display:block;">
-        <div class="layui-breadcrumb" lay-filter="breadcrumb" style="visibility: visible;">
-          <a href="<?php echo U('application/index');?>">应用</a><span lay-separator="">/</span>
-          <a  href="<?php echo U('cashondelivery/config');?>"><cite>货到付款</cite></a><span lay-separator="">/</span>
-          <a href="<?php echo U('cashondelivery/config');?>"><cite>设置</cite></a>
-        </div>
-      </div>
-      <!--- 内容开始 -->
-      <div class="layui-card-body" style="padding:15px;">
-        <form action="" method="post" class="layui-form" lay-filter="component-layui-form-item" enctype="multipart/form-data" >
-          <div class="layui-form-item">
-            <label class="layui-form-label">商品支持货到付款</label>
-            <div class="layui-input-block">
-              <label class='radio-inline'>
-                <input type='radio' lay-filter="isopen_cashondelivery" name='parameter[isopen_cashondelivery]' value='0' <?php if( empty($data) || $data['isopen_cashondelivery'] == 0 ){ ?>checked <?php } ?> title="关闭" />
-              </label>
-              <label class='radio-inline'>
-                <input type='radio' lay-filter="isopen_cashondelivery" name='parameter[isopen_cashondelivery]' value='1' <?php if( !empty($data) && $data['isopen_cashondelivery'] == 1 ){ ?>checked <?php } ?> title="开启" />
-              </label>
-              <span class="help-block">
-                开启后,商品支持“货到付款”支付方式  (平台拼团,接龙商品不参与,以及独立供应商的商品不支持“货到付款”结算方式)
-              </span>
-            </div>
-          </div>
-            <div class="layui-form-item">
-                <label class="layui-form-label">商品配送方式限制</label>
-                <div class="layui-input-block">
-                    <input type="checkbox" lay-skin="primary" name="parameter[isopen_cashondelivery_communityhead]" class="form-control valid" <?php if( !empty($data) && $data['isopen_cashondelivery_communityhead'] == 1 ){ ?>checked<?php } ?> value="1" title="团长代收模式(包含:用户自提,团长配送)" />
-                    <input type="checkbox" lay-skin="primary" name="parameter[isopen_cashondelivery_express]" class="form-control valid" <?php if( !empty($data) && $data['isopen_cashondelivery_express'] == 1 ){ ?>checked<?php } ?> value="1" title="快递配送" />
-                    <input type="checkbox" lay-skin="primary" name="parameter[isopen_cashondelivery_localtown]" class="form-control valid" <?php if( !empty($data) && $data['isopen_cashondelivery_localtown'] == 1 ){ ?>checked<?php } ?> value="1" title="同城配送" />
-                    <input type="checkbox" lay-skin="primary" name="parameter[isopen_cashondelivery_hexiao]" class="form-control valid" <?php if( !empty($data) && $data['isopen_cashondelivery_hexiao'] == 1 ){ ?>checked<?php } ?> value="1" title="到店核销" />
-                    <span class="help-block">
-                        勾选对应的配送方式,订单提交页对应的配送方式,用户可以选择“货到付款”的支付方式。
-                    </span>
-                </div>
-            </div>
-            <div class="layui-form-item">
-                <label class="layui-form-label">“货到付款”收款码</label>
-                <div class="layui-input-block">
-                    <label class='radio-inline'>
-                        <input type='radio' lay-filter="isopen_cashondelivery_code" name='parameter[isopen_cashondelivery_code]' value='0' <?php if( empty($data) || $data['isopen_cashondelivery_code'] == 0 ){ ?>checked <?php } ?> title="关闭" />
-                    </label>
-                    <label class='radio-inline'>
-                        <input type='radio' lay-filter="isopen_cashondelivery_code" name='parameter[isopen_cashondelivery_code]' value='1' <?php if( !empty($data) && $data['isopen_cashondelivery_code'] == 1 ){ ?>checked <?php } ?> title="开启" />
-                    </label>
-                   <span class="help-block">
-                     开启后,团长,配送员以及核销人员可以出示收款码给用户,用户可以扫码进行支付
-                   </span>
-                </div>
-            </div>
-            <div class="layui-form-item">
-                <label class="layui-form-label">“货到付款”收款码</label>
-                <div class="layui-input-block">
-                    <?php echo tpl_form_field_image2('parameter[cashondelivery_code_img]',$data['cashondelivery_code_img']);?>
-                    <span class="help-block">
-                        团长核销人员,同城配送员以及核销人员在对“货到付款”订单操作的时候可以出示“收款码”进行现场收款
-                    </span>
-                </div>
-            </div>
-          <div class="layui-form-item">
-            <label class="layui-form-label"> </label>
-            <div class="layui-input-block">
-              <input type="submit" value="提交" lay-submit lay-filter="formDemo" class="btn btn-primary"  />
-              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-            </div>
-          </div>
-        </form>
-      </div>
-      <!--- 内容结束-->
-    </div>
-  </div>
-</div>
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-  layui.config({
-    base: '/layuiadmin/' //静态资源所在路径
-  }).extend({
-    index: 'lib/index' //主入口模块
-  }).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-
-  $('.sub-nav').css('height',  $(window).height() + 'px');
-
-    form.on('radio(isopen_tradecomponts)', function(data){
-        if ( data.value == 1 ) {
-            $('#open_div').show();
-        } else {
-            $('#open_div').hide();
-        }
-    });
-
-    //监听提交
-    form.on('submit(formDemo)', function(data){
-        var loadingIndex = layer.load(); // 加载中动画遮罩层(1)
-
-        $.ajax({
-            url: data.form.action,
-            type: data.form.method,
-            data: data.field,
-            dataType:'json',
-            success: function (info) {
-                layer.close(loadingIndex); // 提交成功失败都需要关闭
-                if(info.status == 0)
-                {
-                    layer.msg(info.result.message,{icon: 1,time: 2000});
-                    can_sub = true;
-                }else if(info.status == 1){
-                    var go_url = location.href;
-                    if( info.result.hasOwnProperty("url") )
-                    {
-                        go_url = info.result.url;
-                    }
-
-                    layer.msg('操作成功',{time: 1000,
-                        end:function(){
-
-                            location.href = go_url;
-                        }
-                    });
-                    can_sub = true;
-                }
-            }
-        });
-
-        return false;
-    });
-
-
-})
-
-</script>  
-</body>
-</html>

+ 0 - 245
Runtime/Cache/Seller/6346191855c9c6e99e0b0b817a23ff71.php

@@ -1,245 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-    <meta charset="utf-8">
-    <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-    <title><?php echo $shoname; ?></title>
-    <link rel="shortcut icon" href="" />   
-    <meta name="renderer" content="webkit">
-    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-    <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
-    <!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-    <!--[if lt IE 9]>
-      <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-      <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-    <![endif]-->  
-    <link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-    <link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-    <script type="text/javascript">
-        window.sysinfo = {
-        <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-        
-        <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-        
-        <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-        
-        <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-        
-        'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-        
-        'siteroot': '<?php echo ($_W['siteroot']); ?>',
-                'siteurl': '<?php echo ($_W['siteurl']); ?>',
-                'attachurl': '<?php echo ($_W['attachurl']); ?>',
-                'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-                'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-                'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-        'cookie' : {'pre': ''},
-        'account' : <?php echo json_encode($_W['account']);?>,
-        };
-    </script>
-    <script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-    <script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-    <script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-    <script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-    <script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-    <script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-    <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-    <link href="/static/css/snailfish.css" rel="stylesheet">
-    <style type="text/css">.layui-form-switch{margin-top:0!important;margin-right: 10px;}</style>
-</head>
-<body layadmin-themealias="default">
-    <div class="layui-fluid">
-        <div class="layui-card">
-            <div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">直播间管理</span></div>
-
-            <div class="layui-row" style="margin: 0 15px">
-                <div class="layui-card">
-                  <div class="layui-card-header">小程序直播运营操作说明:</div>
-                  <div class="layui-card-body">
-                    <p>1、登录微信小程序后台,在左侧功能栏“直播”<a href="https://mp.weixin.qq.com/" class="text-primary" target="_blank">点击创建直播间</a>。</p>
-                    <p>2、在小程序后台成功创建直播间后,点击列表中的”同步直播间“按钮。同步直播间后直播列表页面中会显示。</p>
-                    <p style="color:red;">3、切勿重复点击”同步直播间“按钮。小程序每天有请求次数限制。</p>
-                  </div>
-                </div>
-            </div>
-
-            <div class="layui-card-body" style="padding:15px;">
-                <form action="" method="get" class="form-horizontal form-search layui-form" role="form">
-                    <input type="hidden" name="c" value="wxlive" />
-                    <input type="hidden" name="a" value="index" />
-                    <div class="layui-form-item">
-                        <div class="layui-inline">
-                            <div class="layui-input-inline">
-                              <input type="text" class="layui-input" name='keywords' value="<?php echo ($keyword); ?>" placeholder="请输入关键词">  
-                            </div>
-                            <div class="layui-input-inline">
-                                <button class="layui-btn layui-btn-sm"  type="submit"> 搜索</button>
-                            </div>
-                        </div>
-                        <span class="pull-right">
-                            <a href="javascript:;" class="btn btn-success" style="margin-right: 10px;" id="refresh" data-href="<?php echo U('wxlive/sync');?>">
-                                <i class="fa fa-refresh"></i> 同步直播间
-                            </a>
-                            <a href="https://mp.weixin.qq.com/" class="btn btn-primary" target="_blank"><i class="fa fa-plus"></i> 添加新直播间</a>
-                        </span>
-                    </div>
-                </form>
-                <form action="" method="post" class="layui-form" lay-filter="component-layui-form-item" enctype="multipart/form-data">
-                    <div class="row">
-                        <div class="col-md-12">
-                            <?php if(count($list)>0){ ?>
-                            <table class="table table-responsive">
-                                <thead>
-                                    <tr>
-                                        <th style="width: 120px;">直播间ID</th>
-                                        <th>直播标题</th>
-                                        <th style="width: 150px;">主播昵称</th>
-                                        <th style="width: 100px;">直播间背景</th>
-                                        <th style="width: 100px;">分享封面</th>
-                                        <th style="width: 100px;">开播时间</th>
-                                        <th style="width: 100px;">结束直播</th>
-                                        <th style="width: 150px;">操作</th>
-                                    </tr>
-                                </thead>
-                                <tbody>
-                                    <?php foreach( $list as $item ){ ?>
-                                    <tr>
-                                        <td><?php echo ($item['roomid']); ?></td>
-                                        <td><?php echo ($item['name']); ?></td>
-                                        <td><?php echo ($item['anchor_name']); ?></td>
-                                        <td>
-                                            <img src="<?php echo tomedia($item['cover_img']);?>" style="width:40px;height:40px;padding:1px;border:1px solid #ccc;"/>
-                                        </td>
-                                        <td>
-                                            <img src="<?php echo tomedia($item['share_img']);?>" style="width:40px;height:40px;padding:1px;border:1px solid #ccc;"/>
-                                        </td>
-                                        <td><?php echo date('Y-m-d H:i:s', $item['start_time']);?></td>
-                                        <td><?php echo date('Y-m-d H:i:s', $item['end_time']);?></td>
-                                        <td style="text-align:left;">
-                                            <input type="checkbox" name="" lay-filter="statewsitch" data-href="<?php echo U('wxlive/change',array('type'=>'is_show','id'=>$item['id']));?>" <?php if( $item['is_show']==1){ ?>checked<?php  }else{ } ?> lay-skin="switch" lay-text="显示|隐藏">
-
-                                            <a class="btn btn-danger btn-xs" href="<?php echo U('wxlive/replay', array('id'=>$item['id'],'roomid'=>$item['roomid']));?>">
-                                                <i class="fa fa-video-camera"></i> 回放
-                                            </a>
-                                            <!-- <a class="btn btn-op btn-operation js-clip" data-href="/lionfish_comshop/moduleB/__plugin__/wx2b03c6e691cd7370/pages/live-player-plugin?room_id=<?php echo ($item['roomid']); ?>">
-                                                <span data-toggle="tooltip" data-placement="top"  data-original-title="复制直播间地址">
-                                                   复制直播间地址
-                                                </span>
-                                            </a> -->
-                                        </td>
-                                    </tr>
-                                    <?php } ?>
-                                    <tr>
-                                        <td colspan='8'>
-                                            <div class='pagers' style='float:right;'>
-                                                <?php echo ($pager); ?>
-                                            </div>
-                                        </td>
-                                    </tr>
-                                </tbody>
-                            </table>
-
-                            <?php  }else{ ?>
-                            <div class='panel panel-default'>
-                                <div class='panel-body' style='text-align: center;padding:30px;'>
-                                    暂时没有任何直播间!
-                                </div>
-                            </div>
-                            <?php } ?>
-                        </div>
-                    </div>
-                </form>
-            </div>
-        </div>
-    </div>
-
-    <script src="/layuiadmin/layui/layui.js"></script>
-    <script>
-        layui.config({
-            base: '/layuiadmin/' //静态资源所在路径
-        }).extend({
-            index: 'lib/index' //主入口模块
-        }).use('index');
-    </script>
-
-    <script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-    $ = layui.$;
-    var form = layui.form;
-    
-    $("#refresh").click(function(){
-      var s_url = $(this).data('href');
-      var loading = layer.load(0, { shade: false });
-        $.ajax({
-            url:s_url,
-            type:'post',
-            dataType:'json',
-            data: '',
-            success:function(info){
-                layer.close(loading);
-                if(info.status == 0)
-                {
-                    layer.msg(info.result.message,{icon: 1,time: 2000});
-                }else if(info.status == 1){
-                    var go_url = location.href;
-                    if( info.result.hasOwnProperty("url") )
-                    {
-                        go_url = info.result.url;
-                    }
-                    layer.msg('操作成功',{time: 1000,
-                        end:function(){
-                            location.href = go_url;
-                        }
-                    }); 
-                }
-            }
-        })
-    });
-
-    form.on('switch(statewsitch)', function(data){
-        var s_url = $(this).attr('data-href')
-        var s_value = 1;
-        if(data.elem.checked)
-        {
-            s_value = 1;
-        }else{
-            s_value = 0;
-        }
-      
-        $.ajax({
-            url:s_url,
-            type:'post',
-            dataType:'json',
-            data:{value:s_value},
-            success: function(info){
-                if(info.status == 0)
-                {
-                    layer.msg(info.result.message,{icon: 1,time: 2000});
-                }else if(info.status == 1){
-                    var go_url = location.href;
-                    if( info.result.hasOwnProperty("url") )
-                    {
-                        go_url = info.result.url;
-                    }
-                    
-                    layer.msg('操作成功',{time: 1000,
-                        end:function(){
-                            location.href = info.result.url;
-                        }
-                    }); 
-                }
-            }
-        })
-    });
-})
-
-
-
-</script>
-</body>
-</html>

+ 0 - 408
Runtime/Cache/Seller/688451932cb401120021c9d38538ecec.php

@@ -1,408 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-            window.sysinfo = {
-            <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-			
-            <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-			
-            'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-			
-            'siteroot': '<?php echo ($_W['siteroot']); ?>',
-                    'siteurl': '<?php echo ($_W['siteurl']); ?>',
-                    'attachurl': '<?php echo ($_W['attachurl']); ?>',
-                    'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-                    'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-                    'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-            'cookie' : {'pre': ''},
-            'account' : <?php echo json_encode($_W['account']);?>,
-            };
-        </script>
-		
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-  <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-   <link href="/static/css/snailfish.css" rel="stylesheet">
-   <script type="text/javascript" src="{php echo SNAILFISH_LOCAL}/static/js/dist/jquery/nestable/jquery.nestable.js"></script>
-<link href="/static/js/dist/jquery/nestable/nestable.css" rel="stylesheet">
-<style type='text/css'>
-    .dd-handle { height: 40px; line-height: 30px}
-    .dd-list { width:860px;}
-    .dd-handle span {
-        font-weight: normal;
-    }
-	.cate_sort{width: 35px;height: 20px;text-align:center;
-		border:1px solid #ebebeb;}
-</style>
-</head>
-<body layadmin-themealias="default">
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">商品分类</span></div>
-		<div class="layui-card-body" style="padding:15px;">
-			<div class="page-table-header">
-				<span class="pull-right"> 
-					<a href="<?php echo U('group/addcategory', array('ok' => 1));?>" class="layui-btn  layui-btn-sm"><i class="fa fa-plus"></i> 添加分类</a>
-				</span>
-				<div style="clear:both;"></div>
-			</div>	
-			<form action="" method="post" class="layui-form" lay-filter="component-layui-form-item" enctype="multipart/form-data" >
-		
-				 <div class="dd" id="div_nestable">
-					<ol class="dd-list">
-
-						<?php foreach( $category as $row ){ ?>
-						<?php if( empty($row['pid'])){ ?>
-						<li class="dd-item full" data-id="<?php echo ($row['id']); ?>">
-
-							<div class="dd-handle" >
-								[<input type="text" class="cate_sort" name="cate_sort" id="cate_sort_<?php echo ($row['id']); ?>" cate_id="<?php echo ($row['id']); ?>" value="<?php echo ($row['sort_order']); ?>" onchange="updateSort(this)"/>] <?php echo ($row['name']); ?>
-								<span class="pull-right">
-
-									<input type="checkbox" name="" lay-filter="enabledwsitch" data-href="<?php echo U('group/category_enabled',array('id'=>$row['id']));?>" <?php if( $row['is_show']==1){ ?>checked<?php  }else{ } ?> lay-skin="switch" lay-text="显示|隐藏">
-													
-										<a class='btn btn-default btn-sm btn-operation btn-op' data-toggle="ajaxModal" href="<?php echo U('group/addcategory', array('pid' => $row['id'], 'ok' => 1));?>" title='' >
-											 <span data-toggle="tooltip" data-placement="top" title="" data-original-title="添加子分类">
-												添加子分类
-											 </span>
-
-										</a>
-										   <a class='btn btn-default btn-sm btn-operation btn-op' data-toggle="ajaxModal" href="<?php echo U('group/addcategory', array('id' => $row['id'] , 'ok' => 1));?>"  >
-											   <span data-toggle="tooltip" data-placement="top"  data-original-title="修改">
-												修改
-												 </span>
-										   </a>
-										  
-										   
-												
-												<a class='btn btn-default btn-sm btn-operation btn-op deldom'  href="javascript:;" data-href="<?php echo U('group/category_delete', array('id' => $row['id']));?>" data-confirm='确认删除此分类吗?'>删除</a>
-											
-									</span>
-								</div>
-								<?php if( count($children[$row['id']])>0){ ?>
-
-								<ol class="dd-list">
-									<?php foreach( $children[$row['id']] as $child ){ ?>
-									<li class="dd-item full" data-id="<?php echo ($child['id']); ?>">
-										<div class="dd-handle" style="width:100%;">
-											<img src="<?php echo tomedia($child['thumb']);;?>" width='30' height="30" onerror="$(this).remove()" style='padding:1px;border: 1px solid #ccc;float:left;' /> &nbsp;
-											[<input type="text" class="cate_sort" name="cate_sort" id="cate_sort_<?php echo ($child['id']); ?>" cate_id="<?php echo ($child['id']); ?>" value="<?php echo ($child['sort_order']); ?>" onchange="updateSort(this)"/>] <?php echo ($child['name']); ?>
-											<span class="pull-right">
-													<input type="checkbox" name="" lay-filter="enabledwsitch" data-href="<?php echo U('group/category_enabled',array('id'=>$child['id']));?>" <?php if( $child['is_show']==1){ ?>checked<?php  }else{ } ?> lay-skin="switch" lay-text="显示|隐藏">
-													
-														<a class='btn btn-default btn-sm btn-operation btn-op' data-toggle="ajaxModal" href="<?php echo U('group/addcategory', array('pid' => $child['id']));?>" title='添加子分类' >
-														   <span data-toggle="tooltip" data-placement="top" title="" data-original-title="添加子分类">
-															添加子分类
-														   </span>
-														</a>
-													    <a class='btn btn-default btn-sm btn-operation btn-op' data-toggle="ajaxModal" href="<?php echo U('group/addcategory', array('id' => $child['id']));?>" title="修改" >
-															  <span data-toggle="tooltip" data-placement="top" title="" data-original-title="修改">
-																	修改
-															 </span>
-														</a>
-														<a class='btn btn-default btn-sm btn-operation btn-op deldom'  href="javascript:;" data-href="<?php echo U('group/category_delete', array('id' => $child['id']));?>" data-confirm="确认删除此分类吗?">
-														  <span data-toggle="tooltip" data-placement="top"  data-original-title="删除">
-																删除
-															</span>
-														</a>
-														
-												</span>
-											</div>
-											<?php if( count($children[$child['id']])>0 ){ ?>
-
-											<ol class="dd-list"  style='width:100%;'>
-												<?php foreach( $children[$child['id']] as $third ){ ?>
-												<li class="dd-item" data-id="<?php echo ($third['id']); ?>">
-													<div class="dd-handle">
-														<img src="<?php echo tomedia($third['thumb']);;?>" width='30' height="30" onerror="$(this).remove()" style='padding:1px;border: 1px solid #ccc;float:left;' /> &nbsp;
-														[<input type="text" class="cate_sort" name="cate_sort" id="cate_sort_<?php echo ($third['id']); ?>" cate_id="<?php echo ($third['id']); ?>" value="<?php echo ($third['sort_order']); ?>" onchange="updateSort(this)"/>] <?php echo ($third['name']); ?>
-														<span class="pull-right">
-														
-														<input type="checkbox" name="" lay-filter="enabledwsitch" data-href="<?php echo U('group/category_enabled',array('id'=>$third['id']));?>" <?php if( $third['is_show']==1){ ?>checked<?php  }else{ } ?> lay-skin="switch" lay-text="显示|隐藏">
-														
-
-															<a class='btn btn-default btn-sm btn-operation btn-op' href="<?php echo U('group/addcategory', array('id' => $third['id']));?>" title="修改" >
-															 <span data-toggle="tooltip" data-placement="top" title="" data-original-title="修改">
-																<i class="icow icow-bianji2"></i>修改
-																 </span>
-															</a>
-																<a class='btn btn-default btn-sm btn-operation btn-op deldom'  href="javascript:;" data-href="<?php echo U('group/category_delete', array('id' => $third['id']));?>" data-confirm="确认删除此分类吗?">
-																	删除
-																</a>
-														</span>
-													</div>
-												</li>
-												<?php } ?>
-											</ol>
-											<?php } ?>
-										</li>
-										<?php } ?>
-									</ol>
-									<?php } ?>
-
-								</li>
-								<?php } ?>
-								<?php } ?>
-
-					</ol>
-					<!-- 
-					<table class='table'>
-						<tr>
-							<td>
-
-								
-								<input id="save_category" type="submit" class="btn btn-primary" value="保存">
-								
-								<input type="hidden" name="token" value="<?php echo ($_W['token']); ?>" />
-								<input type="hidden" name="datas" value="" />
-							</td>
-						</tr>
-						</tbody>
-					</table> -->
-				</div>
-				
-			</form>
-		</div>
-</div>
-</div>
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-var cur_open_div;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  
-	form.on('radio(linktype)', function(data){
-		if (data.value == 2) {
-			$('#typeGroup').show();
-		} else {
-			$('#typeGroup').hide();
-		}
-	});  
-
-	form.on('switch(enabledwsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var s_value = 1;
-	  if(data.elem.checked)
-	  {
-		s_value = 1;
-	  }else{
-		s_value = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{enabled:s_value},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	});  
-	
-	$('.deldom').click(function(){
-		var s_url = $(this).attr('data-href');
-		layer.confirm($(this).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						success:function(info){
-						
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-	})
-	$('#chose_link').click(function(){
-		cur_open_div = $(this).attr('data-input');
-		$.post("<?php echo U('util.selecturl', array('ok' => 1));?>", {}, function(shtml){
-		 layer.open({
-			type: 1,
-			area: '930px',
-			content: shtml //注意,如果str是object,那么需要字符拼接。
-		  });
-		});
-	})
-		
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-})
-</script> 
- 
- <script language='javascript'>
-	$(function () {
-
-		$('#btnExpand').click(function () {
-			var action = $(this).data('action');
-			if (action === 'expand') {
-				$('#div_nestable').nestable('collapseAll');
-				$(this).data('action', 'collapse').html('<i class="fa fa-angle-up"></i> 展开所有');
-
-			} else {
-				$('#div_nestable').nestable('expandAll');
-				$(this).data('action', 'expand').html('<i class="fa fa-angle-down"></i> 折叠所有');
-			}
-		})
-		var depth = <?php echo intval($_W['shopset']['category']['level']);?>;
-		if (depth <= 0) {
-			depth = 3;
-		}
-		
-
-		$('.dd-item').addClass('full');
-
-		$(".dd-handle a,.dd-handle div").mousedown(function (e) {
-
-			e.stopPropagation();
-		});
-		var $expand = false;
-		$('#nestableMenu').on('click', function (e)
-		{
-			if ($expand) {
-				$expand = false;
-				$('.dd').nestable('expandAll');
-			} else {
-				$expand = true;
-				$('.dd').nestable('collapseAll');
-			}
-		});
-
-		$('form').submit(function(){
-			var json = window.JSON.stringify($('#div_nestable').nestable("serialize"));
-			$(':input[name=datas]').val(json);
-		});
-
-	})
-
-	function updateSort(obj){
-		var cate_id = $(obj).attr('cate_id');
-		var sort_order = $(obj).val();
-		$.ajax({
-			url: "<?php echo U('group/update_catesort');?>",
-			type: "post",
-			data: {cate_id:cate_id,sort_order:sort_order},
-			dataType:'json',
-			success: function (info) {
-				if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					location.href = info.result.url;
-				}else {
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}
-			}
-		});
-	}
-</script>
-</body>

+ 0 - 616
Runtime/Cache/Seller/68f14c8180d3ee788d050eeff311c023.php

@@ -1,616 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-            window.sysinfo = {
-            <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-			
-            <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-			
-            'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-			
-            'siteroot': '<?php echo ($_W['siteroot']); ?>',
-                    'siteurl': '<?php echo ($_W['siteurl']); ?>',
-                    'attachurl': '<?php echo ($_W['attachurl']); ?>',
-                    'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-                    'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-                    'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-            'cookie' : {'pre': ''},
-            'account' : <?php echo json_encode($_W['account']);?>,
-            };
-        </script>
-		
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-<link href="/static/css/snailfish.css" rel="stylesheet">
-<style>
-.layui-table > caption + thead > tr:first-child > td, .layui-table > caption + thead > tr:first-child > th, .layui-table > colgroup + thead > tr:first-child > td, .layui-table> colgroup + thead > tr:first-child > th, .layui-table > thead:first-child > tr:first-child > td, .layui-table > thead:first-child > tr:first-child > th {
-    color: #000;
-}
-.table>thead>tr>th, .table>tbody>tr>th, .table>tfoot>tr>th, .table>thead>tr>td, .table>tbody>tr>td, .table>tfoot>tr>td {
-    color: #000;
-}
-</style>
-</head>
-<body layadmin-themealias="default">
-
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">小程序路径</span></div>
-		<div class="layui-card-body" style="padding:15px;">
-			
-			<form action="" method="post" class="layui-form" lay-filter="component-layui-form-item" enctype="multipart/form-data" >
-				<table class="table table-responsive layui-table" lay-even lay-skin="line" lay-size="lg">
-					<thead>
-						<tr>
-							<th >页面</th>
-							<th >路径(*用具体内容替换)</th>
-							<th>&nbsp;</th>
-						</tr>
-					</thead>
-					<tbody>
-						<tr>
-							<td>商城首页</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/pages/index/index">
-									lionfish_comshop/pages/index/index
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-						<tr>
-							<td>商城首页带团长</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/pages/index/index?community_id=*">
-									lionfish_comshop/pages/index/index?community_id=*
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-						<tr>
-							<td>分类</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/pages/type/index">
-									lionfish_comshop/pages/type/index
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-						<tr>
-							<td>购物车</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/pages/order/shopCart">
-									lionfish_comshop/pages/order/shopCart
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-						
-						<tr>
-							<td>个人中心</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/pages/user/me">
-									lionfish_comshop/pages/user/me
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-						<tr>
-							<td>我的订单</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/pages/order/index">
-									lionfish_comshop/pages/order/index
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-						<tr>
-							<td>商品详情</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/pages/goods/goodsDetail?id=*">
-									lionfish_comshop/pages/goods/goodsDetail?id=*
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-						<tr>
-							<td>团长申请页</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/moduleA/groupCenter/apply">
-									lionfish_comshop/moduleA/groupCenter/apply
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-						<tr>
-							<td>供应商申请页</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/pages/supply/recruit">
-									lionfish_comshop/pages/supply/recruit
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-						
-						<tr>
-							<td>供应商列表页</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/pages/supply/index">
-									lionfish_comshop/pages/supply/index
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-						<tr>
-							<td>某供应商详情页</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/pages/supply/home?id=*">
-									lionfish_comshop/pages/supply/home?id=*
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-						<tr>
-							<td>供应商中心</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/moduleB/supply/index">
-									lionfish_comshop/moduleB/supply/index
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-						
-						<tr>
-							<td>余额充值</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/pages/user/charge">
-									lionfish_comshop/pages/user/charge
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-						<tr>
-							<td>积分签到/积分兑换/积分商城</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/moduleA/score/signin">
-									lionfish_comshop/moduleA/score/signin
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-						
-						<tr>
-							<td>我的优惠券</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/pages/user/coupon">
-									lionfish_comshop/pages/user/coupon
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-						<tr>
-							<td>会员卡</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/moduleA/vip/upgrade">
-									lionfish_comshop/moduleA/vip/upgrade
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-						
-						<tr>
-							<td>拼团首页</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/moduleA/pin/index">
-									lionfish_comshop/moduleA/pin/index
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-						<tr>
-							<td>我的拼团</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/moduleA/pin/me">
-									lionfish_comshop/moduleA/pin/me
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-						<tr>
-							<td>拼团商品详情</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/moduleA/pin/goodsDetail?id=*">
-									lionfish_comshop/moduleA/pin/goodsDetail?id=*
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-						
-						<tr>
-							<td>付费会员首页</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/moduleA/vip/upgrade">
-									lionfish_comshop/moduleA/vip/upgrade
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-
-						<tr>
-							<td>菜谱</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/moduleA/menu/index">
-									lionfish_comshop/moduleA/menu/index
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-						<tr>
-							<td>菜谱详情</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/moduleA/menu/details?id=*">
-									lionfish_comshop/moduleA/menu/details?id=*
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-						<tr>
-							<td>视频商品列表</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/moduleA/video/index">
-									lionfish_comshop/moduleA/video/index
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-						<tr>
-							<td>视频商品详情</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/moduleA/video/detail?id=*">
-									lionfish_comshop/moduleA/video/detail?id=*
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-						<tr>
-							<td>分销申请</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/distributionCenter/pages/recruit">
-									lionfish_comshop/distributionCenter/pages/recruit
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-						
-						<tr>
-							<td>分销中心</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/distributionCenter/pages/me">
-									lionfish_comshop/distributionCenter/pages/me
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-						<tr>
-							<td>分销中心-我的粉丝</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/distributionCenter/pages/fans">
-									lionfish_comshop/distributionCenter/pages/fans
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-						<tr>
-							<td>分销中心-推广明细</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/distributionCenter/pages/goodsDetails">
-									lionfish_comshop/distributionCenter/pages/goodsDetails
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-						<tr>
-							<td>分销中心-分销提现</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/distributionCenter/pages/excharge">
-									lionfish_comshop/distributionCenter/pages/excharge
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-						<tr>
-							<td>分销中心-我的二维码</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/distributionCenter/pages/share">
-									lionfish_comshop/distributionCenter/pages/share
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-						
-
-						<tr>
-							<td>团长中心</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/moduleA/groupCenter/index">
-									lionfish_comshop/moduleA/groupCenter/index
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-						<tr>
-							<td>团长中心-我的团单</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/moduleA/groupCenter/groupList">
-									lionfish_comshop/moduleA/groupCenter/groupList
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-						<tr>
-							<td>团长中心-社区用户</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/moduleA/groupCenter/communityMembers">
-									lionfish_comshop/moduleA/groupCenter/communityMembers
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-						<tr>
-							<td>团长中心-结算记录</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/moduleA/groupCenter/distributionList">
-									lionfish_comshop/moduleA/groupCenter/distributionList
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-						<tr>
-							<td>团长中心-我的钱包</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/moduleA/groupCenter/wallet">
-									lionfish_comshop/moduleA/groupCenter/wallet
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-						<tr>
-							<td>团长中心-提现申请</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/moduleA/groupCenter/editInfo">
-									lionfish_comshop/moduleA/groupCenter/editInfo
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-						<tr>
-							<td>团长中心-核销管理</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/moduleA/groupCenter/communityMembers">
-									lionfish_comshop/moduleA/groupCenter/communityMembers
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-						<tr>
-							<td>团长中心-团长分销</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/moduleA/groupCenter/gruopInfo">
-									lionfish_comshop/moduleA/groupCenter/gruopInfo
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-						<tr>
-							<td>接龙首页</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/moduleA/solitaire/index">
-									lionfish_comshop/moduleA/solitaire/index
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-						<tr>
-							<td>接龙详情</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/moduleA/solitaire/details?id=*">
-									lionfish_comshop/moduleA/solitaire/details?id=*
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-						<tr>
-							<td>个人中心--我的接龙</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/moduleA/solitaire/me">
-									lionfish_comshop/moduleA/solitaire/me
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-
-						<tr>
-							<td>附近社区</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/pages/position/community">
-									lionfish_comshop/pages/position/community
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-						
-						<tr>
-							<td>常见帮助</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/pages/user/protocol">
-									lionfish_comshop/pages/user/protocol
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-						<tr>
-							<td>关于我们</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/pages/user/articleProtocol?about=1">
-									lionfish_comshop/pages/user/articleProtocol?about=1
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-
-						<tr>
-							<td>直播列表</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/moduleB/live/index">
-									lionfish_comshop/moduleB/live/index
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-						<tr>
-							<td>直播间</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/moduleB/__plugin__/wx2b03c6e691cd7370/pages/live-player-plugin?room_id=*">
-									lionfish_comshop/moduleB/__plugin__/wx2b03c6e691cd7370/pages/live-player-plugin?room_id=*
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-
-						<tr>
-							<td>主题活动详情</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/moduleA/special/index?id=*">
-									lionfish_comshop/moduleA/special/index?id=*
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-						<tr>
-							<td>礼品卡兑换中心</td>
-							<td>
-								<a href="javascript:;" class="js-clip line-text" data-url="lionfish_comshop/moduleB/virtualcard/index">
-									lionfish_comshop/moduleB/virtualcard/index
-								</a>
-							</td>
-							<td>&nbsp;</td>
-						</tr>
-
-					</tbody>
-				</table>
-			</form>
-			
-			
-		</div>
-</div>
-</div>
-
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer','form','colorpicker'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  var colorpicker = layui.colorpicker;
- 
-  var nav_bg_color = '<?php echo ($data["nav_bg_color"]); ?>';
-   //表单赋值
-    colorpicker.render({
-      elem: '#minicolors'
-	   ,color: nav_bg_color ? nav_bg_color : '#F75451'
-      ,done: function(color){
-        $('#test-colorpicker-form-input').val(color);
-      }
-    });
-
-	var index_top_font_color = '<?php echo ($data["index_top_font_color"]); ?>';
-    colorpicker.render({
-      elem: '#minicolors2'
-      ,color: index_top_font_color ? index_top_font_color : '#FFFFFF'
-      ,done: function(color){
-        $('#test-colorpicker-form-input2').val(color);
-      }
-    });
-  
-  
-   
-	
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-})
-
-
-
-</script>  
-</body>

+ 0 - 457
Runtime/Cache/Seller/6a15c3aef56010bb5d7c1839af77143d.php

@@ -1,457 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
-  <!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-  <!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-  <![endif]-->
-
-  <link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-  <link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-  <script type="text/javascript">
-      window.sysinfo = {
-        <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-        <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-        <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-        <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-        'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-        'siteroot': '<?php echo ($_W['siteroot']); ?>',
-        'siteurl': '<?php echo ($_W['siteurl']); ?>',
-        'attachurl': '<?php echo ($_W['attachurl']); ?>',
-        'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-        'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-        'module': {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-        'cookie': {'pre': ''},
-        'account': <?php echo json_encode($_W['account']);?>,
-      };
-  </script>
-        
-  <script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-  <script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-  <script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-  <script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-  <script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-  <script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-  <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-  <link href="/static/css/snailfish.css" rel="stylesheet">
-</head>
-<body layadmin-themealias="default">
-
-<div class="layui-fluid">
-    <div class="layui-card">
-        <div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">优惠券管理</span></div>
-        <div class="layui-card-body" style="padding:15px;">
-	        <div class="page-content">
-	            <form action="" method="get" class="form-horizontal form-search layui-form" role="form" id="form1">
-					<input type="hidden" name="c" value="marketing" />
-					<input type="hidden" name="a" value="coupon" />
-					
-                    
-					<div class="layui-form-item">
-						<!-- <div class='layui-input-inline' style='width: 280px;'>
-							<?php echo tpl_form_field_daterange('time', array('placeholder'=>'创建时间'),true);;?>
-						</div> -->
-						<span class="layui-input-inline" style="width:120px;">
-							<select name='gettype' class="layui-input layui-unselect" >
-								<option value=''>首页显示</option>
-								<option value='0' <?php if( $gpc['gettype']=='0'){ ?>selected<?php } ?>>不显示</option>
-								<option value='1' <?php if( $gpc['gettype']=='1'){ ?>selected<?php } ?>>显示</option>
-							</select>
-						</span>
-						<span class="layui-input-inline" style="width:120px;">
-							<select name='catid' class="layui-input layui-unselect" >
-								<option value=''>分类</option>
-								<?php foreach( $category as $k => $c ){ ?>
-								<option value='<?php echo ($k); ?>' <?php if( $gpc['catid']==$k){ ?>selected<?php } ?>><?php echo ($c); ?></option>
-								<?php } ?>
-							</select>
-						</span>
-						<div class="layui-input-inline" style="width:250px;">
-							<input type="text" class="form-control" name='keyword' value="<?php echo ($gpc['keyword']); ?>" placeholder="优惠券名称"> 
-						</div>
-						<span class="layui-input-inline">
-							<button class="btn btn-primary" type="submit"> 搜索</button> 
-						</span>
-					</div>
-				</form>
-
-				<form action="" class="layui-form" lay-filter="example" method="post" >
-					<div class="page-table-header">
-						
-						<span class="pull-right">
-							<a href="<?php echo U('marketing/addcoupon', array('ok' => 1));?>" class="layui-btn layui-btn-sm"><i class="fa fa-plus"></i> 添加优惠券</a>
-						</span>
-						<span class="btn-group">
-							<button class="btn btn-default btn-sm dropdown-toggle btn-operation" type="button" data-toggle='batch-remove' data-confirm="确认要删除?" data-href="<?php echo U('marketing/deletecoupon');?>">
-								<i class="layui-icon">&#xe640;</i>删除
-							</button>
-						</span>
-					</div>
-					<?php if( count($list)>0){ ?>
-					<table class="layui-table" lay-skin="line" lay-size="lg">
-						<thead class="navbar-inner" >
-						<tr>
-							<th style="width:25px;"><input type='checkbox' name="checkall" lay-skin="primary" lay-filter="checkboxall" /></th>
-							<th style="width:50px;">ID</th>
-							<th style="">优惠券名称</th>
-							<th style=" ">优惠<br/>使用条件</th>
-							<th style=" ">剩余数量/已使用/已发出</th>
-							<th style="width:130px;">首页领券</th>
-                            <th style="width:130px;">首页弹窗</th>
-                            <th style="width:50px;">排序</th>
-							<th style="width:200px;">创建时间</th>
-							<th style="width: 200px;">操作</th>
-						</tr>
-						</thead>
-						<tbody>
-						<?php foreach( $list as $row ){ ?>
-						<tr>
-							<td>
-								<input type='checkbox' value="<?php echo ($row['id']); ?>" name="item_checkbox" lay-skin="primary"/>
-							</td>
-							<td>
-								<?php echo ($row['id']); ?>
-							</td>
-							<td>
-								<p style="line-height:30px;"><?php echo ($row['voucher_title']); ?></p>
-								<label class='label label-success'>购物</label>
-								<?php if( !empty($row['catid'])){ ?>
-								<label class='label label-primary'><?php echo ($category[$row['catid']]); ?></label>
-								<?php } ?>
-								
-								<?php if($row['is_new_man'] == 1){ ?>
-								<label class='layui-badge'>新人券</label>
-								<?php } ?>
-							</td>
-							<td>
-								<?php echo ($row['credit']); ?> 元<br/> 
-								<?php if( $row['limit_money']>0){ ?>
-								<span class="text-danger">满<?php echo ($row['limit_money']); ?>可用</span>
-								<?php  }else{ ?>
-								<span class="text-warning">不限</span>
-								<?php } ?>
-							</td>
-							<td>
-								<?php if( $row['total_count']==-1){ ?>无限<?php  }else{ ?>剩余:<?php echo ($row['total_count'] - $row['send_count']) < 0 ? 0:$row['total_count'] - $row['send_count']; ?> <?php } ?>
-								&nbsp;&nbsp;已使用: <?php echo ($row['usetotal']); ?>&nbsp;&nbsp;已发出: <?php echo ($row['send_count']); ?>
-							</td>
-							<td>
-								<input type="checkbox" name="" lay-filter="statewsitch" data-href="<?php echo U('marketing/change',array('type'=>'is_index_show','id'=>$row['id']));?>" <?php if( $row['is_index_show']==1){ ?>checked<?php  }else{ } ?> lay-skin="switch" lay-text="显示|隐藏">
-							</td>
-                            <td>
-                                <input type="checkbox" name="" lay-filter="statewsitch" data-href="<?php echo U('marketing/change',array('type'=>'is_index_alert','id'=>$row['id']));?>" <?php if( $row['is_index_alert']==1){ ?>checked<?php  }else{ } ?> lay-skin="switch" lay-text="显示|隐藏">
-                            </td>
-                            <td>
-                                <a href='javascript:;' class="setOrder" data-id="<?php echo ($row['id']); ?>" data-value="<?php echo ($row['displayorder']); ?>" data-href="<?php echo U('marketing/displayordercoupon',array('id'=>$row['id']));?>" ><?php echo ($row['displayorder']); ?></a>
-                            </td>
-							<td><?php echo date('Y-m-d',$row['add_time']);?> <?php echo date('H:i',$row['add_time']);?></td>
-							<td>
-								<div class="btn-group">
-									<a class="layui-btn layui-btn-xs" href="<?php echo U('marketing/addcoupon',array('id'=> $row['id'],'ok'=>1));;?>">
-									<i class="layui-icon layui-icon-edit"></i>编辑</a>
-  									<a class="layui-btn layui-btn-danger layui-btn-xs deldom" href="javascript:;" data-href="<?php echo U('marketing/deletecoupon',array('id' => $row['id']));?>" data-confirm="确定要删除该优惠券吗?"><i class="layui-icon">&#xe640;</i>删除</a>
-								</div>
-							</td>
-						</tr>
-						<?php } ?>
-						</tbody>
-						<tfoot>
-							<tr>
-								<td colspan="3">
-									<input type="checkbox" name="checkall" lay-skin="primary" lay-filter="checkboxall" />
-									<span class="btn-group">
-										<button class="btn btn-default btn-sm dropdown-toggle btn-operation" type="button" data-toggle='batch-remove' data-confirm="确认要删除?" data-href="<?php echo U('marketing/deletecoupon');?>">
-											<i class="layui-icon">&#xe640;</i>删除
-										</button>
-									</span>
-								</td>
-								<td colspan="6" style="text-align: right"><?php echo ($pager); ?></td>
-							</tr>
-						</tfoot>
-					</table>
-					<?php  }else{ ?>
-					<div class='panel panel-default'>
-						<div class='panel-body' style='text-align: center;padding:30px;'>
-							暂时没有任何优惠券!
-						</div>
-					</div>
-					<?php } ?>
-				</form>
-			</div>
-		</div>
-	</div>
-</div>
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-    layui.config({
-        base: '/layuiadmin/' //静态资源所在路径
-    }).extend({
-        index: 'lib/index' //主入口模块
-    }).use('index');
-</script>
-
-<script>
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer', 'form'], function(){ 
-    $ = layui.$;
-    var form = layui.form;
-  
-    $('.deldom').click(function(){
-        var s_url = $(this).attr('data-href');
-        layer.confirm($(this).attr('data-confirm'), function(index){
-            $.ajax({
-                url:s_url,
-                type:'post',
-                dataType:'json',
-                success:function(info){
-                
-                    if(info.status == 0)
-                    {
-                        layer.msg(info.result.message,{icon: 1,time: 2000});
-                    }else if(info.status == 1){
-                        var go_url = location.href;
-                        if( info.result.hasOwnProperty("url") )
-                        {
-                            go_url = info.result.url;
-                        }
-                        
-                        layer.msg('操作成功',{time: 1000,
-                            end:function(){
-                                location.href = info.result.url;
-                            }
-                        }); 
-                    }
-                }
-            })
-        }); 
-    })
-    
-    $('.btn-operation').click(function(){
-        var ids_arr = [];
-        var obj = $(this);
-        var s_toggle = $(this).attr('data-toggle');
-        var s_url = $(this).attr('data-href');
-        
-        
-        $("input[name=item_checkbox]").each(function() {
-            
-            if( $(this).prop('checked') )
-            {
-                ids_arr.push( $(this).val() );
-            }
-        })
-        if(ids_arr.length < 1)
-        {
-            layer.msg('请选择要操作的内容');
-        }else{
-            var can_sub = true;
-            if( s_toggle == 'batch-remove' )
-            {
-                can_sub = false;
-                
-                layer.confirm($(obj).attr('data-confirm'), function(index){
-                     $.ajax({
-                        url:s_url,
-                        type:'post',
-                        dataType:'json',
-                        data:{ids:ids_arr},
-                        success:function(info){
-                        
-                            if(info.status == 0)
-                            {
-                                layer.msg(info.result.message,{icon: 1,time: 2000});
-                            }else if(info.status == 1){
-                                var go_url = location.href;
-                                if( info.result.hasOwnProperty("url") )
-                                {
-                                    go_url = info.result.url;
-                                }
-                                
-                                layer.msg('操作成功',{time: 1000,
-                                    end:function(){
-                                        location.href = info.result.url;
-                                    }
-                                }); 
-                            }
-                        }
-                    })
-                }); 
-            }else{
-                $.ajax({
-                    url:s_url,
-                    type:'post',
-                    dataType:'json',
-                    data:{ids:ids_arr},
-                    success:function(info){
-                    
-                        if(info.status == 0)
-                        {
-                            layer.msg(info.result.message,{icon: 1,time: 2000});
-                        }else if(info.status == 1){
-                            var go_url = location.href;
-                            if( info.result.hasOwnProperty("url") )
-                            {
-                                go_url = info.result.url;
-                            }
-                            
-                            layer.msg('操作成功',{time: 1000,
-                                end:function(){
-                                    location.href = info.result.url;
-                                }
-                            }); 
-                        }
-                    }
-                })
-            }
-        }
-    })
-  
-    form.on('switch(statewsitch)', function(data){
-      
-      var s_url = $(this).attr('data-href')
-      
-      var s_value = 1;
-      if(data.elem.checked)
-      {
-        s_value = 1;
-      }else{
-        s_value = 0;
-      }
-      
-      $.ajax({
-            url:s_url,
-            type:'post',
-            dataType:'json',
-            data:{value:s_value},
-            success:function(info){
-            
-                if(info.status == 0)
-                {
-                    layer.msg(info.result.message,{icon: 1,time: 2000});
-                }else if(info.status == 1){
-                    var go_url = location.href;
-                    if( info.result.hasOwnProperty("url") )
-                    {
-                        go_url = info.result.url;
-                    }
-                    
-                    layer.msg('操作成功',{time: 1000,
-                        end:function(){
-                            location.href = info.result.url;
-                        }
-                    }); 
-                }
-            }
-        })
-    });
-
-    form.on('checkbox(checkboxall)', function(data){
-      if(data.elem.checked)
-      {
-        $("input[name=item_checkbox]").each(function() {
-            $(this).prop("checked", true);
-        });
-        $("input[name=checkall]").each(function() {
-            $(this).prop("checked", true);
-        });
-        
-      }else{
-        $("input[name=item_checkbox]").each(function() {
-            $(this).prop("checked", false);
-        });
-        $("input[name=checkall]").each(function() {
-            $(this).prop("checked", false);
-        });
-      }
-      
-      form.render('checkbox');
-    });
-  
-    //监听提交
-    form.on('submit(formDemo)', function(data){
-        $.ajax({
-            url: data.form.action,
-            type: data.form.method,
-            data: data.field,
-            dataType:'json',
-            success: function (info) {
-              
-                if(info.status == 0)
-                {
-                    layer.msg(info.result.message,{icon: 1,time: 2000});
-                }else if(info.status == 1){
-                    var go_url = location.href;
-                    if( info.result.hasOwnProperty("url") )
-                    {
-                        go_url = info.result.url;
-                    }
-                    
-                    layer.msg('操作成功',{time: 1000,
-                        end:function(){
-                            location.href = info.result.url;
-                        }
-                    }); 
-                }
-            }
-        });
-        return false;
-    });
-
-
-    $('.setOrder').click(function(e){
-    	var _this = $(this);
-    	var id = _this.data('id');
-    	var value = _this.data('value');
-    	layer.prompt({
-	        formType: 2
-	        ,title: '修改 ID 为 ['+ id +'] 的排序'
-	        ,value: value
-	      }, function(value, index){
-	        layer.close(index);
-	        var s_url = _this.data('href');
-            $.ajax({
-                url:s_url,
-                type:'post',
-                dataType:'json',
-                data: {value: value},
-                success:function(info){
-                    if(info.status == 0)
-                    {
-                        layer.msg(info.result.message,{icon: 1,time: 2000});
-                    }else if(info.status == 1){
-                        var go_url = location.href;
-                        if( info.result.hasOwnProperty("url") )
-                        {
-                            go_url = info.result.url;
-                        }
-                        
-                        layer.msg('操作成功',{time: 1000,
-                            end:function(){
-                                location.href = info.result.url;
-                            }
-                        }); 
-                    }
-                }
-            })
-	      });
-    })
-})
-
-</script>  
-</body>
-</html>

+ 0 - 1990
Runtime/Cache/Seller/6f65e6d6f21f6567ef5d3b8661c0b3b1.php

@@ -1,1990 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-	window.sysinfo = {
-	<?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-	
-	<?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-	
-	'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-	
-	'siteroot': '<?php echo ($_W['siteroot']); ?>',
-			'siteurl': '<?php echo ($_W['siteurl']); ?>',
-			'attachurl': '<?php echo ($_W['attachurl']); ?>',
-			'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-			'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-			'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-	'cookie' : {'pre': ''},
-	'account' : <?php echo json_encode($_W['account']);?>,
-	};
-</script>
-
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-
-<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-<link href="/static/css/snailfish.css" rel="stylesheet">
-<style>
-    tbody tr td{
-        position: relative;
-    }
-    tbody tr  .icow-weibiaoti--{
-        visibility: hidden;
-        display: inline-block;
-        color: #fff;
-        height:18px;
-        width:18px;
-        background: #e0e0e0;
-        text-align: center;
-        line-height: 18px;
-        vertical-align: middle;
-    }
-    tbody tr:hover .icow-weibiaoti--{
-        visibility: visible;
-    }
-    tbody tr  .icow-weibiaoti--.hidden{
-        visibility: hidden !important;
-    }
-    .full .icow-weibiaoti--{
-        margin-left:10px;
-    }
-    .full>span{
-        display: -webkit-box;
-        display: -webkit-flex;
-        display: -ms-flexbox;
-        display: flex;
-        vertical-align: middle;
-        align-items: center;
-    }
-    tbody tr .label{
-        margin: 5px 0;
-    }
-    .goods_attribute a{
-        cursor: pointer;
-    }
-    .newgoodsflag{
-        width: 22px;height: 16px;
-        background-color: #ff0000;
-        color: #fff;
-        text-align: center;
-        position: absolute;
-        bottom: 70px;
-        left: 57px;
-        font-size: 12px;
-    }
-	.a{cursor: pointer;}
-	.daterangepicker select.ampmselect, .daterangepicker select.hourselect, .daterangepicker select.minuteselect{
-		width:auto!important;
-	}
-	.we7-modal-dialog .modal-footer, .modal-dialog .modal-footer{padding:0px;}
-	.modal-footer{padding:0px;}
-</style>
-</head>
-<body layadmin-themealias="default">
-
-<table id="demo" lay-filter="test"></table>
-
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">礼品卡商品列表</span></div>
-		
-		<div class="layui-tab layui-tab-brief" >
-		  <ul class="layui-tab-title">
-				
-				<li  <?php if(empty($type) || $type=='all'){ ?>class="layui-this"<?php } ?>><a href="<?php echo U('virtualcard/index');?>">全部商品(<?php echo ($all_count); ?>)</a></li>
-                <li  <?php if($type=='saleon'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U('virtualcard/index',array('type'=>'saleon'));?>">出售中(<?php echo ($onsale_count); ?>)</a></li>
-                <li <?php if($type=='stock_notice'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U('virtualcard/index',array('type'=>'stock_notice'));?>">库存预警(<?php echo ($stock_notice_count); ?>)</a></li>
-                <li <?php if($type=='getdown'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U('virtualcard/index',array('type'=>'getdown'));?>">已下架(<?php echo ($getdown_count); ?>)</a></li>
-                
-				<li  <?php if($type=='wait_shen'){ ?> class="layui-this"<?php } ?> ><a href="<?php echo U('virtualcard/index',array('type'=>'wait_shen'));?>">待审核(<?php echo ($waishen_count); ?>)</a></li>
-                <li <?php if($type=='refuse'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U('virtualcard/index',array('type'=>'refuse'));?>">已拒绝(<?php echo ($unsuccshen_count); ?>)</a></li>
-
-			    <li <?php if($type=='recycle'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U('virtualcard/index',array('type'=>'recycle'));?>">回收站(<?php echo ($recycle_count); ?>)</a></li>
-				
-		  </ul>
-		</div>
-		
-		<div class="layui-card-body" style="padding:15px;">
-			<form action="" id="searchform" method="get" class="form-horizontal form-search layui-form" role="form">
-				<input type="hidden" name="c" value="virtualcard" />
-				<input type="hidden" name="a" value="index" />
-				<input type="hidden" name="type" value="<?php echo ($type); ?>" />
-				
-				<input type="hidden" name="sortfield" id="sortfield" value="<?php echo ($sortfield); ?>" />
-				<input type="hidden" name="sortby" id="sortby" value="<?php echo ($sortby); ?>" />
-				<div class="layui-form-item">
-				  <div class="layui-inline">
-					<div class="layui-input-inline" >
-						<input type="text" class="layui-input"  name="keyword" value="<?php echo ($keyword); ?>" placeholder="输入商品编码或者名称"/>
-				
-					</div>
-					<div class="layui-input-inline" >
-						<select name='searchtime'  class='layui-input layui-unselect'   style="width:100px;padding:0 5px;">
-							<option value=''>不按时间</option>
-							<option value='create' <?php if($searchtime=='create'){ ?>selected<?php } ?>>团购时间</option>
-						</select>
-					</div>
-					<div class="layui-input-inline" style="width:280px;">
-						<?php echo tpl_form_field_daterange('time', array('starttime'=>date('Y-m-d H:i', $starttime),'endtime'=>date('Y-m-d H:i', $endtime)),true);;?>
-					</div>
-					<div class="layui-input-inline" >
-						<select name="cate" class='layui-input layui-unselect' style="width:200px;" >
-							<option value="" <?php if( empty($cate) ){ ?>selected<?php } ?> >商品分类</option>
-							<?php foreach($category as $c){ ?>
-							<option value="<?php echo ($c['id']); ?>" <?php if( $cate==$c['id'] ){ ?>selected<?php } ?> ><?php echo ($c['name']); ?></option>
-							<?php } ?>
-						</select>
-					</div>
-					
-					<div class="layui-input-inline">
-						<button class="layui-btn layui-btn-sm" type="submit"> 搜索</button>
-						<button type="submit" name="export" value="1" class="layui-btn layui-btn-sm ">导出</button>
-
-					</div>
-				  </div>
-				</div>
-			</form>
-			<form action="" class="layui-form" lay-filter="example" method="post" >
-       
-				<div class="row">
-					<div class="col-md-12">
-					
-						<div class="page-table-header">
-							
-							<span class="pull-right"> 
-								<a href="<?php echo U('virtualcard/addgoods', array('ok' =>1));?>" class="layui-btn layui-btn-sm"><i class="fa fa-plus"></i> 添加商品</a>
-								<button type="button" class="layui-btn layui-btn-sm exceledit" style="display:none;">excel导入编辑</button>
-							</span>
-							<input type="checkbox" name="checkall" lay-skin="primary" lay-filter="checkboxall">
-							<div class="btn-group">
-								<?php if($is_index){ ?>
-								<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch'  data-href="<?php echo U('goods/change',array('type'=>'is_index_show', 'value' => 1));?>">
-									<i class='icow icow-xiajia3'></i> 首页推荐
-								</button>
-								<?php } ?>
-								
-								<?php if($is_updown){ ?>
-
-									<?php if( defined('ROLE') && ROLE == 'agenter'){ ?>
-
-									<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch' data-href="<?php echo U('goods/change',array('type'=>'grounding','value'=>1));?>">
-											<i class='icow icow-shangjia2'></i> 上架
-									</button>
-
-									<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch'  data-href="<?php echo U('goods/change',array('type'=>'grounding','value'=>0));?>">
-										<i class='icow icow-xiajia3'></i> 下架
-									</button>
-									<?php } ?>
-								<?php } ?>
-								<?php if($is_open_fullreduction == 1 && $is_fullreduce ){ ?>
-								<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch' data-href="<?php echo U('goods/change_cm',array('type'=>'is_take_fullreduction','value'=>1));?>">
-									<i class='icow icow-shangjia2'></i> 参加满减
-								</button>
-								<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch'  data-href="<?php echo U('goods/change_cm',array('type'=>'is_take_fullreduction','value'=>0));?>">
-									<i class='icow icow-xiajia3'></i> 不参加满减
-								</button>
-								<?php } ?>
-								<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch-group'  id="batchcatesbut" >商品分类</button>
-								
-								<?php if( defined('ROLE') && ROLE == 'agenter'){ ?>
-										<?php if($is_distributionsale){ ?>
-											<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch-group'  id="batch_head" >分配售卖团长</button>
-											<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch-group'  id="batch_head_group" >分配售卖团长分组</button>
-										<?php  }else{ ?>
-										
-										<?php } ?>
-								<?php  }else{ ?>
-										<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch-group'  id="batch_head" >分配售卖团长</button>
-										<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch-group'  id="batch_head_group" >分配售卖团长分组</button>
-								<?php } ?>
-								
-								<button class="btn btn-default btn-sm btn-operation" type="button" data-toggle='batch-group'  id="batchtime" >设置活动时间</button>
-								
-								<?php if($is_index){ ?>
-								<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch'  data-href="<?php echo U('goods/change',array('type'=>'is_index_show', 'value' => 0));?>">
-									<i class='icow icow-xiajia3'></i> 取消首页推荐
-								</button>
-								<?php } ?>
-											
-								<?php if($type!='recycle'){ ?>
-								<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch-remove' data-confirm="确认要删除吗,删除后商品将进入回收站?" data-href="<?php echo U('goods/change',array('type'=>'grounding','value'=>3));?>">
-									<i class='icow icow-shanchu1'></i> 删除
-								</button>
-								<?php } ?>
-								<?php if($type=='recycle'){ ?>
-								<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch-remove' data-confirm="确认要彻底删除吗?" data-href="<?php echo U('goods/delete');?>"><i class='icow icow-shanchu1'></i> 彻底删除</button>
-								<?php } ?>
-							</div>
-						</div>
-						<table class="table table-responsive" lay-even lay-skin="line" lay-size="lg">
-						
-							<thead>
-								<tr>
-									<th style="width:25px;">
-										<input type='checkbox' name="checkall" lay-skin="primary" lay-filter="checkboxall"  />
-									</th>
-									<th style="width:80px;text-align:center;">ID</th>
-									<th style="">&nbsp;</th>
-									<th style="width:200px;">商品名称</th>
-									<th style="">活动时间</th>
-									<th style="width: 120px;">价格</th>
-									<th style="width: 80px;">
-										<a href="<?php echo U('virtualcard/index', array('sortby' =>$sortby,'sortfield' => 'seller_count','keyword'=>$keyword,'cate' =>$cate,'searchtime'=>$searchtime,'sort_starttime'=>$starttime,'sort_endtime'=>$endtime, 'type' =>$type, ) );?>" >
-											<span>总销量</span>
-										<span class="layui-table-sort layui-inline" lay-sort="<?php echo ($sortfield == 'seller_count' ? $sortby :''); ?>">
-											<i class="layui-edge layui-table-sort-asc" title="升序"></i>
-											<i class="layui-edge layui-table-sort-desc" title="降序"></i>
-										</span>
-										</a>
-									</th>
-									<th style="width: 120px;">
-										<a href="<?php echo U('virtualcard/index', array('sortby' =>$sortby,'sortfield' => 'total','keyword'=>$keyword,'cate' =>$cate,'searchtime'=>$searchtime,'sort_starttime'=>$starttime,'sort_endtime'=>$endtime, 'type' =>$type, ) );?>" >
-										<span>库存</span>
-										<span class="layui-table-sort layui-inline" lay-sort="<?php echo ($sortfield == 'total' ? $sortby :''); ?>">
-											<i class="layui-edge layui-table-sort-asc" title="升序"></i>
-											<i class="layui-edge layui-table-sort-desc" title="降序"></i>
-										</span>
-										</a>
-									</th>
-									<th style="width: 120px;"> 
-										<a href="<?php echo U('goods/index', array('sortby' =>$sortby,'sortfield' => 'day_salescount','keyword'=>$keyword,'cate' =>$cate,'searchtime'=>$searchtime,'sort_starttime'=>$starttime,'sort_endtime'=>$endtime, 'type' =>$type, ) );?>" >
-										<span>今日销量</span>
-										<span class="layui-table-sort layui-inline" lay-sort="<?php echo ($sortfield == 'day_salescount' ? $sortby :''); ?>" >
-											<i class="layui-edge layui-table-sort-asc" title="升序"></i>
-											<i class="layui-edge layui-table-sort-desc" title="降序"></i>
-										</span>
-										</a>
-									</th>
-									<?php if($is_open_fullreduction == 1 && $is_fullreduce){ ?>
-									<th  style="width:120px;" >是否满减</th>
-									<?php } ?>
-									
-									<?php if($is_updown == 1 ){ ?>
-									<th  style="width:180px;" >是否上架<?php if($is_open_shenhe==1){ ?><br/>是否审核<?php } ?></th>
-									<?php }else{ ?>
-									<th  style="width:130px;" ></th>
-									<?php } ?>
-									
-								<?php if( defined('ROLE') && ROLE == 'agenter'){ ?>
-										<?php if($is_top){ ?>
-											<?php if($index_sort_method == 1){ ?>
-										
-											<?php }else{ ?>
-												<th>置顶</th>
-											<?php } ?>
-										<?php } ?>
-								<?php  }else{ ?>									
-								
-									<?php if($is_top){ ?>
-										<?php if($index_sort_method == 1){ ?>
-										<th>首页排序</th>
-										<?php }else{ ?>
-										<th>置顶</th>
-										<?php } ?>
-									<?php } ?>
-								<?php } ?>
-								
-									<?php if($is_index){ ?>
-										<th>首页推荐</th>
-										<?php } ?>
-									<th style="">操作</th>
-								</tr>
-							</tr>
-							</thead>
-							<tbody>
-							
-							<?php foreach($list as $item){ ?>
-							<tr>
-							<td>
-								<input type='checkbox' name="item_checkbox" data_is_all_sale="<?php echo ($item['is_all_sale']); ?>" class="checkone" lay-skin="primary" value="<?php echo ($item['id']); ?>"/>
-							</td>
-							<td style="text-align:center;">
-								<?php echo ($item['id']); ?>
-							</td>
-							<td>
-								<a href="<?php echo U('virtualcard/edit', array('id' => $item['id'],'goodsfrom'=>$goodsfrom,'page'=>$page));?>">
-									<img src="<?php echo ($item['thumb']); ?>" style="width:72px;height:72px;padding:1px;border:1px solid #efefef;margin: 7px 0"  />
-								</a>
-							</td>
-							<td class='full' >
-								<span>
-									<span style="display: block;width: 100%;">
-										
-									
-										<?php if( $item['is_only_hexiao'] == 1 ){ ?>
-										<span class="text-danger">[核销]</span>
-										<?php } ?>
-										
-										<?php if($isopen_localtown_delivery == 1 ){ ?>
-											<?php if($item['supply_id'] <=0){ ?>
-													<?php if( $item['is_only_distribution'] == 1 ){ ?>
-													<span class="line-text">[同城配送]</span>
-													<?php } ?>
-											<?php }else{ ?>
-													<?php if( $item['is_only_distribution'] == 1 && $supply_is_open_localtown_distribution == 1 ){ ?>
-													<span class="line-text">[同城配送]</span>
-													<?php } ?>
-											<?php } ?>
-										<?php } ?>
-
-
-										<?php if($seckill_is_open == 1){ ?>
-										<?php if( $item['is_seckill'] == 1 ){ ?>
-										<span class="text-danger">[整点秒杀]</span>
-										<?php } ?>
-										<?php } ?>
-
-										<?php if($item['is_new_buy'] == 1){ ?>
-										<span class="line-text">[新人专享]</a>
-										<?php } ?>
-										
-										<?php if($item['is_only_express'] == 1){ ?>
-										<span class="line-text">[仅快递]</a>
-										<?php } ?>
-										
-										<?php if($item['is_spike_buy'] == 1){ ?>
-										<span class="text-danger">[限时秒杀]</a>
-										<?php } ?>
-										
-										<?php if($item['supply_id'] <=0){ ?><span class="text">[自营<?php if( !empty($item['supply_name']) ){ echo ($item['supply_name']); } ?>]</span><?php }else if( !empty($item['supply_name']) ){ ?><span class="text">[<?php echo ($item['supply_name']); ?>]</span><?php } ?>
-										<a href='javascript:;' data-toggle='ajaxEdit' data-href="<?php echo U('goods/change',array('type'=>'goodsname','id'=>$item['id']));?>" >
-							
-										<span class="text-danger"><?php echo ($item['goodsname']); ?></span>
-										</a>
-										
-										
-										
-										<?php if( !empty($item['cate']) ){ ?>
-											<?php foreach($item['cate'] as $g_cate){ ?>
-											<span class="text-danger">[<?php echo isset($category[$g_cate['cate_id']]) ? $category[$g_cate['cate_id']]['name']: '无分类';?>]</span>
-											<?php } ?>
-										<?php  }else{ ?>
-										<span class="text-danger">[无分类]</span>
-										<?php } ?>
-										
-										<br/>
-										<?php if( $item['is_all_sale'] == 1 ){ ?>
-										<span class="text-green">[所有团长<?php echo ($item['head_count']); ?>]</span>
-										<?php }else if( $item['head_count'] >0 ){ ?>
-										<!--<span class="text-green">[部分团长<?php echo ($item['head_count']); ?>]</span>-->
-										<a href="<?php echo U('goods/goods_head',array('id'=>$item['id']));?>" style="color:#428bca;"><span class="text-green">[部分团长可售 <?php echo ($item['head_count']); ?>]</span></a>
-										<?php }else if( $item['head_count'] == 0 ){ ?>
-										<span class="text-green">[无团长0]</span>
-										<?php } ?>
-										
-										
-										
-										
-										
-									</span>
-								</span>
-							</td>
-							<td>
-								<?php echo date("Y-m-d H:i:s",$item['begin_time']);?>
-								   <br/>
-								<?php echo date("Y-m-d H:i:s",$item['end_time']);?>
-								<br/>
-								
-								<?php if($item['grounding']==1){ ?>
-									<?php if($item['end_time'] <= time()){ ?>
-									<span class="text-danger">活动已结束</span>
-									<?php } ?>
-									<?php if( $item['begin_time'] <= time() && $item['end_time'] > time() ){ ?>
-									<span class="text-danger">正在进行中</span>
-									<?php } ?>
-								
-									<?php if( $item['begin_time'] > time() ){ ?>
-									<span class="text-danger">活动未开始</span>
-									<?php } ?>
-								<?php  }else{ ?>
-									
-									<?php if( $item['end_time'] <= time() ){ ?>
-									<span class="text-danger">活动已结束</span>
-									<?php } ?>
-									<?php if( $item['begin_time'] <= time() && $item['end_time'] > time() ){ ?>
-									<span class="text-danger">未上架</span>
-									<?php } ?>
-								
-									<?php if( $item['begin_time'] > time() ){ ?>
-									<span class="text-danger">活动未开始</span>
-									<?php } ?>
-								<?php } ?>
-								
-							</td>
-							<td >&yen;
-								
-								<?php if( $item['hasoption']==1 ){ ?>
-									<?php echo ($item['price_arr']['price']); ?> <?php if( isset($item['price_arr']['max_danprice']) ){ ?>~&yen;<?php echo ($item['price_arr']['max_danprice']); } ?>
-								<?php  }else{ ?>
-									<a href='javascript:;' data-toggle='ajaxEdit' data-href="<?php echo U('goods/change',array('type'=>'price','id'=>$item['id']));?>" >
-										
-									<?php echo ($item['price']); ?>
-									</a>
-							   <?php } ?>
-							</td>
-							<td><?php echo ($item['seller_count']); ?></td>
-							<td>
-								
-								<?php if( $item['hasoption']==1 ){ ?>
-									<?php echo ($item['total']); ?>
-								<?php  }else{ ?>
-									<a href='javascript:;' data-toggle='ajaxEdit' data-href="<?php echo U('goods/change',array('type'=>'total','id'=>$item['id']));?>" >
-							
-										<span class="text-danger"><?php echo ($item['total']); ?></span>
-									</a>
-							   <?php } ?>
-							   <?php if($open_redis_server == 1){ ?>
-							   <br/>
-							   redis库存<?php echo ($item['redis_total']); ?>
-							   <a href="<?php echo U('goods/show_logs', array('goods_id' => $item['id'] ));?>" target="_blank"></a>
-							   <?php } ?>
-							</td>
-							
-							
-							
-							
-							<td><?php echo ($item['day_salescount']); ?></td>
-							
-							<?php if($is_open_fullreduction == 1 && $is_fullreduce){ ?>
-								<td style="">
-									<?php if($item['supply_type'] == 1){ ?>
-									供应商不参与平台满减
-									<?php }else{ ?>
-									<input type="checkbox" name="" lay-filter="cmwsitch" data-href="<?php echo U('goods/change_cm',array('type'=>'is_take_fullreduction','id'=>$item['id']));?>" <?php if($item['is_take_fullreduction']==1){ ?>checked<?php  }else{ } ?> lay-skin="switch" lay-text="参加|不参加">
-									<?php } ?>
-								</td>
-							<?php } ?>
-								
-							<td>
-								<?php if( $item['grounding']==4 || $item['grounding']==5){ ?>
-								
-									<?php if( defined('ROLE') && ROLE == 'agenter' && $is_open_shenhe == 1){ ?>
-										<?php if($item['grounding']==4){ ?>等待审核<?php  }else{ ?>拒绝审核<?php } ?>
-									<?php  }else{ ?>
-										
-										
-										<?php if($item['grounding']==4){ ?> 
-										
-										<input type="checkbox" name="" lay-filter="engroundingsitch" data-href="<?php echo U('goods/change',array('type'=>'grounding','id'=>$item['id']));?>" <?php if( $item['grounding']==4 ){ }else{ } ?> lay-skin="switch" lay-text="审核通过|审核通过">
-										<input type="checkbox" name="" lay-filter="unengroundingsitch" data-href="<?php echo U('goods/change',array('type'=>'grounding','id'=>$item['id']));?>" <?php if( $item['grounding']==4 ){ }else{ } ?> lay-skin="switch" lay-text="拒绝审核|拒绝审核">
-									
-										<?php } ?>
-										
-										<?php if($item['grounding']==5){ ?> 
-											<input type="checkbox" name="" lay-filter="engroundingsitch" data-href="<?php echo U('goods/change',array('type'=>'grounding','id'=>$item['id']));?>" <?php if( $item['grounding']==4 ){ }else{ } ?> lay-skin="switch" lay-text="审核通过|审核通过">
-											<br/>&nbsp;拒绝审核
-										<?php } ?>
-										
-									<?php } ?>
-								<?php  }else{ ?>
-									<?php if( defined('ROLE') && ROLE == 'agenter' && $is_open_shenhe == 1 && $is_updown == 0){ ?>
-										<?php if($item['grounding']==1){ ?>上架<?php  }else{ ?>下架<?php } ?>
-									<?php  }else{ ?>
-										
-										<input type="checkbox" name="" lay-filter="undowngroundingsitch" data-href="<?php echo U('goods/change',array('type'=>'grounding','id'=>$item['id']));?>" <?php if( $item['grounding']==1 ){ ?>checked<?php  }else{ } ?> lay-skin="switch" lay-text="上架|下架">
-
-									<?php } ?>
-								<?php } ?>
-							</td>
-							
-						<?php if( defined('ROLE') && ROLE == 'agenter'){ ?>
-						
-						<?php if($is_top){ ?>
-								
-								<?php if($index_sort_method == 1){ ?>
-	
-								<?php }else{ ?>
-								<td >
-								
-								<input type="checkbox" name="" lay-filter="istop_showsitch" data-href="<?php echo U('goods/settop',array('type'=>'istop','id'=>$item['id']));?>" <?php if($item['istop']==1){ ?>checked<?php  }else{ } ?> lay-skin="switch" lay-text="置顶|未置顶">
-									
-								</td>
-								<?php } ?>
-							<?php } ?>
-
-						<?php  }else{ ?>						
-						
-							<?php if($is_top){ ?>
-								
-								<?php if($index_sort_method == 1){ ?>
-								<td style="text-align:center;">
-									<a href='javascript:;' data-toggle='ajaxEdit' data-href="<?php echo U('goods/change',array('type'=>'index_sort','id'=>$item['id']));?>" >
-										<span class="text-danger"><?php echo ($item['index_sort']); ?></span>
-									</a>
-								</td>	
-								<?php }else{ ?>
-								<td >
-								
-								<input type="checkbox" name="" lay-filter="istop_showsitch" data-href="<?php echo U('goods/settop',array('type'=>'istop','id'=>$item['id']));?>" <?php if($item['istop']==1){ ?>checked<?php  }else{ } ?> lay-skin="switch" lay-text="置顶|未置顶">
-									
-								</td>
-								<?php } ?>
-							<?php } ?>
-						<?php } ?>
-							
-							<?php if($is_index){ ?>
-							<td >
-								<input type="checkbox" name="" lay-filter="is_index_showsitch" data-href="<?php echo U('goods/change',array('type'=>'is_index_show','id'=>$item['id']));?>" <?php if( $item['is_index_show']==1 ){ ?>checked<?php  }else{ } ?> lay-skin="switch" lay-text="首页推荐|未推荐">
-									
-							</td>
-							<?php } ?>
-							
-								<td  style="overflow:visible;position:relative">
-									
-									<a  class='layui-btn layui-btn-xs' href="<?php echo U('virtualcard/edit', array('id' => $item['id'],'ok'=>1,'page'=>$page));?>"  >
-										<i class="layui-icon layui-icon-edit"></i>编辑
-									</a>
-									
-									<?php if($type!='recycle'){ ?>
-									<a  class='layui-btn layui-btn-xs deldom' href="javascript:;" data-href="<?php echo U('goods/change',array('id' => $item['id'],'type'=>'grounding','value'=>3));?>" data-confirm='确认要删除吗,删除后商品将进入回收站?'>
-										<i class="layui-icon">&#xe640;</i>删除
-									</a>
-									<?php } ?>	
-
-
-									<?php if($type=='recycle'){ ?>
-									<a  class='layui-btn layui-btn-xs deldom' href="javascript:;" data-href="<?php echo U('goods/delete', array('id' => $item['id']));?>" data-confirm='确认要彻底删除吗?'>
-										<i class="layui-icon">&#xe640;</i>彻底删除
-									</a>
-									<?php } ?>									
-									
-									<a href="javascript:;" class="js-clip layui-btn layui-btn-xs" data-url="/lionfish_comshop/pages/goods/goodsDetail?id=<?php echo ($item['id']); ?>"><i class="layui-icon">&#xe64c;</i>小程序链接</a>
-
-								</td>
-							</tr>
-							<?php } ?>
-							</tbody>
-							<tfoot>
-							<tr>
-								<td colspan="7">
-									<div class="page-table-header">
-										<input type="checkbox" name="checkall" lay-skin="primary" lay-filter="checkboxall">
-										<div class="btn-group">
-											<?php if($is_index){ ?>
-											<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch'  data-href="<?php echo U('goods/change',array('type'=>'is_index_show', 'value' => 1));?>">
-												<i class='icow icow-xiajia3'></i> 首页推荐
-											</button>
-											<?php } ?>
-											
-											
-											<?php if($is_updown){ ?>
-											<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch' data-href="<?php echo U('goods/change',array('type'=>'grounding','value'=>1));?>">
-												<i class='icow icow-shangjia2'></i> 上架
-											</button>
-											<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch'  data-href="<?php echo U('goods/change',array('type'=>'grounding','value'=>0));?>">
-												<i class='icow icow-xiajia3'></i> 下架
-											</button>
-											<?php } ?>
-											
-											<?php if($is_open_fullreduction == 1 && $is_fullreduce ){ ?>
-											<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch' data-href="<?php echo U('goods/change_cm',array('type'=>'is_take_fullreduction','value'=>1));?>">
-												<i class='icow icow-shangjia2'></i> 参加满减
-											</button>
-											<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch'  data-href="<?php echo U('goods/change_cm',array('type'=>'is_take_fullreduction','value'=>0));?>">
-												<i class='icow icow-xiajia3'></i> 不参加满减
-											</button>
-											<?php } ?>
-											<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch-group'  id="batchcatesbut2" >商品分类</button>
-											
-											<?php if( defined('ROLE') && ROLE == 'agenter'){ ?>
-												<?php if($is_distributionsale){ ?>
-													<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch-group'  id="batch_head" >分配售卖团长</button>
-													<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch-group'  id="batch_head_group" >分配售卖团长分组</button>
-												<?php  }else{ ?>
-												
-												<?php } ?>
-											<?php  }else{ ?>
-													<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch-group'  id="batch_head" >分配售卖团长</button>
-													<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch-group'  id="batch_head_group" >分配售卖团长分组</button>
-											<?php } ?>
-											
-											<button class="btn btn-default btn-sm btn-operation" type="button" data-toggle='batch-group'  id="batchtime" >设置活动时间</button>
-											
-											<?php if($is_index){ ?>
-											<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch'  data-href="<?php echo U('goods/change',array('type'=>'is_index_show', 'value' => 0));?>">
-												<i class='icow icow-xiajia3'></i> 取消首页推荐
-											</button>
-											<?php } ?>
-											
-											<?php if($type!='recycle'){ ?>
-											<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch-remove' data-confirm="确认要删除吗,删除后商品将进入回收站?" data-href="<?php echo U('goods/change',array('type'=>'grounding','value'=>3));?>">
-												<i class='icow icow-shanchu1'></i> 删除
-											</button>
-											<?php } ?>
-											
-											<?php if($type=='recycle'){ ?>
-											<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch-remove' data-confirm="确认要彻底删除吗?" data-href="<?php echo U('goods/delete');?>"><i class='icow icow-shanchu1'></i> 彻底删除</button>
-											<?php } ?>
-										</div>
-									</div>
-								</td>
-								<td colspan="6" style="text-align: right">
-									<?php echo ($pager); ?>
-								</td>
-							</tr>
-							</tfoot>
-						</table>
-					</div>
-				</div>
-				
-			</form>
-		</div>
-	</div>
-</div>
-
-
-<div id="batchcates_html" style="display:none;">
-	<div class="layui-card">
-	  <div class="layui-card-body">
-			<div class="modal-body" >
-                <div class="layui-form-item">
-                    <label class="layui-form-label"></label>
-                    <div class="layui-input-block">
-                        <label class="radio-inline"><input type="radio"  name="iscover" value="0" <?php if($iscover ==0){ ?> checked="checked"<?php } ?> /> 保留原有分类</label>
-                        <label class="radio-inline"><input type="radio"  name="iscover" value="1" <?php if($iscover ==1){ ?> checked="checked"<?php } ?> /> 覆盖原有分类</label>
-					</div>
-                </div>
-                <div class="layui-form-item">
-                    <label class="layui-form-label">商品分类</label>
-                    <div class="layui-input-block">
-						<select id="cates2" lay-verify="cates_sel" name='cates' class="form-control " style='' >
-							
-							<?php foreach($category as $c){ ?>
-							<option value="<?php echo ($c['id']); ?>" <?php if(is_array($cates) && in_array($c['id'],$cates)){ ?>selected<?php } ?> ><?php echo ($c['name']); ?></option>
-							<?php } ?>
-						</select>
-                    </div>
-                </div>
-				<div class="layui-form-item">
-					<div class="layui-input-block">
-						<button class="btn btn-primary modal-fenlei">确认</button>
-						<button class="btn btn-default cancle" >取消</button>
-					</div>
-				</div>
-            </div>
-	  </div>
-	</div>
-</div>
-
-
-<div id="batchcates_headgroup_html" style="display:none;">
-	<div class="layui-card">
-	  <div class="layui-card-body">
-			<div class="modal-body" >
-                
-                <div class="layui-form-item">
-                    <label class="layui-form-label">团长分组</label>
-                    <div class="layui-input-block">
-						<select id="group_heads" lay-verify="group_heads" name='group_heads' class="form-control " style='' >
-							
-							<?php foreach($group_list as $c){ ?>
-							<option value="<?php echo ($c['id']); ?>" <?php if(is_array($cates) && in_array($c['id'],$cates)){ ?>selected<?php } ?> ><?php echo ($c['groupname']); ?></option>
-							<?php } ?>
-						</select>
-                    </div>
-                </div>
-				<div class="layui-form-item">
-                    <label class="layui-form-label">仅这个团长分组可售</label>
-                    <div class="layui-input-block">
-						<label><input type="checkbox" class="is_cancle_old2" id="is_cancle_old2" name="is_cancle_old2" style="vertical-align: text-bottom;">
-							<div class="btn-group" style="color:#666;">
-								备注:会取消以往所有分配
-							</div>
-						</label>
-						<br/>
-						<label><input type="checkbox" class="is_cancle_allhead2" id="is_cancle_allhead2" name="is_cancle_allhead2" style="vertical-align: text-bottom;">
-							<div class="btn-group" style="color:#666;">
-								取消商品 “所有团长可售”
-							</div>
-							<div style="color: #999;font-size: 12px;display: none;" id="all_headgroup_tip">所有商品中包含“所有团长可售”商品,建议取消以免设置失效</div>
-						</label>
-                    </div>
-                </div>
-				
-				<div class="layui-form-item">
-					<div class="layui-input-block">
-						<button class="btn btn-primary modal-group-head">确认</button>
-						<button class="btn btn-default cancle" >取消</button>
-					</div>
-				</div>
-            </div>
-	  </div>
-	</div>
-</div>
-
-
-<div id="batchheads" style="z-index: 999;display: none;position: fixed;top: 0;left: 0;right: 0;bottom: 0;background: rgba(0,0,0,0.5)" class="form-horizontal form-validate batchcates"  enctype="multipart/form-data">
-    <div class="modal-dialog" style="position: absolute;margin-top: -300px">
-        <div class="modal-content">
-            <div class="modal-header" style="padding:5px;">
-                <button data-dismiss="modal" class="close" type="button">×</button>
-                <h4 class="modal-title">选取团长</h4>
-            </div>
-            <div class="modal-body" style="height:600px">
-            	<div class="form-group">
-            	<label class="col-sm-2 control-label">社区位置</label>
-                    <div class="col-sm-10 col-xs-12">
-                        <p>
-			                <select id="sel-provance" name="province_id" onChange="selectCity();" class="select form-control" style="width:130px;display:inline;">
-			                    <option value="" selected="true">省/直辖市</option>
-			                </select>
-			                <select id="sel-city" name="city_id" onChange="selectcounty(0)" class="select form-control" style="width:135px;display:inline;">
-			                    <option value="" selected="true">请选择</option>
-			                </select>
-			                <select id="sel-area" name="area_id" onChange="selectstreet(0)" class="select form-control" style="width:130px;display:inline;">
-			                    <option value="" selected="true">请选择</option>
-			                </select>
-			                 <select id="sel-street" name="country_id" class="select form-control" style="width:130px;display:inline;">
-			                    <option value="" selected="true">请选择</option>
-			                </select>
-			            </p>
-                    </div>
-                </div>
-            	<div class="form-group">
-                    <label class="col-sm-2 control-label">团长名称</label>
-                    <div class="col-sm-10 col-xs-12">
-                        <div class="input-group">
-	                        <input type="text" class="form-control" name="keyword" id="supply_id_input" placeholder="团长名称/团长手机号/社区地址">
-			            	<span class="input-group-btn">
-			            		<button type="button" class="btn btn-default" onclick="search_heads()">搜索</button>
-			            	</span>
-		            	</div>
-                    </div>
-                </div>
-                
-                <div class="form-group">
-                    <div class="col-sm-1 control-label">
-                    
-                    </div>
-                    <div class="col-sm-10 col-xs-12">
-                       	<div class="page-table-header">
-		                    <input type="checkbox" class="check_heads_all">
-		                    <div class="btn-group">
-		                    	全选/反选
-		                    </div>
-							
-							<br/>
-							<label><input type="checkbox" class="is_cancle_old" id="is_cancle_old" style="vertical-align: text-bottom;">
-							<div class="btn-group" style="color:#666;">
-		                    	同时取消以前所有分配
-		                    </div>
-							</label>
-							&nbsp;&nbsp;&nbsp;&nbsp;
-							
-							<label><input type="checkbox" class="is_cancle_allhead" id="is_cancle_allhead" style="vertical-align: text-bottom;">
-							<div class="btn-group" style="color:#666;">
-		                    	同时取消商品 “所有团长可售”
-		                    </div>
-							</label>
-							
-							
-		                </div>
-						<div class="all_heads_tip" style="display: none;">
-							<span style="color: #999;">所有商品中包含“所有团长可售”商品,建议取消以免设置失效</span>
-						</div>
-                    </div>
-                </div>
-                
-                <div class="row">
-                	<label class="col-sm-1 control-label"></label>
-                	<div class="col-sm-11 col-xs-12">
-	                	<div class="content" style="padding-top:5px;" data-name="supply_id">
-	                		<div style="max-height:410px;overflow:auto;" id="batchheads_content">
-							
-							</div>
-							<div class="" id="batchheads_page">
-								
-							</div>
-						</div>
-					</div>	
-                </div>
-            	
-                
-            </div>
-            <div class="modal-footer">
-                <button class="btn btn-primary model_heads">确认</button>
-                <button class="btn btn-default" >取消</button>
-            </div>
-        </div>
-    </div>
-</div>
-
-
-<div id="excel_goods_edit" style="display:none;">
-	<form action="<?php echo U('goods/excel_goodslist_edit');?>" method="post"  enctype="multipart/form-data" >
-		<div class="layui-card">
-			<div class="layui-card-body">
-				<div class="modal-body" >
-					<div class="layui-form-item">
-						<label class="layui-form-label">excel文件</label>
-						<div class="layui-input-block">
-							<input type="file" name="excel">
-						</div>
-					</div>
-
-				</div>
-			</div>
-		</div>
-	</form>
-</div>
-
-<div id="batch_time" style="z-index: 8;display: none;position: fixed;top: 0;left: 0;right: 0;bottom: 0;background: rgba(0,0,0,0.5)" class="form-horizontal form-validate batchtime"  enctype="multipart/form-data">
-    <div class="modal-dialog" style="position: absolute;margin-top: -190px">
-        <div class="modal-content">
-            <div class="modal-header">
-                <button data-dismiss="modal" class="close" type="button">×</button>
-                <h4 class="modal-title">设置活动时间</h4>
-            </div>
-            <div class="modal-body" style="height:270px">
-                <div class="form-group">
-                    <label class="col-sm-2 control-label">活动时间</label>
-                    <div class="col-sm-8 col-xs-12">
-                        <span class="input-group-btn">
-                            <?php echo tpl_form_field_daterange('setsametime', array('starttime'=>date('Y-m-d H:i', $starttime),'endtime'=>date('Y-m-d H:i', $endtime)),true);;?>
-                        </span>
-                    </div>
-                </div>
-            </div>
-            <div class="modal-footer">
-                <button class="btn btn-primary modal-time">确认</button>
-                <button class="btn btn-default cancle" >取消</button>
-            </div>
-        </div>
-    </div>
-</div>
-
-
-
-
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-
-	$('.exceledit').click(function(){
-		//页面层
-		layer.open({
-			type: 1,
-			title:'excel导入编辑商品',
-			area: ['520px', '240px'], //宽高
-			content: $('#excel_goods_edit'),
-			btn:['提交','取消'],
-			btn1:function(){
-				$('#excel_goods_edit').find('form').submit();
-			}
-		});
-	})
-  
-	$('.deldom').click(function(){
-		var s_url = $(this).attr('data-href');
-		layer.confirm($(this).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						success:function(info){
-						
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-	})
-
-//copy_goods
-	$('.copy').click(function(){
-		var s_url = $(this).attr('data-href');
-		index = layer.confirm($(this).attr('data-confirm'), function(index){
-			layer.close(index);
-			$.ajax({
-				url:s_url,
-				type:'post',
-				dataType:'json',
-				success:function(res){
-					layer.msg('复制成功',{
-						time:1000
-						,end:function(){
-							location.href = res.url;
-						}
-
-					});
-
-				},error:function(XMLHttpRequest, textStatus, errorThrown){
-					alert(XMLHttpRequest.status);
-					alert(XMLHttpRequest.readyState);
-					alert(textStatus);
-				}
-			})
-		});
-	})
-
-	$('.btn-operation').click(function(){
-		var ids_arr = [];
-		var obj = $(this);
-		var s_toggle = $(this).attr('data-toggle');
-		var s_url = $(this).attr('data-href');
-		
-		
-		$("input[name=item_checkbox]").each(function() {
-			
-			if( $(this).prop('checked') )
-			{
-				ids_arr.push( $(this).val() );
-			}
-		})
-		if(ids_arr.length < 1)
-		{
-			layer.msg('请选择要操作的内容');
-			return false;
-		}else{
-			var can_sub = true;
-			if( s_toggle == 'batch-remove' )
-			{
-				can_sub = false;
-				
-				layer.confirm($(obj).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						data:{ids:ids_arr},
-						success:function(info){
-						
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								});
-								
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-			}else{
-				$.ajax({
-					url:s_url,
-					type:'post',
-					dataType:'json',
-					data:{ids:ids_arr},
-					success:function(info){
-					
-						if(info.status == 0)
-						{
-							layer.msg(info.result.message,{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								});
-						}else if(info.status == 1){
-							var go_url = location.href;
-							if( info.result.hasOwnProperty("url") )
-							{
-								go_url = info.result.url;
-							}
-							
-							layer.msg('操作成功',{time: 1000,
-								end:function(){
-									location.href = info.result.url;
-								}
-							}); 
-							
-						}
-					}
-				})
-			}
-		}
-	})
-
-	
-	  
-	form.on('switch(cmwsitch)', function(data){
-		  
-		  var s_url = $(this).attr('data-href')
-		  
-		  var is_take_fullreduction = 1;
-		  if(data.elem.checked)
-		  {
-			is_take_fullreduction = 1;
-		  }else{
-			is_take_fullreduction = 0;
-		  }
-		  
-		  $.ajax({
-				url:s_url,
-				type:'post',
-				dataType:'json',
-				data:{value:is_take_fullreduction},
-				success:function(info){
-				
-					if(info.status == 0)
-					{
-						layer.msg(info.result.message,{icon: 1,time: 2000});
-					}else if(info.status == 1){
-						var go_url = location.href;
-						if( info.result.hasOwnProperty("url") )
-						{
-							go_url = info.result.url;
-						}
-						
-						layer.msg('操作成功',{time: 1000,
-							end:function(){
-								location.href = info.result.url;
-							}
-						}); 
-					}
-				}
-			})
-		});
-
-		form.on('switch(groundingsitch)', function(data){
-		  
-		  var s_url = $(this).attr('data-href')
-		  
-		  var grounding = 1;
-		  if(data.elem.checked)
-		  {
-			grounding = 1;
-		  }else{
-			grounding = 0;
-		  }
-		  
-		  $.ajax({
-				url:s_url,
-				type:'post',
-				dataType:'json',
-				data:{value:grounding},
-				success:function(info){
-				
-					if(info.status == 0)
-					{
-						layer.msg(info.result.message,{icon: 1,time: 2000});
-					}else if(info.status == 1){
-						var go_url = location.href;
-						if( info.result.hasOwnProperty("url") )
-						{
-							go_url = info.result.url;
-						}
-						
-						layer.msg('操作成功',{time: 1000,
-							end:function(){
-								location.href = info.result.url;
-							}
-						}); 
-					}
-				}
-			})
-		});
-
-
-			
-		
-	form.on('switch(unengroundingsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var grounding = 1;
-	  if(data.elem.checked)
-	  {
-		grounding = 5;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{value:grounding},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	});
-	
-	form.on('switch(engroundingsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var grounding = 1;
-	  if(data.elem.checked)
-	  {
-		grounding = 1;
-	  }else{
-		grounding = 5;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{value:grounding},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	});
-
-
-	form.on('switch(undowngroundingsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var grounding = 1;
-	  if(data.elem.checked)
-	  {
-		grounding = 1;
-	  }else{
-		grounding = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{value:grounding},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-					
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	});
-
-  
-form.on('switch(is_index_showsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var is_index_show = 1;
-	  if(data.elem.checked)
-	  {
-		is_index_show = 1;
-	  }else{
-		is_index_show = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{value:is_index_show},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	});
-
-   
-
-	form.on('switch(istop_showsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var istop = 1;
-	  if(data.elem.checked)
-	  {
-		istop = 1;
-	  }else{
-		istop = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{value:istop},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	});
-	
-	form.on('switch(restwsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var rest = 1;
-	  if(data.elem.checked)
-	  {
-		rest = 1;
-	  }else{
-		rest = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{rest:rest},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	}); 
-	form.on('switch(enablewsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var enable = 1;
-	  if(data.elem.checked)
-	  {
-		enable = 1;
-	  }else{
-		enable = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{enable:enable},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	}); 
-	
-	form.on('switch(statewsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var state = 1;
-	  if(data.elem.checked)
-	  {
-		state = 1;
-	  }else{
-		state = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{state:state},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	});  
-	form.on('checkbox(checkboxall)', function(data){
-	  
-	  if(data.elem.checked)
-	  {
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", true);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", true);
-		});
-		
-	  }else{
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", false);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", false);
-		});
-	  }
-	  
-	  form.render('checkbox');
-	});
-  
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-})
-
-</script>  
-<script type="text/javascript" src="/static/js/dist/area/cascade.js"></script>
-<script>
-var heads_page = 1;
-
-	$("body").delegate("#batchheads_page .pagination a","click",function(){
-		heads_page = $(this).attr('page');
-		search_heads_do();
-	})
-	function search_heads()
-    {
-		heads_page = 1;
-		search_heads_do();
-	}
-    function search_heads_do()
-    {
-        var province_name = $('#sel-provance').val();
-        var city_name = $('#sel-city').val();
-        var area_name = $('#sel-area').val();
-        var country_name = $('#sel-street').val();
-        var keyword = $('#supply_id_input').val();
-        
-    	$.post("<?php echo U('communityhead/query_head');?>",{page:heads_page,'province_name':province_name,'city_name': city_name,'area_name':area_name,'country_name':country_name,'keyword':keyword}, 
-    	    function (ret) {
-	            if (ret.status == 1) {
-	                $('#batchheads_content').html(ret.html);
-					$('#batchheads_page').html(ret.page_html);
-	                return
-	            } else {
-	                layer.msg('修改失败');
-	            }
-	        }, 'json');
-    }
-    //显示批量分类
-     $('#batchcatesbut').click(function () {
-      //  var index = layer.load(1);
-		var index = layer.open({
-		  type: 1,
-		  area: '500px',
-		  title: '选取分类'
-		  ,content: $('#batchcates_html').html(),
-		  yes: function(index, layero){
-			//do something
-			layer.close(index); //如果设定了yes回调,需进行手工关闭
-		  }
-		}); 
-    })
-	
-	 $('#batch_head_group').click(function () {
-      //  var index = layer.load(1);
-		var index = layer.open({
-		  type: 1,
-		  area: '600px',
-		  title: '选取团长分组'
-		  ,content: $('#batchcates_headgroup_html').html(),
-		  yes: function(index, layero){
-			//do something
-			layer.close(index); //如果设定了yes回调,需进行手工关闭
-		  }
-		});
-    })
-	
-	$('#batch_head_group2').click(function () {
-      //  var index = layer.load(1);
-		var index = layer.open({
-		  type: 1,
-		  area: '600px',
-		  title: '选取团长分组'
-		  ,content: $('#batchcates_headgroup_html').html(),
-		  yes: function(index, layero){
-			//do something
-			layer.close(index); //如果设定了yes回调,需进行手工关闭
-		  }
-		}); 
-    })
-	
-   
-    $('.check_heads_all').click(function(){
-    	//head_id
-    	if($(this).is(':checked')){
-    		$('.head_id').prop('checked',true);
-    	}else{
-    		$('.head_id').prop('checked',false);
-    	}
-    })
-    $('#batch_head,#batch_head2').click(function(){
-    	
-    	cascdeInit("1","1","","","","");
-    	search_heads_do();
-		
-		
-		var offs_lf = ( $(window).width() -720 )/2;
-		var offs_ht = ( $(window).height() -690 )/2;
-		
-		
-		$('#batchheads .modal-dialog').css('top',offs_ht+'px');
-		$('#batchheads .modal-dialog').css('margin-top','0px');
-		
-		$('#batchheads .modal-dialog').css('left',offs_lf+'px');
-		$('#batchheads .modal-dialog').css('margin-left','0px');
-		
-    	$('#batchheads').show();
-
-		var is_tip_notice = 0;
-		var selected_checkboxs = $('.table-responsive tbody tr td:first-child [type="checkbox"]:checked');
-		var goodsids = selected_checkboxs.map(function () {
-			if( $(this).attr('data_is_all_sale') == 1 )
-			{
-				is_tip_notice = 1;
-			}
-			return $(this).val()
-		}).get();
-		if(is_tip_notice == 1){
-			$('#batchheads .all_heads_tip').show();
-		}else{
-			$('#batchheads .all_heads_tip').hide();
-		}
-    })
-    
-    
-    
-    $('#batchcatesbut2').click(function () {
-        var index = layer.open({
-		  type: 1,
-		  area: '500px',
-		  title: '选取分类'
-		  ,content: $('#batchcates_html').html(),
-		  yes: function(index, layero){
-			//do something
-			layer.close(index); //如果设定了yes回调,需进行手工关闭
-		  }
-		}); 
-    })
-
-    //关闭批量分类
-    $('.modal-header .close').click(function () {
-        $('#batchcates').hide();
-        $('#batchheads').hide();
-        $('#batch_time').hide();
-    })
-
-    // 取消批量分类
-    $('.modal-footer .btn.btn-default').click(function () {
-    	$('#batchcates').hide();
-        $('#batchheads').hide();
-        $('#batch_time').hide();
-    })
-    $('.model_heads').click(function(){
-		var head_id_arr = [];
-		$('.head_id').each(function(){
-			if($(this).is(':checked')) {
-				head_id_arr.push( $(this).val() )
-			}
-		})
-		
-		//modal-group-head  
-		var is_clear_old = 0;
-		
-		if( $('#is_cancle_old').is(':checked') )
-		{
-			is_clear_old = 1;
-		}
-		
-		var is_cancle_allhead2 = 0;
-		
-		if( $('#is_cancle_allhead').is(':checked') )
-		{
-			is_cancle_allhead2 = 1;
-		}
-		
-		//is_cancle_allhead2
-		
-		
-		if(head_id_arr.length > 0)
-		{
-			var is_tip_notice = 0;
-			
-			var selected_checkboxs = $('.table-responsive tbody tr td:first-child [type="checkbox"]:checked');
-	        var goodsids = selected_checkboxs.map(function () {
-	        	if( $(this).attr('data_is_all_sale') == 1 )
-	        	{
-	        		is_tip_notice = 1;	
-	        	}
-	            return $(this).val()
-	        }).get();
-	        
-	        if(is_tip_notice  == 1)
-	        {
-	        	layer.confirm('分配售卖团中的商品中有部分商品开启了“<span style="color:red;">所有团长可售</span>”,请确认是否已经取消了“所有团长可售”,未取消的情况下部分商品分配设置可能无效!', function(index){
-	        		$.post("<?php echo U('goods/ajax_batchheads');?>",{'goodsids':goodsids,'head_id_arr': head_id_arr,'is_cancle_allhead':is_cancle_allhead2,'is_clear_old':is_clear_old}, function (ret) {
-	    	            if (ret.status == 1) {
-	    	                $('#batchheads').hide();
-	    	               layer.msg('分配成功', {
-	    					  time: 1000
-	    					}, function(){
-	    					  window.location.reload();
-	    					}); 
-	    					
-	    	                return
-	    	            } else {
-	    	                layer.msg('修改失败');
-	    	            }
-	    	        }, 'json');
-	        	});
-	        }else{
-	        	
-	        	$.post("<?php echo U('goods/ajax_batchheads');?>",{'goodsids':goodsids,'head_id_arr': head_id_arr,'is_cancle_allhead':is_cancle_allhead2,'is_clear_old':is_clear_old}, function (ret) {
-		            if (ret.status == 1) {
-		                $('#batchheads').hide();
-		               layer.msg('分配成功', {
-						  time: 1000
-						}, function(){
-						  window.location.reload();
-						}); 
-						
-		                return
-		            } else {
-		                layer.msg('修改失败');
-		            }
-		        }, 'json');
-	        }
-	        
-			
-		}else{
-			layer.msg('请选择团长');
-		}
-    })
-	//确认
-	var cates2 = 0;
-	$("body").delegate("#cates2","click",function(){
-	
-		cates2 =  $(this).val() ;
-	})
-	
-	var group_heads2 = 'default';
-	$("body").delegate("#group_heads","click",function(){
-		group_heads2 =  $(this).val() ;
-	})
-   
-
-   $("body").delegate(".cancle","click",function(){
-		layer.closeAll();
-	})
-   
-	
-   
-	$("body").delegate(".modal-group-head","click",function(){
-	
-		var group_heads=$('#group_heads').val();
-		if(group_heads2 != 'default')
-		{
-			group_heads = group_heads2;
-		}
-		var is_tip_notice = 0;
-        var selected_checkboxs = $('.table-responsive tbody tr td:first-child [type="checkbox"]:checked');
-        var goodsids = selected_checkboxs.map(function () {
-			if( $(this).attr('data_is_all_sale') == 1 )
-			{
-				is_tip_notice = 1;
-			}
-            return $(this).val()
-        }).get();
-		
-		if(goodsids.length <=0 )
-		{
-			layer.msg('请先选择商品');
-			return false;
-		}
-		
-		
-		var is_clear_old = 0;
-		
-		$('.is_cancle_old2').each(function(){
-			if( $(this).is(':checked') )
-			{
-				is_clear_old = 1;
-			}
-		})
-		
-		var is_cancle_allhead = 0;
-		
-		$('.is_cancle_allhead2').each(function(){
-			if( $(this).is(':checked') )
-			{
-				is_cancle_allhead = 1;
-			}
-		})
-		
-        var iscover=$('input[name="iscover"]:checked').val();
-        if(is_tip_notice == 1){
-			layer.confirm('分配售卖团长分组中的商品中有部分商品开启了“<span style="color:red;">所有团长可售</span>”,请确认是否已经取消了“所有团长可售”,未取消的情况下部分商品分配设置可能无效!', function(index){
-				$.post("<?php echo U('goods/ajax_batchcates_headgroup');?>",{'goodsids':goodsids,'groupid': group_heads,'is_cancle_allhead':is_cancle_allhead,'is_clear_old' : is_clear_old }, function (ret) {
-					if (ret.status == 1) {
-
-						layer.msg('分配成功', {
-							time: 1000
-						}, function(){
-							window.location.reload();
-						});
-
-						return
-					} else {
-						layer.msg('分配失败');
-					}
-				}, 'json');
-			});
-		}else{
-			$.post("<?php echo U('goods/ajax_batchcates_headgroup');?>",{'goodsids':goodsids,'groupid': group_heads,'is_cancle_allhead':is_cancle_allhead,'is_clear_old' : is_clear_old }, function (ret) {
-				if (ret.status == 1) {
-
-					layer.msg('分配成功', {
-						time: 1000
-					}, function(){
-						window.location.reload();
-					});
-
-					return
-				} else {
-					layer.msg('分配失败');
-				}
-			}, 'json');
-		}
-    })
-	
-	$('.layui-table-sort').click(function(){
-		$(this).attr('lay-sort','asc');
-	})
-	
-	$("body").delegate(".modal-fenlei","click",function(){
-	
-		var cates=$('#cates2').val();
-		if(cates2 != 0)
-		{
-			cates = cates2;
-		}
-		
-		
-        var selected_checkboxs = $('.table-responsive tbody tr td:first-child [type="checkbox"]:checked');
-        var goodsids = selected_checkboxs.map(function () {
-            return $(this).val()
-        }).get();
-		//id="cates"
-        var iscover=$('input[name="iscover"]:checked').val();
-        $.post("<?php echo U('goods/ajax_batchcates');?>",{'goodsids':goodsids,'cates': cates,'iscover':iscover}, function (ret) {
-            if (ret.status == 1) {
-                $('#batchcates').hide();
-				
-				layer.msg('修改成功', {
-				  time: 1000
-				}, function(){
-				  window.location.reload();
-				});   
-       
-                return
-            } else {
-                layer.msg('修改失败');
-            }
-        }, 'json');
-    })
-	//----
-
-    //显示时间设置
-    $('#batchtime,#batchtime2').click(function () {
-        
-		var offs_lf = ( $(window).width() -720 )/2;
-		var offs_ht = ( $(window).height() -290 )/2;
-		
-		$('#batch_time .modal-dialog').css('top',offs_ht+'px');
-		$('#batch_time .modal-dialog').css('margin-top','0px');
-		
-		$('#batch_time .modal-dialog').css('left',offs_lf+'px');
-		$('#batch_time .modal-dialog').css('margin-left','0px');
-		
-        $('#batch_time').show();
-    })
-
-    $('.modal-time').click(function () {
-        var selected_checkboxs = $('.table-responsive tbody tr td:first-child [type="checkbox"]:checked');
-        var goodsids = selected_checkboxs.map(function () {
-            return $(this).val()
-        }).get();
-
-        var begin_time=$('#batch_time input[name="setsametime[start]"]').val();
-        var end_time=$('#batch_time input[name="setsametime[end]"]').val();
-        $.post("<?php echo U('goods/ajax_batchtime');?>",{'goodsids':goodsids,'begin_time': begin_time,'end_time':end_time}, function (ret) {
-            if (ret.status == 1) {
-                $('#batch_time').hide();
-                layer.msg('设置成功');
-                window.location.reload();
-                return
-            } else {
-                layer.msg('设置失败');
-            }
-        }, 'json');
-    })
-	
-	$(document).on("click", '[data-toggle="ajaxEdit"]', function(e) {
-		var obj = $(this),
-			url = obj.data('href') || obj.attr('href'),
-			data = obj.data('set') || {},
-			html = $.trim(obj.text()),
-			required = obj.data('required') || true,
-			edit = obj.data('edit') || 'input';
-		var oldval = $.trim($(this).text());
-		e.preventDefault();
-		submit = function() {
-			e.preventDefault();
-			var val = $.trim(input.val());
-			if (required) {
-				if (val == '') {
-					 layer.msg(tip.lang.empty);
-					return
-				}
-			}
-			if (val == html) {
-				input.remove(), obj.html(val).show();
-				return
-			}
-			if (url) {
-				$.post(url, {
-					value: val
-				}, function(ret) {
-					ret = eval("(" + ret + ")");
-					if (ret.status == 1) {
-						obj.html(val).show()
-					} else {
-						 layer.msg(ret.result.message, ret.result.url)
-					}
-					input.remove();
-					location.reload();
-				}).fail(function() {
-					input.remove(),  layer.msg(tip.lang.exception)
-				})
-			} else {
-				input.remove();
-				obj.html(val).show()
-			}
-			obj.trigger('valueChange', [val, oldval])
-		}, obj.hide().html('<i class="fa fa-spinner fa-spin"></i>');
-		var input = $('<input type="text" class="form-control input-sm" style="width: 80%;display: inline;" />');
-		if (edit == 'textarea') {
-			input = $('<textarea type="text" class="form-control" style="resize:none" rows=3 ></textarea>')
-		}
-		obj.after(input);
-		input.val(html).select().blur(function() {
-			submit(input)
-		}).keypress(function(e) {
-			if (e.which == 13) {
-				submit(input)
-			}
-		})
-	})
-</script>
-</body>

+ 0 - 73
Runtime/Cache/Seller/75a7263d247aabad0ac9f240aa3dd31a.php

@@ -1,73 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-    <title><?php echo L("_JUMP_CUE_");?></title>
-    <style type="text/css">
-        *{ padding: 0; margin: 0; }
-        body{ background: rgb(79, 138, 208); font-family: 'Microsoft YaHei'; color: #fff; font-size: 16px;text-align: center; }
-        .system-message{position: fixed;left: 50%;top: 50%;margin-left: -222px;margin-top: -230px}
-        .system-message h1{ font-size: 80px; font-weight: normal; line-height: 120px; margin-bottom: 12px }
-        .system-message .jump{ padding-top: 10px;margin-bottom:20px}
-        .system-message .jump a{ color: #333;}
-        .system-message .success,.system-message .error{ line-height: 1.8em; font-size: 36px }
-        .system-message .detail{ font-size: 12px; line-height: 20px; margin-top: 12px; display:none}
-        #wait {
-            font-size:46px;
-        }
-        #btn-stop,#href{
-            display: inline-block;
-            margin-right: 10px;
-            font-size: 16px;
-            line-height: 18px;
-            text-align: center;
-            vertical-align: middle;
-            cursor: pointer;
-            border: 0 none;
-            background-color: white;
-            padding: 10px 20px;
-            color: rgb(79, 138, 208);
-            border-radius: 3px;
-            font-weight: bold;
-            border-color: transparent;
-            text-decoration:none;
-        }
-
-        #btn-stop:hover,#href:hover{
-            color: rgba(79, 138, 208,0.9);
-            background: rgba(255,255,255,0.9);
-        }
-    </style>
-</head>
-<body>
-<div class="system-message">
-    <h1><?php echo L("_CONGRATULATIONS_");?></h1>
-    <p class="error"><?php echo($message); ?></p>
-    <p class="detail"></p>
-    <p class="jump">
-        <b id="wait"><?php echo($waitSecond); ?></b><?php echo L("_SECONDS_AFTER_THE_PAGE_WILL_AUTOMATICALLY_JUMP_");?>
-    </p>
-    <div>
-        <a id="href" id="btn-now" href="<?php echo($jumpUrl); ?>"><?php echo L("_JUMP_IMMEDIATELY_");?></a>
-        <button id="btn-stop" type="button" onclick="stop()"><?php echo L("_STOP_JUMP_");?></button>
-        <a id="href" id="btn-now" href="<?php echo(U('Public/logout')); ?>"><?php echo L("_RE_LOGIN_");?></a>
-    </div>
-</div>
-<script type="text/javascript">
-    (function(){
-        var wait = document.getElementById('wait'),href = document.getElementById('href').href;
-        var interval = setInterval(function(){
-            var time = --wait.innerHTML;
-            if(time <= 0) {
-                location.href = href;
-                clearInterval(interval);
-            };
-        }, 1000);
-        window.stop = function (){
-            console.log(111);
-            clearInterval(interval);
-        }
-    })();
-</script>
-</body>
-</html>

+ 0 - 228
Runtime/Cache/Seller/79e233a45c43a7c3619a7ecd64da1168.php

@@ -1,228 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-            window.sysinfo = {
-            <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-			
-            <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-			
-            'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-			
-            'siteroot': '<?php echo ($_W['siteroot']); ?>',
-                    'siteurl': '<?php echo ($_W['siteurl']); ?>',
-                    'attachurl': '<?php echo ($_W['attachurl']); ?>',
-                    'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-                    'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-                    'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-            'cookie' : {'pre': ''},
-            'account' : <?php echo json_encode($_W['account']);?>,
-            };
-        </script>
-		
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-  <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-   <link href="/static/css/snailfish.css" rel="stylesheet">
-</head>
-<body layadmin-themealias="default">
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">会员设置</span></div>
-		<div class="layui-card-body" style="padding:15px;">
-			<form action="" method="post" class="layui-form" lay-filter="component-layui-form-item" enctype="multipart/form-data" >
-		
-			
-			 <div class="layui-form-item" >
-				<label class="layui-form-label">手机号授权</label>
-				<div class="layui-input-block">
-					<label class="radio-inline"><input type="radio"  name="data[is_show_auth_mobile]" <?php if( !isset($data['is_show_auth_mobile']) || $data['is_show_auth_mobile'] ==0 ){ ?> checked <?php } ?> value="0" title="否" /></label>
-					<label  class="radio-inline"><input type="radio"  name="data[is_show_auth_mobile]" <?php if( isset($data['is_show_auth_mobile']) && $data['is_show_auth_mobile'] ==1 ){ ?> checked <?php } ?> value="1" title="是" /></label>
-				</div>
-			</div>
-			
-			<div class="layui-form-item" >
-				<label class="layui-form-label">用户id</label>
-				<div class="layui-input-block">
-					<label class="radio-inline"><input type="radio"  name="data[is_show_member_id]"  <?php if( !isset($data['is_show_member_id']) || $data['is_show_member_id'] ==0 ){ ?> checked <?php } ?> value="0" title="隐藏" /></label>
-					<label  class="radio-inline"><input type="radio"  name="data[is_show_member_id]" <?php if( isset($data['is_show_member_id']) && $data['is_show_member_id'] ==1 ){ ?> checked <?php } ?> value="1" title="显示" /></label>
-				</div>
-			</div>		
-			
-			<div class="layui-form-item" >
-				<label class="layui-form-label">显示会员等级</label>
-				<div class="layui-input-block">
-					<label class="radio-inline"><input type="radio"  name="data[is_show_member_level]"  <?php if( !isset($data['is_show_member_level']) || $data['is_show_member_level'] ==0 ){ ?> checked <?php } ?> value="0" title="隐藏" /></label>
-					<label  class="radio-inline"><input type="radio"  name="data[is_show_member_level]" <?php if( isset($data['is_show_member_level']) && $data['is_show_member_level'] ==1 ){ ?> checked <?php } ?> value="1" title="显示" /></label>
-				</div>
-			</div>
-			
-			<div class="layui-form-item">
-				<label class="layui-form-label">会员是否需要审核</label>
-				<div class="layui-input-block">
-					<label class='radio-inline'>
-						<input type='radio' name='data[is_user_shenhe]' value='0' <?php if(!empty($data) && $data['is_user_shenhe'] ==0){ ?>checked <?php } ?> title="不需要" /> 
-					</label>
-					<label class='radio-inline'>
-						<input type='radio' name='data[is_user_shenhe]' value='1' <?php if(empty($data) || $data['is_user_shenhe'] ==1){ ?>checked <?php } ?> title="需要" /> 
-					</label>
-				</div>
-			</div>
-
-			<div class="layui-form-item">
-				<label class="layui-form-label">未登录未审核不显示价格</label>
-				<div class="layui-input-block">
-					<label class='radio-inline'>
-						<input type='radio' name='data[is_login_showprice]' value='0' <?php if(!empty($data) && $data['is_login_showprice'] ==0){ ?>checked <?php } ?> title="显示" />
-					</label>
-					<label class='radio-inline'>
-						<input type='radio' name='data[is_login_showprice]' value='1' <?php if(empty($data) || $data['is_login_showprice'] ==1){ ?>checked <?php } ?> title="不显示" />
-					</label>
-				</div>
-			</div>
-
-			<div class="layui-form-item">
-				<label class="layui-form-label">是否收集表单信息</label>
-				<div class="layui-input-block">
-					<label class='radio-inline'>
-						<input type='radio' name='data[is_get_formdata]' value='0' <?php if(empty($data) || $data['is_get_formdata'] ==0){ ?>checked <?php } ?> title="不需要" /> 
-					</label>
-					<label class='radio-inline'>
-						<input type='radio' name='data[is_get_formdata]' value='1' <?php if(!empty($data) && $data['is_get_formdata'] ==1){ ?>checked <?php } ?> title="需要" /> 
-					</label>
-				</div>
-			</div>
-			
-			<div class="layui-form-item">
-				<label class="layui-form-label">普通等级可以下单</label>
-				<div class="layui-input-block">
-					<label class='radio-inline'>
-						<input type='radio' name='data[puis_not_buy]' value='0' <?php if(!empty($data) && $data['puis_not_buy'] ==0){ ?>checked <?php } ?> title="可以" /> 
-					</label>
-					<label class='radio-inline'>
-						<input type='radio' name='data[puis_not_buy]' value='1' <?php if(empty($data) || $data['puis_not_buy'] ==1){ ?>checked <?php } ?> title="不可以" /> 
-					</label>
-				</div>
-			</div>
-			
-			
-		
-				<div class="layui-form-item">
-					<label class="layui-form-label"> </label>
-					<div class="layui-input-block">
-						<input type="submit" value="提交" lay-submit lay-filter="formDemo" class="btn btn-primary"  />
-						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-						
-					</div>
-				</div>
-			</form>
-		</div>
-</div>
-</div>
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-var cur_open_div;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  
-	form.on('radio(linktype)', function(data){
-		if (data.value == 2) {
-			$('#typeGroup').show();
-		} else {
-			$('#typeGroup').hide();
-		}
-	});  
-
-	
-	$('#chose_link').click(function(){
-		cur_open_div = $(this).attr('data-input');
-		$.post("<?php echo U('util.selecturl', array('ok' => 1));?>", {}, function(shtml){
-		 layer.open({
-			type: 1,
-			area: '930px',
-			content: shtml //注意,如果str是object,那么需要字符拼接。
-		  });
-		});
-	})
-		
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-})
-
-
-
-</script>  
-</body>

+ 0 - 236
Runtime/Cache/Seller/7b9eaaceef848e97e442d54b0a625e5d.php

@@ -1,236 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-            window.sysinfo = {
-            <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-			
-            <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-			
-            'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-			
-            'siteroot': '<?php echo ($_W['siteroot']); ?>',
-                    'siteurl': '<?php echo ($_W['siteurl']); ?>',
-                    'attachurl': '<?php echo ($_W['attachurl']); ?>',
-                    'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-                    'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-                    'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-            'cookie' : {'pre': ''},
-            'account' : <?php echo json_encode($_W['account']);?>,
-            };
-        </script>
-		
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-  <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-   <link href="/static/css/snailfish.css" rel="stylesheet">
-<style>
-	
-	.modal-dialog{background-color: #fff;}
-	
-	.content{
-		display:none;
-		width:200px;
-		height:200px;
-		border-radius:10px;
-		padding:20px;
-		position:relative;
-		top:15px;
-		left:80px;
-		background-color:FFFFFF;
-		border:1px solid;
-	}
-	.shide{display:none}
-</style>
-</head>
-<body layadmin-themealias="default">
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">配送设置</span></div>
-		<div class="layui-card-body" style="padding:15px;">
-			<form action="" method="post" class="layui-form" lay-filter="component-layui-form-item" enctype="multipart/form-data" >
-				<div class="layui-form-item shide">
-					<label class="layui-form-label">配送员最多可抢</label>
-					<div class="layui-input-block">
-						<div class="input-group fixsingle-input-group">
-							<input class="form-control" name="data[distri_config_maxcan_mbget]" type="text" placeholder="" value="<?php echo ($data['distri_config_maxcan_mbget']); ?>">
-							<div class="input-group-addon">单</div>
-						</div>
-					</div>
-				</div>
-
-
-				<div class="layui-form-item" >
-					<label class="layui-form-label">配送员佣金</label>
-					<div class="col-sm-10 col-xs-12" id="radPickupDateTip">
-						<label class="radio-inline"><input type="radio" lay-filter="commiss_type" name="data[distr_commiss_type]" <?php if( !isset($data['distr_commiss_type']) || $data['distr_commiss_type'] ==0 ){ ?> checked <?php } ?> value="0" title="每单固定" /><span class="fake-radio" ></span></label>
-						<label  class="radio-inline"><input type="radio" lay-filter="commiss_type" name="data[distr_commiss_type]" <?php if( isset($data['distr_commiss_type']) && $data['distr_commiss_type'] ==1 ){ ?> checked <?php } ?> value="1" title="每单按照订单配送费抽成" /><span class="fake-radio" ></span></label>
-						<label  class="radio-inline"><input type="radio" lay-filter="commiss_type" name="data[distr_commiss_type]" <?php if( isset($data['distr_commiss_type']) && $data['distr_commiss_type'] ==2 ){ ?> checked <?php } ?> value="2" title="按距离收配送费" /><span class="fake-radio" ></span></label>
-
-
-					</div>
-				</div>
-
-				<div class="layui-form-item" id="distri_1" style="<?php if( !isset($data['distr_commiss_type']) || $data['distr_commiss_type'] ==0){ ?>display:block;<?php  }else{ ?>display: none;<?php } ?>">
-					<label class="layui-form-label"></label>
-					<div class="layui-input-block">
-						<div class="input-group fixsingle-input-group">
-							<div class="input-group-addon">每单固定</div>
-							<input class="form-control" name="data[distri_shippingfare_fixed]" type="text" placeholder="" value="<?php echo ($data['distri_shippingfare_fixed']); ?>">
-							<div class="input-group-addon">元</div>
-						</div>
-						<span class='layui-form-mid help-block'>配送员每一单获得的固定佣金金额</span>
-					</div>
-				</div>
-				<div class="layui-form-item" id="distri_2" style="<?php if( isset($data['distr_commiss_type']) && $data['distr_commiss_type'] ==1){ ?>display:block;<?php  }else{ ?>display: none;<?php } ?>">
-					<label class="layui-form-label"></label>
-					<div class="layui-input-block">
-						<div class="input-group fixsingle-input-group">
-							<input class="form-control" name="data[distri_shippingfare_commission]" type="text" placeholder="" value="<?php echo ($data['distri_shippingfare_commission']); ?>">
-							<div class="input-group-addon">%</div>
-						</div>
-						<span class='layui-form-mid help-block'>配送员佣金按照每单配送费的百分比进行收取</span>
-					</div>
-				</div>
-				<div class="layui-form-item" id="distri_3" style="<?php if( isset($data['distr_commiss_type']) && $data['distr_commiss_type'] ==2){ ?>display:block;<?php  }else{ ?>display: none;<?php } ?>">
-					<label class="layui-form-label"></label>
-					<div class="layui-input-block">
-						<div class="input-group fixsingle-input-group">
-							<div class="input-group-addon">每单基础配送费</div>
-							<input class="form-control" name="data[distri_shippingfare_distance_default]" type="text" placeholder="" value="<?php echo ($data['distri_shippingfare_distance_default']); ?>">
-							<div class="input-group-addon">元,超过</div>
-							<input class="form-control" name="data[distri_distance]" type="text" placeholder="" value="<?php echo ($data['distri_distance']); ?>">
-							<div class="input-group-addon">公里(km),超过部分每公里增加</div>
-							<input class="form-control" name="data[distri_shippingfare_distance_increase]" type="text" placeholder="" value="<?php echo ($data['distri_shippingfare_distance_increase']); ?>">
-							<div class="input-group-addon">元,最高</div>
-							<input class="form-control" name="data[distri_shippingfare_distance_max]" type="text" placeholder="" value="<?php echo ($data['distri_shippingfare_distance_max']); ?>">
-							<div class="input-group-addon">元</div>
-						</div>
-						<span class='layui-form-mid help-block'>
-							仅适用于开启按照距离收取配送费的计费模式。最高设置为0表示不限制,<br/>
-							计费规则:例如设置 每单基础配送费3元,超过 3km 超过部分每公里增加 3 元,最高100元。如果配送距离10km,配送员佣金:3 + (10 - 3)* 3 = 24元;
-						</span>
-					</div>
-				</div>
-
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label"> </label>
-					<div class="layui-input-block">
-						<input type="submit" value="提交" lay-submit lay-filter="formDemo" class="btn btn-primary"  />
-						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-						
-					</div>
-				</div>
-			</form>
-		</div>
-</div>
-</div>
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-var cur_open_div;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  
-	form.on('radio(commiss_type)', function(data){
-		if (data.value == 0) {
-
-            $('#distri_2').hide();
-            $('#distri_3').hide();
-            $('#distri_1').show();
-		}
-		else if( data.value == 1 )
-		{
-            $('#distri_1').hide();
-            $('#distri_3').hide();
-            $('#distri_2').show();
-		}
-		else if(data.value == 2)
-		{
-            $('#distri_1').hide();
-            $('#distri_2').hide();
-            $('#distri_3').show();
-		}
-	});  
-
-
-		
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-})
-
-</script>  
-
-</body>

+ 0 - 617
Runtime/Cache/Seller/7f938eabde63cdbe39b3b4dc296982c5.php

@@ -1,617 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-            window.sysinfo = {
-            <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-			
-            <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-			
-            'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-			
-            'siteroot': '<?php echo ($_W['siteroot']); ?>',
-                    'siteurl': '<?php echo ($_W['siteurl']); ?>',
-                    'attachurl': '<?php echo ($_W['attachurl']); ?>',
-                    'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-                    'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-                    'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-            'cookie' : {'pre': ''},
-            'account' : <?php echo json_encode($_W['account']);?>,
-            };
-        </script>
-		
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-	<script type="text/javascript" src="./resource/components/colpick/colpick.js"></script>
-	<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-   	<link href="/static/css/snailfish.css" rel="stylesheet">
-	<link href="./resource/components/colpick/colpick.css" rel="stylesheet">
-</head>
-<body layadmin-themealias="default">
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">商城设置</span></div>
-		<div class="layui-card-body" style="padding:15px;">
-			<form action="" method="post" class="layui-form" lay-filter="component-layui-form-item" enctype="multipart/form-data" >
-				<div class="layui-form-item">
-					<label class="layui-form-label">商城名称</label>
-					<div class="layui-input-block">
-						<input type="text" name="parameter[shoname]" class="layui-input" value="<?php echo ($data['shoname']); ?>" />
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label">商城LOGO</label>
-					<div class="layui-input-block">
-						<?php echo tpl_form_field_image2('parameter[shoplogo]', $data['shoplogo']);?>
-						<span class='layui-form-mid'>正方型图片</span>
-					</div>
-				</div>
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label">网址</label>
-					<div class="layui-input-block">
-						<input type="text" name="parameter[shop_domain]" class="layui-input" value="<?php echo ($data['shop_domain']); ?>" />
-						<span class='help-block'>示例:https://域名/ ,网址最后的“/”必填,未配置https的,需要配置https</span>
-					</div>
-				</div>
-
-				<div class="layui-form-item">
-					<label class="layui-form-label">小程序首页展示设置</label>
-					<div class="layui-input-block">
-					  <input type="radio" name="parameter[open_diy_index_page]" value="0" title="旧版首页" <?php if( empty($data) || $data['open_diy_index_page'] == 0 ){ ?>checked <?php } ?> />
-					  <input type="radio" name="parameter[open_diy_index_page]" value="1" title="新版“首页DIY”" <?php if( !empty($data) && $data['open_diy_index_page'] ==1 ){ ?>checked <?php } ?> />
-						<hr >
-						<span class='layui-form-mid'>小程序设置新版 “首页DIY” 以后,“小程序首页”内容根据“首页DIY”设置的内容进行展示,商城其他“首页”设置会无效。如还使用商城“首页”设置请切换至“旧版首页”</span>
-					</div>
-				</div>
-		
-				<div class="layui-form-item">
-					<label class="layui-form-label">首页分享标题</label>
-					<div class="layui-input-block">
-						<input type="text" name="parameter[shop_index_share_title]" class="layui-input" value="<?php echo ($data['shop_index_share_title']); ?>" />
-						<span class='layui-form-mid'>未填写将默认使用商城名称作为分享标题</span>
-					</div>
-				</div>
-				
-				<div class="layui-form-item" >
-					<label class="layui-form-label">首页分享图片</label>
-					<div class="layui-input-block">
-						<?php echo tpl_form_field_image2('parameter[shop_index_share_image]', $data['shop_index_share_image']);?>
-						<span class='layui-form-mid'>支持PNG及JPG,显示图片长宽比是 5:4。</span>
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label">首页商品排列</label>
-					<div class="layui-input-block">
-					  	<input type="radio" name="parameter[index_list_theme_type]" value="0" title="小图" <?php if( !empty($data) && $data['index_list_theme_type'] ==0 ){ ?>checked <?php } ?> />
-					  	<input type="radio" name="parameter[index_list_theme_type]" value="1" title="大图" <?php if( empty($data) || $data['index_list_theme_type'] ==1 ){ ?>checked <?php } ?> />
-						<input type="radio" name="parameter[index_list_theme_type]" value="3" title="一行两个商品" <?php if( empty($data) || $data['index_list_theme_type'] ==3 ){ ?>checked <?php } ?> />
-						<input type="radio" name="parameter[index_list_theme_type]" value="2" title="一行三个商品" <?php if( empty($data) || $data['index_list_theme_type'] ==2 ){ ?>checked <?php } ?> />
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label">页面导航条背景颜色</label>
-					<div class="layui-input-block">
-						<div class="" style="margin:0px;">
-							<div class="layui-input-inline" style="width: 120px;">
-							  <input type="text" name="parameter[nav_bg_color]" value="<?php echo ($data['nav_bg_color']); ?>" placeholder="请选择颜色" class="layui-input" id="test-colorpicker-form-input">
-							</div>
-							<div class="layui-inline" style="left: -11px;">
-							  <div id="minicolors" class="layui-inline">
-								  <div class="layui-unselect layui-colorpicker"><span><span class="layui-colorpicker-trigger-span" lay-type="" style="background: <?php echo ($data['nav_bg_color']); ?>"><i class="layui-icon layui-colorpicker-trigger-i layui-icon-down"></i></span></span></div>
-							  </div>
-							</div>
-						  </div>
-						<span class='layui-form-mid'>背景颜色值,有效值为十六进制颜色。默认色值:<font color="#F75451">#F75451</font></span>
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label">页面标题文字颜色</label>
-					<div class="layui-input-block">
-					  <input type="radio" name="parameter[nav_font_color]" value="#ffffff" title="白色" <?php if( !empty($data) && $data['nav_font_color'] =='#ffffff' ){ ?>checked <?php } ?> />
-					  <input type="radio" name="parameter[nav_font_color]" value="#000000" title="黑色" <?php if( empty($data) || $data['nav_font_color'] =='#000000' ){ ?>checked <?php } ?> />
-						<hr >
-						<span class='layui-form-mid'>前景颜色值,包括按钮、标题、状态栏的颜色,仅支持 #ffffff 和 #000000 <br/>为避免重复请求,采用缓存机制,有效时长为十分钟,如需马上生效可删除小程序重新进入</span>
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label">主题颜色</label>
-					<div class="layui-input-block">
-						<div class="" style="margin:0px;">
-							<div class="layui-input-inline" style="width: 120px;">
-							  <input type="text" name="parameter[skin]" value="<?php echo ($data['skin']); ?>" placeholder="请选择颜色" class="layui-input" id="skin-colorpicker-form-input">
-							</div>
-							<div class="layui-inline" style="left: -11px;">
-							  <div id="skincolors">
-								  <div class="layui-unselect layui-colorpicker"><span><span class="layui-colorpicker-trigger-span" lay-type="" style="background: <?php echo ($data['skin']); ?>"><i class="layui-icon layui-colorpicker-trigger-i layui-icon-down"></i></span></span></div>
-							  </div>
-							</div>
-						  </div>
-						<span class='layui-form-mid'>全局主题颜色(页面导航条背景颜色,<a lay-href="/seller.php?s=/weprogram/tabbar" title="去设置" class="text-primary">底部菜单</a>需单独设置),有效值为十六进制颜色。默认色值:<font color="#F75451">#F75451</font></span>
-					</div>
-				</div>
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label">腾讯地图AppKey</label>
-					<div class="layui-input-block">
-						<input type="text" name="parameter[tx_map_key]" class="layui-input" value="<?php echo ($data['tx_map_key']); ?>" />
-						<span class='layui-form-mid'><a href="https://lbs.qq.com/console/key.html" class="text-primary" target="_blank">点击申请</a>&nbsp;用于地图定位、显示社区团长位置
-						
-						<a href="/static/images/tx_key_demo.png" class="text-primary" title="点击查看" target="_balnk">地图申请示例</a>
-						<a href="/static/images/tx_map_request_demo.png" class="text-primary" title="点击查看" target="_balnk">小程序域名设置示例</a>
-						</span>
-					</div>
-						
-				</div>
-
-				<div class="layui-form-item">
-					<label class="layui-form-label">群体名称</label>
-					<div class="layui-input-block">
-						<input type="text" name="parameter[group_name]" class="layui-input" value="<?php echo ($data['group_name']); ?>" />
-						<span class='layui-form-mid'>默认:社区</span>
-					</div>
-				</div>
-
-				<div class="layui-form-item">
-					<label class="layui-form-label">群主名称</label>
-					<div class="layui-input-block">
-						<input type="text" name="parameter[owner_name]" class="layui-input" value="<?php echo ($data['owner_name']); ?>" />
-						<span class='layui-form-mid'>默认:团长</span>
-					</div>
-				</div>
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label">小区团长:</label>
-					<div class="layui-input-block">
-						<input type="text" name="parameter[haibao_group_name]" class="layui-input" value="<?php echo ($data['haibao_group_name']); ?>" />
-						<span class='layui-form-mid'>默认:小区团长,首页海报上文字</span>
-					</div>
-				</div>
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label">首页顶部背景</label>
-					<div class="layui-input-block">
-					  <input type="radio" name="parameter[index_top_img_bg_open]" value="1" title="隐藏" <?php if( !empty($data) && $data['index_top_img_bg_open'] ==1 ){ ?>checked <?php } ?> />
-					  <input type="radio" name="parameter[index_top_img_bg_open]" value="0" title="显示" <?php if( empty($data) || $data['index_top_img_bg_open'] ==0 ){ ?>checked <?php } ?> />
-					</div>
-				</div>
-
-				<div class="layui-form-item">
-					<label class="layui-form-label">首页分享按钮</label>
-					<div class="layui-input-block">
-					  <input type="radio" name="parameter[index_share_switch]" value="0" title="隐藏" <?php if( !empty($data) && $data['index_share_switch'] ==0 ){ ?>checked <?php } ?> />
-					  <input type="radio" name="parameter[index_share_switch]" value="1" title="显示" <?php if( empty($data) || $data['index_share_switch'] ==1 ){ ?>checked <?php } ?> />
-					</div>
-				</div>
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label">首页抢购切换</label>
-					<div class="layui-input-block">
-					  <input type="radio" name="parameter[index_change_cate_btn]" value="1" title="关闭" <?php if( empty($data) || $data['index_change_cate_btn'] ==1 ){ ?>checked <?php } ?> />
-					  <input type="radio" name="parameter[index_change_cate_btn]" value="0" title="开启" <?php if( !empty($data) && $data['index_change_cate_btn'] ==0 ){ ?>checked <?php } ?> />
-					</div>
-				</div>
-
-				<div class="layui-form-item">
-					<label class="layui-form-label">首页客服按钮</label>
-					<div class="layui-input-block">
-					  <input type="radio" name="parameter[index_service_switch]" value="0" title="关闭" <?php if( empty($data) || $data['index_service_switch'] ==0 ){ ?>checked <?php } ?> />
-					  <input type="radio" name="parameter[index_service_switch]" value="1" title="开启" <?php if( !empty($data) && $data['index_service_switch'] ==1 ){ ?>checked <?php } ?> />
-					</div>
-				</div>
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label">其他页面客服按钮</label>
-					<div class="layui-input-block">
-					  <input type="radio" name="parameter[user_service_switch]" value="0" title="关闭" <?php if( isset($data['user_service_switch']) && $data['user_service_switch']==0 ){ ?>checked<?php } ?> />
-					  <input type="radio" name="parameter[user_service_switch]" value="1" title="开启" <?php if( !isset($data['user_service_switch']) || $data['user_service_switch']==1){ ?>checked<?php } ?> />
-					  
-						<br/>
-					  <span class='layui-form-mid'>商品详情、个人中心、订单中心等页面联系客服按钮</span>
-					</div>
-				</div>
-
-				<div class="layui-form-item">
-					<label class="layui-form-label">首页搜索框</label>
-					<div class="layui-input-block">
-					  <input type="radio" name="parameter[index_switch_search]" value="0" title="关闭" <?php if( empty($data) || $data['index_switch_search'] ==0 ){ ?>checked <?php } ?> />
-					  <input type="radio" name="parameter[index_switch_search]" value="1" title="开启" <?php if( !empty($data) && $data['index_switch_search'] ==1 ){ ?>checked <?php } ?> />
-					</div>
-				</div>
-
-				<div class="layui-form-item">
-					<label class="layui-form-label">首页页头文字颜色</label>
-					<div class="layui-input-block">
-						<div class="" style="margin:0px;">
-							<div class="layui-input-inline" style="width: 120px;">
-							  <input type="text" name="parameter[index_top_font_color]" value="<?php echo ($data['index_top_font_color']); ?>" placeholder="请选择颜色" class="layui-input" id="test-colorpicker-form-input2">
-							</div>
-							<div class="layui-inline" style="left: -11px;">
-							  <div id="minicolors2">
-								  <div class="layui-unselect layui-colorpicker"><span><span class="layui-colorpicker-trigger-span" lay-type="" style="background: <?php echo ($data['index_top_font_color']); ?>"><i class="layui-icon layui-colorpicker-trigger-i layui-icon-down"></i></span></span></div>
-							  </div>
-							</div>
-						  </div>
-						<span class='layui-form-mid'>默认:#ffffff</span>
-					</div>
-				</div>
-
-				<div class="layui-form-item">
-					<label class="layui-form-label">个人中心页头文字颜色</label>
-					<div class="layui-input-block">
-						<div class="" style="margin:0px;">
-							<div class="layui-input-inline" style="width: 120px;">
-							  <input type="text" name="parameter[user_top_font_color]" value="<?php echo ($data['user_top_font_color']); ?>" placeholder="请选择颜色" class="layui-input" id="test-colorpicker-form-input3">
-							</div>
-							<div class="layui-inline" style="left: -11px;">
-							  <div id="minicolors3">
-								  <div class="layui-unselect layui-colorpicker"><span><span class="layui-colorpicker-trigger-span" lay-type="" style="background: <?php echo ($data['user_top_font_color']); ?>"><i class="layui-icon layui-colorpicker-trigger-i layui-icon-down"></i></span></span></div>
-							  </div>
-							</div>
-						  </div>
-						<span class='layui-form-mid'>默认:#ffffff</span>
-					</div>
-				</div>
-				
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label">首页显示“切换”二字</label>
-					<div class="layui-input-block">
-					  	<input type="radio" name="parameter[hide_community_change_word]" value="0" title="是" <?php if( empty($data) || $data['hide_community_change_word'] ==0 ){ ?>checked <?php } ?> />
-						<input type="radio" name="parameter[hide_community_change_word]" value="1" title="否" <?php if( !empty($data) && $data['hide_community_change_word'] ==1 ){ ?>checked <?php } ?> />
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label">切换小区</label>
-					<div class="layui-input-block">
-						<input type="radio" name="parameter[hide_community_change_btn]" value="1" title="禁止" <?php if( !empty($data) && $data['hide_community_change_btn'] ==1 ){ ?>checked <?php } ?> />
-					  	<input type="radio" name="parameter[hide_community_change_btn]" value="0" title="允许" <?php if( empty($data) || $data['hide_community_change_btn'] ==0 ){ ?>checked <?php } ?> />
-					  	<br>
-				  		<span class='layui-form-mid'>备注:选择“禁止”,用户无论点击哪个团长分享出来的链接,都是直接进入原绑定小区,无提示 。</span>
-					</div>
-				</div>
-				
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label">首页团长信息开关</label>
-					<div class="layui-input-block">
-					  <input type="radio" name="parameter[hide_index_top_communityinfo]" value="1" title="隐藏" <?php if( !empty($data) && $data['hide_index_top_communityinfo'] ==1 ){ ?>checked <?php } ?> />
-					  <input type="radio" name="parameter[hide_index_top_communityinfo]" value="0" title="显示" <?php if( empty($data) || $data['hide_index_top_communityinfo'] ==0 ){ ?>checked <?php } ?> />
-					</div>
-				</div>
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label">简洁模式团长与搜索</label>
-					<div class="layui-input-block">
-					  <input type="radio" name="parameter[index_communityinfo_showtype]" value="0" title="关闭" <?php if( empty($data) || $data['index_communityinfo_showtype'] ==0 ){ ?>checked <?php } ?> />
-					  <input type="radio" name="parameter[index_communityinfo_showtype]" value="1" title="开启" <?php if( !empty($data) && $data['index_communityinfo_showtype'] ==1 ){ ?>checked <?php } ?> />
-					</div>
-				</div>
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label">首页文字“全部”</label>
-					<div class="layui-input-block">
-						<input type="text" name="parameter[index_type_first_name]" class="layui-input" value="<?php echo ($data['index_type_first_name']); ?>" />
-						<span class='layui-form-mid'>默认:全部</span>
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label">一键复制开关</label>
-					<div class="layui-input-block">
-					  <input type="radio" name="parameter[ishow_index_copy_text]" value="0" title="隐藏" <?php if(empty($data) || $data['ishow_index_copy_text'] ==0){ ?>checked <?php } ?> />
-					  <input type="radio" name="parameter[ishow_index_copy_text]" value="1" title="显示" <?php if(!empty($data) && $data['ishow_index_copy_text'] ==1){ ?>checked <?php } ?> />
-					</div>
-				</div>
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label">返回顶部开关</label>
-					<div class="layui-input-block">
-					  <input type="radio" name="parameter[ishow_index_gotop]" value="0" title="隐藏" <?php if( empty($data) || $data['ishow_index_gotop'] ==0 ){ ?>checked <?php } ?> />
-					  <input type="radio" name="parameter[ishow_index_gotop]" value="1" title="显示" <?php if( !empty($data) && $data['ishow_index_gotop'] ==1 ){ ?>checked <?php } ?> />
-					  <br>
-					  <span class='layui-form-mid'>首页返回顶部浮动按钮,默认:隐藏。</span>
-					</div>
-				</div>
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label">专题分享按钮</label>
-					<div class="layui-input-block">
-					  <input type="radio" name="parameter[ishow_special_share_btn]" value="0" title="隐藏" <?php if( empty($data) || $data['ishow_special_share_btn'] ==0 ){ ?>checked <?php } ?> />
-					  <input type="radio" name="parameter[ishow_special_share_btn]" value="1" title="显示" <?php if( !empty($data) && $data['ishow_special_share_btn'] ==1 ){ ?>checked <?php } ?> />
-					</div>
-				</div>
-				
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label">退出登录按钮</label>
-					<div class="layui-input-block">
-					  <input type="radio" name="parameter[ishow_user_loginout_btn]" value="0" title="隐藏" <?php if( empty($data) || $data['ishow_user_loginout_btn'] ==0 ){ ?>checked <?php } ?> />
-					  <input type="radio" name="parameter[ishow_user_loginout_btn]" value="1" title="显示" <?php if( !empty($data) && $data['ishow_user_loginout_btn'] ==1 ){ ?>checked <?php } ?> />
-					</div>
-				</div>
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label">提货码显示方式</label>
-					<div class="layui-input-block">
-					  <input type="radio" name="parameter[fetch_coder_type]" value="0" title="页面底部" <?php if( empty($data) || $data['fetch_coder_type'] ==0 ){ ?>checked <?php } ?> />
-					  <input type="radio" name="parameter[fetch_coder_type]" value="1" title="右上角图标" <?php if( !empty($data) && $data['fetch_coder_type'] ==1 ){ ?>checked <?php } ?> />
-					  <input type="radio" name="parameter[fetch_coder_type]" value="2" title="不显示" <?php if( !empty($data) && $data['fetch_coder_type'] ==2 ){ ?>checked <?php } ?> />
-					</div>
-				</div>
-				
-				<div class="layui-form-item">
-				   <label class="layui-form-label">个人中心拼团</label>
-					<div class="layui-input-block">
-					  <input type="radio" name="parameter[show_user_pin]" value="0" title="隐藏" <?php if( empty($data) || $data['show_user_pin'] ==0 ){ ?>checked <?php } ?> />
-					  <input type="radio" name="parameter[show_user_pin]" value="1" title="显示" <?php if( !empty($data) && $data['show_user_pin'] ==1 ){ ?>checked <?php } ?> />
-					</div>
-				</div>
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label">个人中心自提点</label>
-					<div class="layui-input-block">
-					  	<input type="radio" name="parameter[show_user_change_comunity]" value="0" title="隐藏" <?php if( empty($data) || $data['show_user_change_comunity'] ==0 ){ ?>checked <?php } ?> />
-						<input type="radio" name="parameter[show_user_change_comunity]" value="1" title="显示" <?php if( !empty($data) && $data['show_user_change_comunity'] ==1 ){ ?>checked <?php } ?> />
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label">个人中心自提点路线按钮</label>
-					<div class="layui-input-block">
-					  	<input type="radio" name="parameter[show_user_change_comunity_map]" value="0" title="隐藏" <?php if( empty($data) || $data['show_user_change_comunity_map'] ==0 ){ ?>checked <?php } ?> />
-						<input type="radio" name="parameter[show_user_change_comunity_map]" value="1" title="显示" <?php if( !empty($data) && $data['show_user_change_comunity_map'] ==1 ){ ?>checked <?php } ?> />
-						<br />
-					  <span class='layui-form-mid'>点击跳转显示自提点地图位置信息,默认:关闭。</span>
-					</div>
-				</div>
-
-				<div class="layui-form-item">
-				   <label class="layui-form-label">个人中心团长电话保护</label>
-					<div class="layui-input-block">
-					  <input type="radio" name="parameter[show_user_tuan_mobile]" value="0" title="开启" <?php if( empty($data) || $data['show_user_tuan_mobile'] ==0 ){ ?>checked <?php } ?> />
-					  <input type="radio" name="parameter[show_user_tuan_mobile]" value="1" title="关闭" <?php if( !empty($data) && $data['show_user_tuan_mobile'] ==1 ){ ?>checked <?php } ?> />
-					  <br />
-					  <span class='layui-form-mid'>开启保护则隐藏团长手机后四位,默认:开启。</span>
-					</div>
-				</div>
-				
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label">首页公众号关注组件</label>
-					<div class="layui-input-block">
-					  	<input type="radio" name="parameter[show_index_wechat_oa]" value="0" title="隐藏" <?php if( empty($data) || $data['show_index_wechat_oa'] ==0 ){ ?>checked <?php } ?> />
-						<input type="radio" name="parameter[show_index_wechat_oa]" value="1" title="显示" <?php if( !empty($data) && $data['show_index_wechat_oa'] ==1 ){ ?>checked <?php } ?> />
-						<br>
-						<div class='layui-form-mid'>
-							<p>1.使用组件前,需前往小程序后台,在“设置”->“关注公众号”中设置要展示的公众号。<strong>注:设置的公众号需与小程序主体一致。</strong></p>
-							<p>2.只有从“扫小程序码”、“聊天顶部场景”、“其他小程序返回小程序”进入时才会显示。</p>
-						</div>
-					</div>
-				</div>
-
-				<div class="layui-form-item">
-					<label class="layui-form-label">首页分类列表</label>
-					<div class="layui-input-block">
-					  <input type="radio" name="parameter[ishide_index_goodslist]" value="1" title="隐藏" <?php if( !empty($data) || $data['ishide_index_goodslist'] ==1 ){ ?>checked <?php } ?> />
-					  <input type="radio" name="parameter[ishide_index_goodslist]" value="0" title="显示" <?php if( !empty($data) && $data['ishide_index_goodslist'] ==0 ){ ?>checked <?php } ?> />
-					  <br>
-					  <span class='layui-form-mid'>首页分类商品列表,开启隐藏则分类商品列表、切换按钮和分类导航一并隐藏,默认:显示。</span>
-					</div>
-				</div>
-
-				<div class="layui-form-item">
-					<label class="layui-form-label">公告点击弹窗</label>
-					<div class="layui-input-block">
-					  <input type="radio" name="parameter[can_index_notice_alert]" value="1" title="开启" <?php if( !empty($data) && $data['can_index_notice_alert']==1 ){ ?>checked <?php } ?> />
-					  <input type="radio" name="parameter[can_index_notice_alert]" value="0" title="关闭" <?php if( empty($data) || $data['can_index_notice_alert']==0 ){ ?>checked <?php } ?> />
-					  <br>
-					  <span class='layui-form-mid'>首页公告点击弹窗显示详情,默认:关闭。</span>
-					</div>
-				</div>
-
-
-				<div class="layui-form-item">
-					<label class="layui-form-label">充值名称自定义</label>
-					<div class="layui-input-block">
-						<input type="text" name="parameter[excharge_nav_name]" class="layui-input" value="<?php echo ($data['excharge_nav_name']); ?>" />
-						<span class='layui-form-mid'>充值页面顶部导航名称和个人中心余额“查看”文字</span>
-					</div>
-				</div>
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label">技术支持</label>
-					<div class="layui-input-block">
-						<input type="text" name="parameter[technical_support]" class="layui-input" value="<?php echo ($data['technical_support']); ?>" />
-						<span class='layui-form-mid'>可填写 "***版权所有"。与备案号一起显示在网站登录界面正下方</span>
-					</div>
-				</div>
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label">备案号</label>
-					<div class="layui-input-block">
-						<input type="text" name="parameter[record_number]" class="layui-input" value="<?php echo ($data['record_number']); ?>" />
-						<span class='layui-form-mid'>点击备案号会链接到工信部官网首页(beian.miit.gov.cn)</span>
-						
-					</div>
-				</div>
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label"> </label>
-					<div class="layui-input-block">
-						<input type="submit" value="提交" lay-submit lay-filter="formDemo" class="btn btn-primary"  />
-					</div>
-				</div>
-			</form>
-		</div>
-</div>
-</div>
-
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	var nav_bg_color = '<?php echo ($data["nav_bg_color"]); ?>';
-	$('#minicolors').colpick({
-		submit:true,
-		color: nav_bg_color,
-		onSubmit: function(color,color2){
-			$('#test-colorpicker-form-input').val('#'+color2);
-			$('#minicolors').find('.layui-colorpicker-trigger-span').css('background','#'+color2);
-			$('.colpick_full').hide();
-		}
-	});
-
-	var skin_color = '<?php echo ($data["skin"]); ?>';
-	$('#skincolors').colpick({
-		submit:true,
-		color: skin_color,
-		onSubmit: function(color,color2){
-			$('#skin-colorpicker-form-input').val('#'+color2);
-			$('#skincolors').find('.layui-colorpicker-trigger-span').css('background','#'+color2);
-			$('.colpick_full').hide();
-		}
-	});
-
-	var minicolors2 = '<?php echo ($data["index_top_font_color"]); ?>';
-	$('#minicolors2').colpick({
-		submit:true,
-		color: minicolors2,
-		onSubmit: function(color,color2){
-			$('#test-colorpicker-form-input2').val('#'+color2);
-			$('#minicolors2').find('.layui-colorpicker-trigger-span').css('background','#'+color2);
-			$('.colpick_full').hide();
-		}
-	});
-
-	var minicolors3 = '<?php echo ($data["user_top_font_color"]); ?>';
-	$('#minicolors3').colpick({
-		submit:true,
-		color: minicolors3,
-		onSubmit: function(color,color2){
-			$('#test-colorpicker-form-input3').val('#'+color2);
-			$('#minicolors3').find('.layui-colorpicker-trigger-span').css('background','#'+color2);
-			$('.colpick_full').hide();
-		}
-	});
-
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer','form','colorpicker'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  var colorpicker = layui.colorpicker;
- 
-  var nav_bg_color = '<?php echo ($data["nav_bg_color"]); ?>';
-   //表单赋值
-    /*colorpicker.render({
-      elem: '#minicolors'
-	   ,color: nav_bg_color ? nav_bg_color : '#F75451'
-      ,done: function(color){
-        $('#test-colorpicker-form-input').val(color);
-      }
-    });*/
-
-	/*var user_top_font_color = '<?php echo ($data["user_top_font_color"]); ?>';
-    colorpicker.render({
-      elem: '#minicolors3'
-      ,color: user_top_font_color ? user_top_font_color : '#FFFFFF'
-      ,done: function(color){
-        $('#test-colorpicker-form-input3').val(color);
-      }
-    });
-
-    var index_top_font_color = '<?php echo ($data["index_top_font_color"]); ?>';
-    colorpicker.render({
-      elem: '#minicolors2'
-      ,color: index_top_font_color ? index_top_font_color : '#FFFFFF'
-      ,done: function(color){
-        $('#test-colorpicker-form-input2').val(color);
-      }
-    });*/
-
-    /*var skin_color = '<?php echo ($data["skin"]); ?>';
-    colorpicker.render({
-      elem: '#skincolors'
-      ,color: skin_color ? skin_color : '#F75451'
-      ,done: function(color){
-        $('#skin-colorpicker-form-input').val(color);
-      }
-    });*/
-  
-  
-   
-	
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-})
-
-
-
-</script>  
-</body>

+ 0 - 207
Runtime/Cache/Seller/80bc5ac29a1e15ca86d8af2ad31be5ac.php

@@ -1,207 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-            window.sysinfo = {
-            <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-			
-            <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-			
-            'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-			
-            'siteroot': '<?php echo ($_W['siteroot']); ?>',
-                    'siteurl': '<?php echo ($_W['siteurl']); ?>',
-                    'attachurl': '<?php echo ($_W['attachurl']); ?>',
-                    'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-                    'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-                    'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-            'cookie' : {'pre': ''},
-            'account' : <?php echo json_encode($_W['account']);?>,
-            };
-        </script>
-		
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-  <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-   <link href="/static/css/snailfish.css" rel="stylesheet">
-</head>
-<body layadmin-themealias="default">
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text"><?php if( !empty($item['id'])){ ?>编辑<?php  }else{ ?>添加<?php } ?>兑换码<?php if( !empty($item['id'])){ ?>(<?php echo ($item['code_name']); ?>)<?php } ?></span></div>
-		<div class="layui-card-body" style="padding:15px;">
-			<form action="" method="post" class="layui-form" lay-filter="component-layui-form-item" enctype="multipart/form-data" >
-				
-				<input type="hidden" name="data[id]" value="<?php echo ($item['id']); ?>"/>
-					<div class="layui-form-item">
-						<label class="layui-form-label">兑换码名称</label>
-						<div class="layui-input-block ">
-							<input type="text" id='code_name' lay-verify="required"  name="data[code_name]" class="form-control" value="<?php echo ($item['code_name']); ?>"/>
-						</div>
-					</div>
-
-					<div class="layui-form-item">
-						<label class="layui-form-label">兑换码有效期</label>
-						<div class="layui-input-block">
-							<label class='radio-inline'>
-								<input type='radio' name='data[effect_type]' lay-filter="effecttype"  title="永久有效" value=0 <?php if($item['effect_type']==0 || empty($item)){ ?>checked<?php } ?> />
-							</label>
-							<label class='radio-inline'>
-								<input type='radio' name='data[effect_type]' lay-filter="effecttype" title="购买后有效期" value=1 <?php if( $item['effect_type']==1 && !empty($item) ){ ?>checked<?php } ?> />
-							</label>
-						</div>
-					</div>
-
-					
-					<div class="layui-form-item" style="<?php if( $item['effect_type'] !=1 ){ ?>display: none;<?php } ?>" id="effectdays">
-						<label class="layui-form-label">有效天数</label>
-						<div class="layui-input-block ">
-							<div class="input-group fixsingle-input-group">
-								<input type="text" name="data[effect_days]" class="form-control" value="<?php echo ($item['effect_days']); ?>" />
-								<div class="input-group-addon"><b>天</b></div>
-							</div>
-							<span class="help-block">
-									自购买时起计算多少天,不支持小数,例如:5.6 ,保存后变成5
-							</span>
-						</div>
-					</div>
-					<div class="layui-form-item">
-						<label class="layui-form-label">兑换面额</label>
-						<div class="layui-input-block ">
-							<div class="input-group fixsingle-input-group">
-								<input type="text" name="data[code_money]" class="form-control" value="<?php echo ($item['code_money']); ?>" />
-								<div class="input-group-addon"><b>元</b></div>
-
-							</div>
-							<span class="help-block">
-										例如:兑换码指定面值100元,可以兑换余额也是100元。
-									</span>
-						</div>
-					</div>
-
-					<div class="layui-form-item" style="display:none;">
-						<label class="layui-form-label">状态</label>
-						<div class="layui-input-block">
-							<label class='radio-inline'>
-								<input type='radio' name='data[state]' title="有效" value=1 <?php if( $item['state']==1 || empty($item)){ ?>checked<?php } ?> />
-							</label>
-							<label class='radio-inline'>
-								<input type='radio' name='data[state]' title="失效" value=0 <?php if( isset($item['state']) && $item['state']==0 ){ ?>checked<?php } ?> />
-							</label>
-						</div>
-					</div>
-				
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label"> </label>
-					<div class="layui-input-block">
-						<input type="submit" value="提交" lay-submit lay-filter="formDemoCode" class="btn btn-primary"  />
-						
-					</div>
-				</div>
-			</form>
-		</div>
-</div>
-</div>
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-var cur_open_div;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  
-	form.on('radio(effecttype)', function(data){
-		if (data.value == 1) {
-			$('#effectdays').show();
-		} else {
-			$('#effectdays').hide();
-		}
-	});  
-
-
-		
-  //监听提交
-  form.on('submit(formDemoCode)', function(data){
-      var loadingIndex = layer.load();
-
-
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-                layer.close(loadingIndex);
-            }else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						//var backurl = "{php echo shopUrl('Configindex/slider',array('ok'=>'1'))}";
-                        location.href = info.result.url;
-						// location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-})
-
-
-
-</script>  
-</body>

+ 0 - 167
Runtime/Cache/Seller/828e59fef66d270a68f86c37b89568f6.php

@@ -1,167 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-            window.sysinfo = {
-            <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-			
-            <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-			
-            'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-			
-            'siteroot': '<?php echo ($_W['siteroot']); ?>',
-                    'siteurl': '<?php echo ($_W['siteurl']); ?>',
-                    'attachurl': '<?php echo ($_W['attachurl']); ?>',
-                    'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-                    'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-                    'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-            'cookie' : {'pre': ''},
-            'account' : <?php echo json_encode($_W['account']);?>,
-            };
-        </script>
-		
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-  <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-   <link href="/static/css/snailfish.css" rel="stylesheet">
-</head>
-<body layadmin-themealias="default">
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">版权说明</div>
-		<div class="layui-card-body" style="padding:15px;">
-			<form action="" method="post" class="layui-form" lay-filter="component-layui-form-item" enctype="multipart/form-data" >
-				
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label">底部版权说明</label>
-					<div class="layui-input-block">
-						<textarea name="parameter[footer_copyright_desc]" class="form-control richtext" rows="5"><?php echo ($data['footer_copyright_desc']); ?></textarea>
-					</div>
-				</div>
-				
-		
-				<div class="layui-form-item">
-					<label class="layui-form-label"> </label>
-					<div class="layui-input-block">
-						<input type="submit" value="提交" lay-submit lay-filter="formDemo" class="btn btn-primary"  />
-						
-					</div>
-				</div>
-			</form>
-		</div>
-</div>
-</div>
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-var cur_open_div;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  
-	form.on('radio(linktype)', function(data){
-		if (data.value == 2) {
-			$('#typeGroup').show();
-		} else {
-			$('#typeGroup').hide();
-		}
-	});  
-
-	$('#close_tuanz').click(function(){
-		$('#txtPickupDateTip').hide();
-	})
-	$('#open_tuanz').click(function(){
-		$('#txtPickupDateTip').css('display','inline-block');
-	})
-		
-	$('#chose_link').click(function(){
-		cur_open_div = $(this).attr('data-input');
-		$.post("<?php echo U('util.selecturl', array('ok' => 1));?>", {}, function(shtml){
-		 layer.open({
-			type: 1,
-			area: '930px',
-			content: shtml //注意,如果str是object,那么需要字符拼接。
-		  });
-		});
-	})
-		
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-})
-
-
-
-</script>  
-</body>

+ 0 - 220
Runtime/Cache/Seller/841fd4f93ca16d4c242427d9e2c68016.php

@@ -1,220 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-            window.sysinfo = {
-            <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-			
-            <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-			
-            'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-			
-            'siteroot': '<?php echo ($_W['siteroot']); ?>',
-                    'siteurl': '<?php echo ($_W['siteurl']); ?>',
-                    'attachurl': '<?php echo ($_W['attachurl']); ?>',
-                    'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-                    'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-                    'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-            'cookie' : {'pre': ''},
-            'account' : <?php echo json_encode($_W['account']);?>,
-            };
-        </script>
-		
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-  <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-   <link href="/static/css/snailfish.css" rel="stylesheet">
-</head>
-<body layadmin-themealias="default">
-
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">提现设置</span></div>
-		<div class="layui-card-body" style="padding:15px;">
-			<form action="" method="post" class="layui-form" lay-filter="component-layui-form-item" enctype="multipart/form-data" >
-				
-				<div class="layui-form-item" >
-					<label class="layui-form-label">最小提现金额</label>
-					<div class="layui-input-block">
-						<div class="input-group">
-							<input type="text" name="data[distribution_min_tixian_money]" class="form-control" value="<?php echo empty($data['distribution_min_tixian_money'])?0.01:$data['distribution_min_tixian_money']; ?>" >
-							<span class="input-group-addon">元</span>
-						</div>
-						<span class="help-block">配送佣金达到此额度时才能提现,最低0.01元</span>
-					</div>
-				</div>
-				
-				<div class="layui-form-item" >
-					<label class="layui-form-label">提现手续费</label>
-					<div class="layui-input-block">
-						<div class="input-group">
-							<input type="text" name="data[distribution_tixian_bili]" class="form-control" value="<?php echo empty($data['distribution_tixian_bili'])?0:$data['distribution_tixian_bili']; ?>" >
-							<span class="input-group-addon">%</span>
-						</div>
-						<span class="help-block">提现手续费比例,设置0即为无手续费</span>
-					</div>
-				</div>
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label">提现方式设置</label>
-					<div class="layui-input-block">
-						<?php if($supply_id == 0){ ?>
-						<label class="radio-inline"><input lay-ignore type="checkbox" name="data[distribution_tixianway_yuer]" value="2" <?php if( !isset($data['distribution_tixianway_yuer']) || ( isset($data['distribution_tixianway_yuer']) && $data['distribution_tixianway_yuer'] ==2) ){ ?> checked="checked" <?php } ?> title="" /> 到余额</label>
-						<label class="radio-inline"><input lay-ignore type="checkbox" name="data[distribution_tixianway_weixin]" value="2" <?php if( !isset($data['distribution_tixianway_weixin']) || (isset($data['distribution_tixianway_weixin']) && $data['distribution_tixianway_weixin'] ==2) ){ ?> checked="checked" <?php } ?> title="" /> 微信</label>
-						<?php } ?>
-						<label class="radio-inline"><input lay-ignore type="checkbox" name="data[distribution_tixianway_alipay]" value="2" <?php if( !isset($data['distribution_tixianway_alipay']) || (isset($data['distribution_tixianway_alipay']) && $data['distribution_tixianway_alipay'] ==2) ){ ?> checked="checked" <?php } ?> title="" /> 支付宝</label>
-						<label class="radio-inline"><input lay-ignore type="checkbox" name="data[distribution_tixianway_bank]" value="2" <?php if( isset($data['distribution_tixianway_bank']) && $data['distribution_tixianway_bank'] == 2 ){ ?> checked="checked" <?php } ?> title="" /> 银行卡</label>
-						
-					</div>
-				</div>
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label">提现说明</label>
-					<div class="layui-input-block fixmore-input-group">
-						<div class="">
-							<?php echo tpl_ueditor('data[distribution_tixian_publish]',$data['distribution_tixian_publish'],array('height'=>'300'));?>
-						</div>
-					</div>
-				</div>
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label"> </label>
-					<div class="layui-input-block">
-						<input type="submit" value="提交" lay-submit lay-filter="formDemo" class="btn btn-primary"  />
-					</div>
-				</div>
-			</form>
-		</div>
-	</div>
-</div>
-
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-var cur_open_div;
-
-layui.use(['jquery', 'layer','form','colorpicker'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  var colorpicker = layui.colorpicker;
-
-  
-	form.on('radio(linktype)', function(data){
-		if (data.value == 2) {
-			$('#typeGroup').show();
-		} else {
-			$('#typeGroup').hide();
-		}
-	});  
-
-	
-	//表单赋值
-    var goodsdetails_addcart_bg_color = '<?php echo ($data["goodsdetails_addcart_bg_color"]); ?>';
-    colorpicker.render({
-      elem: '#minicolors'
-      ,color: goodsdetails_addcart_bg_color ? goodsdetails_addcart_bg_color : '#f9c706'
-      ,done: function(color){
-        $('#test-colorpicker-form-input').val(color);
-      }
-    });
-
-    //表单赋值
-    var goodsdetails_buy_bg_color = '<?php echo ($data["goodsdetails_buy_bg_color"]); ?>';
-    colorpicker.render({
-      elem: '#minicolors1'
-      ,color: goodsdetails_buy_bg_color ? goodsdetails_buy_bg_color : '#ff5041'
-      ,done: function(color){
-        $('#test-colorpicker-form-input1').val(color);
-      }
-    });
-
-	
-	$('#chose_link').click(function(){
-		cur_open_div = $(this).attr('data-input');
-		$.post("<?php echo U('util.selecturl', array('ok' => 1));?>", {}, function(shtml){
-		 layer.open({
-			type: 1,
-			area: '930px',
-			content: shtml //注意,如果str是object,那么需要字符拼接。
-		  });
-		});
-	})
-		
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-})
-
-
-
-</script>  
-</body>

+ 0 - 357
Runtime/Cache/Seller/84ffe101b593fc9ca0c48a40c879b486.php

@@ -1,357 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-            window.sysinfo = {
-            <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-			
-            <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-			
-            'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-			
-            'siteroot': '<?php echo ($_W['siteroot']); ?>',
-                    'siteurl': '<?php echo ($_W['siteurl']); ?>',
-                    'attachurl': '<?php echo ($_W['attachurl']); ?>',
-                    'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-                    'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-                    'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-            'cookie' : {'pre': ''},
-            'account' : <?php echo json_encode($_W['account']);?>,
-            };
-        </script>
-		
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-<link href="/static/css/snailfish.css" rel="stylesheet">
-
-   
-<script type="text/javascript" src="/static/js/dist/area/cascade.js"></script>
-<script src="https://map.qq.com/api/js?v=2.exp&key=6R4BZ-WAB3W-JITRG-OE7GY-R2753-P3BZ2" type="text/javascript" charset="utf-8"></script>
-   
-</head>
-<body layadmin-themealias="default">
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">订阅消息设置</span></div>
-		
-		<div class="layui-card-body" style="padding:15px;display:block" >
-			<form action="" method="post" class="layui-form" lay-filter="component-layui-form-item" enctype="multipart/form-data" >
-				<div class="layui-form-item">
-					<label class="layui-form-label">订单支付成功通知</label>
-					<div class="layui-input-block">
-						<input type="text" name="parameter[weprogram_subtemplate_pay_order]" class="layui-input" value="<?php echo ($data['weprogram_subtemplate_pay_order']); ?>" />
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label">订单发货通知</label>
-					<div class="layui-input-block">
-						<input type="text" name="parameter[weprogram_subtemplate_send_order]" class="layui-input" value="<?php echo ($data['weprogram_subtemplate_send_order']); ?>" />
-					</div>
-				</div>
-				<div class="layui-form-item" >
-					<label class="layui-form-label">核销成功通知</label>
-					<div class="layui-input-block">
-						<input type="text" name="parameter[weprogram_subtemplate_hexiao_success]" class="layui-input" value="<?php echo ($data['weprogram_subtemplate_hexiao_success']); ?>" />
-					</div>
-				</div>
-				<div class="layui-form-item" style="display:none;">
-					<label class="layui-form-label">退款成功通知</label>
-					<div class="layui-input-block">
-						<input type="text" name="parameter[weprogram_subtemplate_refund_order]" class="layui-input" value="<?php echo ($data['weprogram_subtemplate_refund_order']); ?>" />
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label">团长申请成功发送通知</label>
-					<div class="layui-input-block">
-						<input type="text" name="parameter[weprogram_subtemplate_apply_community]" class="layui-input" value="<?php echo ($data['weprogram_subtemplate_apply_community']); ?>" />
-					</div>
-				</div>
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label">开团成功发送通知</label>
-					<div class="layui-input-block">
-						<input type="text" name="parameter[weprogram_subtemplate_open_tuan]" class="layui-input" value="<?php echo ($data['weprogram_subtemplate_open_tuan']); ?>" />
-					</div>
-					<div class="layui-form-mid">
-						
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label">参团成功发送通知</label>
-					<div class="layui-input-block">
-						<input type="text" name="parameter[weprogram_subtemplate_take_tuan]" class="layui-input" value="<?php echo ($data['weprogram_subtemplate_take_tuan']); ?>" />
-					</div>
-					<div class="layui-form-mid">
-						
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label">拼团成功发送通知</label>
-					<div class="layui-input-block">
-						<input type="text" name="parameter[weprogram_subtemplate_pin_tuansuccess]" class="layui-input" value="<?php echo ($data['weprogram_subtemplate_pin_tuansuccess']); ?>" />
-					</div>
-					<div class="layui-form-mid">
-						
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label">预售商品到货通知</label>
-					<div class="layui-input-block">
-						<input type="text" name="parameter[weprogram_subtemplate_presale_ordercan_continuepay]" class="layui-input" value="<?php echo ($data['weprogram_subtemplate_presale_ordercan_continuepay']); ?>" />
-					</div>
-					<div class="layui-form-mid">
-
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label">团长提现到账提醒</label>
-					<div class="layui-input-block">
-						<input type="text" name="parameter[weprogram_subtemplate_apply_tixian]" class="layui-input" value="<?php echo ($data['weprogram_subtemplate_apply_tixian']); ?>" />
-					</div>
-					<div class="layui-form-mid">
-						<!--<a href="https://shiziyu.liofis.com/订阅消息模板.docx" style="color:blue;">点击下载设置教程</a>
-						&nbsp;&nbsp;&nbsp;&nbsp;-->
-						需开通小程序类目:商家自营------>服装/鞋/箱包 、 生活服务---->百货/线下超市/便利店
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label"> </label>
-					<div class="layui-input-block">
-						<input type="submit" value="提交" lay-submit lay-filter="formDemo" class="btn btn-primary"  />
-						&nbsp;
-						<input type="submit" value="一键获取" lay-submit lay-filter="sub_auto_get" class="btn btn-primary"  />
-					</div>
-				</div>
-			</form>
-		</div>
-</div>
-</div>
-
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-var cur_open_div;
-
-var can_sub = true;
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  
-  form.on('radio(linktype)', function(data){
-		if (data.value == 2) {
-			$('#typeGroup').show();
-		} else {
-			$('#typeGroup').hide();
-		}
-	});  
-
-	form.on('radio(all_msg_send_type)', function(data){
-            if (data.value == 1) {
-                
-				$('#type_1').show();
-				
-            } else if( data.value == 2 )
-			{
-				$('#type_1').hide();
-				$('#type_2').show();
-			}
-			else if( data.value == 3 )
-			{
-				$('#type_1').hide();
-				$('#type_2').hide();
-			}
-			
-        });
-		
-	
-
-	//subtitle
-	$(document).on("input propertychange","#subtitle",function(){
-        
-		//("\r|\n|\\s", "");
-		var s_content = $('#subtitle').val();
-		s_content.replace(/\r|\n|\\s/g,"");
-		
-		var regex3 = /\{{(.+?)}\}/g; // {}
-		
-		var new_arr = s_content.match(regex3);
-		
-		var s_html = "";
-		
-		for( var i in  new_arr )
-		{
-			s_html+='	<div class="layui-form-item">';
-			s_html+='		<label class="layui-form-label">'+new_arr[i]+'内容</label>';
-			s_html+='		<div class="layui-input-block">';
-			s_html+='			<input type="text" name="datas['+new_arr[i]+']" class="layui-input" lay-required="true" value="" />';
-			s_html+='		</div>';
-			s_html+='	</div>';
-			
-		}
-		
-		$('#analy_div').html(s_html);
-		
-    });
-	
-	
-	
-	$('#chose_member_id').click(function(){
-		cur_open_div = $(this).attr('data-input');
-		$.post("<?php echo U('user/zhenquery', array('ok' => 1));?>", {}, function(shtml){
-		 layer.open({
-			type: 1,
-			area: '930px',
-			content: shtml //注意,如果str是object,那么需要字符拼接。
-		  });
-		});
-	})
-	
-	$('#chose_agent_id').click(function(){
-		cur_open_div = $(this).attr('data-input');
-		$.post("<?php echo U('user/zhenquery_many', array('template' => 'mult'));?>", {}, function(shtml){
-		 layer.open({
-			type: 1,
-			area: '930px',
-			content: shtml //注意,如果str是object,那么需要字符拼接。
-		  });
-		});
-	})
-	
-	
-	$('#chose_link').click(function(){
-		cur_open_div = $(this).attr('data-input');
-		$.post("<?php echo U('util/selecturl', array('ok' => 1));?>", {}, function(shtml){
-		 layer.open({
-			type: 1,
-			area: '930px',
-			content: shtml //注意,如果str是object,那么需要字符拼接。
-		  });
-		});
-	})
-  
-  
-  form.on('submit(sub_auto_get)', function(data){
-	var loadingIndex = layer.load(); // 加载中动画遮罩层(1)
-	
-	$.ajax({
-		url: "<?php echo U('weprogram/autosubscribetemplateconfig',array('ok'=>'1'));?>",
-		type: 'get',
-		dataType:'json',
-		success: function (info) {
-		   layer.close(loadingIndex); // 提交成功失败都需要关闭
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						var backurl = "<?php echo U('weprogram/subscribetemplateconfig');?>";
-						location.href = backurl;
-						// location.href = info.result.url;
-					}
-				});
-
-				can_sub = true;				
-			}
-		}
-	});
-	return false;
-	
-  })
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	 
-	 
-	var gd_ar = [];
-	var gd_str = '';
-	$('.mult_choose_member_id').each(function(){
-		gd_ar.push( $(this).attr('data-member-id') );
-	})
-	gd_str = gd_ar.join(',');
-	
-	data.field.limit_user_list = gd_str;
-	
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-})
-
-
-function cancle_bind(obj,sdiv)
-{
-	$('#'+sdiv).val('');
-	$(obj).parent().parent().remove();
-}
-
-
-
-</script>  
-</body>

+ 0 - 753
Runtime/Cache/Seller/856e8eceff86fcd6f7dc05a213365d6d.php

@@ -1,753 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-	window.sysinfo = {
-	<?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-	
-	<?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-	
-	'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-	
-	'siteroot': '<?php echo ($_W['siteroot']); ?>',
-			'siteurl': '<?php echo ($_W['siteurl']); ?>',
-			'attachurl': '<?php echo ($_W['attachurl']); ?>',
-			'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-			'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-			'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-	'cookie' : {'pre': ''},
-	'account' : <?php echo json_encode($_W['account']);?>,
-	};
-</script>
-
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-<link href="/static/css/snailfish.css" rel="stylesheet">
-<style>
-    tbody tr td{
-        position: relative;
-    }
-    tbody tr  .icow-weibiaoti--{
-        visibility: hidden;
-        display: inline-block;
-        color: #fff;
-        height:18px;
-        width:18px;
-        background: #e0e0e0;
-        text-align: center;
-        line-height: 18px;
-        vertical-align: middle;
-    }
-    tbody tr:hover .icow-weibiaoti--{
-        visibility: visible;
-    }
-    tbody tr  .icow-weibiaoti--.hidden{
-        visibility: hidden !important;
-    }
-    .full .icow-weibiaoti--{
-        margin-left:10px;
-    }
-    .full>span{
-        display: -webkit-box;
-        display: -webkit-flex;
-        display: -ms-flexbox;
-        display: flex;
-        vertical-align: middle;
-        align-items: center;
-    }
-    tbody tr .label{
-        margin: 5px 0;
-    }
-    .goods_attribute a{
-        cursor: pointer;
-    }
-    .newgoodsflag{
-        width: 22px;height: 16px;
-        background-color: #ff0000;
-        color: #fff;
-        text-align: center;
-        position: absolute;
-        bottom: 70px;
-        left: 57px;
-        font-size: 12px;
-    }
-	.a{cursor: pointer;}
-	.img-40 {
-		width: 40px;
-		height: 40px;
-	}
-	.daterangepicker select.ampmselect, .daterangepicker select.hourselect, .daterangepicker select.minuteselect{
-		width:auto!important;
-	}
-</style>
-</head>
-<body layadmin-themealias="default">
-
-<table id="demo" lay-filter="test"></table>
-
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">佣金申请列表</span></div>
-		<div class="layui-card-body" style="padding:15px;">
-			<form action="" method="get" class="form-horizontal form-search layui-form" role="form">
-				<input type="hidden" name="c" value="communityhead" />
-				<input type="hidden" name="a" value="distribulist" />
-				
-				<div class="layui-form-item">
-				  <div class="layui-inline">
-				  
-				    <span class="layui-input-inline">
-						<select name='searchtime' class='form-control' style="width:100px;padding:0 5px;"  id="searchtime">
-							<option value=''>不按时间</option>
-							<option value='create_time' <?php if( $_GPC['searchtime']=='create_time' ){ ?>selected<?php } ?>>申请时间</option>
-						</select>
-					</span>
-					<div class="layui-input-inline" style="width:280px;">
-						<?php echo tpl_form_field_daterange('time', array( 'starttime'=>date('Y-m-d H:i', $starttime),'endtime'=>date('Y-m-d H:i', $endtime) ,'sm'=>true, 'placeholder'=>'申请时间'),true);;?>
-						
-					</div>
-					<div class="layui-input-inline" >
-						<select name='comsiss_state' class='layui-input layui-unselect' style="width:80px;"  >
-							<option value=''>状态</option>
-							<option value='0' <?php if( $comsiss_state =='0'){ ?>selected<?php } ?>>未审核</option>
-							<option value='1' <?php if( $comsiss_state =='1'){ ?>selected<?php } ?>>已审核</option>
-							<option value='2' <?php if( $comsiss_state =='2'){ ?>selected<?php } ?>>拒绝通过</option>
-						</select>
-					</div>
-					<div class="layui-input-inline" >
-						<input type="text" class="layui-input"  name="keyword" value="<?php echo ($keyword); ?>" placeholder="申请订单id"/>
-				
-					</div>
-					
-					<div class="layui-input-inline">
-						<button class="layui-btn layui-btn-sm" type="submit"> 搜索</button>
-						<button type="submit" name="export" value="1" class="btn btn-success  layui-btn layui-btn-sm">导出</button>
-					</div>
-				  </div>
-				</div>
-			</form>
-			<form action="" class="layui-form" lay-filter="example" method="post" >
-       
-	   
-				
-				
-				<div class="row">
-					<div class="col-md-12">
-					
-					 
-					
-						<div class="page-table-header">
-							<input type='checkbox' name="checkall" lay-skin="primary" lay-filter="checkboxall"  />
-							
-							<div class="btn-group">
-								<button class='btn btn-default btn-sm btn-op btn-operation'  type="button" data-toggle='batch' data-href="<?php echo U('communityhead/agent_check_apply',array('state'=>1));?>"  data-confirm='确认要审核通过,已打款?'>
-									审核通过
-								</button>
-								<button class='btn btn-default btn-sm btn-op btn-operation' type="button"  data-toggle='batch' data-href="<?php echo U('communityhead/agent_check_apply',array('state'=>2));?>" data-confirm='确认要拒绝通过?'>
-									拒绝通过
-								</button>
-							</div>
-						</div>
-						<table class="table table-responsive" lay-even lay-skin="line" lay-size="lg">
-						
-							<thead>
-								<tr>
-									<th style="width:25px;"></th>
-									<th style="width:60px;">ID</th>
-									<th style="">小区名称</th>
-									<th style="width: 150px;">团长</th>
-									<th style="">联系方式</th>
-									 <th style="">提现方式</br>提现账户</th>
-								   
-									<th style=''>申请提现金额</br>手续费</br>到账金额</th>
-									<th style="">申请时间</br>审核时间</th>
-									<th style='width:170px;'>状态</th>
-									<th style="width: 300px;text-align: center;">操作</th>
-								</tr>
-							</tr>
-							</thead>
-							<tbody>
-							<?php foreach( $list as $row ){ ?>
-								<tr>
-									<td style="position: relative; ">
-										<input type='checkbox' name="item_checkbox" class="checkone" lay-skin="primary" value="<?php echo ($row['id']); ?>"/>
-									</td>
-									<td>
-										<?php echo ($row['id']); ?>
-									</td>
-									<td> 
-									<?php echo ($row['community_head']['community_name']); ?>
-									</td>
-									<td style="overflow: visible">
-										<?php echo ($row['community_head']['head_name']); ?>     
-									</td>
-									<td> 
-									<?php echo ($row['community_head']['head_mobile']); ?>
-									</td>
-									<td>
-										<?php if($row['type'] > 0){ ?>
-											<?php if( $row['type'] == 1 ){ ?>
-												会员余额
-											<?php }else if($row['type'] == 2){ ?>
-												微信零钱<br/>
-												
-												真实姓名:<br/>
-												<a href='javascript:;' data-toggle='ajaxEdit' data-href="<?php echo U('distribution/changename',array('type'=>'bankusername','id'=>$row['id']));?>" >
-									
-												<text class='text-primary'><?php echo ($row['bankusername']); ?></text>
-												</a>
-											<?php }else if($row['type'] == 3){ ?>
-												支付宝<br/>
-												<text class='text-primary'>真实姓名:<?php echo ($row['bankusername']); ?></text><br/>
-												<text class='text-danger'><?php echo ($row['bankaccount']); ?></text>
-											<?php }else if($row['type'] == 4){ ?>
-												银行卡<br/>
-												<text class='text-primary'>开户行:<?php echo ($row['bankname']); ?></text><br/>
-												<text class='text-danger'>卡号:<?php echo ($row['bankaccount']); ?></text><br/>
-												<text class='text-danger'>持卡人姓名:<?php echo ($row['bankusername']); ?></text>
-											<?php } ?>
-										<?php }else{ ?>
-										<?php echo ($row['community_head_commiss']['bankname']); ?><br/>
-										<text class='text-primary'><?php echo ($row['community_head_commiss']['bankaccount']); ?></text><br/>
-										<text class='text-danger'><?php echo ($row['community_head_commiss']['bankusername']); ?></text>
-										<?php } ?>
-									</td>
-									<td> 
-									<?php echo ($row['money']); ?><br/><text class='text-primary'><?php echo ($row['service_charge']); ?></text><br/>
-									<text class='text-danger'><?php echo $row['money']-$row['service_charge'];?></text>
-									</td>
-									
-									<td><?php echo date("Y-m-d",$row['addtime']);?><br/><?php echo date("H:i:s",$row['addtime']);?>
-									<br/>
-									<?php if( !empty($row['shentime'])){ ?>
-										<?php echo date("Y-m-d",$row['shentime']);?><br/><?php echo date("H:i:s",$row['shentime']);?>
-									<?php } ?>
-									</td>
-									
-									<td>
-										<?php if( $row[state] ==2 ){ ?>
-											已拒绝
-										<?php }elseif( $row[state] ==1 ){ ?>
-											<text class='text-danger'>已打款</text>
-										<?php  }else{ ?>
-										
-										<input type="checkbox" name="" lay-filter="statewsitch" tx_type="<?php echo $row['type'];?>" data-href="<?php echo U('communityhead/agent_check_apply',array('id'=>$row['id']));?>" <?php if( $row[state]==1){ ?>checked<?php  }else{ } ?> lay-skin="switch" lay-text="已审核|未审核">
-										
-										<input type="checkbox" name="" lay-filter="statewsitchunable" data-href="<?php echo U('communityhead/agent_check_apply',array('id'=>$row['id']));?>" <?php if( $row['state']==1 ){ ?>checked<?php } ?> lay-skin="switch" lay-text="已拒绝|点击拒绝审核">
-										
-										<?php } ?>
-									
-									<br/>
-									</td>
-									
-									<td style="overflow:visible;text-align: center;">
-										<div class="btn-group">
-											
-										
-											<a class="btn  btn-op " href="<?php echo U('order/index',array('headid' => $row['head_id']));;?>" >
-												推广订单
-												
-											</a>
-											<a class="btn  btn-op " href="<?php echo U('communityhead/goodslist',array('head_id' => $row['head_id']));;?>">
-												
-													查看在售商品
-												
-											</a>
-											
-										</div>
-									</td>
-								</tr>
-							<?php } ?>
-							</tbody>
-							<tfoot>
-							<tr>
-								<td colspan="5">
-									<div class="page-table-header">
-										<input type="checkbox" name="checkall" lay-skin="primary" lay-filter="checkboxall">
-										<div class="btn-group">
-											<button class='btn btn-default btn-sm btn-op btn-operation' type="button" data-toggle='batch' data-href="<?php echo U('communityhead/agent_check_apply',array('state'=>1));?>"  data-confirm='确认要审核通过,已打款?'>
-												审核通过
-											</button>
-											<button class='btn btn-default btn-sm btn-op btn-operation' type="button" data-toggle='batch' data-href="<?php echo U('communityhead/agent_check_apply',array('state'=>2));?>" data-confirm='确认要拒绝通过?'>
-												拒绝通过
-											</button>
-										</div>
-									</div>
-								</td>
-								<td colspan="4" style="text-align: right">
-									<?php echo ($pager); ?>
-								</td>
-							</tr>
-							</tfoot>
-						</table>
-					</div>
-				</div>
-				
-			</form>
-		</div>
-	</div>
-</div>
-
-
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  
-  
-	$('.deldom').click(function(){
-		var s_url = $(this).attr('data-href');
-		layer.confirm($(this).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						success:function(info){
-						
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-	})
-	
-	$(document).on("click", '[data-toggle="ajaxEdit"]', function(e) {
-		var obj = $(this),
-			url = obj.data('href') || obj.attr('href'),
-			data = obj.data('set') || {},
-			html = $.trim(obj.text()),
-			required = obj.data('required') || true,
-			edit = obj.data('edit') || 'input';
-		var oldval = $.trim($(this).text());
-		e.preventDefault();
-		submit = function() {
-			e.preventDefault();
-			var val = $.trim(input.val());
-			if (required) {
-				if (val == '') {
-					 layer.msg(tip.lang.empty);
-					return
-				}
-			}
-			if (val == html) {
-				input.remove(), obj.html(val).show();
-				return
-			}
-			if (url) {
-				$.post(url, {
-					value: val
-				}, function(ret) {
-					ret = eval("(" + ret + ")");
-					if (ret.status == 1) {
-						obj.html(val).show()
-					} else {
-						 layer.msg(ret.result.message, ret.result.url)
-					}
-					input.remove()
-				}).fail(function() {
-					input.remove(),  layer.msg(tip.lang.exception)
-				})
-			} else {
-				input.remove();
-				obj.html(val).show()
-			}
-			obj.trigger('valueChange', [val, oldval])
-		}, obj.hide().html('<i class="fa fa-spinner fa-spin"></i>');
-		var input = $('<input type="text" class="form-control input-sm" style="width: 80%;display: inline;" />');
-		if (edit == 'textarea') {
-			input = $('<textarea type="text" class="form-control" style="resize:none" rows=3 ></textarea>')
-		}
-		obj.after(input);
-		input.val(html).select().blur(function() {
-			submit(input)
-		}).keypress(function(e) {
-			if (e.which == 13) {
-				submit(input)
-			}
-		})
-	})
-	
-	
-	$('.btn-operation').click(function(){
-		var ids_arr = [];
-		var obj = $(this);
-		var s_toggle = $(this).attr('data-toggle');
-		var s_url = $(this).attr('data-href');
-		$(obj).attr('disabled',true);
-		$("input[name=item_checkbox]").each(function() {
-			
-			if( $(this).prop('checked') )
-			{
-				ids_arr.push( $(this).val() );
-			}
-		})
-		if(ids_arr.length < 1)
-		{
-			layer.msg('请选择要操作的内容');
-			$(obj).attr('disabled',false);
-		}else{
-			var can_sub = true;
-			if( s_toggle == 'batch-remove' )
-			{
-				can_sub = false;
-
-				$(obj).attr('disabled',false);
-				layer.confirm($(obj).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						data:{ids:ids_arr},
-						success:function(info){
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-			}else{
-				$.ajax({
-					url:s_url,
-					type:'post',
-					dataType:'json',
-					data:{ids:ids_arr},
-					success:function(info){
-						if(info.status == 0)
-						{
-							layer.msg(info.result.msg,{icon: 1,time: 2000,
-								end:function(){
-									$(obj).attr('disabled',false);
-								}});
-						}else if(info.status == 1){
-							var go_url = location.href;
-							if( info.result.hasOwnProperty("url") )
-							{
-								go_url = info.result.url;
-							}
-							
-							layer.msg('操作成功',{time: 1000,
-								end:function(){
-									location.href = info.result.url;
-								}
-							}); 
-							
-						}
-					}
-				})
-			}
-		}
-	})
-
-	form.on('switch(restwsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var rest = 1;
-	  if(data.elem.checked)
-	  {
-		rest = 1;
-	  }else{
-		rest = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{rest:rest},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	}); 
-	form.on('switch(enablewsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var enable = 1;
-	  if(data.elem.checked)
-	  {
-		enable = 1;
-	  }else{
-		enable = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{enable:enable},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	}); 
-	
-	
-	form.on('switch(statewsitchunable)', function(data){
-
-	  var s_url = $(this).attr('data-href')
-	  
-	  var state = 0;
-	  if(data.elem.checked)
-	  {
-		state = 2;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{state:state},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	}); 
-	
-	form.on('switch(statewsitch)', function(data){
-	  var loadingIndex = layer.load();
-	  var s_url = $(this).attr('data-href');
-		var x=data.elem.checked;
-		var tx_type = $(this).attr('tx_type');
-		var lock = false;
-		var tip_msg = '确认审核通过,已经打款?';
-		if(tx_type == 1){
-			//系统余额
-			tip_msg = '确认审核通过,该会员个人中心余额会立即收到,只能用于小程序消费。';
-		}else if(tx_type == 2){
-			//1、微信余额
-			tip_msg = '确认审核通过,将立即从微信支付商户扣款打到该会员微信零钱中。';
-		}else if(tx_type == 3){
-			//支付宝
-			tip_msg = '请确认已手动转账到对方支付宝账户。';
-		}else if(tx_type == 4){
-			//银行卡
-			tip_msg = '请确认已手动转账到对方银行卡账户。';
-		}
-		layer.confirm(tip_msg,{
-			btn:['确定','取消'],
-		},function () {
-					var state = 1;
-					if (data.elem.checked) {
-						state = 1;
-					} else {
-						state = 0;
-					}
-					if(!lock) {
-						lock = true;
-						$.ajax({
-							url: s_url,
-							type: 'post',
-							dataType: 'json',
-							data: {state: state},
-							success: function (info) {
-
-								if (info.status == 0) {
-									layer.msg(info.result.msg, {
-										icon: 1, time: 2000,
-										end: function () {
-											location.href = location.href;
-										}
-									});
-									layer.close(loadingIndex);
-								} else if (info.status == 1) {
-									var go_url = location.href;
-									if (info.result.hasOwnProperty("url")) {
-										go_url = info.result.url;
-									}
-
-									layer.msg('操作成功', {
-										time: 1000,
-										end: function () {
-											location.href = info.result.url;
-										}
-									});
-								}
-							}
-						})
-					}
-		},function(){
-			data.elem.checked=!x;
-			layer.close(loadingIndex);
-			form.render();
-	 	})
-	});  
-	form.on('checkbox(checkboxall)', function(data){
-	  
-	  if(data.elem.checked)
-	  {
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", true);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", true);
-		});
-		
-	  }else{
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", false);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", false);
-		});
-	  }
-	  
-	  form.render('checkbox');
-	});
-  
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-})
-
-</script>  
-
-</body>

+ 0 - 601
Runtime/Cache/Seller/8695018b03cbba6deb8029650a92b57a.php

@@ -1,601 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname_name; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-  <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
-  <link href="/static/css/snailfish.css?v=2.0.0" rel="stylesheet">
-  <style>
-	.wb-nav .snailfishicon{
-		 position: absolute;
-		 left: 20px;
-		top: 50%;
-		margin-top: -10px;
-	} 
-  </style>
-</head>
-<body class="layui-layout-body">
-  
-<div id="LAY_app">
-	<div class="layui-layout layui-layout-admin">
-		<!--头部区域begin-->
-		<div class="layui-header">
-            <ul class="layui-nav layui-layout-left">
-                <li class="layui-nav-item layadmin-flexible" lay-unselect="">
-                    <a href="javascript:;" layadmin-event="flexible" title="侧边伸缩" id="href_flexible">
-                        <i class="layui-icon layui-icon-shrink-right" id="LAY_app_flexible"></i>
-                    </a>
-                </li>
-                <li class="layui-nav-item" lay-unselect="">
-                    <a href="javascript:;" layadmin-event="refresh" title="刷新">
-                        <i class="layui-icon layui-icon-refresh-3"></i>
-                    </a>
-                </li>
-				<span class="layui-nav-bar" style="left: 30px; top: 48px; width: 0px; opacity: 0;"></span>
-			</ul>
-			<?php  $version_info = M('lionfish_comshop_config')->where( array('name' => 'site_version') )->find(); $version = $version_info['value']; ?>
-			<ul class="layui-nav layui-layout-right" lay-filter="layadmin-layout-right">
-				<li id="neworder" style="display:none;" class="layui-nav-item layui-hide-xs" lay-unselect>
-					<a href="javascript:void(0)" data-href="<?php echo U('order/index');?>">
-					  <span  style="margin: -4px -15px 0;"></span>
-					  新订单<span id="notice"><?php echo ($order_count); ?></span>条
-					</a>
-				</li>
-				<li id="orderdistribution" style="display:none;" class="layui-nav-item layui-hide-xs" lay-unselect>
-					<a href="javascript:void(0)">
-						<span  style="margin: -4px -15px 0;"></span>
-						发配送员消息<span id="distributionnotice" style="color:red;"></span>条
-					</a>
-				</li>
-				 <li class="layui-nav-item layui-hide-xs" lay-unselect >
-					<a href="<?php echo U('index/index', array('is_new' => 2) );?>" >
-					  <span class="layui-badge-dot" style="margin: -4px -15px 0;"></span>
-					  切换旧版后台
-					</a>
-				  </li>
-				  
-				 
-		  
-				<li class="layui-nav-item layui-hide-xs" lay-unselect style="display:none;">
-					<a href="javascript:;" layadmin-event="theme">
-					  <i class="layui-icon layui-icon-theme"></i>
-					</a>
-				</li>
-				<li class="layui-nav-item layui-hide-xs"><a class="btn btn-primary" href="/seller.php?s=/Public/clear">清空缓存</a></li>
-				 <?php if (!defined('ROLE') || ROLE != 'agenter' ) {?>
-				<li class="layui-nav-item layui-hide-xs" lay-unselect >
-					<font  style="color:#009688;">
-					  当前社区团购版本<?php echo $version; ?>
-					</font>
-				</li>
-				 
-				
-				<?php } ?> 
-				<li class="layui-nav-item layui-hide-xs" lay-unselect style="display:none;">
-					<a href="javascript:;" layadmin-event="fullscreen">
-					  <i class="layui-icon layui-icon-screen-full"></i>
-					</a>
-				</li>
-				<li class="layui-nav-item layui-hide-xs lay-logins" lay-unselect>
-					<a href="javascript:;">
-						
-						<?php  if (defined('ROLE') && ROLE == 'agenter' ) { $agent_auth = session('agent_auth'); echo $agent_auth['shopname']; }else{ echo D('Home/Front')->get_config_by_name('shoname'); } ?>
-						
-					</a>
-				  </li>
-				  <li class="layui-nav-item layui-hide-xs" lay-unselect>
-					<a href="<?php echo U('Public/logout');?>">退出</a>
-				  </li>
-				  
-				  <li class="layui-nav-item layui-hide-xs" lay-unselect style="display:none;">
-					<a href="javascript:;" layadmin-event="about"><i class="layui-icon layui-icon-more-vertical"></i></a>
-				  </li>
-				  <span class="layui-nav-bar" style="left: 28px; top: 48px; width: 0px; opacity: 0;"></span>
-			</ul>
-        </div>
-		<!--头部区域end-->
-		<!--左侧导航区域begin--->
-		<div class="layui-side layui-side-menu">
-            <div class="layui-side-scroll">
-                <!-- logo -->
-                <div class="index-inner-container">
-					<?php $shoplogo = D('Home/Front')->get_config_by_name('shoplogo'); ?>
-                    <div class="layui-logo">
-						<span>
-							<?php if( empty($shoplogo) ){ ?>
-								<img class="layui-circle" src="/static/images/default-pic.jpg" height="46px" width="46px">
-							<?php }else{ ?>
-								<img class="layui-circle" src="<?php echo tomedia($shoplogo);?>" height="46px" width="46px">
-							<?php } ?>
-						</span> 
-					</div>
-                    <ul class="layui-nav layui-nav-tree" lay-shrink="all" id="LAY-system-side-menu" lay-filter="layadmin-system-side-menu">
-						<span class="layui-nav-bar" style="height: 0px; top: 0px; opacity: 0;"></span>
-						<?php $sysmenus = D('Seller/menu')->getMenu(true); ?>
-						<?php  $i =0; foreach($sysmenus['menu'] as $key => $menu){ ?>
-						<li class="layui-nav-item <?php if($i ==0){ ?>layui-nav-itemed<?php } ?>" pinyin="<?php echo $key; ?>">
-							<a href="javascript:;" <?php if( empty($menu['route']) ){ ?>lay-href="<?php echo U($menu['route']);?>"<?php } ?> lay-tips="<?php echo ($menu['text']); ?>" lay-direction="2">
-								 <i class=" snailfishicon snailfishicon-<?php echo ($menu['icon']); ?>"></i>
-								<cite style="font-size:15px"><?php echo ($menu['text']); ?></cite>
-							</a>
-						</li>
-						<?php $i++; } ?>
-						
-						
-					</ul>
-                </div>
-            </div>
-        </div>
-		<!--左侧导航区域end--->
-		<!--内容体begin-->
-		<div class="layui-body" id="LAY_app_body">
-			<div class="layadmin-tabsbody-item layui-show sub-nav-show">
-				<!--二级菜单begin-->
-				<div class="sub-nav" style="width:125px">
-					<?php $i =0; foreach($sysmenus['menu'] as $key => $menu){ ?>
-						<?php if( empty($menu['items']) ){ ?>
-							<div class="nav-new wb-subnav"></div>	
-						<?php }else{ ?>
-							<div class="nav-new wb-subnav <?php if($i ==0 ){ ?> layui-this<?php } ?>" >
-								<div class="subnav-scene" style="font-size: 14px" >
-									<?php echo ($menu['subtitle']); ?>
-								</div>
-								<?php foreach($menu['items'] as $sub_menu){ ?>
-								
-								<?php if( !empty($sub_menu['items']) ){ ?>
-								<!--<div class="menu-header <?php if( $menu['route'] != 'config/index' ){ ?>active<?php } ?>">-->
-								<div class="menu-header active">
-									<!--<?php if( $menu['route'] == 'config/index' ){ ?>
-									<div class="menu-icon fa fa-caret-right layui-icon ">&#xe623;</div>
-									<?php }else{ ?>-->
-									<!--<?php } ?>-->
-									<div class="menu-icon fa fa-caret-right layui-icon " style="color: #656161;">&#xe625;</div>
-									<div style="font-size: 13px;color: #656161;"> <?php echo ($sub_menu['title']); ?></div>
-								</div>
-								<?php }else{ ?>
-								<ul style="display:block;">
-									<li <?php if($perm_url == $sub_menu['route']){ ?>class="active"<?php } ?> data-class="active">
-										<a href="javascript:;" lay-href="<?php echo U($sub_menu['route']);?>" style="cursor: pointer;font-size: 13px;color: #656161;"><?php echo ($sub_menu['title']); ?></a>
-									</li>
-								</ul>
-								<?php } ?>
-								
-								<?php if( !empty($sub_menu['items']) ){ ?>
-								<!--<ul style="<?php if( $menu['route'] == 'config/index' ){ ?>display: none;<?php }else{ ?>display: block;<?php } ?>">-->
-								<ul style="display: block;">
-									<?php foreach($sub_menu['items'] as $third_sub_menu){ ?>
-									<li class="" data-class="active">
-										<a lay-href="<?php echo U($third_sub_menu['route']);?>" style="cursor: pointer;"><cite style="font-size:12px;padding-left: 10px;" ><?php echo ($third_sub_menu['title']); ?></cite></a>
-									</li>
-									<?php } ?>
-								</ul>
-								<?php } ?>
-								
-								<?php } ?>
-							</div>
-							
-							
-						<?php } ?>
-						
-						<?php $i++; } ?>
-						
-					
-					
-					
-				</div>
-				<!--二级菜单end-->
-				<div class="new-iframe">
-				  <?php if( empty($perm_url) || $perm_url == '/' ){ ?>
-							<iframe src="<?php echo U('index/analys', array('ok' => 1)); ?>" frameborder="0" class="layadmin-iframe"></iframe>
-				  <?php }else{ ?>
-							<iframe src="<?php echo U( $perm_url, array('ok' => 1)); ?>" frameborder="0" class="layadmin-iframe"></iframe>
-				  <?php } ?> 
-				</div>
-				
-		
-			</div>
-		</div>
-		<!--内容体end-->
-	</div>
-</div>
-<style>
-.layui-side-menu .layui-nav .layui-nav-item > a{
-	padding-top: 4px;
-    padding-bottom: 4px;
-}
-.layui-layout-admin .layui-side{width: 120px;}
-.layui-side-menu .layui-side-scroll {width: 120px;}
-.index-inner-container {
-    position: absolute;
-    left: 0;
-    top: 0;
-    right: -17px;
-    bottom: 0;
-    overflow-x: hidden;
-    overflow-y: scroll;
-}
-.layui-layout-admin .layui-logo {
-    position: fixed;
-    left: 0;
-    top: 0;
-    z-index: 1002;
-    width: 120px;
-    height: 65px;
-    padding: 0 15px;
-    box-sizing: border-box;
-    overflow: hidden;
-    font-weight: 300;
-    background-repeat: no-repeat;
-    background-position: center center;
-}
-.layui-side-menu .layui-nav {
-    width: 120px;
-    margin-top: 65px;
-    background: 0 0;
-}
-.snailfishicon{
-    position: absolute;
-    top: 32%;
-    left: 20px;
-    font-size: 16px;
-}
-.layadmin-pagetabs, .layui-layout-admin .layui-body, .layui-layout-admin .layui-footer, .layui-layout-admin .layui-layout-left {
-    left: 120px;
-}
-.new-iframe {
-    position: absolute;
-    left: 0;
-    top: 0;
-    bottom: 0;
-    right: 0;
-    overflow-x: auto;
-    overflow-y: hidden;
-}
-.sub-nav-show .new-iframe {
-    left: 126px;
-}
-.sub-nav {
-    width: 115px;
-    background-color: #fff;
-    position: absolute;
-    z-index: 998;
-    left: 0;
-    top: 0;
-    bottom: 0;
-    overflow-y: auto;
-    display: none;
-    box-shadow: 2px 0 2px rgba(0,0,0,.05);
-}
-.sub-nav-show .sub-nav {
-    display: block;
-}
-.nav-new {
-    display: none;
-}
-.sub-nav-show .sub-nav .nav-new.layui-this {
-    display: block;
-}
-.one-nav {
-    border-bottom: 1px solid #e3e2e5;
-    padding: 12px 0;
-}
-.one-nav:last-child {
-    border-bottom: 0;
-}
-.one-nav .dt {
-    font-weight: 700;
-}
-.one-nav a {
-    color: #595959;
-    line-height: 32px;
-    display: block;
-    cursor: pointer;
-}
-.dd p {
-    margin: 0 -10px 5px;
-}
-.dd p a {
-    padding: 0 10px;
-    font-size: 13px;
-}
-.dd p.layui-this a, .dd p a:hover {
-    background-color: #E9EAF0;
-    border-radius: 3px;
-}
-.layui-layout-admin .layui-body {
-    position: fixed;
-    top: 60px;
-}
-.layui-layout-admin .layui-body {
-    top: 50px;
-}	
-
-.wb-subnav .subnav-scene {
-    overflow: hidden;
-    height: 78px;
-    line-height: 78px;
-    padding-left: 20px;
-}
-.menu-header {
-    line-height: 50px;
-    height: 50px;
-    /* border-top: 1px solid #f4f4f4; */
-    cursor: pointer;
-    padding-left: 5px;
-}
-.fa {
-    display: inline-block;
-    font: normal normal normal 14px/1 FontAwesome;
-    font-size: inherit;
-    text-rendering: auto;
-    -webkit-font-smoothing: antialiased;
-    -moz-osx-font-smoothing: grayscale;
-}
-.menu-icon {
-    width: 20px;
-    height: 50px;
-    float: left;
-    text-align: center;
-    font-size: 8px;
-    color: #666;
-    line-height: 50px;
-}
-.fa-caret-down:before {
-    content: "\f0d7";
-}
-
-:after, :before {
-    -webkit-box-sizing: border-box;
-    -moz-box-sizing: border-box;
-    box-sizing: border-box;
-}
-.wb-subnav ul {
-    display: none;
-    overflow: hidden;
-}
-.wb-subnav ul li {
-    height: 50px;
-    line-height: 50px;
-    font-size: 12px;
-	cursor:pointer;
-}
-.wb-subnav ul li.active, .wb-subnav ul li:hover {
-    background: #edf6ff;
-}
-.wb-subnav ul a {
-    padding-left: 25px;
-    height: 100%;
-    width: 100%;
-}
-.wb-subnav ul li a {
-    color: #7c838a;
-}
-.wb-subnav ul li.active a {
-    color: #009688;
-}
-.layadmin-side-shrink .layui-side {
-    left: 0;
-    width: 60px;
-}
-
-</style>  
-
-<script src="/layuiadmin/layui/layui.js"></script>
-<script src="/static/js/jquery-ui.min.js"></script>
-<script>
-	layui.config({
-	base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-	index: 'lib/index' //主入口模块
-	}).use('index');
-	
-	
-</script>
-<audio id="musicClick" src="/static/mp3/click.mp3" preload="auto"></audio>
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-var par_index = 0;
-
-var cur_open_div;
-var form;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-
-	setInterval( function() {
-		order_distribution();
-	},3000);
-	function order_distribution() {
-		$.ajax({
-			url:"<?php echo U('index/order_distribution');?>",
-			type:'get',
-			data:{},
-			dataType:'json',
-			success:function(ret){
-				if(ret.no_send > 0)
-				{
-					$('#orderdistribution').show();
-					$("#distributionnotice").html(ret.no_send);
-				}else{
-					$("#orderdistribution").hide();
-					$("#distributionnotice").html(0);
-				}
-			}
-		})
-	}
-  
-	setInterval( function() {
-		$.getJSON("<?php echo "index.php?s=/Cron/index"; ?>");
-	},10000);
-	var i = 0;
-	var y = 0
-	setInterval(notice,10000);
-	function notice() {
-		$.ajax({
-			 url:"<?php echo U('index/order_count');?>",
-			 type:'get',
-			 data:{},
-			 dataType:'json',
-			 success:function(ret){
-			 
-			  if(ret.resultCode == 200 && ret.data > 0 && ret.voice_notice == 1)
-			  {
-				  if(i<3){
-					$('#neworder').show();
-					$("#notice").html(ret.data);
-					$("#musicClick")[0].play();
-					i++;
-					y = ret.data ;
-				  }else{
-					$('#neworder').show();
-					$("#notice").html(ret.data);
-					
-					if( y < ret.data ){
-					    i = 0;
-					}
-					
-				  }
-                  var url = "";
-                  if(ret.order_type == 'pintuan'){
-                    url = "<?php echo U('group/orderlist'); ?>";
-                    $('#neworder').find('a').attr('data-href',url);
-                  }else if(ret.order_type == 'integral'){
-                    url = "<?php echo U('points/order'); ?>";
-                    $('#neworder').find('a').attr('data-href',url);
-                  }
-			  
-			  }else{
-				$("#neworder").hide();
-				$("#notice").html(0);
-				i = 0;
-			    
-			  }
-			 }
-		})
-	}
-	
-	<?php if(is_seller_login() == 1){ ?>
-
-		setInterval( function() {
-			//check_lionfish_comshop_upgrade();
-		},10000);
-	function check_lionfish_comshop_upgrade() {
-		$.post('<?php echo U("system/upgrade_check");?>', function (ret) {
-			if (ret && ret.status == '1') {
-			
-				var result = ret.result;
-				if (result.filecount > 0 || result.database || result.upgrades) {
-					$('#new_msg').show();
-					$('#new_msg_tip').html('点击升级新版本:'+ result.version);
-				}
-			}
-		}, 'json');
-	   
-	}
-	<?php } ?>
-	
-	$('.layui-side-scroll .layui-nav-item a').click(function(){
-		var url = $(this).attr('lay-href');
-		console.log( $.trim($(this).text()) );
-		if( url == undefined )
-		{
-			var _cur_text = $.trim($(this).text());
-			if( _cur_text == '应用' )
-			{
-                $('.new-iframe').css('left','0px');
-				$('.sub-nav').hide();
-
-                $('.layadmin-iframe').attr('src', "<?php echo U('application/index'); ?>");
-			}else{
-                $('.new-iframe').css('left','125px');
-				$('.sub-nav').show();
-
-                var s_index = $(this).parent().index()-1;
-                par_index = s_index;
-
-                $('.wb-subnav').eq(s_index).addClass('layui-this').siblings().removeClass('layui-this');
-
-                var s_u =  $('.wb-subnav').eq(s_index).children('ul:first');
-                $('.wb-subnav li').removeClass('active');
-                if( !$(s_u).children('li:first').hasClass('active')  )
-                {
-                    $(s_u).children('li:first').addClass('active');
-                }
-
-                var s_a = $(s_u).children('li:first').children('a:first');
-
-                var s_url = $(s_a).attr('lay-href');
-
-                $('.layadmin-iframe').attr('src', s_url);
-			}
-
-		}else{
-			var s_index = $(this).parent().parent().index()-1;
-			par_index = s_index+1;
-			
-			console.log(12);
-		}
-	})
-
-	$('#neworder a').click(function(event){
-		var s_url = $(this).attr('data-href');
-		$('.layadmin-iframe').attr('src', s_url);
-	})
-	
-	$('.wb-subnav li a').click(function(event){
-		var s_url = $(this).attr('lay-href');
-		
-		$('.layadmin-iframe').attr('src', s_url);
-		
-	})
-	$('#update_urlevent').click(function(event){
-		var s_url = $(this).attr('lay-href');
-		
-		$('.layadmin-iframe').attr('src', s_url);
-		
-	})
-	$('.wb-subnav li').click(function(event){
-		$('.wb-subnav li').removeClass('active')
-		$(this).addClass('active');
-		
-		$('.layui-side-scroll .layui-nav-item').eq(par_index).addClass('layui-this').siblings().removeClass('layui-this');
-		
-		var s_url = $(this).children('a').attr('lay-href');
-		
-		$('.layadmin-iframe').attr('src', s_url);
-		
-		event.stopPropagation();
-	})
-	
-	
-	$('.menu-header').click(function(){
-		if( $(this).hasClass('active') )
-		{
-			//关闭 向右
-			$(this).children('.layui-icon').html('&#xe623;');
-			$(this).next().hide();
-			$(this).removeClass('active');
-		}else{
-			//开启  向下
-			$(this).children('.layui-icon').html('&#xe625;');
-			$(this).next().show();
-			$(this).addClass('active');
-		}
-	})
-	
-})
-</script>
-
-
-</body>
-</html>

+ 0 - 806
Runtime/Cache/Seller/8b3a46fde6f6eed429096b4c56190d74.php

@@ -1,806 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-            window.sysinfo = {
-            <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-			
-            <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-			
-            'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-			
-            'siteroot': '<?php echo ($_W['siteroot']); ?>',
-                    'siteurl': '<?php echo ($_W['siteurl']); ?>',
-                    'attachurl': '<?php echo ($_W['attachurl']); ?>',
-                    'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-                    'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-                    'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-            'cookie' : {'pre': ''},
-            'account' : <?php echo json_encode($_W['account']);?>,
-            };
-        </script>
-		
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-  <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-   <link href="/static/css/snailfish.css" rel="stylesheet">
-   
-   <script type="text/javascript" src="/static/js/dist/area/cascade.js"></script>
-<script src="https://map.qq.com/api/js?v=2.exp&key=6R4BZ-WAB3W-JITRG-OE7GY-R2753-P3BZ2" type="text/javascript" charset="utf-8"></script>
-
-</head>
-<body layadmin-themealias="default">
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text"><?php if( !empty($item['id'])){ ?>编辑<?php  }else{ ?>添加<?php } ?>团长 <small><?php if( !empty($item['id'])){ ?>修改【<?php echo ($item['head_name']); ?>】<?php } ?></small></span></div>
-		<div class="layui-card-body" style="padding:15px;">
-			<form action="" method="post" class="layui-form" lay-filter="component-layui-form-item" enctype="multipart/form-data" >
-		
-				<input type="hidden" name="id" value="<?php echo ($item['id']); ?>">
-				<div class="layui-form-item">
-					<label class="layui-form-label must">关联会员</label>
-					
-					<div class="layui-input-block">
-						<div class="input-group " style="margin: 0;">
-							<input type="text" disabled value="<?php echo ($item['member_id']); ?>" class="form-control valid" name="member_id" placeholder="" id="member_id">
-							
-							<?php if(!empty($item['id'])){ ?>
-							<span class="input-group-btn">
-								<span class="btn btn-default">会员</span>	
-							</span>
-							<?php }else{ ?>
-							<span class="input-group-btn">
-								<span data-input="#member_id" id="chose_member_id"  class="btn btn-default">选择会员</span>	
-							</span>
-							<?php } ?>
-							
-						</div>
-						<?php if( $saler){ ?>
-						<div class="input-group " style="margin: 0;">
-							<div class="layadmin-text-center choose_user">
-								<img style="" src="<?php echo ($saler['avatar']); ?>">
-								<div class="layadmin-maillist-img" style=""><?php echo ($saler['nickname']); ?></div>
-								
-								<?php if(!empty($item['id'])){ ?>
-								<?php }else{ ?>
-								<button type="button" class="layui-btn layui-btn-sm" onclick="cancle_bind(this,'member_id')"><i class="layui-icon">&#xe640;</i></button>
-								<?php } ?>
-							</div>
-						</div>
-						<?php } ?>
-					</div>
-				</div>
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label must">上级团长</label>
-					<div class="layui-input-block">
-						<div class="input-group " style="margin: 0;">
-							<input type="text" disabled value="<?php echo ($agent_saler['member_id']); ?>" class="form-control valid" name="agent_id" placeholder="" id="agent_id">
-							<span class="input-group-btn">
-								<span data-input="#agent_id" id="chose_agent_id"  class="btn btn-default">选择团长</span>
-							</span>
-						</div>
-						<?php if( $agent_saler){ ?>
-						<div class="input-group " style="margin: 0;">
-							<div class="layadmin-text-center choose_user">
-								<img style="" src="<?php echo ($agent_saler['avatar']); ?>">
-								<div class="layadmin-maillist-img" style=""><?php echo ($agent_saler['nickname']); ?></div>
-								<button type="button" class="layui-btn layui-btn-sm" onclick="cancle_bind(this,'agent_id')"><i class="layui-icon">&#xe640;</i></button>
-							</div>
-						</div>
-						<?php } ?>
-					</div>
-					
-				</div>
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label must">团长名称</label>
-					<div class="layui-input-block">
-						<input type="text" name="head_name" class="form-control" value="<?php echo ($item['head_name']); ?>" data-rule-required="true" />
-						<span class='layui-form-mid'></span>
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label must"> 团长手机号</label>
-					<div class="layui-input-block">
-						<input type="text" name="head_mobile" class="form-control" value="<?php echo ($item['head_mobile']); ?>" data-rule-required="true"  />
-					</div>
-				</div>
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label must">小区名称</label>
-					<div class="layui-input-block">
-						<input type="text" name="community_name" class="form-control" value="<?php echo ($item['community_name']); ?>"  data-rule-required="true" />
-						<span class='layui-form-mid'></span>
-					</div>
-				</div>
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label">团长门头照片</label>
-					<div class="layui-input-block">
-						<?php echo tpl_form_field_image2('head_doorphoto', $item['head_doorphoto']);?>
-					</div>
-				</div>
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label must">团长等级</label>
-					<div class="layui-input-block">
-						<select lay-ignore name="level_id">
-							<?php foreach($level_id_to_name as $key => $val){ ?>
-							<option value="<?php echo $key; ?>" <?php if( !empty($item) && $item['level_id'] == $key ){ ?>selected="true" <?php } ?>><?php echo $val; ?></option>
-							<?php } ?>
-						</select>
-						<span class='layui-form-mid'></span>
-					</div>
-				</div>
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label must">团长分组</label>
-					<div class="layui-input-block">
-						<select lay-ignore name="groupid">
-							<?php foreach($keys_group as $key => $val){ ?>
-							<option value="<?php echo $key; ?>" <?php if( !empty($item) && $item['groupid'] == $key ){ ?>selected="true" <?php } ?>><?php echo $val; ?></option>
-							<?php } ?>
-						</select>
-						<span class='layui-form-mid'></span>
-					</div>
-				</div>
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label must">地址</label>
-					<div class="layui-input-block">
-						<p>
-							<select id="sel-provance" lay-ignore name="province_id" onChange="selectCity();"  style="width:130px;display:inline;">
-								<option value="" selected="true">省/直辖市</option>
-							</select>
-							<select id="sel-city" lay-ignore name="city_id" onChange="selectcounty(0)"  style="width:135px;display:inline;">
-								<option value="" selected="true">请选择</option>
-							</select>
-							<select id="sel-area" lay-ignore name="area_id" onChange="selectstreet(0)" style="width:130px;display:inline;">
-								<option value="" selected="true">请选择</option>
-							</select>
-							 <select id="sel-street" lay-ignore name="country_id" style="width:130px;display:inline;">
-								<option value="" selected="true">请选择</option>
-							</select>
-						</p>
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label must"> 提货详细地址</label>
-					<div class="layui-input-block">
-						<div class="dEdit_1">
-							<div class="layui-inline">
-								
-								<div class="layui-input-inline" style="width: 200px;">
-									<input type="text" style="width: 200px;" name="address" id="address"  data-val="true" data-val-required="请填写社区店所在详细地址" class="form-control" value="<?php echo ($item['address']); ?>" data-rule-required="true"  />
-								</div>
-								<div class="layui-input-inline" style="width: 100px;">
-									<a class="btn btn-default" id="js_search_pos" onclick="getResult()">搜索地图</a>
-								</div>
-								<br />
-								<div class="layui-form-mid layui-word-aux">地图搜索以后,请点击地图定位进行标记坐标,经纬度出来以后在进行保存,以防设置失效。</div>
-							</div>
-							
-						</div>
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label must"> 经纬度</label>
-					<div class="layui-input-block">
-						<div class="dEdit_1">
-							<div class="layui-inline">
-								
-								<div class="layui-input-inline" style="width: 100px;">
-									<input class="form-control input-sm" data-val="true"   id="lon" name="lon"  type="text" value="<?php echo ($item['lon']); ?>">
-								</div>
-								
-								<div class="layui-input-inline" style="width: 100px;">
-									<input class="form-control input-sm" data-val="true" id="lat" name="lat"  type="text" value="<?php echo ($item['lat']); ?>">
-								</div>
-							</div>
-  
-						</div>
-					</div>
-				</div>
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label must"> 地图定位</label>
-					<div class="layui-input-block">
-						<div class="map-box" id="container" style="width: 603px; height: 300px; float: left;"></div>
-						<div class="des" id="map_des" style="display: none; float: left;">请选择一个地址并点击地图中的“导入经纬度”</div>
-						<div class="info-box" id="infoDiv" style="display: none"></div>
-					</div>
-				</div>
-				
-				<?php if( $item['id'] == 0 ){ ?>
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label">申请状态</label>
-					<div class="layui-input-block" >
-						
-						<label class="radio-inline coupon-radio">
-							<input type="radio" name="state" value="1" <?php if( $item['state'] == 1 || empty($item)){ ?>checked="true"<?php } ?> title="通过"  /> 
-						</label>
-						<label class="radio-inline coupon-radio">
-							<input type="radio" name="state" value="0" <?php if( $item['state'] == 0 && !empty($item)){ ?>checked="true"<?php } ?> title="未审核" /> 
-						</label>
-						<label class="radio-inline coupon-radio">
-							<input type="radio" name="state" value="2" <?php if( $item['state'] == 2 && !empty($item)){ ?>checked="true"<?php } ?> title="已拒绝" /> 
-						</label>
-						
-					</div>
-				</div>
-				
-				<?php }else{ ?>
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label">申请状态</label>
-					<div class="layui-input-block" style="top:5px ">
-						
-						<td>
-										<?php if( $item['state'] == 0 ){ ?>
-											
-											<p style="color: red; display:inline;padding-right: 15px;">待审核</p>
-											<input type="hidden" name="state" value="0" />
-												<a style="display:inline;" class='op layui-btn layui-btn-xs'  data-toggle="ajaxModal" href="javascript:;" data-href="<?php echo U('communityhead/agent_check_first', array('id' => $item['id']));?>" >
-													
-													<i class="icow icow-yibiaoji" style="color: #999;display: inline-block;vertical-align: middle" title="点击审核,选择供应商类型" ></i>
-													&nbsp;通&nbsp;过&nbsp;
-
-												</a>
-											
-											<p style="color: red; display:inline;padding-right: 15px;"></p>
-											
-												<input type="checkbox" name="" lay-filter="statewsitchunable" data-href="<?php echo U('communityhead/agent_check', array('id'=>$item['id']));?>" <?php if($item['state']==1){ ?>checked<?php } ?> lay-skin="switch" lay-text="已拒绝|拒绝">
-
-											
-											
-										<?php }else if( $item['state'] == 1 ){ ?>
-											<p style="color: red; padding-right: 15px;" >已通过</p>
-											<input type="hidden" name="state" value="1" />
-										<?php }else if( $item['state'] == 2 ){ ?>
-												<p style="color: red; display:inline;padding-right: 15px;">已拒绝</p>
-												<input type="hidden" name="state" value="2" />
-											<a style="display:inline;" data-toggle="ajaxModal" href="javascript:;" data-href="<?php echo U('communityhead/agent_check_first', array('id' => $item['id']));?>" >
-												<p style="color: blue;display:inline; ">重新审核</p>
-											</a>
-										<?php } ?>
-        							</td>
-						
-					</div>
-				</div>
-				
-				<?php } ?>
-				
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label must"> <?php echo ($wechat_div); ?></label>
-					<div class="layui-input-block">
-						<input type="text" name="wechat" class="form-control" value="<?php echo ($item['wechat']); ?>"/>
-						<span class='layui-form-mid'></span>
-					<!--
-					<?php if( !empty($item['wechat']) ){ ?>
-						<span class='layui-form-mid'><?php echo ($item['wechat']); ?></span>
-					
-					<?php }else{ ?>
-						<span class='layui-form-mid'>后台添加</span>
-					<?php } ?>-->
-					</div>
-				</div>
-
-				<div class="layui-form-item">
-					<label class="layui-form-label ">银行卡名称</label>
-					<div class="layui-input-block">
-						<input type="text" name="bankname"  class="form-control" value="<?php echo ($item['bankname']); ?>"   />
-						<span class='layui-form-mid'>例如农行、微信、支付宝,需有关联会员此处设置才有效</span>
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label ">卡号</label>
-					<div class="layui-input-block">
-						<input type="text" name="bankaccount"  class="form-control" value="<?php echo ($item['bankaccount']); ?>"   />
-						<span class='layui-form-mid'>需有关联会员此处设置才有效</span>
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label ">持卡人姓名</label>
-					<div class="layui-input-block">
-						<input type="text" name="bankusername"  class="form-control" value="<?php echo ($item['bankusername']); ?>"   />
-						<span class='layui-form-mid'>需有关联会员此处设置才有效</span>
-					</div>
-				</div>
-				
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label">分享群图片</label>
-					<div class="layui-input-block">
-						<?php echo tpl_form_field_image2('share_wxcode', $item['share_wxcode']);?>
-						<span class='layui-form-mid'>提示:带群或微信二维码的引导图</span>
-					</div>
-				</div>
-				
-				
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label"> </label>
-					<div class="layui-input-block">
-						<input type="submit" value="提交" lay-submit lay-filter="formDemo" class="btn btn-primary"  />
-						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-						
-					</div>
-				</div>
-			</form>
-		</div>
-</div>
-</div>
-
-<div id="ajaxModal" class="modal fade" style="display: none;">
-
-</div>
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-var cur_open_div;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  
-	form.on('radio(linktype)', function(data){
-		if (data.value == 2) {
-			$('#typeGroup').show();
-		} else {
-			$('#typeGroup').hide();
-		}
-	});  
-
-	$('#chose_member_id').click(function(){
-		cur_open_div = $(this).attr('data-input');
-		$.post("<?php echo U('user/zhenquery', array('ok' => 1));?>", {}, function(shtml){
-		 layer.open({
-			type: 1,
-			area: '930px',
-			content: shtml //注意,如果str是object,那么需要字符拼接。
-		  });
-		});
-	})
-	$('#chose_agent_id').click(function(){
-		cur_open_div = $(this).attr('data-input');
-		$.post("<?php echo U('communityhead/query_head_user_agent', array('ok' => 1));?>", {}, function(shtml){
-		 layer.open({
-			type: 1,
-			area: '930px',
-			content: shtml //注意,如果str是object,那么需要字符拼接。
-		  });
-		});
-	})
-	$('#chose_link').click(function(){
-		cur_open_div = $(this).attr('data-input');
-		$.post("<?php echo U('util.selecturl', array('ok' => 1));?>", {}, function(shtml){
-		 layer.open({
-			type: 1,
-			area: '930px',
-			content: shtml //注意,如果str是object,那么需要字符拼接。
-		  });
-		});
-	})
-	
-		
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	var loadingIndex = layer.load(); // 加载中动画遮罩层(1)
-	
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-			layer.close(loadingIndex); // 提交成功失败都需要关闭
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-				can_sub = true;
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						var backurl = "<?php echo U('communityhead/index',array('ok'=>'1'));?>";
-						location.href = backurl;
-						// location.href = info.result.url;
-					}
-				}); 
-				can_sub = true;
-			}
-		}
-	});
-	
-    return false;
-  });
-  
-form.on('switch(statewsitchunable)', function(data){
-      
-      var s_url = $(this).attr('data-href')
-      
-      var s_value = 2;
-      
-      
-      $.ajax({
-            url:s_url,
-            type:'post',
-            dataType:'json',
-            data:{state:s_value},
-            success:function(info){
-            
-                if(info.status == 0)
-                {
-                    layer.msg(info.result.message,{icon: 1,time: 2000});
-                }else if(info.status == 1){
-                    var go_url = location.href;
-                    if( info.result.hasOwnProperty("url") )
-                    {
-                        go_url = info.result.url;
-                    }
-                    
-                    layer.msg('操作成功',{time: 1000,
-                        end:function(){
-                            location.href = info.result.url;
-                        }
-                    }); 
-                }
-            }
-        })
-    });   
-  
-form.on('switch(statewsitch)', function(data){
-      
-      var s_url = $(this).attr('data-href')
-      
-      var s_value = 1;
-      if(data.elem.checked)
-      {
-        s_value = 1;
-      }else{
-        s_value = 3;
-      }
-      
-      $.ajax({
-            url:s_url,
-            type:'post',
-            dataType:'json',
-            data:{state:s_value},
-            success:function(info){
-            
-                if(info.status == 3)
-                {
-                    layer.msg(info.result.message,{icon: 1,time: 2000});
-                }else if(info.status == 1){
-                    var go_url = location.href;
-                    if( info.result.hasOwnProperty("url") )
-                    {
-                        go_url = info.result.url;
-                    }
-                    
-                    layer.msg('操作成功',{time: 1000,
-                        end:function(){
-                            location.href = info.result.url;
-                        }
-                    }); 
-                }
-            }
-        })
-    });  
-    form.on('checkbox(checkboxall)', function(data){
-      if(data.elem.checked)
-      {
-        $("input[name=item_checkbox]").each(function() {
-            $(this).prop("checked", true);
-        });
-        $("input[name=checkall]").each(function() {
-            $(this).prop("checked", true);
-        });
-        
-      }else{
-        $("input[name=item_checkbox]").each(function() {
-            $(this).prop("checked", false);
-        });
-        $("input[name=checkall]").each(function() {
-            $(this).prop("checked", false);
-        });
-      }
-      
-      form.render('checkbox');
-    });
-  
-  
-})
-
-
-	$("[data-toggle='ajaxModal']").click(function () {
-        var s_url = $(this).attr('data-href');
-		ajax_url = s_url;
-		console.log(23);
-       $.ajax({
-				url:s_url,
-				type:"get",
-				success:function(shtml){
-					$('#ajaxModal').html(shtml);
-					$("#ajaxModal").modal();
-				}	
-		})
-    });
-	
-	$(document).delegate(".modal-footer .btn-primary","click",function(){
-		var s_data = $('#ajaxModal form').serialize();
-		$.ajax({
-			url:ajax_url,
-			type:'post',
-			dataType:'json',
-			data:s_data,
-			success:function(info){
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-		return false;
-	})
-
-
-function cancle_bind(obj,sdiv)
-{
-	$('#'+sdiv).val('');
-	$(obj).parent().parent().remove();
-}
-
-</script> 
-
-<script>
-var map, searchService, marker, markers = [], infoWin = null;
-var initMap = function () {
-	<?php if( !empty($item['lat']) ){ ?>
-		var center = new qq.maps.LatLng(<?php echo ($item['lat']); ?>,<?php echo ($item['lon']); ?>);
-	<?php }else{?>
-		var center = new qq.maps.LatLng(39.916527, 116.397128);
-	<?php }?>
-    map = new qq.maps.Map(document.getElementById('container'), {
-        center: center,
-        zoom: 13
-    });
-    var scaleControl = new qq.maps.ScaleControl({
-        align: qq.maps.ALIGN.BOTTOM_LEFT,
-        margin: qq.maps.Size(85, 15),
-        map: map
-    });
-    //调用Poi检索类
-    searchService = new qq.maps.SearchService({
-        //检索成功的回调函数
-        complete: function (results) {
-            //设置回调函数参数
-            var pois = results.detail.pois;
-            infoWin = new qq.maps.InfoWindow({
-                map: map
-            });
-            var latlngBounds = new qq.maps.LatLngBounds();
-            for (var i = 0, l = pois.length; i < l; i++) {
-                var poi = pois[i];
-                //扩展边界范围,用来包含搜索到的Poi点
-                latlngBounds.extend(poi.latLng);
-                (function (n) {
-                    var marker = new qq.maps.Marker({
-                        map: map
-                    });
-                    marker.setPosition(pois[n].latLng);
-                    markers.push(marker);
-                    qq.maps.event.addListener(marker, 'click', function () {
-                        infoWin.open();
-                        infoWin.setContent('<div style = "width:200px;padding:10px 0;">' + pois[n].address + '<div class="map-import-btn"><input type="button" class="btn btn-xs btn-primary" value="导入经纬度" onclick="chooseShopLoc(this);" address=' + pois[n].address + ' lat =' + pois[n].latLng.getLat() + '  lng =' + pois[n].latLng.getLng() + ' /></div></div>');
-                        infoWin.setPosition(pois[n].latLng);
-                    });
-                })(i);
-            }
-            //调整地图视野
-            map.fitBounds(latlngBounds);
-        },
-        //若服务请求失败,则运行以下函数
-        error: function () {
-            alert("很抱歉,未搜索到此地址,请重新输入!");
-        }
-    });
-}
-function getSelectArea() {
-    var storeArr = [];
-    var s_province = $('#sel-provance').val();
-    var s_city = $('#sel-city').val();
-    var s_area = $('#sel-area').val();
-    var s_street = $('#sel-street').val();
-    
-    if('请选择省份' != s_province)
-    {
-    	storeArr.push(s_province);
-    }
-    if('请选择城市' != s_city)
-    {
-    	storeArr.push(s_city);
-    }
-    if('请选择区域' != s_area)
-    {
-    	storeArr.push(s_area);
-    }
-    if('请选择街道/镇' != s_street && '' != s_street)
-    {
-    	storeArr.push(s_street);
-    }
-    
-    
-    $("#area-selector select").each(function (i) {
-        if ($(this).find("option:selected").text() != '请选择') {
-            storeArr.push($(this).find("option:selected").text());
-        }
-    });
-    return storeArr;
-}
-//查询社区信息
-function chooseShopLoc(t) {
-    var address = $(t).attr("address");
-    var storeAreaArr = getSelectArea();
-    
-    for (var i = 3; i >= 0; i--) {
-        if (i == 0)
-        {
-            address = address.replace(storeAreaArr[0] + "市", '');
-        }
-        address = address.replace(storeAreaArr[i], '');
-    }
-    var lat = $(t).attr("lat");
-    var lng = $(t).attr("lng");
-    this.clearMarkers();
-    var position = new qq.maps.LatLng(lat, lng);
-    marker = new qq.maps.Marker({
-        map: map,
-        position: position,
-        draggable: true
-    });
-    map.panTo(position);
-    map.zoomTo(18);
-    $("#lon").val(lng);
-    $("#lat").val(lat);
-    qq.maps.event.addListener(marker, 'dragend', function () {
-        if (marker.getPosition()) {
-            $("#lon").val(marker.getPosition().getLng());
-            $("#lat").val(marker.getPosition().getLat());
-        }
-    });   
-    if (infoWin) {
-        infoWin.close();
-    }
-    $("#map_des").hide();
-}
-////删除所有标记
-function clearMarkers() {
-    if (markers) {
-        for (i = 0; i < markers.length; i++) {
-            markers[i].setMap(null);
-        }
-        markers.length = 0;
-    }
-}
-
-//搜索地址,这里需要判断是否选择了省市区
-function getResult() {
-	
-    if ($.trim($("#sel-provance").val()) == '请选择省份') {
-		layer.msg('请选择正确的省市区街道',{icon: 1,time: 2000});
-        return;
-    }
-
-
-    if ($("#AddressId").val() <= 0) {
-       // $.dialog.tips("请先选择店铺地址");
-        return;
-    }
-    if ($.trim($("#address").val()).length == 0) {
-        //tip.msgbox.err('请先输入详细地址');
-		layer.msg('请先输入详细地址',{icon: 1,time: 2000});
-        return;
-    }
-    if (marker != null) marker.setMap(null);
-    clearMarkers();
-    if (infoWin) {
-        infoWin.close();
-    }
-    var storeArr = getSelectArea();
-    var regions = storeArr[0] + storeArr[1] + storeArr[2];
-    var regionText = storeArr.join(',');
-    var poiText = regions + $.trim($("#address").val());
-
-    searchService.setLocation(storeArr[1]);
-    searchService.search(poiText);
-    $("#map_des").show();
-}
-
-</script>
-<script language='javascript'>
-	$(function(){
-	    cascdeInit("1","1","<?php echo ($item['province_name']); ?>","<?php echo ($item['city_name']); ?>","<?php echo ($item['area_name']); ?>","<?php echo ($item['country_name']); ?>");
-	    initMap();//初始化门店地图
-	});
-      require(['bootstrap'],function(){
-             $('#myTab a').click(function (e) {
-                 e.preventDefault();
-                $('#tab').val( $(this).attr('href'));
-                 $(this).tab('show');
-             })
-     });
-
-    function showbacktype(type){
-
-        $('.backtype').hide();
-        $('.backtype' + type).show();
-    }
-	$(function(){
-
-		
-
-	})
-</script> 
-</body>

+ 0 - 255
Runtime/Cache/Seller/8ec5db617528ab9d446cd3745409b4c0.php

@@ -1,255 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-            window.sysinfo = {
-            <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-			
-            <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-			
-            'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-			
-            'siteroot': '<?php echo ($_W['siteroot']); ?>',
-                    'siteurl': '<?php echo ($_W['siteurl']); ?>',
-                    'attachurl': '<?php echo ($_W['attachurl']); ?>',
-                    'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-                    'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-                    'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-            'cookie' : {'pre': ''},
-            'account' : <?php echo json_encode($_W['account']);?>,
-            };
-        </script>
-
-
-		
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-<link href="/static/css/snailfish.css" rel="stylesheet">
-   
-<link href="/static/css/minapp.css?v=1" rel="stylesheet">
-</head>
-<body layadmin-themealias="default">
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">个人中心图标设置</span></div>
-		<div class="layui-card-body" style="padding:15px;">
-			<form action="" method="post" class="layui-form" lay-filter="component-layui-form-item" enctype="multipart/form-data" >
-				<div class="clearfix">
-					<div class="col-xs-6 col-md-5">
-						<div class="minapp">
-							<div class="titlebar"><img src="/static/images/minappbar.jpg"></div>
-							<div class="user">
-								<div class="user-top">
-									<div class="avatar">头像</div>
-									<div class="username">xxx</div>
-								</div>
-								<div class="order">
-									<div class="order-title">我的订单</div>
-									<div class="orderTab">
-										<div class="order_status">
-											<?php echo tpl_form_field_image_sin('parameter[user_order_menu_icon1]', $data['user_order_menu_icons']['i1'], '', array('class_extra'=>'order_menu_icon'));?>
-											<div class="order_status_name">待付款</div>
-										</div>
-										<div class="order_status">
-											<?php echo tpl_form_field_image_sin('parameter[user_order_menu_icon2]', $data['user_order_menu_icons']['i2'], '', array('class_extra'=>'order_menu_icon'));?>
-											<div class="order_status_name">待配送</div>
-										</div>
-										<div class="order_status">
-											<?php echo tpl_form_field_image_sin('parameter[user_order_menu_icon3]', $data['user_order_menu_icons']['i3'], '', array('class_extra'=>'order_menu_icon'));?>
-											<div class="order_status_name">待提货</div>
-										</div>
-										<div class="order_status">
-											<?php echo tpl_form_field_image_sin('parameter[user_order_menu_icon4]', $data['user_order_menu_icons']['i4'], '', array('class_extra'=>'order_menu_icon'));?>
-											<div class="order_status_name">已提货</div>
-										</div>
-										<div class="order_status">
-											<?php echo tpl_form_field_image_sin('parameter[user_order_menu_icon5]', $data['user_order_menu_icons']['i5'], '', array('class_extra'=>'order_menu_icon'));?>
-											<div class="order_status_name">售后服务</div>
-										</div>
-									</div>
-								</div>
-
-								<div class="layui-form-item" style="margin-top: 20px;">
-									<label class="layui-form-label" style="width: auto;">工具栏显示</label>
-									<div class="layui-input-block" style="margin-left: 100px;">
-									  <input type="radio" name="parameter[user_tool_showtype]" value="0" lay-filter="toollisttype" title="列表模式" <?php if( empty($data) || $data['user_tool_showtype'] ==0 ){ ?>checked <?php } ?> />
-									  <input type="radio" name="parameter[user_tool_showtype]" value="1" lay-filter="toollisttype" title="宫格模式" <?php if( !empty($data) && $data['user_tool_showtype'] ==1 ){ ?>checked <?php } ?> />
-									</div>
-								</div>
-								<div class="tool">
-									<div class="toolList <?php if($data['user_tool_showtype'] ==1) { echo 'grad'; } ?>">
-										<div class="item-main">
-											<?php echo tpl_form_field_image_sin('parameter[user_tool_icon1]', $data['user_tool_icons']['i1'], '', array('class_extra'=>'tool_icon'));?>
-											<span>余额</span>
-										</div>
-										<div class="item-main">
-											<?php echo tpl_form_field_image_sin('parameter[user_tool_icon10]', $data['user_tool_icons']['i10'], '', array('class_extra'=>'tool_icon'));?>
-											<span>我的接龙</span>
-										</div>
-										<div class="item-main">
-											<?php echo tpl_form_field_image_sin('parameter[user_tool_icon11]', $data['user_tool_icons']['i11'], '', array('class_extra'=>'tool_icon'));?>
-											<span>商品核销</span>
-										</div>
-										
-										<div class="item-main">
-											<?php echo tpl_form_field_image_sin('parameter[user_tool_icon2]', $data['user_tool_icons']['i2'], '', array('class_extra'=>'tool_icon'));?>
-											<span>积分</span>
-										</div>
-										<div class="item-main">
-											<?php echo tpl_form_field_image_sin('parameter[user_tool_icon3]', $data['user_tool_icons']['i3'], '', array('class_extra'=>'tool_icon'));?>
-											<span>优惠券</span>
-										</div>
-										<div class="item-main">
-											<?php echo tpl_form_field_image_sin('parameter[user_tool_icon4]', $data['user_tool_icons']['i4'], '', array('class_extra'=>'tool_icon'));?>
-											<span>核销管理</span>
-										</div>
-										<div class="item-main">
-											<?php echo tpl_form_field_image_sin('parameter[user_tool_icon5]', $data['user_tool_icons']['i5'], '', array('class_extra'=>'tool_icon'));?>
-											<span>团长中心</span>
-										</div>
-										<div class="item-main">
-											<?php echo tpl_form_field_image_sin('parameter[user_tool_icon6]', $data['user_tool_icons']['i6'], '', array('class_extra'=>'tool_icon'));?>
-											<span>供应商</span>
-										</div>
-										<div class="item-main">
-											<?php echo tpl_form_field_image_sin('parameter[user_tool_icon12]', $data['user_tool_icons']['i12'], '', array('class_extra'=>'tool_icon'));?>
-											<span>预售中心</span>
-										</div>
-										<div class="item-main">
-											<?php echo tpl_form_field_image_sin('parameter[user_tool_icon13]', $data['user_tool_icons']['i13'], '', array('class_extra'=>'tool_icon'));?>
-											<span>邀请有礼</span>
-										</div>
-										<div class="item-main">
-											<?php echo tpl_form_field_image_sin('parameter[user_tool_icon14]', $data['user_tool_icons']['i14'], '', array('class_extra'=>'tool_icon'));?>
-											<span>礼品卡中心</span>
-										</div>
-										<div class="item-main">
-											<?php echo tpl_form_field_image_sin('parameter[user_tool_icon7]', $data['user_tool_icons']['i7'], '', array('class_extra'=>'tool_icon'));?>
-											<span>常见帮助</span>
-										</div>
-										<div class="item-main">
-											<?php echo tpl_form_field_image_sin('parameter[user_tool_icon8]', $data['user_tool_icons']['i8'], '', array('class_extra'=>'tool_icon'));?>
-											<span>联系客服</span>
-										</div>
-										<div class="item-main">
-											<?php echo tpl_form_field_image_sin('parameter[user_tool_icon9]', $data['user_tool_icons']['i9'], '', array('class_extra'=>'tool_icon'));?>
-											<span>关于我们</span>
-										</div>
-										<div class="item-main">
-											<?php echo tpl_form_field_image_sin('parameter[user_tool_icon15]', $data['user_tool_icons']['i15'], '', array('class_extra'=>'tool_icon'));?>
-											<span>退出登录</span>
-										</div>
-									</div>
-								</div>
-							</div>
-						</div>
-					</div>
-					<div class="col-xs-6 col-md-7 user-details">
-						<div class="details-title">备注:</div>
-						<p>1.订单图标大小为56*56;</p>
-						<p>2.工具栏菜单图标大小为40*40,宫格模式建议尺寸100*100。</p>
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label"> </label>
-					<div class="layui-input-block">
-						<input type="submit" value="提交" lay-submit lay-filter="formDemo" class="btn btn-primary"  />
-					</div>
-				</div>
-			</form>
-		</div>
-</div>
-</div>
-
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  	$ = layui.$;
-  	var form = layui.form;
-
-  	form.on('radio(toollisttype)', function(data){
-		if (data.value == 1) {
-			$('.toolList').addClass('grad');
-		} else {
-			$('.toolList').removeClass('grad');
-		}
-	})
-  	
-	//监听提交
-	form.on('submit(formDemo)', function(data){
-	
-		$.ajax({
-			url: data.form.action,
-			type: data.form.method,
-			data: data.field,
-			dataType:'json',
-			success: function (info) {
-			  
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		});
-		
-	    return false;
-  	});
-})
-
-</script>  
-</body>

+ 0 - 472
Runtime/Cache/Seller/8f647ac74f1ea7e0e3cd0f11bdc83a25.php

@@ -1,472 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-	window.sysinfo = {
-	<?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-	
-	<?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-	
-	'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-	
-	'siteroot': '<?php echo ($_W['siteroot']); ?>',
-			'siteurl': '<?php echo ($_W['siteurl']); ?>',
-			'attachurl': '<?php echo ($_W['attachurl']); ?>',
-			'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-			'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-			'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-	'cookie' : {'pre': ''},
-	'account' : <?php echo json_encode($_W['account']);?>,
-	};
-</script>
-
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-<link href="/static/css/snailfish.css" rel="stylesheet">
-<style>
-    tbody tr td{
-        position: relative;
-    }
-    tbody tr  .icow-weibiaoti--{
-        visibility: hidden;
-        display: inline-block;
-        color: #fff;
-        height:18px;
-        width:18px;
-        background: #e0e0e0;
-        text-align: center;
-        line-height: 18px;
-        vertical-align: middle;
-    }
-    tbody tr:hover .icow-weibiaoti--{
-        visibility: visible;
-    }
-    tbody tr  .icow-weibiaoti--.hidden{
-        visibility: hidden !important;
-    }
-    .full .icow-weibiaoti--{
-        margin-left:10px;
-    }
-    .full>span{
-        display: -webkit-box;
-        display: -webkit-flex;
-        display: -ms-flexbox;
-        display: flex;
-        vertical-align: middle;
-        align-items: center;
-    }
-    tbody tr .label{
-        margin: 5px 0;
-    }
-    .goods_attribute a{
-        cursor: pointer;
-    }
-    .newgoodsflag{
-        width: 22px;height: 16px;
-        background-color: #ff0000;
-        color: #fff;
-        text-align: center;
-        position: absolute;
-        bottom: 70px;
-        left: 57px;
-        font-size: 12px;
-    }
-	.a{cursor: pointer;}
-</style>
-</head>
-<body layadmin-themealias="default">
-
-<table id="demo" lay-filter="test"></table>
-
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">线下兑换码管理</span></div>
-		<div class="layui-card-body" style="padding:15px;">
-			<form action="" method="get" class="form-horizontal form-search layui-form" role="form">
-				<input type="hidden" name="c" value="virtualcard" />
-				<input type="hidden" name="a" value="exchange_offline" />
-				<div class="layui-form-item">
-				  <div class="layui-inline">
-					<div class="layui-input-inline">
-					  <input type="text" class="layui-input" name='keyword' value="<?php echo ($_GPC['keyword']); ?>" placeholder="输入关键词然后回车">  
-					</div>
-					<div class="layui-input-inline">
-						<button class="layui-btn layui-btn-sm"  type="submit"> 搜索</button>
-					</div>
-				  </div>
-				</div>
-				
-			</form>
-			<form action="" class="layui-form" lay-filter="example" method="post" >
-       
-				<div class="row">
-					<div class="col-md-12">
-						<div class="page-table-header">
-							
-							<span class="pull-right"> 
-								<a href="<?php echo U('virtualcard/addofflineCode', array('ok' => 1));?>" class="layui-btn layui-btn-sm"><i class="fa fa-plus"></i> 添加线下兑换码</a>
-							</span>
-							<div class="btn-group">
-								<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch' data-href="<?php echo U('virtualcard/changeofflinecode',array('type'=>'state','value'=>1));?>">
-									 启用
-								</button>
-								<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch'  data-href="<?php echo U('virtualcard/changeofflinecode',array('type'=>'state','value'=>0));?>">
-									 禁用
-								</button>
-								<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch-remove' data-confirm="确认要删除吗?已兑换记录也会一并删除!" data-href="<?php echo U('virtualcard/deleteofflinecode');?>">
-									 删除
-								</button>
-							</div>
-						</div>
-						<table class="table table-responsive" lay-even lay-skin="line" lay-size="lg">
-							<thead>
-							 <tr>
-								<th style="width:25px;">
-									<input type='checkbox' name="checkall" lay-skin="primary" lay-filter="checkboxall"  />
-								</th>
-								<th style="">ID</th>
-								<th style="">兑换码名称</th>
-								<th style="">面额</th>
-								<th style="">有效期</th>
-								<th style="">未使用数量</th>
-								<th style="">已使用数量</th>
-								<th style="">状态</th>
-								<th style="">生成时间</th>
-								<th style="">操作</th>
-							</tr>
-							</thead>
-							<tbody>
-							<?php foreach( $list as $item ){ ?>
-							<tr>
-							<td>
-								<input type='checkbox' name="item_checkbox" lay-skin="primary" value="<?php echo ($item['id']); ?>"/>
-							</td>
-							<td>
-								<?php echo ($item['id']); ?>
-							</td>
-							<td>
-								<?php echo ($item['code_name']); ?>
-							</td>
-								<td>
-									¥<?php echo round($item['code_money'],2);?>
-								</td>
-							<td>
-								<?php echo ($item['effect_name']); ?>
-							</td>
-							<td>
-								<?php echo ($item['un_use_count']); ?>
-							</td>
-							<td>
-								<?php echo ($item['has_use_count']); ?>
-							</td>
-							<td style="">
-								<input type="checkbox" name="" lay-filter="statewsitch" data-href="<?php echo U('virtualcard/changeofflinecode',array('type'=>'state','id'=>$item['id']));?>" <?php if( $item['state']==1){ ?>checked<?php  }else{ } ?> lay-skin="switch" lay-text="启用|禁用">
-							</td>
-								<td>
-									<?php echo date('Y-m-d H:i:s', $item['addtime']);?>
-								</td>
-								<td  style="overflow:visible;position:relative">
-									<a  class='layui-btn layui-btn-xs' href="<?php echo U('virtualcard/exchangeofflinerecord', array('code_id' => $item['id'], 'ok' => 1));?>"  >
-										查看所有线下兑换码
-									</a>
-									<a  class='layui-btn layui-btn-xs' target="_blank" href="<?php echo U('virtualcard/exportofflinerecord', array('code_id' => $item['id'], 'ok' => 1));?>"  >
-										导出所有线下兑换码
-									</a>
-									<a  class='layui-btn layui-btn-xs deldom' href="javascript:;" data-href="<?php echo U('virtualcard/deleteofflinecode',array('id' => $item['id']));?>" data-confirm='确认要删除吗?已兑换记录也会一并删除!'>
-										<i class="layui-icon">&#xe640;</i>删除
-									</a>
-								</td>
-							</tr>
-							<?php } ?>
-							</tbody>
-							<tfoot>
-							<tr>
-								<td colspan="5">
-									<div class="page-table-header">
-										<input type="checkbox" name="checkall" lay-skin="primary" lay-filter="checkboxall">
-										<div class="btn-group">
-											<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch' data-href="<?php echo U('virtualcard/changeofflinecode',array('type'=>'state','value'=>1));?>">
-												启用
-											</button>
-											<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch'  data-href="<?php echo U('virtualcard/changeofflinecode',array('type'=>'state','value'=>0));?>">
-												禁用
-											</button>
-											<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch-remove' data-confirm="确认要删除吗?已兑换记录也会一并删除!" data-href="<?php echo U('virtualcard/deletecode');?>">
-												删除
-											</button>
-										</div>
-									</div>
-								</td>
-								<td colspan="5" style="text-align: right">
-									<?php echo ($pager); ?>
-								</td>
-							</tr>
-							</tfoot>
-						</table>
-					</div>
-				</div>
-				
-			</form>
-		</div>
-	</div>
-</div>
-
-
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  
-  
-	$('.deldom').click(function(){
-		var s_url = $(this).attr('data-href');
-		layer.confirm($(this).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						success:function(info){
-						
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-	})
-	
-	$('.btn-operation').click(function(){
-		var ids_arr = [];
-		var obj = $(this);
-		var s_toggle = $(this).attr('data-toggle');
-		var s_url = $(this).attr('data-href');
-		
-		
-		$("input[name=item_checkbox]").each(function() {
-			
-			if( $(this).prop('checked') )
-			{
-				ids_arr.push( $(this).val() );
-			}
-		})
-		if(ids_arr.length < 1)
-		{
-			layer.msg('请选择要操作的内容');
-		}else{
-			var can_sub = true;
-			if( s_toggle == 'batch-remove' )
-			{
-				can_sub = false;
-				
-				layer.confirm($(obj).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						data:{ids:ids_arr},
-						success:function(info){
-						
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-			}else{
-				$.ajax({
-					url:s_url,
-					type:'post',
-					dataType:'json',
-					data:{ids:ids_arr},
-					success:function(info){
-					
-						if(info.status == 0)
-						{
-							layer.msg(info.result.message,{icon: 1,time: 2000});
-						}else if(info.status == 1){
-							var go_url = location.href;
-							if( info.result.hasOwnProperty("url") )
-							{
-								go_url = info.result.url;
-							}
-							
-							layer.msg('操作成功',{time: 1000,
-								end:function(){
-									location.href = info.result.url;
-								}
-							}); 
-						}
-					}
-				})
-			}
-		}
-	})
-  
-	form.on('switch(statewsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var s_value = 1;
-	  if(data.elem.checked)
-	  {
-		s_value = 1;
-	  }else{
-		s_value = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{value:s_value},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	});  
-	form.on('checkbox(checkboxall)', function(data){
-	  
-	  if(data.elem.checked)
-	  {
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", true);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", true);
-		});
-		
-	  }else{
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", false);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", false);
-		});
-	  }
-	  
-	  form.render('checkbox');
-	});
-  
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-})
-
-
-
-</script>  
-</body>

+ 0 - 451
Runtime/Cache/Seller/8fad575b6f5b906180efe7fcb2be641c.php

@@ -1,451 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-	window.sysinfo = {
-	<?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-	
-	<?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-	
-	'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-	
-	'siteroot': '<?php echo ($_W['siteroot']); ?>',
-			'siteurl': '<?php echo ($_W['siteurl']); ?>',
-			'attachurl': '<?php echo ($_W['attachurl']); ?>',
-			'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-			'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-			'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-	'cookie' : {'pre': ''},
-	'account' : <?php echo json_encode($_W['account']);?>,
-	};
-</script>
-
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-<link href="/static/css/snailfish.css" rel="stylesheet">
-<style>
-    tbody tr td{
-        position: relative;
-    }
-    tbody tr  .icow-weibiaoti--{
-        visibility: hidden;
-        display: inline-block;
-        color: #fff;
-        height:18px;
-        width:18px;
-        background: #e0e0e0;
-        text-align: center;
-        line-height: 18px;
-        vertical-align: middle;
-    }
-    tbody tr:hover .icow-weibiaoti--{
-        visibility: visible;
-    }
-    tbody tr  .icow-weibiaoti--.hidden{
-        visibility: hidden !important;
-    }
-    .full .icow-weibiaoti--{
-        margin-left:10px;
-    }
-    .full>span{
-        display: -webkit-box;
-        display: -webkit-flex;
-        display: -ms-flexbox;
-        display: flex;
-        vertical-align: middle;
-        align-items: center;
-    }
-    tbody tr .label{
-        margin: 5px 0;
-    }
-    .goods_attribute a{
-        cursor: pointer;
-    }
-    .newgoodsflag{
-        width: 22px;height: 16px;
-        background-color: #ff0000;
-        color: #fff;
-        text-align: center;
-        position: absolute;
-        bottom: 70px;
-        left: 57px;
-        font-size: 12px;
-    }
-	.a{cursor: pointer;}
-</style>
-</head>
-<body layadmin-themealias="default">
-
-<table id="demo" lay-filter="test"></table>
-
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">标签管理</span></div>
-		<div class="layui-card-body" style="padding:15px;">
-			<form action="" method="get" class="form-horizontal form-search layui-form" role="form">
-				<input type="hidden" name="c" value="goods" />
-				<input type="hidden" name="a" value="goodstag" />
-				
-				<div class="layui-form-item">
-				  <div class="layui-inline">
-					<div class="layui-input-inline">
-					  <input type="text" class="layui-input" name='keyword' value="<?php echo ($gpc['keyword']); ?>" placeholder="输入关键词然后回车">  
-					</div>
-					<div class="layui-input-inline">
-						<button class="layui-btn layui-btn-sm"  type="submit"> 搜索</button>
-					</div>
-				  </div>
-				</div>
-			</form>
-			<form action="" class="layui-form" lay-filter="example" method="post" >
-       
-				<div class="row">
-					<div class="col-md-12">
-						<div class="page-table-header">
-							<input type='checkbox' name="checkall" lay-skin="primary" lay-filter="checkboxall"  />
-							
-							<span class="pull-right"> 
-								<a href="<?php echo U('goods/addtags', array('ok' => 1));?>" class="layui-btn layui-btn-sm"><i class="fa fa-plus"></i> 添加新标签</a>
-							</span>
-							<div class="btn-group">
-								<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch' data-href="<?php echo U('goods/tagsstate',array('state'=>1));?>">
-									 启用
-								</button>
-								<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch'  data-href="<?php echo U('goods/tagsstate',array('state'=>0));?>">
-									 禁用
-								</button>
-								<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch-remove' data-confirm="确认要删除吗?" data-href="<?php echo U('goods/deletetags');?>">
-									 删除
-								</button>
-							</div>
-						</div>
-						<table class="table table-responsive" lay-even lay-skin="line" lay-size="lg">
-							<thead>
-							 <tr>
-								<th style="width:25px;"></th>
-								<th>标签名称</th>
-								<th>标签内容</th>
-								<th style="width:100px;">状态</th>
-								<th style="width:165px;text-align: center;">操作</th>
-							</tr>
-							</thead>
-							<tbody>
-							<?php foreach( $label as $row ){ ?>
-							<tr>
-								<td>
-									<?php if( $row['id']!='default'){ ?>
-									<input type='checkbox' name="item_checkbox" lay-skin="primary" value="<?php echo ($row['id']); ?>"/>
-									<?php } ?>
-								</td>
-								<td><?php echo ($row['tagname']); ?></td>
-								<?php if( $row['type']==0){ ?>
-									<td><?php echo ($row['tagcontent']); ?></td>
-								<?php  }else{ ?>
-									<td><img style="width: 30px;" src="<?php echo tomedia($row['tagcontent']);?>"></td>
-								<?php } ?>
-								<td>
-									<input type="checkbox" name="" lay-filter="statewsitch" data-href="<?php echo U('goods/tagsstate',array('id'=>$row['id']));?>" <?php if( $row['state']==1){ ?>checked<?php  }else{ } ?> lay-skin="switch" lay-text="启用|禁用">
-									
-								</td>
-								<td style="text-align: center;">
-									<a  class='layui-btn layui-btn-xs' href="<?php echo U('goods/edittags', array('id' => $row['id'], 'ok' => 1));?>"  >
-										<i class="layui-icon">&#xe608;</i>编辑
-									</a>
-									<?php if( $row['id']!='default'){ ?>
-									<a  class='layui-btn layui-btn-xs deldom' href="javascript:;" data-href="<?php echo U('goods/deletetags', array('id' => $row['id']));?>" data-confirm='确认要删除此标签组吗?'>
-										<i class="layui-icon">&#xe640;</i>删除
-									</a>
-									<?php } ?>
-								</td>
-							</tr>
-							<?php } ?>
-					
-							</tbody>
-							<tfoot>
-							<tr>
-								<td colspan="2">
-									<div class="page-table-header">
-										<input type="checkbox" name="checkall" lay-skin="primary" lay-filter="checkboxall">
-										<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch' data-href="<?php echo U('goods/tagsstate',array('state'=>1));?>">
-											 启用
-										</button>
-										<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch'  data-href="<?php echo U('goods/tagsstate',array('state'=>0));?>">
-											 禁用
-										</button>
-										<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch-remove' data-confirm="确认要删除吗?" data-href="<?php echo U('goods/deletetags');?>">
-											 删除
-										</button>
-									</div>
-								</td>
-								<td colspan="3" style="text-align: right">
-									<?php echo ($pager); ?>
-								</td>
-							</tr>
-							</tfoot>
-						</table>
-					</div>
-				</div>
-				
-			</form>
-		</div>
-	</div>
-</div>
-
-
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  
-  
-	$('.deldom').click(function(){
-		var s_url = $(this).attr('data-href');
-		layer.confirm($(this).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						success:function(info){
-						
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-	})
-	
-	$('.btn-operation').click(function(){
-		var ids_arr = [];
-		var obj = $(this);
-		var s_toggle = $(this).attr('data-toggle');
-		var s_url = $(this).attr('data-href');
-		
-		
-		$("input[name=item_checkbox]").each(function() {
-			
-			if( $(this).prop('checked') )
-			{
-				ids_arr.push( $(this).val() );
-			}
-		})
-		if(ids_arr.length < 1)
-		{
-			layer.msg('请选择要操作的内容');
-		}else{
-			var can_sub = true;
-			if( s_toggle == 'batch-remove' )
-			{
-				can_sub = false;
-				
-				layer.confirm($(obj).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						data:{ids:ids_arr},
-						success:function(info){
-						
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-			}else{
-				$.ajax({
-					url:s_url,
-					type:'post',
-					dataType:'json',
-					data:{ids:ids_arr},
-					success:function(info){
-					
-						if(info.status == 0)
-						{
-							layer.msg(info.result.message,{icon: 1,time: 2000});
-						}else if(info.status == 1){
-							var go_url = location.href;
-							if( info.result.hasOwnProperty("url") )
-							{
-								go_url = info.result.url;
-							}
-							
-							layer.msg('操作成功',{time: 1000,
-								end:function(){
-									location.href = info.result.url;
-								}
-							}); 
-						}
-					}
-				})
-			}
-		}
-	})
-  
-	form.on('switch(statewsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var s_value = 1;
-	  if(data.elem.checked)
-	  {
-		s_value = 1;
-	  }else{
-		s_value = 0;
-	  }
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{state:s_value},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	});  
-	form.on('checkbox(checkboxall)', function(data){
-	  
-	  if(data.elem.checked)
-	  {
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", true);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", true);
-		});
-		
-	  }else{
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", false);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", false);
-		});
-	  }
-	  
-	  form.render('checkbox');
-	});
-  
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-})
-
-
-
-</script>  
-</body>

+ 0 - 566
Runtime/Cache/Seller/8fc054336a1046e05532693a85899be5.php

@@ -1,566 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
-  <!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-  <!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-  <![endif]-->
-
-  <link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-  <link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-  <script type="text/javascript">
-      window.sysinfo = {
-        <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-        <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-        <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-        <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-        'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-        'siteroot': '<?php echo ($_W['siteroot']); ?>',
-        'siteurl': '<?php echo ($_W['siteurl']); ?>',
-        'attachurl': '<?php echo ($_W['attachurl']); ?>',
-        'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-        'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-        'module': {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-        'cookie': {'pre': ''},
-        'account': <?php echo json_encode($_W['account']);?>,
-      };
-  </script>
-        
-  <script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-  <script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-  <script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-  <script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-  <script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-  <script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-  <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-  <link href="/static/css/snailfish.css" rel="stylesheet">
-  <style type="text/css">
-      .layui-btn-sm { line-height: 34px;height: 34px; }
-      .layui-btn-group .layui-btn:first-child {border-radius: 0;}
-      .text-green { color: #15d2b9 !important; }
-	  .daterangepicker select.ampmselect, .daterangepicker select.hourselect, .daterangepicker select.minuteselect {
-			width: auto!important;
-		}
-  </style>
-</head>
-<body layadmin-themealias="default">
-
-<div class="layui-fluid">
-    <div class="layui-card">
-        <div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">配送单管理</span></div>
-        <div class="layui-card-body" style="padding:15px;">
-        <div class="page-content">
-            <form action="" method="get" class="form-horizontal form-search layui-form" role="form" id="search">
-        		
-				<input type="hidden" name="c" value="delivery" />
-				<input type="hidden" name="a" value="delivery" />
-                
-                <div class="page-toolbar">
-                    <div class="layui-form-item">
-    					<span class="layui-input-inline">
-    						<select name='searchtime' class='form-control' style="width:100px;padding:0 5px;"  id="searchtime">
-    							<option value=''>不按时间</option>
-    							<option value='create_time' <?php if( $gpc['searchtime']=='create_time'){ ?>selected<?php } ?>>创建清单时间</option>
-    							<option value='express_time' <?php if( $gpc['searchtime']=='express_time'){ ?>selected<?php } ?>>配送时间</option>
-    							<option value='head_get_time' <?php if( $gpc['searchtime']=='head_get_time'){ ?>selected<?php } ?>>送达时间</option>
-    						</select>
-    					</span>
-    					<span class="layui-input-inline" style="width: 285px;">
-    						<?php echo tpl_form_field_daterange('time', array('starttime'=>date('Y-m-d H:i', $starttime),'endtime'=>date('Y-m-d H:i', $endtime)),true);;?>
-    					</span>
-                        <div class="layui-input-inline">
-                            <input type="hidden" name="export" id="export" value="0">
-                        </div>
-                        <div class="layui-input-inline" style="width: 400px;margin-right: 0px;">
-				            <input type="text" class="layui-input" name='keyword' id="keyword" value="<?php echo ($gpc['keyword']); ?>" placeholder="输入编号/团长姓名/团长手机/线路/配送名称/配送手机然后回车">
-                        </div>
-                        <div class="layui-btn-group">
-							<button class="layui-btn btn-submit layui-btn-sm" data-export="0" type="submit"> 搜索</button>
-    						<button data-export="1" type="submit" class="layui-btn layui-btn-sm btn-submit layui-btn-primary">导出商品总单</button>
-    						<button data-export="2" type="submit" class="layui-btn layui-btn-sm btn-submit layui-btn-primary">导出配送总单(样式1)</button>
-    						<button data-export="3" type="submit" class="layui-btn layui-btn-sm btn-submit layui-btn-primary">导出配送总单(样式2)</button>
-							
-    						<button style="display:none;" data-export="3" type="submit" class="btn btn-info-o btn-submit">导出团长旗下订单</button>
-    						<button style="display:none;" data-export="4" type="submit" class="btn btn-info-o btn-submit">导出配货单</button>
-							
-							
-                        </div>
-                    </div>
-                </div>
-            </form>
-	
-            <form action="" method="post" class="layui-form" role="form">
-                <div class="row">
-                    <div class="col-md-12">
-						<div class="page-table-header">
-						
-							<div class="btn-group">	 
-								<a class='btn btn-default btn-sm btn-op ' data-sec="1" data-confirm='确认批量配送操作吗?' data-toggle="ajaxModal" href="javascript:;" data-href="<?php echo U('delivery/onekey_tosend', array('sec' => 1) );?>" >
-									<i class="icow icow-yibiaoji" style="color: #999;display: inline-block;vertical-align: middle" title="批量配送操作" ></i>
-									批量配送操作
-								</a>
-								
-								<a class='btn btn-default btn-sm btn-op ' data-sec="0" data-confirm='确认要将所有待配送,全部变更为已配送?' data-toggle="ajaxModal" href="javascript:;" data-href="<?php echo U('delivery/onekey_tosend', array('sec' => 0) );?>" >
-									<i class="icow icow-yibiaoji" style="color: #999;display: inline-block;vertical-align: middle" title="确认要将所有待配送,全部变更为已配送?" ></i>
-									一键配送操作
-								</a>
-								
-								<a class='btn btn-default btn-sm btn-op ' data-sec="1" data-confirm='确认批量送达操作吗?' data-toggle="ajaxModal" href="javascript:;" data-href="<?php echo U('delivery/onekey_tosendover', array('sec' => 1) );?>" >
-									<i class="icow icow-yibiaoji" style="color: #999;display: inline-block;vertical-align: middle" title="批量送达操作" ></i>
-									批量送达操作
-								</a>
-								
-								<a class='btn btn-default btn-sm btn-op ' data-sec="0" data-confirm='确认要将所有配送中,全部变更为送达?' data-toggle="ajaxModal" href="javascript:;" data-href="<?php echo U('delivery/onekey_tosendover', array('sec' => 0) );?>" >
-									<i class="icow icow-yibiaoji" style="color: #999;display: inline-block;vertical-align: middle" title="确认要将所有配送中,全部变更为已送达?" ></i>
-									一键送达操作
-								</a>
-								
-        					</div>
-							
-                               <span class="pull-right">
-									<a  class='btn layui-btn  layui-btn-sm' id="delivery_allprint" data-target="_blank" href="javascript:;" data-href="<?php echo U('delivery/delivery_allprint');?>" >
-										<span data-toggle="tooltip" data-placement="top" title="" data-original-title="一键打印所有团长配送清单">
-											一键打印所有团长配送清单
-										</span>
-									</a>
-									<a  class='btn layui-btn  layui-btn-sm' id="delivery_allprint_order" data-target="_blank" data-href="<?php echo U('delivery/delivery_allprint_order');?>" >
-										<span data-toggle="tooltip" data-placement="top" title="" data-original-title="一键打印所有团长提货单样式1">
-											一键打印所有团长提货单样式1
-										</span>
-									</a>
-									<a  class='btn layui-btn  layui-btn-sm' id="delivery_allprint_order2" data-target="_blank" data-href="<?php echo U('delivery/delivery_allprint_order' , array('type' => 2) );?>" >
-										<span data-toggle="tooltip" data-placement="top" title="" data-original-title="一键打印所有团长提货单样式2">
-											一键打印所有团长提货单样式2
-										</span>
-									</a>
-            				  </span>
-                        </div>
-                        <table class="layui-table" lay-skin="line" lay-size="lg">
-                            <thead>
-                                <tr>
-            						<th style="width:25px;">
-                                        <input type='checkbox' name="checkall" lay-skin="primary" lay-filter="checkboxall" />
-                                    </th>
-            						<th style="width:50px;text-align:center;">ID</th>
-            						<th style="width: 200px;">清单编号</th>
-            						<th style="width: 180px;">小区</th>
-            						<th style="width: 100px;">团长/手机</th>
-            						<th style="width: 140px;">线路名称</th>
-            						<th style="width: 110px;">配送员/手机</th>
-            						<th style="width: 120px;">商品数量/订单数量</th>
-            						<th style="width: 160px;">生成时间/配送时间</th>
-            						<th style="text-align:right;">操作</th>
-            					</tr>
-                            </thead>
-                            <tbody>
-                                <?php foreach( $list as $item ){ ?>
-                                <tr>
-                					<td style="width:25px;">
-                						<input type='checkbox' value="<?php echo ($item['id']); ?>" name="item_checkbox" lay-skin="primary" />
-                					</td>
-                					<td style="width:100px;text-align:center;">
-                						<?php echo ($item['id']); ?>
-                					</td>
-                					<td>
-                						<?php echo ($item['list_sn']); ?>
-                					</td>
-                					<td>
-                					<?php echo ($item['community_name']); ?>
-                					</td>
-                					<td>
-                						<?php echo ($item['head_name']); ?><BR/>
-                						<?php echo ($item['head_mobile']); ?>
-                					</td>
-                					<td>
-                						<?php echo ($item['line_name']); ?>
-                					</td>
-                					<td>
-                						<?php echo ($item['clerk_name']); ?><br/>
-                						<?php echo ($item['clerk_mobile']); ?>
-                					</td>
-                					
-                					<td>
-                						<?php echo ($item['goods_count']); ?><br/>
-                						<span class="text-primary"><?php echo ($item['order_count']); ?></span>
-                					</td>
-                					<td>
-                						<span class="text-primary"><?php echo date('Y-m-d H:i:s', $item['create_time']);;?></span><br>
-                						<?php if( !empty($item['express_time']) && $item['express_time'] > 0 ){ ?>
-                						<?php echo date('Y-m-d H:i:s', $item['express_time']);;?><br>
-                						<?php } ?>
-                					</td>
-            					
-                					<td  style="overflow:visible;position:relative;text-align:right;">
-                						<?php if($item['state'] == 0){ ?>
-            							<a class='layui-btn layui-btn-primary layui-btn-xs deldom' href="javascript:;" data-href="<?php echo U('delivery/sub_song',array('id' => $item['id'],'ok' => 1));?>" data-confirm='确认配送吗?'>
-                                            <span data-toggle="tooltip" data-placement="top" title="" data-original-title="点击配送">
-                                                点击配送
-                                            </span>
-                                        </a>
-                							
-                						<?php }else if($item['state'] == 1){ ?>
-                							<label class="text-green">配送中</label>
-                						<?php }else if($item['state'] == 2){ ?>
-                							<label class="text-success">已送达</label>
-                						<?php } ?>
-                						
-                						<a class="layui-btn layui-btn-primary layui-btn-xs" href="<?php echo U('delivery/list_goodslist',array('list_id' => $item['id'],'ok'=>1));;?>">
-                							<span data-toggle="tooltip" data-placement="top" title="" data-original-title="查看商品清单">
-                								查看商品清单
-                							</span>
-                						</a>
-                						<a class="layui-btn layui-btn-primary layui-btn-xs " href="<?php echo U('delivery/downexcel', array('list_id' => $item['id']));?>"  target='_blank'>
-                							<span data-toggle="tooltip" data-placement="top" title="" data-original-title="导出配送清单">
-                								导出配送清单
-                							</span>
-                						</a>
-                						
-                						<a class="layui-btn layui-btn-primary layui-btn-xs " href="<?php echo U('delivery/downorderexcel', array('list_id' => $item['id']));?>"  target='_blank'>
-                							<span data-toggle="tooltip" data-placement="top" title="" data-original-title="导出相关订单">
-                								导出相关订单
-                							</span>
-                						</a>
-                					</td>
-                                </tr>
-                                <?php } ?>
-                            </tbody>
-                            <tfoot>
-                                <tr>
-                                    <td colspan="3" style="padding-left: 0;">
-            							<!-- <div class="page-table-header">
-            								<input type="checkbox">
-            							</div> -->
-                                    </td>
-                                    <td colspan="7" style="text-align: right">
-                                        <?php echo ($pager); ?>
-                                    </td>
-                                </tr>
-                            </tfoot>
-                        </table>
-                    </div>
-                </div>
-                
-            </form>
-        </div>
-    </div>
-</div>
-
-
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-    layui.config({
-        base: '/layuiadmin/' //静态资源所在路径
-    }).extend({
-        index: 'lib/index' //主入口模块
-    }).use('index');
-</script>
-
-<script>
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-    $ = layui.$;
-    var form = layui.form;
-	
-	$("[data-toggle='ajaxModal']").click(function () {
-        var s_url = $(this).attr('data-href');
-		ajax_url = s_url;
-		
-		var ids_arr = [];
-        var obj = $(this);
-        
-       var sec = $(this).attr('data-sec');
-	   if( sec == 1 )
-	   {
-			$("input[name=item_checkbox]").each(function() {
-				if( $(this).prop('checked') )
-				{
-					ids_arr.push( $(this).val() );
-				}
-			})
-			console.log(ids_arr.length);
-			
-			if(ids_arr.length < 1)
-			{
-				layer.msg('请选择要操作的内容');
-				return false;
-			}
-		
-	   }
-	  
-	   layer.confirm($(this).attr('data-confirm'), function(index){
-			$.post(ajax_url, {ids_arr:ids_arr,sec:sec}, function(shtml){
-             layer.open({
-                type: 1,
-                area: '930px',
-                content: shtml //注意,如果str是object,那么需要字符拼接。
-              });
-            });
-	   })
-	   	
-    });
-	
-	
-	
-	$('#delivery_allprint,#delivery_allprint_order,#delivery_allprint_order2').click(function(){
-	
-	   		var searchtime = $('#searchtime').val();
-		
-			var start = $('input[name="time[start]"]').val();
-			var end = $('input[name="time[end]"]').val();
-		
-			var s_url= $(this).attr('data-href');
-			
-			s_url += '&searchtime='+searchtime+"&start="+start+"&end="+end;
-	   
-			layer.confirm('确认对所有待配送状态的配送单进行统计和打印', function(index){
-			
-				window.open(s_url);
-				layer.closeAll('dialog');
-			});
-		//console.log( start );
-		//console.log(searchtime);
-		//name="time[start]"
-		//time[end]
-	})
-	
-    $('.deldom').click(function(){
-        var s_url = $(this).attr('data-href');
-        layer.confirm($(this).attr('data-confirm'), function(index){
-            $.ajax({
-                url:s_url,
-                type:'post',
-                dataType:'json',
-                success:function(info){
-                    if(info.status == 0)
-                    {
-                        layer.msg(info.result.message,{icon: 1,time: 2000});
-                    }else if(info.status == 1){
-                        var go_url = location.href;
-                        if( info.result.hasOwnProperty("url") )
-                        {
-                            go_url = info.result.url;
-                        }
-                        
-                        layer.msg('操作成功',{time: 1000,
-                            end:function(){
-                                location.href = info.result.url;
-                            }
-                        }); 
-                    }
-                }
-            })
-        }); 
-    })
-    
-    $('.btn-operation').click(function(){
-        var ids_arr = [];
-        var obj = $(this);
-        var s_toggle = $(this).attr('data-toggle');
-        var s_url = $(this).attr('data-href');
-        
-        
-        $("input[name=item_checkbox]").each(function() {
-            
-            if( $(this).prop('checked') )
-            {
-                ids_arr.push( $(this).val() );
-            }
-        })
-        if(ids_arr.length < 1)
-        {
-            layer.msg('请选择要操作的内容');
-        }else{
-            var can_sub = true;
-            if( s_toggle == 'batch-remove' )
-            {
-                can_sub = false;
-                
-                layer.confirm($(obj).attr('data-confirm'), function(index){
-                     $.ajax({
-                        url:s_url,
-                        type:'post',
-                        dataType:'json',
-                        data:{ids:ids_arr},
-                        success:function(info){
-                        
-                            if(info.status == 0)
-                            {
-                                layer.msg(info.result.message,{icon: 1,time: 2000});
-                            }else if(info.status == 1){
-                                var go_url = location.href;
-                                if( info.result.hasOwnProperty("url") )
-                                {
-                                    go_url = info.result.url;
-                                }
-                                
-                                layer.msg('操作成功',{time: 1000,
-                                    end:function(){
-                                        location.href = info.result.url;
-                                    }
-                                }); 
-                            }
-                        }
-                    })
-                }); 
-            }else{
-                $.ajax({
-                    url:s_url,
-                    type:'post',
-                    dataType:'json',
-                    data:{ids:ids_arr},
-                    success:function(info){
-                    
-                        if(info.status == 0)
-                        {
-                            layer.msg(info.result.message,{icon: 1,time: 2000});
-                        }else if(info.status == 1){
-                            var go_url = location.href;
-                            if( info.result.hasOwnProperty("url") )
-                            {
-                                go_url = info.result.url;
-                            }
-                            
-                            layer.msg('操作成功',{time: 1000,
-                                end:function(){
-                                    location.href = info.result.url;
-                                }
-                            }); 
-                        }
-                    }
-                })
-            }
-        }
-    })
-  
-    form.on('switch(statewsitch)', function(data){
-      
-      var s_url = $(this).attr('data-href')
-      
-      var s_value = 1;
-      if(data.elem.checked)
-      {
-        s_value = 1;
-      }else{
-        s_value = 0;
-      }
-      
-      $.ajax({
-            url:s_url,
-            type:'post',
-            dataType:'json',
-            data:{state:s_value},
-            success:function(info){
-            
-                if(info.status == 0)
-                {
-                    layer.msg(info.result.message,{icon: 1,time: 2000});
-                }else if(info.status == 1){
-                    var go_url = location.href;
-                    if( info.result.hasOwnProperty("url") )
-                    {
-                        go_url = info.result.url;
-                    }
-                    
-                    layer.msg('操作成功',{time: 1000,
-                        end:function(){
-                            location.href = info.result.url;
-                        }
-                    }); 
-                }
-            }
-        })
-    });  
-    form.on('checkbox(checkboxall)', function(data){
-      if(data.elem.checked)
-      {
-        $("input[name=item_checkbox]").each(function() {
-            $(this).prop("checked", true);
-        });
-        $("input[name=checkall]").each(function() {
-            $(this).prop("checked", true);
-        });
-        
-      }else{
-        $("input[name=item_checkbox]").each(function() {
-            $(this).prop("checked", false);
-        });
-        $("input[name=checkall]").each(function() {
-            $(this).prop("checked", false);
-        });
-      }
-      
-      form.render('checkbox');
-    });
-  
-    //监听提交
-    form.on('submit(formDemo)', function(data){
-        $.ajax({
-            url: data.form.action,
-            type: data.form.method,
-            data: data.field,
-            dataType:'json',
-            success: function (info) {
-              
-                if(info.status == 0)
-                {
-                    layer.msg(info.result.message,{icon: 1,time: 2000});
-                }else if(info.status == 1){
-                    var go_url = location.href;
-                    if( info.result.hasOwnProperty("url") )
-                    {
-                        go_url = info.result.url;
-                    }
-                    
-                    layer.msg('操作成功',{time: 1000,
-                        end:function(){
-                            location.href = info.result.url;
-                        }
-                    }); 
-                }
-            }
-        });
-        return false;
-    });
-})
-
-</script>  
-
-<script>
-	$(function () {
-        $('.btn-submit').click(function () {
-            var e = $(this).data('export');
-            if(e>0 ){
-                if($('#keyword').val() !='' ){
-                    $('#export').val(e);
-                    $('#search').submit();
-                }else if($('#searchtime').val()!=''){
-                    $('#export').val(e);
-                    $('#search').submit();
-                }else{
-                    layer.msg('请先选择时间段!');
-                    return false;
-                }
-            }else{
-                $('#export').val(0);
-                $('#search').submit();
-            }
-        })
-    })
-</script>
-</body>
-</html>

+ 0 - 544
Runtime/Cache/Seller/92c2a9518b9323ca7265390a9ea208a4.php

@@ -1,544 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-            window.sysinfo = {
-            <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-			
-            <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-			
-            'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-			
-            'siteroot': '<?php echo ($_W['siteroot']); ?>',
-                    'siteurl': '<?php echo ($_W['siteurl']); ?>',
-                    'attachurl': '<?php echo ($_W['attachurl']); ?>',
-                    'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-                    'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-                    'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-            'cookie' : {'pre': ''},
-            'account' : <?php echo json_encode($_W['account']);?>,
-            };
-        </script>
-		
-<style>
-	.selection_box
-	{
-		padding: 5px;
-		font-size: 12px;
-		background-color: #009688;
-		color: #fff;
-	}
-</style>
-			
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-  <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-   <link href="/static/css/snailfish.css" rel="stylesheet">
-</head>
-<body layadmin-themealias="default">
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">会员详情</span></div>
-		<div class="layui-card-body" style="padding:15px;">
-			<form action="" method="post" class="layui-form" lay-filter="component-layui-form-item" enctype="multipart/form-data" >
-				<input type="hidden" name="is_showform" value="<?php echo $is_showform; ?>" />
-				
-				<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
-				  <ul class="layui-tab-title">
-					<li class="<?php if($is_showform ==0){ ?>layui-this<?php } ?>">会员详情</li>
-					<?php if($member['is_writecommiss_form'] == 1){ ?>
-					<li class="<?php if($is_showform ==1){ ?>layui-this<?php } ?>">分销表单</li>
-					<?php } ?>
-				  </ul>
-				  <div class="layui-tab-content" >
-					<div class="layui-tab-item <?php if($is_showform ==0){ ?>layui-show<?php } ?>" id="member_detail">
-					
-						<!--- begin -->	
-						<div class="layui-form-item">
-							<label class="layui-form-label">用户</label>
-							<div class="layui-input-block">
-								<img class="radius50" src="<?php echo ($member['avatar']); ?>" style='width:50px;height:50px;padding:1px;border:1px solid #ccc' />
-								<?php echo ($member['username']); ?>
-							</div>
-						</div>
-						<div class="layui-form-item">
-							<label class="layui-form-label">OPENID</label>
-							<div class="layui-input-block">
-								<div class="form-control-static js-clip text-primary" data-url="<?php echo ($member['openid']); ?>"><?php echo ($member['openid']); ?></div>
-							</div>
-						</div>
-						<div class="layui-form-item">
-							<label class="layui-form-label">会员等级</label>
-							<div class="layui-input-block">
-								
-								<select name='data[level_id]' class='form-control'>
-									<option value=''>普通会员</option>
-									<?php foreach( $level_list as $level ){ ?>
-									<option value='<?php echo ($level['id']); ?>' <?php if( $member['level_id']==$level['id']){ ?>selected<?php } ?>><?php echo ($level['levelname']); ?></option>
-									<?php } ?>
-								</select>
-								
-							</div>
-						</div>
-						<div class="layui-form-item">
-							<label class="layui-form-label">会员分组</label>
-							<div class="layui-input-block">
-								<select name='data[groupid]' class='form-control select2'  placeholder="无分组">
-									<option value='' <?php if( empty($group['id'])){ ?>selected<?php } ?>>默认分组</option>
-									<?php foreach( $group_list as $group ){ ?>
-									<option value='<?php echo ($group['id']); ?>' <?php if( $group['id'] == $member['groupid'] ){ ?>selected<?php } ?>><?php echo ($group['groupname']); ?></option>
-									<?php } ?>
-								</select>
-							</div>
-						</div>
-						<?php if($commiss_level > 0){ ?>
-						<div class="layui-form-item">
-							<label class="layui-form-label must">上级分销商</label>
-							<div class="layui-input-block">
-								<div class="input-group " style="margin: 0;">
-									<input type="text" disabled value="<?php echo ($member['agentid']); ?>" class="form-control valid" name="data[agentid]" placeholder="" id="member_id">
-									<span class="input-group-btn">
-										<span data-input="#member_id" id="chose_member_id"  class="btn btn-default">选择会员</span>
-									</span>
-								</div>
-								<?php if($saler){ ?>
-								<div class="input-group " style="margin: 0;">
-									<div class="layadmin-text-center choose_user">
-										<img style="" src="<?php echo ($saler['avatar']); ?>">
-										<div class="layadmin-maillist-img" style=""><?php echo ($saler['nickname']); ?></div>
-										<button type="button" class="layui-btn layui-btn-sm" onclick="cancle_bind(this,'member_id')"><i class="layui-icon">&#xe640;</i></button>
-									</div>
-								</div>
-								<?php } ?>
-							</div>
-						</div>
-						<?php } ?>
-						<div class="layui-form-item">
-							<label class="layui-form-label">真实姓名</label>
-							<div class="layui-input-block">
-								<input type="text" name="data[realname]" class="form-control" value="<?php echo ($member['realname']); ?>"/>
-							</div>
-						</div>
-
-						<div class="layui-form-item">
-							<label class="layui-form-label">手机号</label>
-							<div class="layui-input-block">
-								<input type="text" name="data[telephone]" class="form-control" value="<?php echo ($member['telephone']); ?>"/>
-							</div>
-						</div>
-					<input type="hidden" name="member_id" value="777">
-						<div class="layui-form-item">
-							<label class="layui-form-label">积分</label>
-							<div class="layui-input-block">
-								<div class='form-control-static'><?php echo ($member['score']); ?>&nbsp;&nbsp;
-									<a class="selection_box ajaxModal " data-href="<?php echo U('user/recharge', array('type'=> 'score','id'=>$member['member_id']));?>" style="padding-left: 5px;cursor:pointer;">充值</a>&nbsp;&nbsp;
-									<a class="text-primary ajaxModal" style="color:blue;" href="<?php echo U('user/integral_flow', array('id'=>$member['member_id']));?>"title=''>积分流水</a>
-									
-								</div>
-							</div>
-						</div>
-
-						<div class="layui-form-item">
-							<label class="layui-form-label">余额</label>
-							<div class="layui-input-block">
-								<div class='form-control-static'><?php echo ($member['account_money']); ?>&nbsp;&nbsp;					  
-								  <a class="selection_box ajaxModal" data-href="<?php echo U('user/recharge', array('type'=> 'account_money','id'=>$member['member_id']));?>" style="padding-left: 5px;cursor:pointer;">充值</a>&nbsp;&nbsp;
-								  <a class="text-primary ajaxModal" style="color:blue;" href="<?php echo U('user/recharge_flow', array('id'=>$member['member_id']));?>"title=''>余额流水</a>
-								  
-								  
-								</div>
-							</div>
-						</div>
-						<div class="layui-form-item">
-							<label class="layui-form-label">付费会员</label>
-							<div class="layui-input-block">
-								<div class='form-control-static'>
-									<?php if($member['card_id'] > 0){?>
-										<span>会员卡名称:</span>
-										<span class="text-primary"><?php echo $member['cardname']; ?></span>
-										&nbsp;&nbsp;&nbsp;&nbsp;
-										<?php if($member['card_end_time'] > time()){ ?>
-											<span style="color:#c31d0c;">有效期内</span>
-											&nbsp;&nbsp;&nbsp;&nbsp;
-											<span>到期时间:<?php echo date('Y-m-d',$member['card_end_time']); ?></span>
-											&nbsp;&nbsp;&nbsp;&nbsp;
-										<?php }else{ ?>
-											<span style="color:#c31d0c;">已到期</span>
-											&nbsp;&nbsp;&nbsp;&nbsp;
-											<span style="color:#c31d0c;">到期时间:<?php echo date('Y-m-d',$member['card_end_time']); ?></span>
-											&nbsp;&nbsp;&nbsp;&nbsp;
-										<?php } ?>
-										<a class="layui-btn layui-btn-xs actbtn" href="javascript:void(0)" data-href="<?php echo U('user/edit_expiretime', array('id'=>$member['member_id']));?>" data-title="修改到期时间" title="修改到期时间">修改到期时间</a>
-									<?php }else{ ?>
-										<span class="text-primary">非会员</span>
-										&nbsp;&nbsp;&nbsp;&nbsp;
-										<a class="layui-btn layui-btn-xs actbtn" href="javascript:void(0)" data-href="<?php echo U('user/query_card', array('id'=>$member['member_id']));?>" data-title="开通会员"  title="开通会员">开通会员</a>
-									<?php } ?>
-								</div>
-							</div>
-						</div>
-						<div class="layui-form-item">
-							<label class="layui-form-label">注册时间</label>
-							<div class="layui-input-block">
-								<div class='form-control-static'><?php echo date("Y-m-d H:i:s",$member['create_time']);?></div>
-							</div>
-						</div>
-						
-					  <?php if(!empty($member['comsiss_time'])){ ?>
-					  <div class="layui-form-item">
-						  <label class="layui-form-label">成为分销商时间</label>
-						  <div class="layui-input-block">
-							  <div class='form-control-static'><?php echo date("Y-m-d H:i:s",$member['comsiss_time']);?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-								  <?php if($member['is_writecommiss_form'] == 1){ ?>
-								  <a class="layui-btn layui-btn-xs " href="javascript:void(0)" title="">
-									<span data-toggle="tooltip" data-placement="top" title="" data-original-title="表单">
-										<i class='icow icow-bianji2'></i>表单
-									</span>
-								  </a>
-								  <?php } ?>
-								  <?php if($member['is_share_tj'] == 1){ ?>
-								  <a class="layui-btn layui-btn-xs  " href="javascript:void(0)"  title="">
-									<span data-toggle="tooltip" data-placement="top" title="" data-original-title="分享">
-										<i class='icow icow-bianji2'></i>分享
-									</span>
-								  </a>
-								  <?php } ?>
-							  </div>
-						  </div>
-					  </div>
-					  <?php } ?>
-						<div class="layui-form-item">
-							<label class="layui-form-label">是否禁用</label>
-							<div class="layui-input-block">
-							   
-								<label class="radio-inline"><input type="radio" name="data[isblack]" value="1" <?php if( $member['isblack']==1){ ?>checked<?php } ?> title="禁用" ></label>
-								<label class="radio-inline" ><input type="radio" name="data[isblack]" value="0" <?php if( $member['isblack']==0){ ?>checked<?php } ?> title="启用" ></label>
-								<span class="help-block">设置禁用后,此会员无法访问商城</span>
-							   
-							</div>
-						</div>
-
-
-						<?php  if($is_user_shenhe == 1){ ?>
-						<div class="layui-form-item">
-							<label class="layui-form-label">是否审核</label>
-							<div class="layui-input-block">
-
-								<label class="radio-inline"><input type="radio" name="data[is_apply_state]" value="1" <?php if( $member['is_apply_state']==1){ ?>checked<?php } ?> title="审核通过" ></label>
-								<label class="radio-inline"><input type="radio" name="data[is_apply_state]" value="0" <?php if( $member['is_apply_state']==0 ){ ?>checked<?php } ?> title="未审核" ></label>
-								<label class="radio-inline" ><input type="radio" name="data[is_apply_state]" value="2" <?php if( $member['is_apply_state']==2){ ?>checked<?php } ?> title="拒绝审核" ></label>
-								<span class="help-block">设置未审核、拒绝审核后,此会员无法下单</span>
-
-							</div>
-						</div>
-						<?php } ?>
-						<?php if($is_get_formdata == 1){ ?>
-						<div class="layui-form-item">
-							<label class="layui-form-label">会员表单</label>
-							<div class="layui-input-block">
-								<div class='form-control-static'>
-									<?php if($member['is_write_form'] == 0) { ?>
-									<span>未填写 </span><br/>
-									<?php }else{ ?>
-
-									<?php if( !empty($member['form_info']) ){ ?>
-									<span>姓名:<?php echo ($member['form_info']['username']); ?> </span><br/>
-									<span>电话:<?php echo ($member['form_info']['mobile']); ?> </span><br/>
-									<?php }else{ ?>
-									<span>姓名:-- </span><br/>
-									<span>电话:-- </span><br/>
-									<?php } ?>
-
-									<?php } ?>
-								</div>
-							</div>
-						</div>
-						<?php } ?>
-
-						<div class="layui-form-item">
-							<label class="layui-form-label">成交订单数</label>
-							<div class="layui-input-block">
-								<div class='form-control-static'><?php echo round($member['self_ordercount'],0);?> </div>
-							</div>
-						</div>
-						<div class="layui-form-item">
-							<label class="layui-form-label">成交金额</label>
-							<div class="layui-input-block">
-								<div class='form-control-static'><?php echo round($member['self_ordermoney'],2);?> 元</div>
-							</div>
-						</div>
-						<div class="layui-form-item">
-							<label class="layui-form-label">备注</label>
-							<div class="layui-input-block">
-								<textarea name="data[content]" class='form-control' rows="5"><?php echo ($member['content']); ?></textarea>
-							</div>
-						</div>
-						
-					</div>
-						<!-- end -->
-					<?php if($member['is_writecommiss_form'] == 1){ ?>
-					<div class="layui-tab-item <?php if($is_showform ==1){ ?>layui-show<?php } ?>" id="member_distribution">
-						<!-- 分销表单 -->
-						
-							<?php  if( $member['is_writecommiss_form'] == 1 ){ ?>
-							<?php if( !empty($member['commiss_formcontent']) ){ ?>
-							
-							<div class="region-goods-details ">
-								<?php foreach($member['commiss_formcontent'] as $val){ ?>
-								<?php if( in_array($val['type'], array('text','textarea','select','radio') ) ){ ?>
-								<div class="layui-form-item">
-									<label class="layui-form-label"><?php echo $val['name']; ?></label>
-									<div class="layui-input-block">
-										<input type="text" name="<?php echo $val['name'].'_'.$val['type']; ?>" class="form-control commiss_formcontent" value="<?php echo $val['value']; ?>"/>
-									</div>
-								</div>
-								<?php } ?>
-								
-								<?php if( in_array($val['type'], array('checkbox') ) ){ ?>
-								<div class="layui-form-item">
-									<label class="layui-form-label"><?php echo $val['name']; ?></label>
-									<div class="layui-input-block">
-										<?php  $ck_val = ""; foreach($val['value'] as $vv){ $ck_val .= $vv.' '; } ?>
-										<input type="text" name="<?php echo $val['name'].'_'.$val['type']; ?>" class="form-control commiss_formcontent" value="<?php echo $ck_val; ?>"/>
-									</div>
-								</div>
-								<?php } ?>
-								<?php } ?>	
-							</div>
-							<?php }else{ ?>
-							<div class="region-goods-details ">
-								<p>暂无内容</p>
-							</div>
-							<?php } ?>	
-						<?php } ?>
-						<!-- 分销表单 -->
-					</div>
-					<?php } ?>
-				
-				  </div>
-				  
-				</div>
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label"> </label>
-					<div class="layui-input-block">
-						<input type="submit" value="提交" lay-submit lay-filter="formDemo" class="btn btn-primary"  />
-						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-						<a class="btn btn-default" style='margin-left:10px;' onclick="history.go(-1)">返回列表</a>
-						
-					</div>
-				</div>
-			</form>
-		</div>
-</div>
-</div>
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-var cur_open_div;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  
-   
-  $('#chose_member_id').click(function(){
-		cur_open_div = $(this).attr('data-input');
-		$.post("<?php echo U('user/zhenquery_commission', array('ok' => 1));?>", {}, function(shtml){
-		 layer.open({
-			type: 1,
-			area: '930px',
-			content: shtml //注意,如果str是object,那么需要字符拼接。
-		  });
-		});
-	})
-	
-	form.on('radio(linktype)', function(data){
-		if (data.value == 2) {
-			$('#typeGroup').show();
-		} else {
-			$('#typeGroup').hide();
-		}
-	});  
-
-	
-	$('#chose_link').click(function(){
-		cur_open_div = $(this).attr('data-input');
-		$.post("<?php echo U('util.selecturl', array('ok' => 1));?>", {}, function(shtml){
-		 layer.open({
-			type: 1,
-			area: '930px',
-			content: shtml //注意,如果str是object,那么需要字符拼接。
-		  });
-		});
-	})
-		
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-
-	$('.actbtn').click(function(){
-		var url = $(this).attr('data-href');
-		var title = $(this).attr('data-title');
-		$.post(url, {}, function(shtml){
-			layer.open({
-				type: 1,
-				title: title,
-				area: '930px',
-				content: shtml //注意,如果str是object,那么需要字符拼接。
-			});
-		});
-	})
-})
-
-
-function cancle_bind(obj,sdiv)
-{
-	$('#'+sdiv).val('');
-	$(obj).parent().parent().remove();
-}
-
-
-</script>
-
-<script>
-var ajax_url = "";
-$(function(){
-
-	$(".ajaxModal").click(function () {
-        var s_url = $(this).attr('data-href');
-		ajax_url = s_url;
-
-       $.ajax({
-				url:s_url,
-				type:"get",
-				success:function(shtml){
-					$('#ajaxModal').html(shtml);
-					$("#ajaxModal").modal();
-				}	
-		})
-    });
-	$(document).delegate(".modal-footer .btn-primary","click",function(){
-		var s_data = $('#ajaxModal form').serialize();
-		$.ajax({
-			url:ajax_url,
-			type:'post',
-			dataType:'json',
-			data:s_data,
-			success:function(info){
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-		return false;
-	})
-	
-	
-	
-	
-	//
-	
-
-	
-	
-})
-</script>
-<div id="ajaxModal" class="modal fade" style="display: none;">
-
-</div>
-<script type="text/javascript">
-	$(function () {
-		$(".btn-maxcredit").unbind('click').click(function () {
-			var val = $(this).val();
-			if(val==1){
-				$(".maxcreditinput").css({'display':'inline-block'});
-			}else{
-				$(".maxcreditinput").css({'display':'none'});
-			}
-		});
-	})
-</script>  
-</body>

+ 0 - 801
Runtime/Cache/Seller/9452d0749cd1e1cffbeb53bdd2a522b8.php

@@ -1,801 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-	window.sysinfo = {
-	<?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-	
-	<?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-	
-	'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-	
-	'siteroot': '<?php echo ($_W['siteroot']); ?>',
-			'siteurl': '<?php echo ($_W['siteurl']); ?>',
-			'attachurl': '<?php echo ($_W['attachurl']); ?>',
-			'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-			'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-			'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-	'cookie' : {'pre': ''},
-	'account' : <?php echo json_encode($_W['account']);?>,
-	};
-</script>
-
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-<link href="/static/css/snailfish.css" rel="stylesheet">
-<style>
-    tbody tr td{
-        position: relative;
-    }
-    tbody tr  .icow-weibiaoti--{
-        visibility: hidden;
-        display: inline-block;
-        color: #fff;
-        height:18px;
-        width:18px;
-        background: #e0e0e0;
-        text-align: center;
-        line-height: 18px;
-        vertical-align: middle;
-    }
-    tbody tr:hover .icow-weibiaoti--{
-        visibility: visible;
-    }
-    tbody tr  .icow-weibiaoti--.hidden{
-        visibility: hidden !important;
-    }
-    .full .icow-weibiaoti--{
-        margin-left:10px;
-    }
-    .full>span{
-        display: -webkit-box;
-        display: -webkit-flex;
-        display: -ms-flexbox;
-        display: flex;
-        vertical-align: middle;
-        align-items: center;
-    }
-    tbody tr .label{
-        margin: 5px 0;
-    }
-    .goods_attribute a{
-        cursor: pointer;
-    }
-    .newgoodsflag{
-        width: 22px;height: 16px;
-        background-color: #ff0000;
-        color: #fff;
-        text-align: center;
-        position: absolute;
-        bottom: 70px;
-        left: 57px;
-        font-size: 12px;
-    }
-	.a{cursor: pointer;}
-	.img-40 {
-		width: 40px;
-		height: 40px;
-	}
-	.daterangepicker select.ampmselect, .daterangepicker select.hourselect, .daterangepicker select.minuteselect{
-		width:auto!important;
-	}
-</style>
-</head>
-<body layadmin-themealias="default">
-
-<table id="demo" lay-filter="test"></table>
-
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">会员列表</span></div>
-		<div class="layui-card-body" style="padding:15px;">
-			<form action="" method="get" class="form-horizontal form-search layui-form" role="form">
-				<input type="hidden" name="c" value="user" />
-				<input type="hidden" name="a" value="index" />
-				
-				
-				<div class="layui-form-item">
-				  <div class="layui-inline">
-				  	<div class="layui-input-inline" >
-						<select name='searchtime'  class='layui-input layui-unselect'   style="width:100px;padding:0 5px;">
-							<option value=''>不按时间</option>
-							<option value='create' <?php if($searchtime=='create'){ ?>selected<?php } ?>>注册时间</option>
-						</select>
-					</div>
-					<div class="layui-input-inline" style="width:280px;">
-						<?php echo tpl_form_field_daterange('time', array('starttime'=>date('Y-m-d H:i', $starttime),'endtime'=>date('Y-m-d H:i', $endtime)),true);;?>
-					</div>
-					<div class="layui-input-inline" >
-						<input type="text" class="layui-input"  name="keyword" value="<?php echo ($keyword); ?>" placeholder="请输入会员ID,昵称或手机号"/>
-				
-					</div>
-					<div class="layui-input-inline" >
-						<select name="level_id" class="layui-input layui-unselect">
-							<option value="">会员等级</option>
-							<?php foreach( $level_list as $level ){ ?>
-							<option value="<?php echo ($level['id']); ?>" <?php if( $gpc['level_id'] == $level['id']){ ?>selected<?php } ?>><?php echo ($level['levelname']); ?></option>
-							<?php } ?>
-						</select>
-					</div>
-					<div class="layui-input-inline">
-						<select name="groupid" class="layui-input layui-unselect">
-							<option value="">会员分组</option>
-							<?php foreach( $group_list as $group ){ ?>
-							<option value="<?php echo ($group['id']); ?>" <?php if( $gpc['groupid'] == $group['id']){ ?>selected<?php } ?>><?php echo ($group['groupname']); ?></option> 
-							<?php } ?>
-						</select>
-					</div>
-					
-					<div class="layui-input-inline">
-						<select name="card_id" class="layui-input layui-unselect">
-							<option value="">付费会员卡名称</option>
-							<?php foreach( $card_list as $card ){ ?>
-							<option value="<?php echo ($card['id']); ?>" <?php if( $gpc['card_id'] == $card['id']){ ?>selected<?php } ?>><?php echo ($card['cardname']); ?></option> 
-							<?php } ?>
-						</select>
-					</div>
-
-					<div class="layui-input-inline">
-						<button class="layui-btn layui-btn-sm" type="submit"> 搜索</button>
-						<button type="submit" name="export" value="1" class="layui-btn layui-btn-sm btn_export">导出</button>
-					</div>
-				  </div>
-				</div>
-			</form>
-			<form action="" class="layui-form" lay-filter="example" method="post" >
-       
-				<div class="row">
-					<div class="col-md-12">
-						
-						<div class="page-table-header">
-							<input type='checkbox' name="checkall" lay-skin="primary" lay-filter="checkboxall"  />
-							
-							<div class="btn-group">
-								<button class="btn btn-default btn-sm btn-operation" type="button" data-toggle='batch-remove' data-confirm="确认要删除?" data-href="<?php echo U('user/deleteuser');?>">
-									删除
-								</button>
-								<button class="btn btn-default btn-sm " type="button" data-toggle="batch-group" data-href="<?php echo U('user/changelevel', array('toggle' => 'group'));?>" > <i class="icow icow-fenzuqunfa"></i>修改分组</button>
-								<button class="btn btn-default btn-sm " type="button" data-toggle="batch-level" data-href="<?php echo U('user/changelevel', array('toggle' => 'level'));?>" ><i class="icow icow-cengjiguanli"></i> 修改等级</button>
-										
-							</div>
-						</div>
-						<table class="table table-responsive" lay-even lay-skin="line" lay-size="lg">
-							<thead>
-							 <tr>
-								<th style="width:25px;"></th>
-								<th style="width:60px;">ID</th>
-								<th style="width: 250px;">用户名</th>
-								<th style="">等级/分组/付费会员卡</th>
-								<th>
-									<!-- https://sqtg.shiziyu888.com/seller.php?c=user&a=index&keyword=1&level_id=15&groupid=16&card_id=16&searchtime=create&time%5Bstart%5D=2020-11-10+00%3A00&time%5Bend%5D=2020-11-26+23%3A59 -->	
-									<!--https://sqtg.shiziyu888.com/seller.php?s=/user/index/sortfield/seller_count/keyword/1/searchtime/create/sort_starttime/1606320000/sort_endtime/1606406340	-->								
-									<a href="<?php echo U('user/index', array('sortby' =>$sortby,'sortfield' => 'score','keyword'=>$keyword,'level_id' =>$level_id,'groupid' => $groupid,'card_id' =>$card_id,'searchtime'=>$searchtime,'sort_starttime'=>$starttime,'sort_endtime'=>$endtime, 'type' =>$type, ) );?>" >
-											<span>积分</span>
-									<span class="layui-table-sort layui-inline" lay-sort="<?php echo ($sortfield == 'score' ? $sortby :''); ?>">
-										<i class="layui-edge layui-table-sort-asc" title="升序"></i>
-										<i class="layui-edge layui-table-sort-desc" title="降序"></i>
-									</span>
-									</a>
-									/
-									<a href="<?php echo U('user/index', array('sortby' =>$sortby,'sortfield' => 'account_money','keyword'=>$keyword,'level_id' =>$gpc['level_id'],'groupid' => $gpc['groupid'],'card_id' =>$gpc['card_id'],'searchtime'=>$searchtime,'sort_starttime'=>$starttime,'sort_endtime'=>$endtime, 'type' =>$type, ) );?>" >
-											<span>余额</span>
-									<span class="layui-table-sort layui-inline" lay-sort="<?php echo ($sortfield == 'account_money' ? $sortby :''); ?>">
-										<i class="layui-edge layui-table-sort-asc" title="升序"></i>
-										<i class="layui-edge layui-table-sort-desc" title="降序"></i>
-									</span>
-									</a>
-								</th>
-								<th style="">订单情况</th>
-								<?php if($commiss_level > 0){ ?>
-								<th style="">是否分销</th>
-								<?php } ?>
-								 <?php if( $is_user_shenhe == 1 ){ ?>
-								 <th style="">是否审核</th>
-								 <?php } ?>
-
-								
-								<th style="">注册时间</th>
-								<th style="width: 300px;text-align: center;">操作</th>
-							</tr>
-							</thead>
-							<tbody>
-							<?php foreach( $list as $row ){ ?>
-								<tr>
-									<td style="position: relative; ">
-										<input type='checkbox' lay-skin="primary" value="<?php echo ($row['member_id']); ?>" class="checkone" name="item_checkbox"/>
-										
-									</td>
-									<td>
-										<?php echo ($row['member_id']); ?>
-									</td>
-									<td style="overflow: visible">
-										<div rel="pop" style="display: flex" >
-
-										   <img class="img-40" src="<?php echo tomedia($row['avatar']);?>" style='border-radius:50%;border:1px solid #efefef;' />
-										   <span style="display: flex;flex-direction: column;justify-content: center;align-items: flex-start;padding-left: 5px">
-											   <span class="nickname">
-												   <?php if( empty($row['username'])){ ?>未更新<?php  }else{ echo ($row['username']); ?><br/>
-												    推荐人:<?php if( empty($row['share_name']) ){ ?>总店<?php  }else{ echo ($row['share_name']); } ?>
-												   <?php } ?>
-												   <br/>
-												   当前小区:<?php echo ($row['cur_communityname']); ?>
-												   <br/><a href="javascript:;"  class="chose_head_id line-text" member_id="<?php echo ($row['member_id']); ?>" >(点击切换)</a>
-												   <br>
-												   手机:<?php if( !empty($row['telephone']) ){ echo ($row['telephone']); ?> <?php } else {?>暂无<?php  }?>
-
-											   </span>
-											   <?php if( $row['isblack']==1){ ?>
-													<span class="text-danger">未启用<i class="icow icow-heimingdan1" style="color: #db2228;margin-left: 2px;font-size: 13px;"></i></span>
-											   <?php } ?>
-										   </span>
-
-										</div>
-									</td>
-
-									<td> 
-									<?php if( empty($row['levelname'])){ ?>普通会员<?php  }else{ echo ($row['levelname']); } ?><br/>
-									<?php if( empty($row['groupname'])){ ?>默认分组<?php  }else{ echo ($row['groupname']); } ?><br/>
-									<?php if( empty($row['cardname'])){ ?>默认会员卡<?php  }else{ echo ($row['cardname']); } ?>
-									</td>
-
-									<td 
-										<span >积分:  <span style="color: #5097d3"><?php echo intval($row['score']);?></span> </span>
-										<br/><span>余额: <span class="text-warning"><?php echo round($row['account_money'],2);?> </span></span>
-									</td>
-
-									<td><span>订单: <?php echo intval($row['ordercount']);?></span>
-										<br/><span> 金额: <span class="text-warning"><?php echo floatval($row['ordermoney']);?></span></span>
-									</td>
-								   <?php if($commiss_level > 0){ ?>
-									<td> 
-										<input type="checkbox" name="" lay-filter="statewsitch" data-href="<?php echo U('distribution/become_agent_check',array('id'=>$row['member_id']));?>" <?php if($row['comsiss_flag']==1 && $row['comsiss_state']==1){ ?>checked<?php } ?> lay-skin="switch" lay-text="是|否">
-					
-									</td>
-									<?php } ?>
-
-
-
-									<?php if($is_user_shenhe == 1 ){ ?>
-									<td>
-										<?php if($row['is_apply_state'] == 0 ){ ?>
-										<input type="checkbox" name="" lay-filter="statewsitch" data-href="<?php echo U('User/agent_shenhe',array('id'=>$row['member_id']));?>" <?php if($row['is_apply_state']==1 ){ ?>checked<?php } ?> lay-skin="switch" lay-text="是|审核通过">
-										<input type="checkbox" name="" lay-filter="statewsitch" data-href="<?php echo U('User/agent_unshenhe',array('id'=>$row['member_id']));?>" <?php if($row['is_apply_state']==1 ){ ?>checked<?php } ?> lay-skin="switch" lay-text="拒绝审核|拒绝审核">
-
-										<?php }else if( $row['is_apply_state'] == 2 ){ ?>
-										<span>拒绝审核 </span><br/>
-										<?php }else{ ?>
-										<span>审核通过 </span><br/>
-										<?php } ?>
-
-									</td>
-									<?php } ?>
-
-
-									<td><?php echo date("Y-m-d",$row['create_time']);?><br/><?php echo date("H:i:s",$row['create_time']);?></td>
-									<td style="overflow:visible;text-align: center;">
-										
-										<div class="btn-group">
-											<a class="layui-btn layui-btn-xs" href="<?php echo U('user/detail',array('id' => $row['member_id'], 'ok' => 1));;?>" title="">
-												<span data-toggle="tooltip" data-placement="top" title="" data-original-title="会员详情">
-													会员详情
-												</span>
-											</a>
-											<a class="layui-btn layui-btn-xs" href="<?php echo U('order/index', array('type' => 'all','searchfield'=>'member_id' ,'keyword' => $row['member_id'] ));?>"
-											   title=''>
-												  会员订单
-											</a>
-											
-											<a class="layui-btn layui-btn-xs" 
-												   href="<?php echo U('user/recharge_flow', array('id'=>$row['member_id']));?>"
-												   title=''>
-												余额流水
-											</a>
-											<button class="layui-btn layui-btn-xs deldom" type="button" data-toggle='ajaxRemove' data-href="<?php echo U('user/deleteuser',array('id' => $row['member_id']));;?>" data-confirm="确定要删除该会员吗?">
-												
-												删除会员
-											</button>
-										</div>
-									</td>
-								</tr>
-							<?php } ?>
-					
-							</tbody>
-							<tfoot>
-							<tr>
-								<td colspan="3">
-									<div class="page-table-header">
-										<input type="checkbox" name="checkall" lay-skin="primary" lay-filter="checkboxall">
-										<div class="btn-group">
-											<button class="btn btn-default btn-sm btn-operation" type="button" data-toggle='batch-remove' data-confirm="确认要删除?" data-href="<?php echo U('user/deleteuser');?>">
-												删除
-											</button>
-											<button class="btn btn-default btn-sm " type="button" data-toggle="batch-group" data-href="<?php echo U('user/changelevel', array('toggle' => 'group'));?>" > <i class="icow icow-fenzuqunfa"></i>修改分组</button>
-											<button class="btn btn-default btn-sm " type="button" data-toggle="batch-level" data-href="<?php echo U('user/changelevel', array('toggle' => 'level'));?>" ><i class="icow icow-cengjiguanli"></i> 修改等级</button>
-										
-										</div>
-									</div>
-								</td>
-								<td <?php if($commiss_level > 0){ ?>colspan="6"<?php }else{ ?>colspan="5"<?php } ?>  style="text-align: right">
-									<?php echo ($pager); ?>
-								</td>
-							</tr>
-							</tfoot>
-						</table>
-					</div>
-				</div>
-				
-			</form>
-		</div>
-	</div>
-</div>
-
-
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  
-  
-	$('.deldom').click(function(){
-		var s_url = $(this).attr('data-href');
-		layer.confirm($(this).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						success:function(info){
-						
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-	})
-	
-	$('.btn-operation').click(function(){
-		var ids_arr = [];
-		var obj = $(this);
-		var s_toggle = $(this).attr('data-toggle');
-		var s_url = $(this).attr('data-href');
-		
-		
-		$("input[name=item_checkbox]").each(function() {
-			
-			if( $(this).prop('checked') )
-			{
-				ids_arr.push( $(this).val() );
-			}
-		})
-		if(ids_arr.length < 1)
-		{
-			layer.msg('请选择要操作的内容');
-		}else{
-			var can_sub = true;
-			if( s_toggle == 'batch-remove' )
-			{
-				can_sub = false;
-				
-				layer.confirm($(obj).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						data:{ids:ids_arr},
-						success:function(info){
-						
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-			}else{
-				$.ajax({
-					url:s_url,
-					type:'post',
-					dataType:'json',
-					data:{ids:ids_arr},
-					success:function(info){
-					
-						if(info.status == 0)
-						{
-							layer.msg(info.result.message,{icon: 1,time: 2000});
-						}else if(info.status == 1){
-							var go_url = location.href;
-							if( info.result.hasOwnProperty("url") )
-							{
-								go_url = info.result.url;
-							}
-							
-							layer.msg('操作成功',{time: 1000,
-								end:function(){
-									location.href = info.result.url;
-								}
-							}); 
-						}
-					}
-				})
-			}
-		}
-	})
-
-	form.on('switch(restwsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var rest = 1;
-	  if(data.elem.checked)
-	  {
-		rest = 1;
-	  }else{
-		rest = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{rest:rest},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	}); 
-	form.on('switch(enablewsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var enable = 1;
-	  if(data.elem.checked)
-	  {
-		enable = 1;
-	  }else{
-		enable = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{enable:enable},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	}); 
-	
-	form.on('switch(statewsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var state = 1;
-	  if(data.elem.checked)
-	  {
-		state = 1;
-	  }else{
-		state = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{state:state},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	});  
-	form.on('checkbox(checkboxall)', function(data){
-	  
-	  if(data.elem.checked)
-	  {
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", true);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", true);
-		});
-		
-	  }else{
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", false);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", false);
-		});
-	  }
-	  
-	  form.render('checkbox');
-	});
-  
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-})
-
-</script>  
-
-
-
-<div id="modal-change"  class="modal fade form-horizontal" tabindex="-1">
-    <div class="modal-dialog">
-        <div class="modal-content">
-            <div class="modal-header">
-                <button data-dismiss="modal" class="close" type="button">×</button>
-                <h4 class="modal-title"><?php if( !empty($group['id'])){ ?>编辑<?php  }else{ ?>添加<?php } ?>标签组</h4>
-            </div>
-            <div class="modal-body">
-
-                <div class="form-group batch-level" style="display: none;">
-                    <label class="col-sm-2 control-label must">团长等级</label>
-                    <div class="col-sm-9 col-xs-12">
-                        <select name="batch-level" class="form-control">
-						<option value="0">普通等级</option>
-                             <?php foreach( $level_list as $level ){ ?>
-                                <option value="<?php echo ($level['id']); ?>"><?php echo ($level['levelname']); ?></option>
-                            <?php } ?>
-                        </select>
-                    </div>
-                </div>		
-                <div class="form-group batch-group" style="display: none;">
-                    <label class="col-sm-2 control-label must">会员分组</label>
-                    <div class="col-sm-9 col-xs-12">
-                        <select name="batch-group[]" class="form-control " placeholder="会员会被加入指定的分组中">
-							<option value="0">默认分组</option>
-                            <?php foreach( $group_list as $group ){ ?>
-                                <option value="<?php echo ($group['id']); ?>"><?php echo ($group['groupname']); ?></option>
-                            <?php } ?>
-                        </select>
-                    </div>
-                </div>
-            </div>
-            <div class="modal-footer">
-                <button class="btn btn-primary" type="submit" id="modal-change-btn">提交</button>
-                <button data-dismiss="modal" class="btn btn-default" type="button">取消</button>
-            </div>
-        </div>
-    </div>
-</div>
-<script language="javascript">
-    var modify_url = '';
-    $("[data-toggle='batch-group'], [data-toggle='batch-level']").click(function () {
-        var toggle = $(this).data('toggle');
-        modify_url = $(this).attr('data-href');
-		
-		
-        $("#modal-change .modal-title").text(toggle=='batch-group'?"批量修改分组":"批量修改会员等级");
-        $("#modal-change").find("."+toggle).show().siblings().hide();
-        $("#modal-change-btn").attr('data-toggle', toggle=='batch-group'?'group':'level');
-        $("#modal-change").modal();
-    });
-	
-	$('.chose_head_id').click(function(){
-		var s_member_id = $(this).attr('member_id');
-		
-		$.post("<?php echo U('communityhead/lineheadquery', array('is_member_choose' => 1,'is_memberlist' =>1));?>", {s_member_id:s_member_id}, function(shtml){
-		 layer.open({
-			type: 1,
-			area: '930px',
-			content: shtml //注意,如果str是object,那么需要字符拼接。
-		  });
-		});
-	})
-
-	
-	$('.layui-table-sort').click(function(){
-		$(this).attr('lay-sort','asc');
-	})
-	
-    $("#modal-change-btn").click(function () {
-        var _this = $(this);
-        if(_this.attr('stop')){
-            return;
-        }
-        var toggle = $(this).data('toggle');
-        var ids = [];
-        $(".checkone").each(function () {
-            var checked = $(this).is(":checked");
-            var id = $(this).val();
-            if(checked && id){
-                ids.push(id);
-            }
-        });
-        if(ids.length<1){
-            alert("请选择要批量操作的会员");
-            return;
-        }
-        var option = $("#modal-change .batch-"+toggle+" option:selected");
-        level = '';
-        if (toggle=='group'){
-            for(i=0;i<option.length;i++){
-                if (level == ''){
-                    level += $(option[i]).val();
-                }else{
-                    level += ','+$(option[i]).val();
-                }
-            }
-        }else{
-            var level = option.val();
-        }
-
-        var levelname = option.text();
-		 console.log(modify_url);
-		if(  confirm("确定要将选中会员移动到 "+levelname+" 吗?") )
-		{
-			 console.log(modify_url);
-			 $.ajax({
-				url:modify_url,
-				type:"post",
-				dataType:'json',
-				data:{
-					level: level,
-					ids: ids,
-					toggle: toggle
-					},
-				success:function(ret){
-					$("#modal-change").modal('hide');
-					if(ret.status==1){
-						alert("操作成功");
-						setTimeout(function () {
-							location.reload();
-						},1000);
-					}else{
-						alert(ret.result.message);
-					}
-					
-					
-				}	
-			 })
-		}
-       
-    });
-</script>
-</body>

+ 0 - 877
Runtime/Cache/Seller/973fcf8a2113dfcccb6baf18b6b014f2.php

@@ -1,877 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-	window.sysinfo = {
-	<?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-	
-	<?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-	
-	'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-	
-	'siteroot': '<?php echo ($_W['siteroot']); ?>',
-			'siteurl': '<?php echo ($_W['siteurl']); ?>',
-			'attachurl': '<?php echo ($_W['attachurl']); ?>',
-			'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-			'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-			'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-	'cookie' : {'pre': ''},
-	'account' : <?php echo json_encode($_W['account']);?>,
-	};
-</script>
-
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-<link href="/static/css/snailfish.css?v=32" rel="stylesheet">
-<style>
-    tbody tr td{
-        position: relative;
-    }
-    tbody tr  .icow-weibiaoti--{
-        visibility: hidden;
-        display: inline-block;
-        color: #fff;
-        height:18px;
-        width:18px;
-        background: #e0e0e0;
-        text-align: center;
-        line-height: 18px;
-        vertical-align: middle;
-    }
-    tbody tr:hover .icow-weibiaoti--{
-        visibility: visible;
-    }
-    tbody tr  .icow-weibiaoti--.hidden{
-        visibility: hidden !important;
-    }
-    .full .icow-weibiaoti--{
-        margin-left:10px;
-    }
-    .full>span{
-        display: -webkit-box;
-        display: -webkit-flex;
-        display: -ms-flexbox;
-        display: flex;
-        vertical-align: middle;
-        align-items: center;
-    }
-    tbody tr .label{
-        margin: 5px 0;
-    }
-    .goods_attribute a{
-        cursor: pointer;
-    }
-    .newgoodsflag{
-        width: 22px;height: 16px;
-        background-color: #ff0000;
-        color: #fff;
-        text-align: center;
-        position: absolute;
-        bottom: 70px;
-        left: 57px;
-        font-size: 12px;
-    }
-	.a{cursor: pointer;}
-	.img-40 {
-		width: 40px;
-		height: 40px;
-	}
-	.daterangepicker select.ampmselect, .daterangepicker select.hourselect, .daterangepicker select.minuteselect{
-		width:auto!important;
-	}
-</style>
-
-</head>
-<body layadmin-themealias="default">
-
-<table id="demo" lay-filter="test"></table>
-
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">售后订单管理
-		</span>
-		</div>
-		<div class="layui-tab layui-tab-brief" >
-		  <ul class="layui-tab-title">
-			
-				<li  <?php if( (empty($_GPC['state']) || $_GPC['state']=='-1' )&& $_GPC['state'] !='0' ){ ?>class="layui-this"<?php } ?>><a href="<?php echo U('order/orderaftersales', array('state' => -1));?>">全部申请</a></li>
-				<li  <?php if($_GPC['state']=='0'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U('order/orderaftersales', array('state' => 0));?>">待处理</a></li>
-				<li  <?php if($_GPC['state']=='6'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U('order/orderaftersales', array('state' => 6));?>">退货中</a></li>
-				<li  <?php if($_GPC['state']=='3'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U('order/orderaftersales', array('state' => 3));?>">已完成</a></li>
-				<li  <?php if( $_GPC['state']=='1' ){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U('order/orderaftersales', array('state' => 1));?>">已拒绝</a></li>
-				
-		  </ul>
-		</div>
-		
-		<div class="layui-card-body" style="padding:15px;">
-		
-			<form action="" method="get" class="form-horizontal form-search layui-form" role="form">
-				
-				
-				 <input type="hidden" name="c" value="order" />
-				 <input type="hidden" name="a" value="orderaftersales" />
-				 
-				<input type="hidden" name="order_status_id" value="<?php echo ($order_status_id); ?>" />
-				
-				<div class="layui-form-item">
-				  <div class="layui-inline">
-				  
-					<div class="layui-input-inline" style="width:100px;">
-						<select name='searchtime' lay-ignore  class='layui-input layui-unselect' style="width:100px;padding:0 5px;"  id="searchtime">
-							<option value=''>不按时间</option>
-							<option value='create' <?php if( $searchtime=='create'){ ?>selected<?php } ?>>下单时间</option>
-							<option value='pay' <?php if( $searchtime=='pay'){ ?>selected<?php } ?>>付款时间</option>
-							<option value='send' <?php if( $searchtime=='send'){ ?>selected<?php } ?>>发货时间</option>
-							<option value='finish' <?php if( $searchtime=='finish'){ ?>selected<?php } ?>>完成时间</option>
-						</select>
-					</div>
-					<div class="layui-input-inline" style="width:280px;">
-						<?php echo tpl_form_field_daterange('time', array('starttime'=>date('Y-m-d H:i', $starttime),'endtime'=>date('Y-m-d H:i', $endtime)),true);;?>
-					</div>
-					<div class="layui-input-inline" style="width:100px;">
-						<select name='delivery' lay-ignore class='layui-input layui-unselect' style="width:100px;padding:0 5px;"  id="type">
-							<option value=''>配送方式</option>
-							<option value='pickup' <?php if( $delivery=='pickup'){ ?>selected<?php } ?>>自提</option>
-							<option value='tuanz_send' <?php if( $delivery=='tuanz_send'){ ?>selected<?php } ?>>团长配送</option>
-							<option value='express' <?php if( $delivery=='express'){ ?>selected<?php } ?>>快递</option>
-						</select>	
-					</div>
-					<div class="layui-input-inline" style="width:110px;">
-						<select name='searchfield' lay-ignore class='layui-input layui-unselect'   style="width:110px;padding:0 5px;"  >
-							<option value='ordersn' <?php if( $searchfield=='ordersn'){ ?>selected<?php } ?>>订单号</option>
-							<option value='member' <?php if( $searchfield=='member'){ ?>selected<?php } ?>>会员信息</option>
-							<option value='mobile' <?php if( $searchfield=='mobile'){ ?>selected<?php } ?>>手机号</option>
-							<option value='address' <?php if( $searchfield=='address'){ ?>selected<?php } ?>>收件人信息</option>
-							<option value='location' <?php if( $searchfield=='location'){ ?>selected<?php } ?>>地址信息</option>
-							<option value='shipping_no' <?php if( $searchfield=='shipping_no'){ ?>selected<?php } ?>>快递单号</option>
-							<option value='goodstitle' <?php if( $searchfield=='goodstitle'){ ?>selected<?php } ?>>商品名称</option>
-							<option value='trans_id' <?php if( $searchfield=='trans_id'){ ?>selected<?php } ?>>微信支付单号</option>
-							<?php if($is_community != 1){ ?>
-							<option value='head_name' <?php if( $searchfield=='head_name'){ ?>selected<?php } ?>>团长姓名</option>
-							<option value='head_address' <?php if( $searchfield=='head_address'){ ?>selected<?php } ?>>小区名称</option>
-							<?php } ?>
-							<?php  if (!defined('ROLE') || ROLE != 'agenter' ) { ?>
-							<option value='supply_name' <?php if( $searchfield=='supply_name'){ ?>selected<?php } ?>>供应商名称</option>
-							<?php } ?>
-							<!--<option value='goodssn' <?php if( $searchfield=='goodssn'){ ?>selected<?php } ?>>商品编码</option>-->
-						   
-						</select>
-					</div>
-					<div class="layui-input-inline" >
-						<input type="text" class="layui-input"  name="keyword" value="<?php echo ($keyword); ?>" placeholder="请输入关键词"/>
-					</div>
-					 <input type="hidden" name="export" id="export" value="0">
-					
-					<div class="layui-input-inline">
-						<button class="layui-btn layui-btn-sm" data-export="0" type="submit"> 搜索</button>
-						<button type="submit" name="export" data-export="1" value="1" class="layui-btn layui-btn-sm">导出</button>
-					</div>
-               
-				  </div>
-				</div>
-			</form>
-			<form action="" class="layui-form" lay-filter="example" method="post" >
-       
-				
-				<div class="row">
-					<div class="list-div list-tb-div">
-						<table cellpadding="0" cellspacing="0" border="0">
-                            <thead>
-                                <tr>
-                                    <th width="3%" class="sign"><div class="tDiv">
-									<label for="all_list" class="checkbox_stars"></label></div></th>
-                                    <th width="25%"><div class="tDiv">订单号</div></th>
-                                    <th width="9%"><div class="tDiv">单价/数量</div></th>
-                                    <th width="12%"><div class="tDiv">买家</div></th>
-                                    <th width="8%"><div class="tDiv">支付/配送</div></th>
-                                    <th width="14%"><div class="tDiv">小区/团长</div></th>
-                                    <th width="10%"><div class="tDiv">价格</div></th>
-									<th width="8%"><div class="tDiv">处理状态</div></th>
-                                    <th width="9%"><div class="tDiv">操作</div></th>
-									
-                                </tr>
-                            </thead>
-                        </table>
-						
-						<table cellpadding="0" cellspacing="0" border="0">
-                            <colgroup>
-                                <col width="28%">
-                                <col width="9%">
-                                <col width="12%">
-                                <col width="8%">
-                                <col width="14%">
-                                <col width="10%">
-                                <col width="9%">
-                                <col width="8%">
-                            </colgroup>
-                            <tbody>
-							
-								<?php foreach( $list as $item ){ ?>
-                                <tr class="tr-order-sn">
-                                    <td colspan="10">
-                                        <div class="tDiv ml10">
-                                            <span class="sign">
-                                            </span>
-                                            <span class="words">订单号: <?php echo ($item['order_num_alias']); ?></span>
-                                            <span class="words">下单时间:<?php echo date('Y-m-d',$item['date_added']);?>&nbsp <?php echo date('H:i:s',$item['date_added']);?></span>
-											
-											<span class="words">
-											
-												<?php if(in_array($item['ore_state'], array(3))){ ?>&nbsp;<span class="label label-success"><?php echo ($order_refund_state[$item['ore_state']]); ?></span><?php } ?>
-                            
-												<?php if( in_array($item['ore_state'], array(1,4)) ){ ?><label class='label label-danger'><?php echo ($order_refund_state[$item['ore_state']]); ?></label><?php } ?>
-												
-												<?php if( in_array($item['ore_state'], array(0,5)) ){ ?><label class='label label-default'><?php echo ($order_refund_state[$item['ore_state']]); ?></label><?php } ?>
-												
-											</span>
-											
-                                        </div>
-                                    </td>
-                                </tr>
-                                <tr class="">
-                                    <td class="td-product">
-                                    		
-										
-										<?php $i =1; foreach($item['goods'] as $k => $g){ ?>										
-										<div class="tDiv relative tpinfo <?php if($i == count($item['goods'])){ ?>last<?php } ?> ">
-                                            <div class="img"><img width="70" src="<?php echo tomedia($g['goods_images']);?>" alt="" /></div>
-                                            <div class="product-info">
-                                                <div class="name mb5">
-                                                    <?php echo ($g['name']); ?>
-                                                </div>
-                                                <div>
-													<?php if( !empty($g['option_sku'])){ echo ($g['option_sku']); } ?>
-												</div>
-                                                <div class="order_icon_items">                                                                                                                                                                                                                                                                             											
-                                                </div>
-                                            </div>
-										</div>
-										<?php $i++; } ?>
-                                    </td>
-                                    <td class="td-price" style="vertical-align: top;">
-										<?php $i =1; foreach($item['goods'] as $k => $g){ ?>		
-										<div class="tDiv tpinfo <?php if($i == count($item['goods'])){ ?>last<?php } ?>" style="display: flex;align-items: center;">¥<?php echo round($g['total']/$g['quantity'],2); ?> 
-                                    x <?php echo ($g['quantity']); ?> </div>
-										<?php $i++; } ?>
-									</td>
-                               
-                                    <td>
-										<div class="tDiv" >
-												<font style="color: #999;"><?php echo ($item['shipping_name']); ?></font><br/><font style="color: #999;"><?php echo ($item['shipping_tel']); ?></font>
-												<br/>
-												
-												<?php if (defined('ROLE') && ROLE == 'agenter' ){ ?>
-												<font style="color: #999;">会员名:</font><?php echo ($item['nickname']); ?>
-												<?php if( !empty($item['member_content']) ){ ?>
-												 <br/><font class="text-danger"><?php echo ($item['member_content']); ?></font>
-												<?php } ?>
-												<?php }else{ ?>
-			
-												<?php if($s_id == 1){ ?>
-														<a class="text-primary" href="<?php echo U('user/detail',array('id'=>$item['member_id']));?>"><font style="color: #999;">会员名:</font><?php echo ($item['nickname']); ?></a>
-												<?php }else{ ?>
-														<a class="text-primary user"><font style="color: #999;">会员名:</font><?php echo ($item['nickname']); ?></a>
-												<?php } ?>
-												
-												<?php if( !empty($item['member_content']) ){ ?>
-												 <br/><font class="text-danger"><?php echo ($item['member_content']); ?></font>
-												<?php } ?>
-												
-												<?php } ?>
-												<br/>
-												
-										</div>
-									</td>
-                                    <td>
-                                    <div class="tDiv" style="height: 100px;">
-                                    	<!-- 已支付 -->
-										<?php if( $item['order_status_id'] != 3 && $item['order_status_id'] != 5){ ?>
-											<?php if( $item['payment_code']=='yuer'){ ?>
-											   <span> <i class="text-warning" style="font-size: 17px;"></i><span>余额支付</span></span>
-											
-											<?php }else if( $item['payment_code']=='admin' ){ ?>
-											   <span> <i class=" text-danger" style="font-size: 17px"></i>后台付款</span>
-											<?php  }else{ ?>
-											   <span class="line-text"> 微信支付</span>
-											<?php } ?>
-										<?php }elseif( $item['order_status_id'] == 3 || $item['order_status_id'] == 5 ){ ?>
-											<!-- 未支付 -->
-											<?php if( $item['paytypevalue']!=3){ ?>
-												<label class='label label-default'>未支付</label>
-											<?php  }else{ ?>
-												   <span> <i class="text-primary  style="font-size: 17px"></i>货到付款</span>
-											<?php } ?>
-										<?php } ?>
-										<br/>
-										<?php if( $item['delivery']=='pickup'){ ?><font class="text-danger">(自提)</font><?php } ?>
-										<?php if( $item['delivery']=='express'){ ?><font class="text-danger">(快递)</font><?php } ?>
-										<?php if( $item['delivery']=='tuanz_send'){ ?><font class="text-danger">(团长配送)</font><?php } ?>
-                                    </div>
-                                    </td>
-									<?php if($is_can_look_headinfo){ ?>
-                                    <td>
-										<div class="tDiv" style="text-align: left;">
-											<div style='margin-top:5px;display:block;float:left;'>
-												<?php echo ($item['head_name']); ?>
-											</div>
-											<div style='margin-top:5px;display:block;float:left;'>
-												电话:<?php echo ($item['head_mobile']); ?>
-											</div>
-											 <div style='margin-top:5px;display:block;float:left;cursor: pointer;' >
-												<font style="color: #999;">小区:</font>  <font class="line-text"><?php echo ($item['community_name']); ?>   (<?php echo ($item['province']); ?> <?php echo ($item['city']); ?>)
-											</div>
-										</div>
-									
-									</td>
-									<?php }else{ ?>
-									<td>
-										<div class="tDiv" style="text-align: left;">
-											<div style='margin-top:5px;display:block; text-align: center;'>
-												<?php echo ($item['head_name']); ?>
-											</div>
-											
-										</div>
-									</td>
-									<?php } ?>
-									
-                                    <td>
-                                    	<div class="tDiv" style="">
-											<?php if($item['is_free_shipping_fare'] == 1){ ?>
-											<span style='margin-top:5px;margin-left:5px;display:block;'>
-											运 费:+<?php echo round( $item['fare_shipping_free'],2);?>
-											</span>
-											<span style='margin-top:5px;margin-left:5px;display:block;'>
-											满<?php echo ($item['man_e_money']); ?>免运费:-<?php echo round( $item['fare_shipping_free'],2);?>
-											</span>
-											<?php }else{ ?>
-											<span style='margin-top:5px;margin-left:5px;display:block;'>
-											运 费:+<?php echo round( $item['shipping_fare'],2);?>
-											</span>
-											<?php } ?>
-                                            
-											<?php if($item['fullreduction_money'] >0){ ?>
-											<span style='margin-top:5px;margin-left:5px;display:block;'>
-											满 减:-<?php echo round( $item['fullreduction_money'],2);?>
-											</span>
-											<?php } ?>
-											<?php if($item['voucher_credit'] >0){ ?>
-											<span style='margin-top:5px;margin-left:5px;display:block;'>
-											优惠券:-<?php echo round( $item['voucher_credit'],2);?>
-											</span>
-											<?php } ?>
-											<span style='margin-top:5px;margin-left:5px;display:block;'>
-											商品小计:<?php echo round($item['total'],2);?>
-											</span>
-											
-											<span style='margin-top:5px;margin-left:5px;display:block;'>
-											<?php $free_tongji = $item['total']+$item['shipping_fare']-$item['voucher_credit']-$item['fullreduction_money']; if($free_tongji < 0){ $free_tongji = 0; } ?>
-											<?php
- if($item['type'] == 'integral'){ ?>
-											应收总款:<br/><?php echo round($item['total'] ,2);?>积分<?php if( !empty( $item['shipping_fare'] ) ){ ?>+运费:<?php echo round($item['shipping_fare'] ,2); } ?>
-											<?php }else{ ?>
-											应收总款:<?php echo round($free_tongji ,2);?>
-											<?php } ?>
-											
-											</span>
-                                        </div>    
-                                    </td>
-									<td>
-                                        <div class="tDiv" style="">
-											
-                                           <span class='text-<?php echo ($item[order_status_id]); ?>'>
-											<?php  if($item['ore_state'] == 0){ ?>
-												待处理
-											<?php }else if($item['ore_state'] == 1){ ?>
-												已拒绝
-										   <?php }else if($item['ore_state'] == 3){ ?>
-											已完成
-										   <?php }else if($item['ore_state'] == 5){ ?>
-												已拒绝
-										   <?php }else if($item['ore_state'] == 6){ ?>
-												退货中
-										   <?php } ?>
-										   </span>
-											
-                                        </div>
-                                    </td>
-									<td>
-                                        <div class="tDiv" style="">
-                                            
-											<a class='op  text-primary'  href="<?php echo U('order/oprefund', array('id' => $item['order_id'],'ref_id' => $item['ref_id']));?>" >查看详情</a>
-											
-											<?php if($item['ore_state'] == 0){ ?>
-											<a class='op'  data-toggle="ajaxModal" href="javascript:;" data-href="<?php echo U('order/oprefund_doform', array('ref_id' => $item['ref_id']));?>" >
-												<i class="icow icow-flag-o" style="color: #df5254;display: inline-block;vertical-align: middle" title="平台审核"></i>
-												平台审核
-												&nbsp
-											</a>
-											<?php } ?>
-											
-											<?php if($item['is_forbidden'] == 1){ ?>
-											<p style="color:red;">禁止此用户再次申请</p>
-											<?php } ?>
-                                        </div>
-                                    </td>
-                                </tr>
-								<tr>
-									<td colspan="8">
-										<div style='background:#fdeeee;color:red;padding-left: 10px;'>
-											订单状态:<?php echo ($order_status_arr[$item['order_status_id']]); ?>
-										</div>
-									</td>
-								</tr>
-								
-								 <tr>
-									<td colspan="8">
-										<div style="height:20px;">&nbsp;</div>
-									</td>
-								 </tr>
-								
-								<?php } ?>
-								
-                                
-                            </tbody>
-							<tfoot>
-							<tr>
-								<td colspan="0">
-									<div class="page-table-header">
-										
-									</div>
-								</td>
-								<td colspan="8" style="text-align: right">
-									<?php echo ($pager); ?>
-								</td>
-							</tr>
-							</tfoot>
-                        </table>
-					</div>
-				</div>
-				
-				
-				
-			</form>
-		</div>
-	</div>
-</div>
-
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  
-  
-	$('.deldom').click(function(){
-		var s_url = $(this).attr('data-href');
-		layer.confirm($(this).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						success:function(info){
-							$('#ajaxModal').removeClass('in');
-							$('.modal-backdrop').removeClass('in');
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				},function(){
-					console.log(232323);
-					$('#ajaxModal').removeClass('in');
-					$('.modal-backdrop').removeClass('in');
-				}); 
-	})
-	
-	$('.btn-operation').click(function(){
-		var ids_arr = [];
-		var obj = $(this);
-		var s_toggle = $(this).attr('data-toggle');
-		var s_url = $(this).attr('data-href');
-		
-		
-		$("input[name=item_checkbox]").each(function() {
-			
-			if( $(this).prop('checked') )
-			{
-				ids_arr.push( $(this).val() );
-			}
-		})
-		if(ids_arr.length < 1)
-		{
-			layer.msg('请选择要操作的内容');
-		}else{
-			var can_sub = true;
-			if( s_toggle == 'batch-remove' )
-			{
-				can_sub = false;
-				
-				layer.confirm($(obj).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						data:{ids:ids_arr},
-						success:function(info){
-						
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-			}else{
-				$.ajax({
-					url:s_url,
-					type:'post',
-					dataType:'json',
-					data:{ids:ids_arr},
-					success:function(info){
-					
-						if(info.status == 0)
-						{
-							layer.msg(info.result.message,{icon: 1,time: 2000});
-						}else if(info.status == 1){
-							var go_url = location.href;
-							if( info.result.hasOwnProperty("url") )
-							{
-								go_url = info.result.url;
-							}
-							
-							layer.msg('操作成功',{time: 1000,
-								end:function(){
-									location.href = info.result.url;
-								}
-							}); 
-						}
-					}
-				})
-			}
-		}
-	})
-
-	form.on('switch(restwsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var rest = 1;
-	  if(data.elem.checked)
-	  {
-		rest = 1;
-	  }else{
-		rest = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{rest:rest},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	}); 
-	form.on('switch(enablewsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var enable = 1;
-	  if(data.elem.checked)
-	  {
-		enable = 1;
-	  }else{
-		enable = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{enable:enable},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	}); 
-	
-	form.on('switch(statewsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var state = 1;
-	  if(data.elem.checked)
-	  {
-		state = 1;
-	  }else{
-		state = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{state:state},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	});  
-	form.on('checkbox(checkboxall)', function(data){
-	  
-	  if(data.elem.checked)
-	  {
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", true);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", true);
-		});
-		
-	  }else{
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", false);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", false);
-		});
-	  }
-	  
-	  form.render('checkbox');
-	});
-  
-  		$('.user').click(function(){
-				layer.msg('权限不足!',{icon: 2,time: 1200});
-		})
-  
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-})
-
-</script>  
-<script>
-var ajax_url = "";
-$(function(){
-
-	$("[data-toggle='ajaxModal']").click(function () {
-        var s_url = $(this).attr('data-href');
-		ajax_url = s_url;
-		console.log(23);
-       $.ajax({
-				url:s_url,
-				type:"get",
-				success:function(shtml){
-					$('#ajaxModal').html(shtml);
-					$("#ajaxModal").modal();
-				}	
-		})
-    });
-	$(document).delegate(".modal-footer .btn-primary","click",function(){
-		var s_data = $('#ajaxModal form').serialize();
-		var loadingIndex = layer.load();
-		$.ajax({
-			url:ajax_url,
-			type:'post',
-			dataType:'json',
-			data:s_data,
-			success:function(info){
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-					layer.close(loadingIndex);
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-		return false;
-	})
-	
-	
-})
-</script>
-<div id="ajaxModal" class="modal fade" style="display: none;">
-
-</div>
-
-<script>
-    //没有选中时间段不能导出
-    $(function () {
-        $('.btn-submit').click(function () {
-            var e = $(this).data('export');
-            if(e==1 ){
-                if($('#keyword').val() !='' ){
-                    $('#export').val(1);
-                    $('#search').submit();
-                }else if($('#searchtime').val()!=''){
-                    $('#export').val(1);
-                    $('#search').submit();
-                }else{
-                   $('#export').val(1);
-                    $('#search').submit();
-                    return;
-                }
-            }else{
-                $('#export').val(0);
-                $('#search').submit();
-            }
-        })
-    })
-</script>
-</body>

+ 0 - 449
Runtime/Cache/Seller/99057f10db7a8420345fac848d27e342.php

@@ -1,449 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
-  <!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-  <!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-  <![endif]-->
-
-  <link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-  <link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-  <script type="text/javascript">
-      window.sysinfo = {
-        <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-        <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-        <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-        <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-        'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-        'siteroot': '<?php echo ($_W['siteroot']); ?>',
-        'siteurl': '<?php echo ($_W['siteurl']); ?>',
-        'attachurl': '<?php echo ($_W['attachurl']); ?>',
-        'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-        'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-        'module': {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-        'cookie': {'pre': ''},
-        'account': <?php echo json_encode($_W['account']);?>,
-      };
-  </script>
-        
-		
-  <script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-  <script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-  <script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-  <script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-  <script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-  <script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-  <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-  <link href="/static/css/snailfish.css" rel="stylesheet">
-  <style type="text/css">
-        .img-40 {
-            width: 40px;
-            height: 40px;
-        }
-  </style>
-</head>
-<body layadmin-themealias="default">
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">配送单设置</span></div>
-		<div class="layui-card-body" style="padding:15px;">
-			<form action="" method="post" class="layui-form" lay-filter="component-layui-form-item" enctype="multipart/form-data" >
-				
-				<div class="layui-form-item">
-				   <label class="layui-form-label">统计范围:</label>
-					<div class="layui-input-block ">
-						<input type="checkbox" lay-skin="primary" name="parameter[is_delivery_add]" class="form-control valid" <?php if( !empty($data) && $data['is_delivery_add'] ==1 ){ ?>checked<?php } ?> value="1" title="快递的订单" />
-						<br/>
-						<div class="layui-form-mid layui-word-aux">
-							勾选后,生成配送单时,将统计该团长下快递类型的订单
-						</div>
-					</div>
-				</div>
-				
-				<div class="layui-form-item">
-				    <label class="layui-form-label">拖动排序:</label>
-                    <div class="layui-input-block">
-                        <p style="padding: 8px 0;font-weight: bold;">导出相关订单表格:</p>
-    					<div class="multi-img-details">
-    						<?php $i=1; ?>
-    						<?php foreach( $columns as $key => $val ){ ?>
-    						<label class="move_item"> 
-    							<input type="checkbox" lay-ignore name="order_index" value="<?php echo ($val['field']); ?>" class="item_input" <?php if( $val['is_check'] ==1 ){ ?>checked<?php } ?> title=""  /><?php echo $val['title']; ?>&nbsp;&nbsp;&nbsp;&nbsp;
-    						</label>
-    						<?php  if( $i % 8 == 0 ) { echo '<br/><br/>'; } $i++; ?>
-    						<?php } ?>	
-    					</div>
-                    </div>
-				</div>
-				
-				<div class="layui-form-item">
-				   <label class="layui-form-label">导出商品总单范围:</label>
-					<div class="layui-input-block ">
-						<input type="checkbox" lay-skin="primary" name="parameter[is_export_deliverygoods_category]" class="form-control valid" <?php if( !empty($data) && $data['is_export_deliverygoods_category'] ==1 ){ ?>checked<?php } ?> value="1" title="导出商品分类" />
-						<input type="checkbox" lay-skin="primary" name="parameter[is_export_deliverygoods_supply]" class="form-control valid" <?php if( !empty($data) && $data['is_export_deliverygoods_supply'] ==1 ){ ?>checked<?php } ?> value="1" title="导出商品所属供应商" />
-						<br/>
-						<div class="layui-form-mid layui-word-aux">
-							配送单管理 - 导出商品总单 -是否打印 商品分类,商品所属供应商
-						</div>
-					</div>
-				</div>
-		
-        		<div class="layui-form-item">
-        			<label class="layui-form-label"> </label>
-        			<div class="layui-input-block">
-						<input type="hidden" name="modify_explode_arr" id="modify_explode_arr" value="" />
-        				
-        				<input type="submit" value="提交" lay-submit lay-filter="formDemo" class="btn btn-primary"  />
-        				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-        			</div>
-        		</div>
-		  </form>
-	   </div>
-    </div>
-</div>
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-
-<script type="text/javascript" src="/static/js/jquery-migrate-1.1.1.js"></script>
-
-<script src="/static/js/jquery-ui.min.js"></script>
-
-<script>
-    layui.config({
-        base: '/layuiadmin/' //静态资源所在路径
-    }).extend({
-        index: 'lib/index' //主入口模块
-    }).use('index');
-</script>
-
-<script>
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer', 'form'], function(){ 
-    $ = layui.$;
-    var form = layui.form;
-  
-  
-
-
-
-  $('#clerk_allprint,#clerk_allprint_order').click(function(){
-		var searchtime = $('#searchtime').val();
-		
-		var start = $('input[name="time[start]"]').val();
-		var end = $('input[name="time[end]"]').val();
-		
-		var s_url= $(this).attr('data-href');
-		
-		s_url += '&searchtime='+searchtime+"&start="+start+"&end="+end;
-		
-		window.open(s_url);
-		
-		//console.log( start );
-		//console.log(searchtime);
-		//name="time[start]"
-		//time[end]
-	})
-	
-    $('.deldom').click(function(){
-        var s_url = $(this).attr('data-href');
-        layer.confirm($(this).attr('data-confirm'), function(index){
-            $.ajax({
-                url:s_url,
-                type:'post',
-                dataType:'json',
-                success:function(info){
-                
-                    if(info.status == 0)
-                    {
-                        layer.msg(info.result.message,{icon: 1,time: 2000});
-                    }else if(info.status == 1){
-                        var go_url = location.href;
-                        if( info.result.hasOwnProperty("url") )
-                        {
-                            go_url = info.result.url;
-                        }
-                        
-                        layer.msg('操作成功',{time: 1000,
-                            end:function(){
-                                location.href = info.result.url;
-                            }
-                        }); 
-                    }
-                }
-            })
-        }); 
-    })
-    
-    $('.btn-operation').click(function(){
-        var ids_arr = [];
-        var obj = $(this);
-        var s_toggle = $(this).attr('data-toggle');
-        var s_url = $(this).attr('data-href');
-        
-        
-        $("input[name=item_checkbox]").each(function() {
-            
-            if( $(this).prop('checked') )
-            {
-                ids_arr.push( $(this).val() );
-            }
-        })
-        if(ids_arr.length < 1)
-        {
-            layer.msg('请选择要操作的内容');
-        }else{
-            var can_sub = true;
-            if( s_toggle == 'batch-remove' )
-            {
-                can_sub = false;
-                
-                layer.confirm($(obj).attr('data-confirm'), function(index){
-                     $.ajax({
-                        url:s_url,
-                        type:'post',
-                        dataType:'json',
-                        data:{ids:ids_arr},
-                        success:function(info){
-                        
-                            if(info.status == 0)
-                            {
-                                layer.msg(info.result.message,{icon: 1,time: 2000});
-                            }else if(info.status == 1){
-                                var go_url = location.href;
-                                if( info.result.hasOwnProperty("url") )
-                                {
-                                    go_url = info.result.url;
-                                }
-                                
-                                layer.msg('操作成功',{time: 1000,
-                                    end:function(){
-                                        location.href = info.result.url;
-                                    }
-                                }); 
-                            }
-                        }
-                    })
-                }); 
-            }else{
-                $.ajax({
-                    url:s_url,
-                    type:'post',
-                    dataType:'json',
-                    data:{ids:ids_arr},
-                    success:function(info){
-                    
-                        if(info.status == 0)
-                        {
-                            layer.msg(info.result.message,{icon: 1,time: 2000});
-                        }else if(info.status == 1){
-                            var go_url = location.href;
-                            if( info.result.hasOwnProperty("url") )
-                            {
-                                go_url = info.result.url;
-                            }
-                            
-                            layer.msg('操作成功',{time: 1000,
-                                end:function(){
-                                    location.href = info.result.url;
-                                }
-                            }); 
-                        }
-                    }
-                })
-            }
-        }
-    })
-  
-    form.on('switch(statewsitch)', function(data){
-      
-      var s_url = $(this).attr('data-href')
-      
-      var s_value = 1;
-      if(data.elem.checked)
-      {
-        s_value = 1;
-      }else{
-        s_value = 0;
-      }
-      
-      $.ajax({
-            url:s_url,
-            type:'post',
-            dataType:'json',
-            data:{value:s_value},
-            success:function(info){
-            
-                if(info.status == 0)
-                {
-                    layer.msg(info.result.message,{icon: 1,time: 2000});
-                }else if(info.status == 1){
-                    var go_url = location.href;
-                    if( info.result.hasOwnProperty("url") )
-                    {
-                        go_url = info.result.url;
-                    }
-                    
-                    layer.msg('操作成功',{time: 1000,
-                        end:function(){
-                            location.href = info.result.url;
-                        }
-                    }); 
-                }
-            }
-        })
-    });
-
-    form.on('checkbox(checkboxall)', function(data){
-      if(data.elem.checked)
-      {
-        $("input[name=item_checkbox]").each(function() {
-            $(this).prop("checked", true);
-        });
-        $("input[name=checkall]").each(function() {
-            $(this).prop("checked", true);
-        });
-        
-      }else{
-        $("input[name=item_checkbox]").each(function() {
-            $(this).prop("checked", false);
-        });
-        $("input[name=checkall]").each(function() {
-            $(this).prop("checked", false);
-        });
-      }
-      
-      form.render('checkbox');
-    });
-  
-    //监听提交
-    form.on('submit(formDemo)', function(data){
-	
-		var arr_box = [];
-		$('.item_input').each(function() {
-			
-			if( $(this).is(':checked') ) {
-				arr_box.push($(this).val());
-			}
-		});
-		
-		
-		data.field.modify_explode_arr = arr_box;
-		
-		
-        $.ajax({
-            url: data.form.action,
-            type: data.form.method,
-            data: data.field,
-            dataType:'json',
-            success: function (info) {
-              
-                if(info.status == 0)
-                {
-                    layer.msg(info.result.message,{icon: 1,time: 2000});
-                }else if(info.status == 1){
-                    var go_url = location.href;
-                    if( info.result.hasOwnProperty("url") )
-                    {
-                        go_url = info.result.url;
-                    }
-                    
-                    layer.msg('操作成功',{time: 1000,
-                        end:function(){
-                            location.href = info.result.url;
-                        }
-                    }); 
-                }
-            }
-        });
-        return false;
-    });
-})
-
-</script>  
-
-
-<script>
-    $(function () {
-        // 拖拽时开始滚动的间距
-        var scrollingSensitivity = 20
-        // 拖拽时滚动速度
-        let scrollingSpeed = 20
-        // 拖拽前的父级节点
-        let dragBeforeParentNode = null
-        // 初始化拖拽函数
-        $('.multi-img-details').sortable({
-            // 自适应placeholder的大小
-            forceHelperSize: true,
-            // 拖拽时的鼠标形状
-            cursor: '-webkit-grabbing',
-            // 拖拽的父级节点(该节点一定要注意,配置错误会导致当前屏幕外的元素没法自动滚动拖拽,两列之间拖拽的滚动也会出问题)
-            appendTo: '.layui-form-item',
-            // 拖拽时的倾斜度
-            rotate: '5deg',
-            // 延迟时间(毫秒),避免和click同时操作时出现的冲突
-            delay: 0,
-           
-            // 拖拽到边框出现滚动的间距,
-            scrollSensitivity: scrollingSensitivity,
-            // 应用于拖拽空白区域的样式
-            placeholder: 'portlet-placeholder ui-state-highlight',
-            // 允许拖拽预留空白区域
-            forcePlaceholderSize: false,
-            // 多个列表之间的拖拽的dom元素
-            connectWith: '.multi-img-details',
-            // 鼠标到区域则填充
-            tolerance: "pointer",
-            // 可以拖拽的项
-            items: '.move_item',
-            // 填充动画
-            revert: 0,
-            // 拖拽结束函数
-            stop: (e, ui) => {
-                // 当前拽入的元素
-                let item = $(ui.item)
-                // 当前拽入元素的下标
-                let index = item.index()
-                let kid = ''
-                // xxxx 这里面可以操作数据更新
-            },
-            // 开始拖拽时的函数
-            start: (e, ui) => {
-                // 拖拽前的父级节点
-                dragBeforeParentNode = ui.item[0].parentNode
-                // 让placeholder和源高度一致
-                ui.helper.addClass('item').width(110)
-                // xxxx  这里可以记录一些拖拽前的元素属性
-            },
-            // 处理两列滚动条问题
-            sort: function (event, ui) {
-                var scrollContainer = ui.placeholder[0].parentNode
-                // 设置拽入的列表的滚动位置
-                var overflowOffset = $(scrollContainer).offset()
-                if ((overflowOffset.top + scrollContainer.offsetHeight) - event.pageY <
-                    scrollingSensitivity) {
-                    scrollContainer.scrollTop = scrollContainer.scrollTop + scrollingSpeed
-                } else if (event.pageY - overflowOffset.top < scrollingSensitivity) {
-                    scrollContainer.scrollTop = scrollContainer.scrollTop - scrollingSpeed
-                }
-            }
-        }).disableSelection()
-    })
-</script>
-
-</body>
-</html>

+ 0 - 114
Runtime/Cache/Seller/9b0d7d73a7c23443e92b2d7f57f199a8.php

@@ -1,114 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><style>
-	.line_p{line-height:26px;font-size:13px;margin-top:5px;}
-</style>
-<form class="form-horizontal form-validate" action="<?php echo U('order/oprefund_do');?>" method="post" enctype="multipart/form-data">
-	<input type='hidden' name='id' value='<?php echo ($id); ?>' />
-
-	<div class="modal-dialog">
-           <div class="modal-content">
-            <div class="modal-header">
-                <button data-dismiss="modal" class="close" type="button">×</button>
-                <h4 class="modal-title">退款金额</h4>
-				 
-            </div>
-            <div class="modal-body" style = "padding: 10px;" >
-					<!--
-						if($is_has_refund_deliveryfree == 1)
-						  {
-							$total += $item['shipping_fare'];
-						  }
-					-->
-			        <?php  $total = $item['total']-$item['voucher_credit']-$item['fullreduction_money']-$has_refud_money; $score_for_money = $item['score_for_money']; $free_tongji = $total - $score_for_money; if( !empty($presale_info) ) { $free_tongji = $free_tongji - $presale_info['presale_for_ordermoney']; } $free_tongji = round($free_tongji - $hx_used_total,2); if($free_tongji < 0){ $free_tongji = 0; } ?>
-					<?php if( !empty( $score_for_money ) && $score_for_money > 0 ){ ?>
-					<p style="line-height:26px;font-size:13px;">积分抵扣:¥<?php echo ($score_for_money); ?></p>
-					<?php } ?>
-					<p style="line-height:26px;font-size:13px;">最多退款:¥<?php echo ($free_tongji); ?>
-						<?php if( !empty($presale_info) ){ ?>
-						<span style="color:red;">&nbsp;&nbsp;&nbsp;&nbsp;预售定金:<?php echo ($presale_info['presale_for_ordermoney']); ?>元不退款,仅退尾款</span>
-						<?php } ?>
-					</p>
-                    <div style="height:8px;"></div>
-					<input type="text" name="refund_money" id="refund_money" placeholder="退款金额" value="<?php echo round($free_tongji ,2);?>" class="form-control" />
-					<div style="height:8px;"></div>
-					<?php if($item['payment_code'] == 'cashon_delivery'){ ?>
-						<div style="color:red;line-height: 16px;font-size: 12px;">该订单为“货到付款”订单,订单退款金额只保留记录到订单操作中不作实际退款(不退至用户余额或微信账户),实际退款金额请线下和用户协商解决</div>
-					<?php } ?>
-					<?php  if($is_has_refund_deliveryfree == 1){ ?>
-					<p class="line_p">
-						<label>配送费:&nbsp;&nbsp;&nbsp;&nbsp;
-							<?php if($shipping_fare <= 0){ ?>
-							&nbsp;0
-							<?php }else{ ?>
-							<input type="checkbox" id="is_refund_shippingfare" name="is_refund_shippingfare" checked value ="1" />&nbsp;
-							<?php if( $delivery == 'express' ){ ?>
-							退“快递配送费” ¥<?php echo round($shipping_fare,2); ?>
-							<?php }else if( $delivery == 'localtown_delivery' ){ ?>
-							退“同城配送费” ¥<?php echo round($shipping_fare,2); ?>
-							<?php }else if( $delivery == 'tuanz_send' ){ ?>
-							退“团长配送费” ¥<?php echo round($shipping_fare,2); ?>
-							<?php } ?>
-
-							<?php } ?>
-						</label>
-					</p>
-					<?php }else{ ?>
-					<p class="line_p">
-						<label>配送费:&nbsp;&nbsp;&nbsp;&nbsp;后台设置不退配送费</label>
-					</p>
-					<?php } ?>
-
-
-					
-					<p class="line_p">
-						<label>其他操作:&nbsp;&nbsp;&nbsp;<input type="checkbox" id="is_back_sellcount" checked name="is_back_sellcount" value ="1"  />&nbsp;退库存以及减销量<?php echo ($total_quantity); ?>个</label>
-					
-						<?php if( !empty( $score_for_money ) && $score_for_money > 0 ){ ?>
-						
-						<label>
-						<input type="checkbox" id="is_back_buyscore"  name="is_back_buyscore" value ="1"  />&nbsp;
-						退<?php echo ($buy_score_total); ?>积分</label>
-						<?php } ?>	
-						
-					</p>
-					
-					<p style="line-height:26px;font-size:13px;">佣金:<span class="label label-success"><?php echo ($commiss_state); ?></span></p>
-					<p style="margin-top:10px;line-height:16px;font-size:12px;color:#9e9696;">
-					   备注:1.佣金指社区团购团长提成,团长分销提成,会员分销提成。<br/>
-					   2.当佣金“未结算”,本页面操作会重新计算佣金金额,计算公式:商品退款金额占商品可退总金额比重*原来应结佣金<br/>
-					   3.所退配送费计算公式=均摊,退款金额/全部商品金额*运费<br/>
-				       <span style="color:red;">4.当佣金“已结算”,本页面操作不会影响已经结算的所有佣金。<br/></span>
-					   <span style="color:red;">5.已结算后再发生任何退款,所有积分、社区团购团长提成、会员分销提成、团长分销提成、拼团佣金团提成、独立供应商可提现,不会再扣除,不发生任何变化。<br/></span>
-					</p>
-		   </div>
-            <div class="modal-footer">
-                <button class="btn btn-primary" type="submit">提交</button>
-                <button data-dismiss="modal" class="btn btn-default" type="button">取消</button>
-            </div>
-        </div>
-</form>
-
-<script>
-var free_tongji = <?php echo ($free_tongji); ?>;
-var shipping_fare = <?php echo ($item['shipping_fare']); ?>;
-
-$(function(){
-	$('#is_refund_shippingfare').click(function(){
-		
-		var refund_money_str = $('#refund_money').val();
-		
-		var refund_money = parseFloat(refund_money_str);
-		
-		/*if($(this).is(':checked')) {
-			// do something
-			refund_money = refund_money + shipping_fare;
-			
-		}else{
-			refund_money = refund_money - shipping_fare;
-		}*/
-		
-		refund_money = Math.floor( refund_money * 100) / 100;
-		$('#refund_money').val(refund_money);
-	
-	})
-})
-</script>

+ 0 - 553
Runtime/Cache/Seller/9d59a2e1c0ff5f15f96bc7870720be8b.php

@@ -1,553 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-	window.sysinfo = {
-	<?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-	
-	<?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-	
-	'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-	
-	'siteroot': '<?php echo ($_W['siteroot']); ?>',
-			'siteurl': '<?php echo ($_W['siteurl']); ?>',
-			'attachurl': '<?php echo ($_W['attachurl']); ?>',
-			'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-			'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-			'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-	'cookie' : {'pre': ''},
-	'account' : <?php echo json_encode($_W['account']);?>,
-	};
-</script>
-
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-<link href="/static/css/snailfish.css" rel="stylesheet">
-<style>
-    tbody tr td{
-        position: relative;
-    }
-    tbody tr  .icow-weibiaoti--{
-        visibility: hidden;
-        display: inline-block;
-        color: #fff;
-        height:18px;
-        width:18px;
-        background: #e0e0e0;
-        text-align: center;
-        line-height: 18px;
-        vertical-align: middle;
-    }
-    tbody tr:hover .icow-weibiaoti--{
-        visibility: visible;
-    }
-    tbody tr  .icow-weibiaoti--.hidden{
-        visibility: hidden !important;
-    }
-    .full .icow-weibiaoti--{
-        margin-left:10px;
-    }
-    .full>span{
-        display: -webkit-box;
-        display: -webkit-flex;
-        display: -ms-flexbox;
-        display: flex;
-        vertical-align: middle;
-        align-items: center;
-    }
-    tbody tr .label{
-        margin: 5px 0;
-    }
-    .goods_attribute a{
-        cursor: pointer;
-    }
-    .newgoodsflag{
-        width: 22px;height: 16px;
-        background-color: #ff0000;
-        color: #fff;
-        text-align: center;
-        position: absolute;
-        bottom: 70px;
-        left: 57px;
-        font-size: 12px;
-    }
-	.a{cursor: pointer;}
-</style>
-</head>
-<body layadmin-themealias="default">
-
-
-
-<table id="demo" lay-filter="test"></table>
-
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">佣金申请列表</span></div>
-		<div class="layui-card-body" style="padding:15px;">
-			<form action="" method="get" class="form-horizontal form-search layui-form" role="form">
-				<input type="hidden" name="c" value="orderdistribution" />
-				<input type="hidden" name="a" value="withdrawallist" />
-			
-				<div class="layui-form-item">
-				  <div class="layui-inline">
-				  
-					<div class="layui-input-inline" style="width:280px;">
-						<?php echo tpl_form_field_daterange('time', array('starttime'=>date('Y-m-d H:i', $starttime),'endtime'=>date('Y-m-d H:i', $endtime),'sm'=>true, 'placeholder'=>'申请时间'),true);;?>
-					</div>
-					<div class="layui-input-inline" >
-						<select name='comsiss_state' class='layui-input layui-unselect' style="width:80px;"  >
-							<option value=''>状态</option>
-							<option value='0' <?php if( $_GPC['comsiss_state']=='0' ){ ?>selected<?php } ?>>未审核</option>
-							<option value='1' <?php if( $_GPC['comsiss_state']=='1' ){ ?>selected<?php } ?>>已审核</option>
-							<option value='2' <?php if( $_GPC['comsiss_state']=='2' ){ ?>selected<?php } ?>>拒绝通过</option>
-						</select>
-					</div>
-					<div class="layui-input-inline" >
-						<input type="text" class="layui-input"  name="keyword" value="<?php echo ($_GPC['keyword']); ?>" placeholder="申请订单id"/>
-				
-					</div>
-					
-					<div class="layui-input-inline">
-						<button class="layui-btn layui-btn-sm" type="submit"> 搜索</button>
-						<button type="submit" name="export" value="1" class="btn btn-success  layui-btn layui-btn-sm">导出</button>
-					</div>
-				  </div>
-					<?php if($is_supply_status == 1){ ?>
-					<div class="layui-inline">
-						<span class="line-text">提现审核通过以后,请将对应的提现金额,通过线下转账的方式转给配送员!</span>
-					</div>
-					<?php } ?>
-				</div>
-			</form>
-			<form action="" class="layui-form" lay-filter="example" method="post" >
-       
-	   
-				
-				
-				<div class="row">
-					<div class="col-md-12">
-					
-					 
-					
-						<div class="page-table-header">
-							<input type='checkbox' name="checkall" lay-skin="primary" lay-filter="checkboxall"  />
-							
-							<div class="btn-group">
-								<button class='btn btn-default btn-sm btn-op btn-operation'  type="button" data-toggle='batch' data-href="<?php echo U('orderdistribution/agent_check_apply',array('state'=>1));?>"  data-confirm='确认要审核通过,已打款?'>
-									审核通过
-								</button>
-								<button class='btn btn-default btn-sm btn-op btn-operation' type="button"  data-toggle='batch' data-href="<?php echo U('orderdistribution/agent_check_apply',array('state'=>2));?>" data-confirm='确认要拒绝通过?'>
-									拒绝通过
-								</button>
-							</div>
-						</div>
-						<table class="table table-responsive" lay-even lay-skin="line" lay-size="lg">
-						
-							<thead>
-								<tr>
-									<th style="width:25px;"></th>
-									<th style="width:60px;">ID</th>
-									<th style="">配送员姓名</th>
-									<th style="">会员名称</th>
-									<th style="">联系方式</th>
-									 <th style="">提现方式</br>提现账户</th>
-								   
-									<th style=''>申请提现金额</br>手续费</br>到账金额</th>
-									<th style="">申请时间</br>审核时间</th>
-									<th style='width:170px;'>状态</th>
-								</tr>
-							</tr>
-							</thead>
-							<tbody>
-							
-							<?php foreach($list as $row){ ?>
-								<tr>
-									<td style="position: relative; ">
-										<input type='checkbox' name="item_checkbox" class="checkone" lay-skin="primary" value="<?php echo ($row['id']); ?>"/>
-									</td>
-									<td>
-										<?php echo ($row['id']); ?>
-									</td>
-									<td>
-										<?php echo ($row['username']); ?>
-									</td>
-									<td style="overflow: visible">
-										<div rel="pop" style="display: flex"  >
-										   <img class="img-40" src="<?php echo tomedia($row['member_info']['avatar']);?>" style='border-radius:50%;border:1px solid #efefef;width: 40px;
-    height: 40px;' />
-										   <span style="display: flex;flex-direction: column;justify-content: center;align-items: flex-start;padding-left: 5px">
-											   <span class="nickname">
-												   
-												   <?php if( empty($row['member_info']['username']) ){ ?>
-												   <?php }else{ ?>
-												   <?php echo ($row['member_info']['username']); ?>
-												   <?php } ?>
-											   </span>
-											   
-										   </span>
-										</div>
-									</td>
-									<td> 
-									<?php echo ($row['member_info']['telephone']); ?>
-									</td>
-									<td>
-										<?php  if( $row['type'] == 1 ) { echo '余额'; }elseif( $row['type'] == 2 ){ echo '微信零钱'; }elseif($row['type'] == 4){ echo '银行卡'; } ?>
-										<?php
- if($row['type'] == 3){ echo '支付宝'; ?>
-											<br/>
-											<text class='text-primary'>真实姓名:<?php echo ($row['bankusername']); ?></text><br/>
-											<text class='text-danger'>账户:<?php echo ($row['bankaccount']); ?></text>
-										<?php }else{ ?>
-										<br/>
-										<text class='text-primary'><?php echo ($row['bankaccount']); ?></text><br/>
-										<text class='text-danger'><?php echo ($row['bankusername']); ?></text>
-										<?php } ?>
-									</td>
-									<td> 
-									<?php echo ($row['money']); ?><br/><text class='text-primary'><?php echo ($row['service_charge']); ?></text><br/>
-									<text class='text-danger'><?php echo $row['money']-$row['service_charge_money']; ?></text>
-									</td>
-									
-									<td><?php echo date("Y-m-d",$row['addtime']);?><br/><?php echo date("H:i:s",$row['addtime']);?>
-									<br/>
-									
-									<?php if( !empty($row['shentime']) ){ ?>
-										<?php echo date("Y-m-d",$row['shentime']);?><br/><?php echo date("H:i:s",$row['shentime']);?>
-									<?php } ?>
-									</td>
-									
-									<td>
-										<?php if( $row['state'] ==2 ){ ?>
-											已拒绝
-										<?php }else if( $row['state'] ==1 ){ ?>
-											<text class='text-danger'>已打款</text>
-										<?php }else{ ?>
-										
-										<input type="checkbox" name="" lay-filter="statewsitch" tx_type="<?php echo $row['type'];?>"  data-href="<?php echo U('orderdistribution/agent_check_apply',array('id'=>$row['id']));?>" <?php if( $row['state']==1 ){ ?>checked<?php } ?> lay-skin="switch" lay-text="已审核|未审核">
-										
-										<?php } ?>
-									
-									<br/>
-									</td>
-									
-								</tr>
-							<?php } ?>
-							</tbody>
-							<tfoot>
-							<tr>
-								<td colspan="5">
-									<div class="page-table-header">
-										<input type="checkbox" name="checkall" lay-skin="primary" lay-filter="checkboxall">
-										<div class="btn-group">
-											<button class='btn btn-default btn-sm btn-op btn-operation' type="button" data-toggle='batch' data-href="<?php echo U('orderdistribution/agent_check_apply',array('state'=>1));?>"  data-confirm='确认要审核通过,已打款?'>
-												审核通过
-											</button>
-											<button class='btn btn-default btn-sm btn-op btn-operation' type="button" data-toggle='batch' data-href="<?php echo U('orderdistribution/agent_check_apply',array('state'=>2));?>" data-confirm='确认要拒绝通过?'>
-												拒绝通过
-											</button>
-										</div>
-									</div>
-								</td>
-								<td colspan="4" style="text-align: right">
-									<?php echo ($pager); ?>
-								</td>
-							</tr>
-							</tfoot>
-						</table>
-					</div>
-				</div>
-				
-			</form>
-		</div>
-	</div>
-</div>
-
-
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  
-  
-	$('.deldom').click(function(){
-		var s_url = $(this).attr('data-href');
-		layer.confirm($(this).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						success:function(info){
-						
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-	})
-	
-	$('.btn-operation').click(function(){
-		var ids_arr = [];
-		var obj = $(this);
-		var s_toggle = $(this).attr('data-toggle');
-		var s_url = $(this).attr('data-href');
-
-		$(obj).attr('disabled',true);
-		$("input[name=item_checkbox]").each(function() {
-			
-			if( $(this).prop('checked') )
-			{
-				ids_arr.push( $(this).val() );
-			}
-		})
-		if(ids_arr.length < 1)
-		{
-			layer.msg('请选择要操作的内容');
-			$(obj).attr('disabled',false);
-		}else{
-			var can_sub = true;
-			if( s_toggle == 'batch-remove' )
-			{
-				can_sub = false;
-
-				$(obj).attr('disabled',false);
-				layer.confirm($(obj).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						data:{ids:ids_arr},
-						success:function(info){
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-			}else{
-				$.ajax({
-					url:s_url,
-					type:'post',
-					dataType:'json',
-					data:{ids:ids_arr},
-					success:function(info){
-					
-						if(info.status == 0)
-						{
-							layer.msg(info.result.message,{icon: 1,time: 2000,
-								end:function(){
-									$(obj).attr('disabled',false);
-								}});
-						}else if(info.status == 1){
-							var go_url = location.href;
-							if( info.result.hasOwnProperty("url") )
-							{
-								go_url = info.result.url;
-							}
-							
-							layer.msg('操作成功',{time: 1000,
-								end:function(){
-									location.href = info.result.url;
-								}
-							}); 
-						}
-					}
-				})
-			}
-		}
-	})
-  
-	form.on('switch(statewsitch)', function(data){
-		var lock = false;
-	    var s_url = $(this).attr('data-href')
-		var x=data.elem.checked;
-		var tx_type = $(this).attr('tx_type');
-
-		var tip_msg = '确认审核通过,已经打款?';
-		if(tx_type == 1){
-			//系统余额
-			tip_msg = '确认审核通过,该会员个人中心余额会立即收到,只能用于小程序消费。';
-		}else if(tx_type == 2){
-			//1、微信零钱
-			tip_msg = '确认审核通过,将立即从微信支付商户扣款打到该会员微信零钱中。';
-		}else if(tx_type == 3){
-			//支付宝
-			tip_msg = '请确认已手动转账到对方支付宝账户。';
-		}else if(tx_type == 4){
-			//银行卡
-			tip_msg = '请确认已手动转账到对方银行卡账户。';
-		}
-
-		layer.confirm(tip_msg,{
-			btn:['确定','取消'],
-		},function () {
-			var s_value = 1;
-			if (data.elem.checked) {
-				s_value = 1;
-			} else {
-				s_value = 0;
-			}
-			if(!lock) {
-				lock = true;
-				$.ajax({
-					url: s_url,
-					type: 'post',
-					dataType: 'json',
-					data: {state: s_value},
-					success: function (info) {
-						if (info.status == 0) {
-							layer.msg(info.result.message, {
-								icon: 1, time: 2000,
-								end: function () {
-									location.href = location.href;
-								}
-							});
-						} else if (info.status == 1) {
-							var go_url = location.href;
-							if (info.result.hasOwnProperty("url")) {
-								go_url = info.result.url;
-							}
-
-							layer.msg('操作成功', {
-								time: 1000,
-								end: function () {
-									location.href = info.result.url;
-								}
-							});
-						}
-					}
-				})
-			}
-		},function(){
-			data.elem.checked=!x;
-			form.render();
-		})
-	});  
-	form.on('checkbox(checkboxall)', function(data){
-	  
-	  if(data.elem.checked)
-	  {
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", true);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", true);
-		});
-		
-	  }else{
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", false);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", false);
-		});
-	  }
-	  
-	  form.render('checkbox');
-	});
-  
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-})
-
-</script>  
-</body>

+ 0 - 269
Runtime/Cache/Seller/a693c79c735ecf9a06fc954895c1880f.php

@@ -1,269 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-            window.sysinfo = {
-            <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-			
-            <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-			
-            'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-			
-            'siteroot': '<?php echo ($_W['siteroot']); ?>',
-                    'siteurl': '<?php echo ($_W['siteurl']); ?>',
-                    'attachurl': '<?php echo ($_W['attachurl']); ?>',
-                    'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-                    'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-                    'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-            'cookie' : {'pre': ''},
-            'account' : <?php echo json_encode($_W['account']);?>,
-            };
-        </script>
-		
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-  <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-   <link href="/static/css/snailfish.css" rel="stylesheet">
-</head>
-<body layadmin-themealias="default">
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">小程序设置</span></div>
-		
-		
-		<div class="layui-card-body" style="padding:15px;">
-			<form action="" method="post" class="layui-form" lay-filter="component-layui-form-item" enctype="multipart/form-data" >
-				<div class="layui-form-item">
-					<label class="layui-form-label">支付模式</label>
-					<div class="layui-input-block">
-						<label class='radio-inline'><input type="radio" name="parameter[is_open_yinpay]" value="0" title="微信支付商户" <?php if(empty($data) || $data['is_open_yinpay'] ==0){ ?>checked  <?php } ?> onclick="$('#wepro').show();$('#wepro_sub').hide();$('#wepro2').show();$('#wepro_sub2').hide();$('#wepro3').show();$('#wepro_sub3').hide();" /></label>
-						<label class='radio-inline'><input type="radio" name="parameter[is_open_yinpay]" value="3" title="服务商+特约商户" <?php if( !empty($data) && $data['is_open_yinpay'] ==3 ){ ?>checked <?php } ?> onclick="$('#wepro_sub').show();$('#wepro').hide();$('#wepro_sub2').show();$('#wepro2').hide();$('#wepro_sub3').show();$('#wepro3').hide();" /></label>
-					</div>
-					
-				</div>
-				
-					<div class="layui-form-item">
-						<label class="layui-form-label">小程序APPID</label>
-						<div class="layui-input-block">
-							<input type="text" name="parameter[wepro_appid]" class="form-control" value="<?php echo ($data['wepro_appid']); ?>" />
-							<span class="layui-form-mid">mp.weixin.qq.com 开发-开发配置</span>
-						</div>
-					</div>
-					<div class="layui-form-item">
-						<label class="layui-form-label">小程序APPSECRET</label>
-						<div class="layui-input-block">
-							<input type="text" name="parameter[wepro_appsecret]" class="form-control" value="<?php echo ($data['wepro_appsecret']); ?>" />
-						</div>
-					</div>
-				
-
-					
-				<div class="layui-form-item" id="wepro" style="<?php if( !empty($data['is_open_yinpay']) || $data['is_open_yinpay'] ==3 ){ ?>display:none;<?php } ?>">
-
-					<div class="layui-form-item">
-						<label class="layui-form-label">商户ID</label>
-						<div class="layui-input-block">
-							<input type="text" name="parameter[wepro_partnerid]" class="form-control" value="<?php echo ($data['wepro_partnerid']); ?>" />
-						</div>
-					</div>
-				</div>				
-				<div class="layui-form-item" id="wepro_sub" style="<?php if( empty($data['is_open_yinpay']) || $data['is_open_yinpay'] ==0 ){ ?>display:none;<?php } ?>">
-					<div class="layui-form-item">
-						<label class="layui-form-label">特约商户商户号</label>
-						<div class="layui-input-block">
-							<input type="text" name="parameter[wepro_sub_mch_id]" class="form-control" value="<?php echo ($data['wepro_sub_mch_id']); ?>" />
-						</div>
-					</div>
-				</div>
-					<div class="layui-form-item">
-						<label class="layui-form-label" id="wepro2" style="<?php if( !empty($data['is_open_yinpay']) || $data['is_open_yinpay'] ==3 ){ ?>display:none;<?php } ?>">支付秘钥</label>
-						<label class="layui-form-label" id="wepro_sub2" style="<?php if( empty($data['is_open_yinpay']) || $data['is_open_yinpay'] ==0 ){ ?>display:none;<?php } ?>">服务商秘钥</label>
-						<div class="layui-input-block">
-							<input type="text" name="parameter[wepro_key]" class="form-control" value="<?php echo ($data['wepro_key']); ?>" />
-							<span class="layui-form-mid">pay.weixin.qq.com 账户中心-api安全</span>
-						</div>
-					</div>
-				<div class="layui-form-item" id="wepro3" style="<?php if( !empty($data['is_open_yinpay']) || $data['is_open_yinpay'] ==3 ){ ?>display:none;<?php } ?>">
-					<div class="layui-form-item">
-						<label class="layui-input-block">CERT证书文件</label>
-						<div class="layui-input-block">
-							<textarea style="height:100px;" name="parameter[wechat_apiclient_cert_pem]" class="layui-textarea" rows="5" placeholder="<?php if( $data[wechat_apiclient_cert_pem]){ ?>为保证安全性,不显示证书内容。若要修改请直接输入<?php } ?>"></textarea>
-							<div class="layui-form-mid">
-								<?php if( $data[wechat_apiclient_cert_pem]){ ?>
-								<span class="label label-primary">已上传</span>
-								<?php  }else{ ?>
-								<span class="label label-danger">未上传</span>
-								<?php } ?>从商户平台上下载支付证书,解压并取得其中的<span class="bg-danger">apiclient_cert.pem</span>用记事本打开并复制文件内容,填至此处</div>
-						</div>
-					</div>
-					<div class="layui-form-item">
-						<label class="layui-input-block">KEY证书秘钥</label>
-						<div class="layui-input-block">
-							<textarea style="height:100px;" name="parameter[wechat_apiclient_key_pem]" class="layui-textarea" rows="5" placeholder="<?php if( $data[wechat_apiclient_key_pem]){ ?>为保证安全性,不显示证书内容。若要修改请直接输入<?php } ?>"></textarea>
-							<div class="layui-form-mid">
-								<?php if( $data[wechat_apiclient_key_pem]){ ?>
-								<span class="label label-primary">已上传</span>
-								<?php  }else{ ?>
-								<span class="label label-danger">未上传</span>
-								<?php } ?>从商户平台上下载支付证书,解压并取得其中的<span class="bg-danger">apiclient_key.pem</span>用记事本打开并复制文件内容,填至此处
-								<br/>
-								<br/>
-								<a href="https://pay.weixin.qq.com" target="_blank">pay.weixin.qq.com</a>&nbsp;&nbsp;账户中心&nbsp;->&nbsp;api安全&nbsp;->&nbsp;申请证书&nbsp;->&nbsp;查看证书
-								&nbsp;&nbsp;严格按照腾讯提示
-							</div>
-						</div>
-					</div>
-				</div>
-
-				<div class="layui-form-item" id="wepro_sub3" style="<?php if( empty($data['is_open_yinpay']) || $data['is_open_yinpay'] ==0 ){ ?>display:none;<?php } ?>">
-					
-					<div class="layui-form-item">
-						<label class="layui-form-label">服务商公众号AppID</label>
-						<div class="layui-input-block">
-							<input type="text" name="parameter[wepro_fuwu_appid]" class="form-control" value="<?php echo ($data['wepro_fuwu_appid']); ?>" />
-						</div>
-					</div>
-					
-					<div class="layui-form-item">
-						<label class="layui-form-label">服务商商户号</label>
-						<div class="layui-input-block">
-							<input type="text" name="parameter[wepro_fuwu_partnerid]" class="form-control" value="<?php echo ($data['wepro_fuwu_partnerid']); ?>" />
-						</div>
-					</div>
-
-					<div class="layui-form-item">
-						<label class="layui-form-label">特约商户秘钥</label>
-						<div class="layui-input-block">
-							<input type="text" name="parameter[sup_wepro_key]" class="form-control" value="<?php echo ($data['sup_wepro_key']); ?>" />
-							<span class="layui-form-mid">pay.weixin.qq.com 账户中心-api安全,特约商户提现必须填写特约商户秘钥,CERT证书文件,KEY证书秘钥。</span>
-						</div>
-					</div>
-					<div class="layui-form-item">
-						<label class="layui-input-block">服务商证书CERT证书文件</label>
-						<div class="layui-input-block">
-							<textarea style="height:100px;" name="parameter[sup_wechat_apiclient_cert_pem]" class="layui-textarea" rows="5" placeholder="<?php if( $data[sup_wechat_apiclient_cert_pem]){ ?>为保证安全性,不显示证书内容。若要修改请直接输入<?php } ?>"></textarea>
-							<div class="layui-form-mid">
-								<?php if( $data[sup_wechat_apiclient_cert_pem]){ ?>
-								<span class="label label-primary">已上传</span>
-								<?php  }else{ ?>
-								<span class="label label-danger">未上传</span>
-								<?php } ?>从服务商商户平台上下载支付证书,解压并取得其中的<span class="bg-danger">apiclient_cert.pem</span>用记事本打开并复制文件内容,填至此处</div>
-						</div>
-					</div>
-					<div class="layui-form-item">
-						<label class="layui-input-block">服务商证书KEY证书秘钥</label>
-						<div class="layui-input-block">
-							<textarea style="height:100px;" name="parameter[sup_wechat_apiclient_key_pem]" class="layui-textarea" rows="5" placeholder="<?php if( $data[sup_wechat_apiclient_key_pem]){ ?>为保证安全性,不显示证书内容。若要修改请直接输入<?php } ?>"></textarea>
-							<div class="layui-form-mid">
-								<?php if( $data[sup_wechat_apiclient_key_pem]){ ?>
-								<span class="label label-primary">已上传</span>
-								<?php  }else{ ?>
-								<span class="label label-danger">未上传</span>
-								<?php } ?>从服务商商户平台上下载支付证书,解压并取得其中的<span class="bg-danger">apiclient_key.pem</span>用记事本打开并复制文件内容,填至此处
-								<br/>
-								<br/>
-								<a href="https://pay.weixin.qq.com" target="_blank">pay.weixin.qq.com</a>&nbsp;&nbsp;账户中心&nbsp;->&nbsp;api安全&nbsp;->&nbsp;申请证书&nbsp;->&nbsp;查看证书
-								&nbsp;&nbsp;严格按照腾讯提示
-							</div>
-						</div>
-					</div>
-
-				</div>
-				
-
-				<div class="layui-form-item">
-					<label class="layui-form-label"></label>
-					<div class="layui-input-block">
-						<input type="submit" lay-submit lay-filter="formDemo"  value="提交" class="btn btn-primary"  />
-					</div>
-				</div>
-			</form>
-		</div>
-		
-		
-	</div>
-</div>
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer','form','colorpicker'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
- 
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-})
-
-
-
-</script>  
-</body>

+ 0 - 391
Runtime/Cache/Seller/af3ab7005f7ce248b4e414a7e5585847.php

@@ -1,391 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-  window.sysinfo = {
-  <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-  
-  <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-  
-  <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-  
-  <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-  
-  'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-  
-  'siteroot': '<?php echo ($_W['siteroot']); ?>',
-    'siteurl': '<?php echo ($_W['siteurl']); ?>',
-    'attachurl': '<?php echo ($_W['attachurl']); ?>',
-    'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-    'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-    'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-    'cookie' : {'pre': ''},
-    'account' : <?php echo json_encode($_W['account']);?>,
-  };
-</script>
-
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-<link href="/static/css/snailfish.css" rel="stylesheet">
-</head>
-<body layadmin-themealias="default">
-<div class="layui-fluid">
-  <div class="layui-card">
-    <div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">文章管理</span></div>
-    <div class="layui-card-body" style="padding:15px;">
-      <form action="" method="get" class="form-horizontal form-search layui-form" role="form">
-        <input type="hidden" name="c" value="article" />
-        <input type="hidden" name="type" value="<?php echo ($type); ?>" />
-        
-        <div class="layui-form-item">
-          <div class="layui-inline">
-          <div class="layui-input-inline" >
-            <select name="enabled" class='layui-input layui-unselect' data-placeholder="状态">
-              <option value="-1" <?php if( empty($enabled)){ ?>selected<?php } ?> >状态</option>
-              <option value="1" <?php if( $enabled ==1){ ?>selected<?php } ?> >显示</option>
-              <option value="0" <?php if( $enabled ==0){ ?>selected<?php } ?> >隐藏</option>
-            </select>
-          </div>
-          <div class="layui-input-inline">
-            <input type="text" class="layui-input" name='keyword' value="<?php echo ($keyword); ?>" placeholder="输入关键词然后回车">  
-          </div>
-          <div class="layui-input-inline">
-            <button class="layui-btn layui-btn-sm"  type="submit"> 搜索</button>
-          </div>
-          </div>
-        </div>
-        
-      </form>
-      <form action="" class="layui-form" lay-filter="example" method="post" >
-       
-        <div class="row">
-          <div class="col-md-12">
-            <div class="page-table-header">
-              <span class="pull-right"> 
-                <a href="<?php echo U('article/add', array('ok' => 1));?>" class="layui-btn layui-btn-sm"><i class="fa fa-plus"></i> 添加文章</a>
-              </span>
-              <div class="btn-group">
-                <button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch' data-href="<?php echo U('article/change',array('type'=>'enabled','value'=>1));?>">显示</button>
-                <button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch' data-href="<?php echo U('article/change',array('type'=>'enabled','value'=>0));?>">隐藏</button>
-                <button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch-remove' data-confirm="确认要删除吗,删除后商品将进入回收站?" data-href="<?php echo U('article/delete');?>">删除</button>
-              </div>
-            </div>
-            <table class="layui-table" lay-skin="line" lay-size="lg">
-              <thead>
-                <tr>
-                  <th style="width:25px;"><input type='checkbox' name="checkall" lay-skin="primary" lay-filter="checkboxall"  /></th>
-                  <th style="width:80px;">ID</th>
-                  <th style="">标题</th>
-                  <th style="width: 150px;">状态</th>
-                  <th style="width:80px;">排序</th>
-                  <th style="width: 200px;">操作</th>
-                </tr>
-              </thead>
-              <tbody>
-              <?php foreach( $list as $item ){ ?>
-                <tr>
-                  <td style="width:25px;">
-                    <input type='checkbox' name="item_checkbox" lay-skin="primary" value="<?php echo ($item['id']); ?>"/>
-                  </td>
-                  <td>
-                    <?php echo ($item['id']); ?>
-                  </td>
-                  <td>
-                    <?php echo ($item['title']); ?>
-                  </td>
-                  <td>
-                    <input type="checkbox" name="" lay-filter="statewsitch" data-href="<?php echo U('article/change',array('type'=>'enabled','id'=>$item['id']));?>" <?php if( $item['enabled']==1){ ?>checked<?php  }else{ } ?> lay-skin="switch" lay-text="显示|隐藏">
-                  </td>
-                  <td>
-                    <a href='javascript:;' data-toggle='ajaxEdit' data-href="<?php echo U('article/change',array('id'=>$item['id'],'type'=>'displayorder'));?>" ><?php echo ($item['displayorder']); ?></a>
-                  </td>
-                  <td style="overflow:visible;position:relative">
-                    <a class='layui-btn layui-btn-xs' href="<?php echo U('article/add', array('id'=>$item['id'],'ok' => 1));?>" >
-                      <i class="layui-icon layui-icon-edit"></i>编辑
-                    </a>
-                    <a class='layui-btn layui-btn-xs deldom' href="javascript:;" data-href="<?php echo U('article/delete',array('id'=>$item['id']));?>" data-confirm='确认要删除吗?'>
-                      <i class="layui-icon">&#xe640;</i>删除
-                    </a>
-                  </td>
-                </tr>
-              <?php } ?>
-              </tbody>
-              <tfoot>
-              <tr>
-                <td colspan="4">
-                  <div class="page-table-header">
-                    <input type="checkbox" name="checkall" lay-skin="primary" lay-filter="checkboxall">
-                    <div class="btn-group">
-                      <button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch' data-href="<?php echo U('article/change',array('type'=>'enabled'));?>">显示</button>
-                      <button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch' data-href="<?php echo U('article/change',array('type'=>'enabled'));?>">隐藏</button>
-                      <button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch-remove' data-confirm="确认要删除吗,删除后商品将进入回收站?" data-href="<?php echo U('article/delete');?>">删除</button>
-                    </div>
-                  </div>
-                </td>
-                <td colspan="2" style="text-align: right">
-                  <?php echo ($pager); ?>
-                </td>
-              </tr>
-              </tfoot>
-            </table>
-          </div>
-        </div>
-        
-      </form>
-    </div>
-  </div>
-</div>
-
-
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-  layui.config({
-    base: '/layuiadmin/' //静态资源所在路径
-  }).extend({
-    index: 'lib/index' //主入口模块
-  }).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  
-  
-  $('.deldom').click(function(){
-    var s_url = $(this).attr('data-href');
-    layer.confirm($(this).attr('data-confirm'), function(index){
-           $.ajax({
-            url:s_url,
-            type:'post',
-            dataType:'json',
-            success:function(info){
-            
-              if(info.status == 0)
-              {
-                layer.msg(info.result.message,{icon: 1,time: 2000});
-              }else if(info.status == 1){
-                var go_url = location.href;
-                if( info.result.hasOwnProperty("url") )
-                {
-                  go_url = info.result.url;
-                }
-                
-                layer.msg('操作成功',{time: 1000,
-                  end:function(){
-                    location.href = info.result.url;
-                  }
-                }); 
-              }
-            }
-          })
-        }); 
-  })
-  
-  $('.btn-operation').click(function(){
-    var ids_arr = [];
-    var obj = $(this);
-    var s_toggle = $(this).attr('data-toggle');
-    var s_url = $(this).attr('data-href');
-    
-    
-    $("input[name=item_checkbox]").each(function() {
-      
-      if( $(this).prop('checked') )
-      {
-        ids_arr.push( $(this).val() );
-      }
-    })
-    if(ids_arr.length < 1)
-    {
-      layer.msg('请选择要操作的内容');
-    }else{
-      var can_sub = true;
-      if( s_toggle == 'batch-remove' )
-      {
-        can_sub = false;
-        
-        layer.confirm($(obj).attr('data-confirm'), function(index){
-           $.ajax({
-            url:s_url,
-            type:'post',
-            dataType:'json',
-            data:{ids:ids_arr},
-            success:function(info){
-            
-              if(info.status == 0)
-              {
-                layer.msg(info.result.message,{icon: 1,time: 2000});
-              }else if(info.status == 1){
-                var go_url = location.href;
-                if( info.result.hasOwnProperty("url") )
-                {
-                  go_url = info.result.url;
-                }
-                
-                layer.msg('操作成功',{time: 1000,
-                  end:function(){
-                    location.href = info.result.url;
-                  }
-                }); 
-              }
-            }
-          })
-        }); 
-      }else{
-        $.ajax({
-          url:s_url,
-          type:'post',
-          dataType:'json',
-          data:{ids:ids_arr},
-          success:function(info){
-          
-            if(info.status == 0)
-            {
-              layer.msg(info.result.message,{icon: 1,time: 2000});
-            }else if(info.status == 1){
-              var go_url = location.href;
-              if( info.result.hasOwnProperty("url") )
-              {
-                go_url = info.result.url;
-              }
-              
-              layer.msg('操作成功',{time: 1000,
-                end:function(){
-                  location.href = info.result.url;
-                }
-              }); 
-            }
-          }
-        })
-      }
-    }
-  })
-  
-  form.on('switch(statewsitch)', function(data){
-    
-    var s_url = $(this).attr('data-href')
-    
-    var s_value = 1;
-    if(data.elem.checked)
-    {
-    s_value = 1;
-    }else{
-    s_value = 0;
-    }
-    
-    $.ajax({
-      url:s_url,
-      type:'post',
-      dataType:'json',
-      data:{value:s_value},
-      success:function(info){
-      
-        if(info.status == 0)
-        {
-          layer.msg(info.result.message,{icon: 1,time: 2000});
-        }else if(info.status == 1){
-          var go_url = location.href;
-          if( info.result.hasOwnProperty("url") )
-          {
-            go_url = info.result.url;
-          }
-          
-          layer.msg('操作成功',{time: 1000,
-            end:function(){
-              location.href = info.result.url;
-            }
-          }); 
-        }
-      }
-    })
-  });  
-  form.on('checkbox(checkboxall)', function(data){
-    
-    if(data.elem.checked)
-    {
-    $("input[name=item_checkbox]").each(function() {
-      $(this).prop("checked", true);
-    });
-    $("input[name=checkall]").each(function() {
-      $(this).prop("checked", true);
-    });
-    
-    }else{
-    $("input[name=item_checkbox]").each(function() {
-      $(this).prop("checked", false);
-    });
-    $("input[name=checkall]").each(function() {
-      $(this).prop("checked", false);
-    });
-    }
-    
-    form.render('checkbox');
-  });
-  
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-  
-   $.ajax({
-    url: data.form.action,
-    type: data.form.method,
-    data: data.field,
-    dataType:'json',
-    success: function (info) {
-      
-      if(info.status == 0)
-      {
-        layer.msg(info.result.message,{icon: 1,time: 2000});
-      }else if(info.status == 1){
-        var go_url = location.href;
-        if( info.result.hasOwnProperty("url") )
-        {
-          go_url = info.result.url;
-        }
-        
-        layer.msg('操作成功',{time: 1000,
-          end:function(){
-            location.href = info.result.url;
-          }
-        }); 
-      }
-    }
-  });
-  
-    return false;
-  });
-})
-
-</script>  
-</body>
-</html>

+ 0 - 416
Runtime/Cache/Seller/b35d6c8ce87923ca2d992cf23f9b784d.php

@@ -1,416 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-	window.sysinfo = {
-	<?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-	
-	<?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-	
-	'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-	
-	'siteroot': '<?php echo ($_W['siteroot']); ?>',
-			'siteurl': '<?php echo ($_W['siteurl']); ?>',
-			'attachurl': '<?php echo ($_W['attachurl']); ?>',
-			'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-			'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-			'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-	'cookie' : {'pre': ''},
-	'account' : <?php echo json_encode($_W['account']);?>,
-	};
-</script>
-
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-<link href="/static/css/snailfish.css" rel="stylesheet">
-<style>
-    tbody tr td{
-        position: relative;
-    }
-    tbody tr  .icow-weibiaoti--{
-        visibility: hidden;
-        display: inline-block;
-        color: #fff;
-        height:18px;
-        width:18px;
-        background: #e0e0e0;
-        text-align: center;
-        line-height: 18px;
-        vertical-align: middle;
-    }
-    tbody tr:hover .icow-weibiaoti--{
-        visibility: visible;
-    }
-    tbody tr  .icow-weibiaoti--.hidden{
-        visibility: hidden !important;
-    }
-    .full .icow-weibiaoti--{
-        margin-left:10px;
-    }
-    .full>span{
-        display: -webkit-box;
-        display: -webkit-flex;
-        display: -ms-flexbox;
-        display: flex;
-        vertical-align: middle;
-        align-items: center;
-    }
-    tbody tr .label{
-        margin: 5px 0;
-    }
-    .goods_attribute a{
-        cursor: pointer;
-    }
-    .newgoodsflag{
-        width: 22px;height: 16px;
-        background-color: #ff0000;
-        color: #fff;
-        text-align: center;
-        position: absolute;
-        bottom: 70px;
-        left: 57px;
-        font-size: 12px;
-    }
-	.a{cursor: pointer;}
-</style>
-</head>
-<body layadmin-themealias="default">
-
-<table id="demo" lay-filter="test"></table>
-
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">系统日志列表</span></div>
-		<div class="layui-card-body" style="padding:15px;">
-			<form action="" method="get" class="form-horizontal form-search layui-form" role="form">
-				<input type="hidden" name="c" value="operatelog" />
-				<input type="hidden" name="a" value="index" />
-				
-				<div class="layui-form-item">
-				  <div class="layui-inline">
-					  <div class="layui-input-inline">
-						  <select name='operation_type'  class='layui-input layui-unselect' lay-ignore style="width:190px;padding:0 5px;"  id="operation_type">
-							  <option value=''>操作类型</option>
-							  <option value='detailed_list' <?php if(isset($gpc['operation_type']) && $gpc['operation_type']=='detailed_list'){ ?>selected<?php } ?>>清单</option>
-						  </select>
-					  </div>
-					  <span class="layui-input-inline">
-    						<select name='searchtime' class='form-control' style="width:100px;padding:0 5px;"  id="searchtime">
-    							<option value=''>不按时间</option>
-    							<option value='create_time' <?php if($gpc['searchtime']=='create_time'){ ?>selected<?php } ?>>操作时间</option>
-    						</select>
-    				  </span>
-					  <div class="layui-input-inline" style="width:280px;">
-						  <?php echo tpl_form_field_daterange('time', array('starttime'=>date('Y-m-d H:i', $starttime),'endtime'=>date('Y-m-d H:i', $endtime)),true);;?>
-					  </div> 
-					<div class="layui-input-inline">
-					  <input type="text" style="width:300px;" class="layui-input" name='keyword' value="<?php echo ($gpc['keyword']); ?>" placeholder="操作员名称/订单编号/商品名称">
-					</div>
-					<div class="layui-input-inline">
-						<button class="layui-btn layui-btn-sm" style="margin-left: 100px;" type="submit"> 搜索</button>
-					</div>
-				  </div>
-				</div>
-			</form>
-			<form action="" class="layui-form" lay-filter="example" method="post" >
-       
-				<div class="row">
-					<div class="col-md-12">
-						<div class="page-table-header">
-							<input type='checkbox' name="checkall" lay-skin="primary" lay-filter="checkboxall"  />
-							
-							<div class="btn-group">
-								<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch-remove' data-confirm="确认要删除吗?" data-href="<?php echo U('operatelog/delete_operatelog');?>">
-									 删除
-								</button>
-							</div>
-						</div>
-						<table class="table table-responsive" lay-even lay-skin="line" lay-size="lg">
-							<thead>
-							 <tr>
-								<th style="width:25px;"></th>
-								<th style="width:100px;">编号</th>
-								<th style="width:300px;">操作者</th>
-								<th style="width:300px;">操作日期</th>
-								<th style="width:150px;">操作类型</th>
-								<th style="width:350px;">ip</th>
-								<th style="width:800px;">操作内容</th>
-							</tr>
-							</thead>
-							<tbody>
-							<?php foreach( $label as $row ){ ?>
-							<tr>
-								<td>
-									<?php if( $row['id']!='default'){ ?>
-									<input type='checkbox' name="item_checkbox" lay-skin="primary" value="<?php echo ($row['id']); ?>"/>
-									<?php } ?>
-								</td>
-								<td><?php echo ($row['id']); ?></td>
-								<td><?php echo ($row['operation_seller_name']); ?></td>
-								<td><?php echo date('Y-m-d H:i:s',$row['addtime']);?></td>
-								<td>
-									<?php if( $row['operation_type'] =='detailed_list'){ ?>
-											清单
-									<?php } ?>
-								</td>
-								<td>
-									<?php echo ($row['ip']); ?>
-								</td>
-								<td>
-									<?php echo ($row['content']); ?>
-								</td>
-								<!--
-								<td style="text-align: center;">
-									<a  class='layui-btn layui-btn-xs deldom' href="javascript:;" data-href="<?php echo U('operatelog/delete_operatelog', array('id' => $row['id']));?>" data-confirm='确认要删除此日志吗?'>
-										<i class="layui-icon">&#xe640;</i>删除
-									</a>
-								</td>-->
-							</tr>
-							<?php } ?>
-					
-							</tbody>
-							<tfoot>
-							<tr>
-								<td colspan="2">
-									<div class="page-table-header">
-										<input type="checkbox" name="checkall" lay-skin="primary" lay-filter="checkboxall">
-										<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch-remove' data-confirm="确认要删除吗?" data-href="<?php echo U('operatelog/delete_operatelog');?>">
-											 删除
-										</button>
-									</div>
-								</td>
-								<td colspan="6" style="text-align: right">
-									<?php echo ($pager); ?>
-								</td>
-							</tr>
-							</tfoot>
-						</table>
-					</div>
-				</div>
-				
-			</form>
-		</div>
-	</div>
-</div>
-
-
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  
-  
-	$('.deldom').click(function(){
-		var s_url = $(this).attr('data-href');
-		layer.confirm($(this).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						success:function(info){
-						
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-	})
-	
-	$('.btn-operation').click(function(){
-		var ids_arr = [];
-		var obj = $(this);
-		var s_toggle = $(this).attr('data-toggle');
-		var s_url = $(this).attr('data-href');
-
-		$("input[name=item_checkbox]").each(function() {
-			
-			if( $(this).prop('checked') )
-			{
-				ids_arr.push( $(this).val() );
-			}
-		})
-		if(ids_arr.length < 1)
-		{
-			layer.msg('请选择要操作的内容');
-		}else{
-			var can_sub = true;
-			if( s_toggle == 'batch-remove' )
-			{
-				can_sub = false;
-				
-				layer.confirm($(obj).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						data:{ids:ids_arr},
-						success:function(info){
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-			}else{
-				$.ajax({
-					url:s_url,
-					type:'post',
-					dataType:'json',
-					data:{ids:ids_arr},
-					success:function(info){
-					
-						if(info.status == 0)
-						{
-							layer.msg(info.result.message,{icon: 1,time: 2000});
-						}else if(info.status == 1){
-							var go_url = location.href;
-							if( info.result.hasOwnProperty("url") )
-							{
-								go_url = info.result.url;
-							}
-							
-							layer.msg('操作成功',{time: 1000,
-								end:function(){
-									location.href = info.result.url;
-								}
-							}); 
-						}
-					}
-				})
-			}
-		}
-	})
-  
-  
-	form.on('checkbox(checkboxall)', function(data){
-	  
-	  if(data.elem.checked)
-	  {
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", true);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", true);
-		});
-		
-	  }else{
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", false);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", false);
-		});
-	  }
-	  
-	  form.render('checkbox');
-	});
-  
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-
-})
-
-
-
-</script>  
-</body>

+ 0 - 519
Runtime/Cache/Seller/b3a24391584f0707c71e3d1139ae041c.php

@@ -1,519 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-            window.sysinfo = {
-            <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-			
-            <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-			
-            'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-			
-            'siteroot': '<?php echo ($_W['siteroot']); ?>',
-                    'siteurl': '<?php echo ($_W['siteurl']); ?>',
-                    'attachurl': '<?php echo ($_W['attachurl']); ?>',
-                    'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-                    'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-                    'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-            'cookie' : {'pre': ''},
-            'account' : <?php echo json_encode($_W['account']);?>,
-            };
-        </script>
-		
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-  <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-   <link href="/static/css/snailfish.css" rel="stylesheet">
-   <script type="text/javascript" src="{php echo SNAILFISH_LOCAL}/static/js/dist/jquery/nestable/jquery.nestable.js"></script>
-<link href="/static/js/dist/jquery/nestable/nestable.css" rel="stylesheet">
-<style type='text/css'>
-    .dd-handle { height: 40px; line-height: 30px}
-    .dd-list { width:860px;}
-    .dd-handle span {
-        font-weight: normal;
-    }
-	.cate_sort{width: 35px;height: 20px;text-align:center;
-		border:1px solid #ebebeb;}
-</style>
-</head>
-<body layadmin-themealias="default">
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">商品分类</span></div>
-		<div class="layui-card-body" style="padding:15px;">
-			<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
-			  	<ul class="layui-tab-title">
-				    <li class="layui-this">商品分类</li>
-				    <li>分类设置</li>
-			  	</ul>
-			  	<div class="layui-tab-content">
-				    <div class="layui-tab-item layui-show">
-				    	<div class="page-table-header">
-							<span class="pull-right"> 
-								<a href="<?php echo U('goods/addcategory', array('ok' => 1));?>" class="layui-btn  layui-btn-sm"><i class="fa fa-plus"></i> 添加分类</a>
-							</span>
-						</div>
-						
-						<form action="" method="post" class="layui-form" lay-filter="component-layui-form-item" enctype="multipart/form-data" >
-							<div class="dd" id="div_nestable">
-								<ol class="dd-list">
-
-									
-									<?php foreach( $category as $row ){ ?>
-									
-									<?php if( empty($row['pid']) ){ ?>
-									<li class="dd-item full" data-id="<?php echo ($row['id']); ?>">
-
-										<div class="dd-handle" >
-											[<input type="text" class="cate_sort" name="cate_sort" id="cate_sort_<?php echo ($row['id']); ?>" cate_id="<?php echo ($row['id']); ?>" value="<?php echo ($row['sort_order']); ?>" onchange="updateSort(this)"/>] <?php echo ($row['name']); ?>
-											<span class="pull-right">
-
-												<input type="checkbox" name="" lay-filter="enabledwsitch" data-href="<?php echo U('goods/category_enabled',array('id'=>$row['id']));?>" <?php if( $row['is_show']==1 ){ ?>checked<?php } ?> lay-skin="switch" lay-text="社区首页显示|社区首页隐藏">
-
-												<input type="checkbox" name="" lay-filter="enabledtypewsitch" data-href="<?php echo U('goods/category_typeenabled',array('id'=>$row['id']));?>" <?php if( $row['is_type_show']==1 ){ ?>checked<?php } ?> lay-skin="switch" lay-text="独立分类页显示|独立分类页隐藏">
-												
-												<!--<input type="checkbox" name="" lay-filter="enabledexpresswsitch" data-href="<?php echo U('goods/category_expressenabled',array('id'=>$row['id']));?>" <?php if( $row['is_express_show']==1 ){ ?>checked<?php } ?> lay-skin="switch" lay-text="仅快递商品页显示|仅快递商品页隐藏">	-->											
-													
-													
-													<a class='btn btn-default btn-sm btn-operation btn-op' data-toggle="ajaxModal" href="<?php echo U('goods/addcategory', array('pid' => $row['id'], 'ok' => 1));?>" title='' >
-														 <span data-toggle="tooltip" data-placement="top" title="" data-original-title="添加子分类">
-															添加子分类
-														 </span>
-													</a>
-													   <a class='btn btn-default btn-sm btn-operation btn-op' data-toggle="ajaxModal" href="<?php echo U('goods/addcategory', array('id' => $row['id'] , 'ok' => 1));?>"  >
-														   <span data-toggle="tooltip" data-placement="top"  data-original-title="修改">
-															修改
-															 </span>
-													   </a>
-													<a class='btn btn-default btn-sm btn-operation btn-op deldom'  href="javascript:;" data-href="<?php echo U('goods/category_delete', array('id' => $row['id']));?>" data-confirm='确认删除此分类吗?'>删除</a>
-														
-												</span>
-											</div>
-											
-											<?php if( count($children[$row['id']])>0 ){ ?>
-
-											<ol class="dd-list">
-												
-												<?php foreach( $children[$row['id']] as $child ){ ?>
-												<li class="dd-item full" data-id="<?php echo ($child['id']); ?>">
-													<div class="dd-handle" style="width:100%;">
-														<img src="{php echo tomedia($child['thumb']);}" width='30' height="30" onerror="$(this).remove()" style='padding:1px;border: 1px solid #ccc;float:left;' />&nbsp;&nbsp;&nbsp;&nbsp;
-														[<input type="text" class="cate_sort" name="cate_sort" id="cate_sort_<?php echo ($child['id']); ?>" cate_id="<?php echo ($child['id']); ?>" value="<?php echo ($child['sort_order']); ?>" onchange="updateSort(this)"/>] <?php echo ($child['name']); ?>
-														<span class="pull-right">
-																
-																<input type="checkbox" name="" lay-filter="enabledwsitch" data-href="<?php echo U('goods/category_enabled',array('id'=>$child['id']));?>" <?php if( $child['is_show']==1 ){ ?>checked<?php } ?> lay-skin="switch" lay-text="社区首页显示|社区首页隐藏">
-																<input type="checkbox" name="" lay-filter="enabledtypewsitch" data-href="<?php echo U('goods/category_typeenabled',array('id'=>$child['id']));?>" <?php if( $child['is_type_show']==1 ){ ?>checked<?php } ?> lay-skin="switch" lay-text="独立分类页显示|独立分类页隐藏">
-																<!--<input type="checkbox" name="" lay-filter="enabledexpresswsitch" data-href="<?php echo U('goods/category_expressenabled',array('id'=>$child['id']));?>" <?php if( $child['is_express_show']==1 ){ ?>checked<?php } ?> lay-skin="switch" lay-text="仅快递商品页显示|仅快递商品页隐藏">-->
-																
-																	<a class='btn btn-default btn-sm btn-operation btn-op' data-toggle="ajaxModal" href="<?php echo U('goods/addcategory', array('pid' => $child['id']));?>" title='添加子分类' >
-																	   <span data-toggle="tooltip" data-placement="top" title="" data-original-title="添加子分类">
-																		添加子分类
-																	   </span>
-																	</a>
-																    <a class='btn btn-default btn-sm btn-operation btn-op' data-toggle="ajaxModal" href="<?php echo U('goods/addcategory', array('id' => $child['id']));?>" title="修改" >
-																		  <span data-toggle="tooltip" data-placement="top" title="" data-original-title="修改">
-																				修改
-																		 </span>
-																	</a>
-																	<a class='btn btn-default btn-sm btn-operation btn-op deldom'  href="javascript:;" data-href="<?php echo U('goods/category_delete', array('id' => $child['id']));?>" data-confirm="确认删除此分类吗?">
-																	  <span data-toggle="tooltip" data-placement="top"  data-original-title="删除">
-																			删除
-																		</span>
-																	</a>
-																	
-															</span>
-														</div>
-														
-														<?php if( count($children[$child['id']])>0 ){ ?>
-
-														<ol class="dd-list" >
-															
-															<?php foreach( $children[$child['id']] as $third ){ ?>
-															<li class="dd-item full" data-id="<?php echo ($third['id']); ?>" style="width: 715px;">
-																<div class="dd-handle" style="width:100%;>
-																	<img src="{php echo tomedia($third['thumb']);}" width='30' height="30" onerror="$(this).remove()" style='padding:1px;border: 1px solid #ccc;float:left;' /> &nbsp;
-																	[<input type="text" class="cate_sort" name="cate_sort" id="cate_sort_<?php echo ($third['id']); ?>" cate_id="<?php echo ($third['id']); ?>" value="<?php echo ($third['sort_order']); ?>" onchange="updateSort(this)"/>] <?php echo ($third['name']); ?>
-																	<span class="pull-right" >
-																	
-																	<input type="checkbox" name="" lay-filter="enabledwsitch" data-href="<?php echo U('goods/category_enabled',array('id'=>$third['id']));?>" <?php if( $third['is_show']==1 ){ ?>checked<?php } ?> lay-skin="switch" lay-text="社区首页显示|社区首页隐藏">
-																	
-																	<input type="checkbox" name="" lay-filter="enabledtypewsitch" data-href="<?php echo U('goods/category_typeenabled',array('id'=>$third['id']));?>" <?php if( $third['is_type_show']==1 ){ ?>checked<?php } ?> lay-skin="switch" lay-text="独立分类页显示|独立分类页隐藏">
-																	<!--<input type="checkbox" name="" lay-filter="enabledexpresswsitch" data-href="<?php echo U('goods/category_expressenabled',array('id'=>$third['id']));?>" <?php if( $third['is_express_show']==1 ){ ?>checked<?php } ?> lay-skin="switch" lay-text="仅快递商品页显示|仅快递商品页隐藏">-->
-
-																		<a class='btn btn-default btn-sm btn-operation btn-op' href="<?php echo U('goods/addcategory', array('id' => $third['id']));?>" title="修改" >
-																		 <span data-toggle="tooltip" data-placement="top" title="" data-original-title="修改">
-																			<i class="icow icow-bianji2"></i>修改
-																			 </span>
-																		</a>
-																		<a class='btn btn-default btn-sm btn-operation btn-op deldom'  href="javascript:;" data-href="<?php echo U('goods/category_delete', array('id' => $third['id']));?>" data-confirm="确认删除此分类吗?">
-																			删除
-																		</a>
-																	</span>
-																</div>
-															</li>
-															<?php } ?>
-														</ol>
-														<?php } ?>
-													</li>
-													<?php } ?>
-												</ol>
-												<?php } ?>
-
-											</li>
-											<?php } ?>
-										<?php } ?>
-								</ol>
-								
-							</div>
-							
-						</form>
-				    </div>
-				    <div class="layui-tab-item">
-				    	<form action="" method="post" class="layui-form" lay-filter="component-layui-form-item" enctype="multipart/form-data" >
-							<div class="layui-form-item">
-			        			<label class="layui-form-label">显示底部菜单</label>
-			        			<div class="layui-input-block">
-		                            <input type='radio' name='parameter[is_show_cate_tabbar]' value='0' <?php if( empty($data) || $data['is_show_cate_tabbar'] ==0 ){ ?>checked <?php } ?> title="否" />
-		                            <input type='radio' name='parameter[is_show_cate_tabbar]' value='1' <?php if( !empty($data) && $data['is_show_cate_tabbar'] ==1 ){ ?>checked <?php } ?> title="是" />
-			        			</div>
-		                        <span class="layui-form-mid" style="margin-left: 35px;">控制具体某个分类页面,底部导航栏是否显示</span>
-			        		</div>
-			        		<div class="layui-form-item">
-								<label class="layui-form-label">首页文字分类</label>
-								<div class="layui-input-block">
-								  <input type="radio" name="parameter[hide_index_type]" value="1" title="隐藏" <?php if( !empty($data) && $data['hide_index_type']==1 ){ ?>checked <?php } ?> />
-								  <input type="radio" name="parameter[hide_index_type]" value="0" title="显示" <?php if( empty($data) || $data['hide_index_type']==0 ){ ?>checked <?php } ?> />
-								</div>
-							</div>
-							
-			        		<div class="layui-form-item">
-			        			<label class="layui-form-label"></label>
-			        			<div class="layui-input-block">
-			        				<input type="submit" value="提交" lay-submit lay-filter="formDemo" class="btn btn-primary" />
-			        			</div>
-			        		</div>
-		        		</form>
-				    </div>
-			  	</div>
-			</div>
-		</div>
-</div>
-</div>
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-var cur_open_div;
-
-layui.use(['jquery', 'layer','form', 'element'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  
-	form.on('radio(linktype)', function(data){
-		if (data.value == 2) {
-			$('#typeGroup').show();
-		} else {
-			$('#typeGroup').hide();
-		}
-	});  
-
-	form.on('switch(enabledwsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var s_value = 1;
-	  if(data.elem.checked)
-	  {
-		s_value = 1;
-	  }else{
-		s_value = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{enabled:s_value},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	});  
-	
-	form.on('switch(enabledtypewsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var s_value = 1;
-	  if(data.elem.checked)
-	  {
-		s_value = 1;
-	  }else{
-		s_value = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{enabled:s_value},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	});
-	
-	form.on('switch(enabledexpresswsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var s_value = 1;
-	  if(data.elem.checked)
-	  {
-		s_value = 1;
-	  }else{
-		s_value = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{enabled:s_value},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	});
-	
-	
-	$('.deldom').click(function(){
-		var s_url = $(this).attr('data-href');
-		layer.confirm($(this).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						success:function(info){
-						
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-	})
-	$('#chose_link').click(function(){
-		cur_open_div = $(this).attr('data-input');
-		$.post("<?php echo U('util.selecturl', array('ok' => 1));?>", {}, function(shtml){
-		 layer.open({
-			type: 1,
-			area: '930px',
-			content: shtml //注意,如果str是object,那么需要字符拼接。
-		  });
-		});
-	})
-		
-  //监听提交
-  	form.on('submit(formDemo)', function(data){
-	
-	 	$.ajax({
-			url: data.form.action,
-			type: data.form.method,
-			data: data.field,
-			dataType:'json',
-			success: function (info) {
-			  
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		});
-    	return false;
-  	});
-})
-</script> 
- 
- <script language='javascript'>
-	$(function () {
-
-		$('#btnExpand').click(function () {
-			var action = $(this).data('action');
-			if (action === 'expand') {
-				$('#div_nestable').nestable('collapseAll');
-				$(this).data('action', 'collapse').html('<i class="fa fa-angle-up"></i> 展开所有');
-
-			} else {
-				$('#div_nestable').nestable('expandAll');
-				$(this).data('action', 'expand').html('<i class="fa fa-angle-down"></i> 折叠所有');
-			}
-		})
-		var depth = <?php echo intval($_W['shopset']['category']['level']);?>;
-		if (depth <= 0) {
-			depth = 3;
-		}
-		
-
-		$('.dd-item').addClass('full');
-
-		$(".dd-handle a,.dd-handle div").mousedown(function (e) {
-
-			e.stopPropagation();
-		});
-		var $expand = false;
-		$('#nestableMenu').on('click', function (e)
-		{
-			if ($expand) {
-				$expand = false;
-				$('.dd').nestable('expandAll');
-			} else {
-				$expand = true;
-				$('.dd').nestable('collapseAll');
-			}
-		});
-
-		$('form').submit(function(){
-			var json = window.JSON.stringify($('#div_nestable').nestable("serialize"));
-			$(':input[name=datas]').val(json);
-		});
-
-	})
-
-	 function updateSort(obj){
-		var cate_id = $(obj).attr('cate_id');
-		var sort_order = $(obj).val();
-		 $.ajax({
-			 url: "<?php echo U('goods/update_catesort');?>",
-			 type: "post",
-			 data: {cate_id:cate_id,sort_order:sort_order},
-			 dataType:'json',
-			 success: function (info) {
-				 if(info.status == 1){
-					 var go_url = location.href;
-					 if( info.result.hasOwnProperty("url") )
-					 {
-						 go_url = info.result.url;
-					 }
-					 location.href = info.result.url;
-				 }else {
-					 layer.msg(info.result.message,{icon: 1,time: 2000});
-				 }
-			 }
-		 });
-	 }
- </script>
-</body>

+ 0 - 264
Runtime/Cache/Seller/b7a03974774151cb8244e9a83e1ba4d5.php

@@ -1,264 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-  window.sysinfo = {
-  <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-  
-  <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-  
-  <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-  
-  <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-  
-  'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-  
-  'siteroot': '<?php echo ($_W['siteroot']); ?>',
-    'siteurl': '<?php echo ($_W['siteurl']); ?>',
-    'attachurl': '<?php echo ($_W['attachurl']); ?>',
-    'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-    'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-    'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-    'cookie' : {'pre': ''},
-    'account' : <?php echo json_encode($_W['account']);?>,
-  };
-</script>
-
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-<link href="/static/css/snailfish.css" rel="stylesheet">
-  <link href="/static/css/szyV6.css" rel="stylesheet">
-</head>
-<body layadmin-themealias="default">
-<!-- 菜单组件 begin-->
-<div class="layadmin-tabsbody-item layui-show sub-nav-show">
-	<div class="sub-nav" style="width:125px">
-		<div class="nav-new wb-subnav  layui-this">
-			<div class="subnav-scene" style="font-size: 14px">
-				<?php echo ($menu['title']); ?>
-			</div>
-			<?php foreach($menu['items'] as $sub_menu){ ?>
-			<?php if( !empty($sub_menu['items']) ){ ?>
-
-			<div class="menu-header active">
-				<div class="menu-icon fa fa-caret-right layui-icon " style="color: #656161;">&#xe625;</div>
-				<div style="font-size: 13px;color: #656161;"> <?php echo ($sub_menu['title']); ?></div>
-			</div>
-			<?php }else{ ?>
-			<ul style="display:block;">
-				<li <?php if($perm_url == $sub_menu['route']){ ?>class="active"<?php } ?> data-class="active">
-				<a href="<?php echo U($sub_menu['route']);?>" style="display:block;cursor: pointer;font-size: 13px;color: #656161;"><?php echo ($sub_menu['title']); ?></a>
-				</li>
-			</ul>
-			<?php } ?>
-
-			<?php if( !empty($sub_menu['items']) ){ ?>
-			<ul style="display: block;">
-				<?php foreach($sub_menu['items'] as $third_sub_menu){ ?>
-				<li class="" data-class="active">
-					<a href="<?php echo U($third_sub_menu['route']);?>" style="display:block;cursor: pointer;"><cite style="font-size:12px;padding-left: 10px;" ><?php echo ($third_sub_menu['title']); ?></cite></a>
-				</li>
-				<?php } ?>
-			</ul>
-			<?php } ?>
-
-			<?php } ?>
-
-		</div>
-	</div>
-</div>
-<!-- 菜单组件end -->
-
-<div class="div-iframe">
-
-  <div class="layui-fluid">
-    <div class="layui-card">
-      <div class="layui-card layadmin-header" style="display:block;">
-        <div class="layui-breadcrumb" lay-filter="breadcrumb" style="visibility: visible;">
-          <a href="<?php echo U('application/index');?>">应用</a><span lay-separator="">/</span>
-          <a  href="<?php echo U('platformmobile/index');?>"><cite>平台手机端</cite></a><span lay-separator="">/</span>
-          <a href="<?php echo U('platformmobile/config');?>"><cite>设置</cite></a>
-        </div>
-      </div>
-      <!--- 内容开始 -->
-      <div class="layui-card-body" style="padding:15px;">
-        <form action="" method="post" class="layui-form" lay-filter="component-layui-form-item" enctype="multipart/form-data" >
-          <div class="layui-form-item">
-            <label class="layui-form-label">平台手机端</label>
-            <div class="layui-input-block">
-              <label class='radio-inline'>
-                <input type='radio' lay-filter="isopen_admin_managefront" name='isopen_admin_managefront' value='0' <?php if( empty($data) || $data['isopen_admin_managefront'] ==0 ){ ?>checked <?php } ?> title="关闭" />
-              </label>
-              <label class='radio-inline'>
-                <input type='radio' lay-filter="isopen_admin_managefront" name='isopen_admin_managefront' value='1' <?php if( !empty($data) && $data['isopen_admin_managefront'] ==1 ){ ?>checked <?php } ?> title="开启" />
-              </label>
-              <span class="help-block">
-              </span>
-            </div>
-          </div>
-
-          <div class="layui-form-item" id="open_div" <?php if( empty($data) || $data['isopen_admin_managefront'] ==0 ){ ?>style="display:none;" <?php } ?>>
-            <label class="layui-form-label">关联会员</label>
-            <div class="layui-input-block">
-              <div class="input-group " style="margin: 0;">
-                <input type="text" disabled value="" class="form-control valid" name="" placeholder="" id="agent_id">
-                <span class="input-group-btn">
-								<span data-input="#agent_id" id="chose_agent_id"  class="btn btn-default">选择会员</span>
-							</span>
-              </div>
-              <div class="input-group layui-word-aux">订单信息提示,平台用户下单后通知关联会员进行接单处理</div>
-              <?php if(!empty($user_list)){ ?>
-              <?php foreach( $user_list as $a ){ ?>
-              <div class="input-group mult_choose_member_id" data-member-id="<?php echo ($a['member_id']); ?>" style="border-radius: 0;float: left;margin: 10px;margin-left:0px;width: 22%;">
-                <div class="layadmin-text-center choose_user">
-                  <img style="" src="<?php echo ($a['avatar']); ?>">
-                  <div class="layadmin-maillist-img" style=""><?php echo ($a['nickname']); ?></div>
-                  <button type="button" class="layui-btn layui-btn-sm" onclick="cancle_bind(this)">
-                    <i class="layui-icon"></i>
-                  </button>
-                </div>
-              </div>
-              <?php }} ?>
-            </div>
-          </div>
-
-
-
-          <div class="layui-form-item">
-            <label class="layui-form-label"> </label>
-            <div class="layui-input-block">
-              <input type="submit" value="提交" lay-submit lay-filter="formDemo" class="btn btn-primary"  />
-              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-            </div>
-          </div>
-        </form>
-      </div>
-      <!--- 内容结束-->
-    </div>
-  </div>
-</div>
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-  layui.config({
-    base: '/layuiadmin/' //静态资源所在路径
-  }).extend({
-    index: 'lib/index' //主入口模块
-  }).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-var cur_open_div;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-
-    $('#chose_agent_id').click(function(){
-        cur_open_div = $(this).attr('data-input');
-        $.post("<?php echo U('user/zhenquery_many', array('template' => 'mult'));?>", {}, function(shtml){
-            layer.open({
-                type: 1,
-                area: '930px',
-                content: shtml //注意,如果str是object,那么需要字符拼接。
-            });
-        });
-    })
-
-
-    $('.sub-nav').css('height',  $(window).height() + 'px');
-
-    form.on('radio(isopen_admin_managefront)', function(data){
-        if ( data.value == 1 ) {
-            $('#open_div').show();
-        } else {
-            $('#open_div').hide();
-        }
-    });
-
-    //监听提交
-    form.on('submit(formDemo)', function(data){
-        var loadingIndex = layer.load(); // 加载中动画遮罩层(1)
-
-
-        var gd_ar = [];
-        var gd_str = '';
-        $('.mult_choose_member_id').each(function(){
-            gd_ar.push( $(this).attr('data-member-id') );
-        })
-        gd_str = gd_ar.join(',');
-
-        data.field.limit_user_list = gd_str;
-
-        $.ajax({
-            url: data.form.action,
-            type: data.form.method,
-            data: data.field,
-            dataType:'json',
-            success: function (info) {
-                layer.close(loadingIndex); // 提交成功失败都需要关闭
-                if(info.status == 0)
-                {
-                    layer.msg(info.result.message,{icon: 1,time: 2000});
-                    can_sub = true;
-                }else if(info.status == 1){
-                    var go_url = location.href;
-                    if( info.result.hasOwnProperty("url") )
-                    {
-                        go_url = info.result.url;
-                    }
-
-                    layer.msg('操作成功',{time: 1000,
-                        end:function(){
-
-                            location.href = go_url;
-                        }
-                    });
-                    can_sub = true;
-                }
-            }
-        });
-
-        return false;
-    });
-
-
-})
-
-function cancle_bind(obj)
-        {
-            $('#agent_id').val('');
-            $(obj).parent().parent().remove();
-        }
-</script>  
-</body>
-</html>

+ 0 - 524
Runtime/Cache/Seller/beebed8f850c8c8fe8fa2a8ea6b3917d.php

@@ -1,524 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-            window.sysinfo = {
-            <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-			
-            <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-			
-            'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-			
-            'siteroot': '<?php echo ($_W['siteroot']); ?>',
-                    'siteurl': '<?php echo ($_W['siteurl']); ?>',
-                    'attachurl': '<?php echo ($_W['attachurl']); ?>',
-                    'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-                    'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-                    'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-            'cookie' : {'pre': ''},
-            'account' : <?php echo json_encode($_W['account']);?>,
-            };
-        </script>
-		
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-  <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-   <link href="/static/css/snailfish.css" rel="stylesheet">
-</head>
-<body layadmin-themealias="default">
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">团长设置</span></div>
-		<div class="layui-card-body" style="padding:15px;">
-			<form action="" method="post" class="layui-form" lay-filter="component-layui-form-item" enctype="multipart/form-data" >
-			
-			<div class="layui-form-item">
-				<label class="layui-form-label">团长中心入口</label>
-				<div class="layui-input-block">
-					<label class='radio-inline'>
-						<input type='radio' lay-filter="community_money_type" name='data[close_community_index]' value='0' <?php if(empty($data) || $data['close_community_index'] ==0){ ?>checked <?php } ?> title="开启" /> 
-					</label>
-					<label class='radio-inline'>
-						<input type='radio' lay-filter="close_community_index" name='data[close_community_index]' value='1' <?php if(!empty($data) && $data['close_community_index'] ==1){ ?>checked <?php } ?> title="关闭" /> 
-					</label>
-				</div>
-			</div>
-		
-			<div class="layui-form-item">
-				<label class="layui-form-label">团长佣金类型</label>
-				<div class="layui-input-block">
-					<label class='radio-inline'>
-						<input type='radio' lay-filter="community_money_type" name='data[community_money_type]' value='0' <?php if(empty($data) || $data['community_money_type'] ==0){ ?>checked <?php } ?> title="比例" /> 
-					</label>
-					<label class='radio-inline'>
-						<input type='radio' lay-filter="community_money_type" name='data[community_money_type]' value='1' <?php if(!empty($data) && $data['community_money_type'] ==1){ ?>checked <?php } ?> title="金额" /> 
-					</label>
-					<div class="help-block">比例:团长可得佣金 = 商品最终的成交价格 * 比例%,  金额:团长可得佣金 = 设置金额</div>
-				</div>
-			</div>
-			<!--
-			<div class="layui-form-item">
-				<label class="layui-form-label">团长等级对应比例提成</label>
-				<div class="layui-input-block">
-					<label class='radio-inline'>
-						<input type='radio' lay-filter="community_level_rate_status" name='data[community_level_rate_status]' value='1' <?php if(!empty($data['community_level_rate_status']) || $data['community_level_rate_status'] == 1){ ?>checked <?php } ?> title="启用" />
-					</label>
-					<label class='radio-inline'>
-						<input type='radio' lay-filter="community_level_rate_status" name='data[community_level_rate_status]' value='0' <?php if(empty($data['community_level_rate_status']) && $data['community_level_rate_status'] ==0){ ?>checked <?php } ?> title="不启用" />
-					</label>
-					<div class="help-block">启用后,请务必到团长等级设置相应的比例,不同团长属于不同团长等级,对应不同的提成比例。不启用,则使用下方的团长提成比例,商品编辑如有设置独立比例,独立优先。</div>
-				</div>
-
-			</div>-->
-		
-		<div class="layui-form-item">
-            <label class="layui-form-label">团长提成启用团长等级对应提成比例</label>
-            <div class="layui-input-block">
-                <label class='radio-inline'>
-                    <input type='radio' name='data[is_head_takegoods]' lay-filter="is_head_takegoods" value='1' <?php if( !empty($data) && isset($data['is_head_takegoods']) && $data['is_head_takegoods'] ==1 ){ ?>checked <?php } ?> title="启用" /> 
-                </label>
-                <label class='radio-inline'>
-                    <input type='radio' name='data[is_head_takegoods]' lay-filter="is_head_takegoods" value='0' <?php if( empty($data) || !isset($data['is_head_takegoods']) || $data['is_head_takegoods'] ==0 ){ ?>checked <?php } ?> title="不启用" /> 
-                </label>
-				<br/>
-				<div class="help-block" id='head_money_explain' <?php if( !empty($data) && $data['is_head_takegoods'] == 1 ){ ?> style="display:block;"<?php }else{ ?> style="display:none;"<?php } ?> >启用时,使用“团长等级”里设置的提成比例,<span style="color:red">请务必到“团长等级”设置具体提成比例。如需商品独立提成,请到商品编辑页面勾选独立团长提成相关设置。</span>
-				</div>	
-				
-            </div>
-        </div>
-			
-		<div class="layui-form-item" id='head_money_type' <?php if( !empty($data) && $data['is_head_takegoods'] == 1 ){ ?> style="display:none;"<?php }else{ ?> style="display:block;"<?php } ?>>
-			<label class="layui-form-label" >
-			
-			</label>
-			<div class="layui-input-block fixmore-input-group">
-				<div class="layui-form-label" id="ti_name">
-					<?php if(empty($data) || $data['community_money_type'] ==0){ ?>团长提成比例 <?php } ?>
-					<?php if(!empty($data) && $data['community_money_type'] ==1){ ?>团长提成金额 <?php } ?>
-				</div>
-
-				<div class="input-group">
-
-					<input type="text"  lay-verify="number" name="data[default_comunity_money]" class="form-control valid" value="<?php echo empty($data['default_comunity_money'])?0:$data['default_comunity_money'];?>" />
-					<span class="input-group-addon" id="danwei"><?php if(empty($data) || $data['community_money_type'] ==0){ ?>% <?php } if(!empty($data) && $data['community_money_type'] ==1){ ?>元 <?php } ?></span>
-				</div>
-				<div class="help-block" style="padding-left: 160px;" id="dan_notice"><?php if(empty($data) || $data['community_money_type'] ==0){ ?>预计团长可得佣金 = 商品最终的成交价格 * 比例% <?php } if(!empty($data) && $data['community_money_type'] ==1){ ?>预计团长可得佣金 = 商品总数量 * 固定金额<?php } ?></div>
-			</div>
-		</div>
-		
-		<div class="layui-form-item">
-			<label class="layui-form-label">社区距离限制</label>
-			<div class="layui-input-block fixmore-input-group">
-				<div class="input-group">
-					<input type="text" name="data[default_comunity_limit_mile]" class="form-control valid" value="<?php echo empty($data['default_comunity_limit_mile'])?0:$data['default_comunity_limit_mile'];?>"  lay-verify="number" />
-					<span class="input-group-addon">公里 </span>
-				</div>
-				<div class="help-block">社区列表限制某个距离内显示, 0代表不限制</div>	
-			</div>
-		</div>
-		
-		<div class="layui-form-item">
-			<label class="layui-form-label">推荐现金奖励:</label>
-			<div class="layui-input-block fixmore-input-group">
-				<div class="input-group">
-					<input type="text" name="data[zhi_tui_reward_money]" class="form-control valid" value="<?php echo empty($data['zhi_tui_reward_money'])?0:$data['zhi_tui_reward_money'];?>" />
-					<span class="input-group-addon">元 </span>
-				</div>
-				<div class="help-block">被推荐团长审核后,发放奖励到推荐人的团长账户余额中</div>	
-			</div>
-		</div>
-		
-		<div class="layui-form-item">
-            <label class="layui-form-label">前端添加核销会员</label>
-            <div class="layui-input-block">
-                <label class='radio-inline'>
-                    <input type='radio' name='data[open_community_addhexiaomember]' value='0' <?php if( !empty($data) && $data['open_community_addhexiaomember'] ==0 ){ ?>checked <?php } ?> title="关闭" /> 
-                </label>
-                <label class='radio-inline'>
-                    <input type='radio' name='data[open_community_addhexiaomember]' value='1' <?php if( empty($data) || $data['open_community_addhexiaomember'] ==1 ){ ?>checked <?php } ?> title="开启" /> 
-                </label>
-            </div>
-        </div>
-		
-		<div class="layui-form-item">
-            <label class="layui-form-label">前端显示详细地址</label>
-            <div class="layui-input-block">
-                <label class='radio-inline'>
-                    <input type='radio' name='data[index_hide_headdetail_address]' value='0' <?php if( empty($data) || $data['index_hide_headdetail_address'] ==0 ){ ?>checked <?php } ?> title="显示" /> 
-                </label>
-                <label class='radio-inline'>
-                    <input type='radio' name='data[index_hide_headdetail_address]' value='1' <?php if( !empty($data) && $data['index_hide_headdetail_address'] ==1 ){ ?>checked <?php } ?> title="隐藏" /> 
-                </label>
-            </div>
-        </div>
-		
-		<div class="layui-form-item">
-            <label class="layui-form-label">模板消息--新订单通知</label>
-            <div class="layui-input-block">
-                <label class='radio-inline'>
-                    <input type='radio' name='data[template_order_success_notice]' value='0' <?php if( empty($data) || $data['template_order_success_notice'] ==0 ){ ?>checked <?php } ?> title="关闭" /> 
-                </label>
-                <label class='radio-inline'>
-                    <input type='radio' name='data[template_order_success_notice]' value='1' <?php if( !empty($data) && $data['template_order_success_notice'] ==1 ){ ?>checked <?php } ?> title="开启" /> 
-                </label>
-            </div>
-        </div>
-		
-		<div class="layui-form-item">
-            <label class="layui-form-label">显示团长等级</label>
-            <div class="layui-input-block">
-                <label class='radio-inline'>
-                    <input type='radio' name='data[is_show_head_level]' value='0' <?php if( empty($data) || $data['is_show_head_level'] ==0 ){ ?>checked <?php } ?> title="隐藏" /> 
-                </label>
-                <label class='radio-inline'>
-                    <input type='radio' name='data[is_show_head_level]' value='1' <?php if( !empty($data) && $data['is_show_head_level'] ==1 ){ ?>checked <?php } ?> title="显示" /> 
-                </label>
-            </div>
-        </div>
-		
-
-		
-		
-		<div class="layui-form-item" class="head_level_chose">
-            <label class="layui-form-label">团长分销级数</label>
-            <div class="layui-input-block">
-                <label class='radio-inline'>
-                    <input type='radio' title="关闭"  class="radi" name='data[open_community_head_leve]' value='0' <?php if( empty($data) || $data['open_community_head_leve'] ==0 ){ ?>checked <?php } ?> /> 
-                </label>
-                <label class='radio-inline'>
-                    <input type='radio' class="radi" name='data[open_community_head_leve]' value='1' <?php if( !empty($data) && $data['open_community_head_leve'] ==1 ){ ?>checked <?php } ?> title="1级" /> 
-                </label>
-                <label class='radio-inline'>
-                    <input type='radio' class="radi" name='data[open_community_head_leve]' value='2' <?php if( !empty($data) && $data['open_community_head_leve'] ==2 ){ ?>checked <?php } ?> title="2级" /> 
-                </label>
-                <label class='radio-inline'>
-                    <input type='radio' class="radi" name='data[open_community_head_leve]' value='3' <?php if( !empty($data) && $data['open_community_head_leve'] ==3 ){ ?>checked <?php } ?> title="3级" /> 
-                </label>
-            </div>
-        </div>
-		
-		
-		<div class="layui-form-item community_head_commiss1" <?php if( !empty($data) && $data['open_community_head_leve'] >= 1 ){ ?> style="display:block;"<?php }else{ ?> style="display:none;"<?php } ?> >
-			<label class="layui-form-label">1级:</label>
-			<div class="layui-input-block fixmore-input-group">
-				<div class="input-group">
-					<input type="text" name="data[community_head_commiss1]" class="form-control valid" value="<?php echo empty($data['community_head_commiss1'])?0:$data['community_head_commiss1'];?>" />
-					<span class="input-group-addon">% </span>
-				</div>
-				<div class="help-block">1级提成比例</div>	
-			</div>
-		</div>
-		<div class="layui-form-item community_head_commiss2" <?php if( !empty($data) && $data['open_community_head_leve'] >= 2 ){ ?> style="display:block;"<?php }else{ ?> style="display:none;"<?php } ?>>
-			<label class="layui-form-label">2级:</label>
-			<div class="layui-input-block fixmore-input-group">
-				<div class="input-group">
-					<input type="text" name="data[community_head_commiss2]" class="form-control valid" value="<?php echo empty($data['community_head_commiss2'])?0:$data['community_head_commiss2'];?>" />
-					<span class="input-group-addon">% </span>
-				</div>
-				<div class="help-block">2级提成比例</div>	
-			</div>
-		</div>
-		<div class="layui-form-item community_head_commiss3" <?php if( !empty($data) && $data['open_community_head_leve'] >= 3 ){ ?> style="display:block;"<?php }else{ ?> style="display:none;"<?php } ?>>
-			<label class="layui-form-label">3级:</label>
-			<div class="layui-input-block fixmore-input-group">
-				<div class="input-group">
-					<input type="text" name="data[community_head_commiss3]" class="form-control valid" value="<?php echo empty($data['community_head_commiss3'])?0:$data['community_head_commiss3'];?>" />
-					<span class="input-group-addon">% </span>
-				</div>
-				<div class="help-block">3级提成比例</div>	
-			</div>
-		</div>
-		
-		<div class="layui-form-item">
-            <label class="layui-form-label">团长申请页面内容</label>
-            <div class="layui-input-block fixmore-input-group">
-                <div class="">
-                    <?php echo tpl_ueditor('data[communityhead_apply_page]',$data['communityhead_apply_page'],array('height'=>'300'));?>
-                </div>
-            </div>
-        </div>
-		
-		
-		
-		        <div class="layui-form-item">
-		            <label class="layui-form-label">团长申请开关</label>
-		            <div class="layui-input-block">
-		                <label class='radio-inline'>
-		                    <input type='radio' name='data[close_community_apply_enter]' value='0' <?php if(!empty($data) && $data['close_community_apply_enter'] ==0){ ?>checked <?php } ?> title="开启" /> 
-		                </label>
-		                <label class='radio-inline'>
-		                    <input type='radio' name='data[close_community_apply_enter]' value='1' <?php if( empty($data) || $data['close_community_apply_enter'] ==1 ){ ?>checked <?php } ?> title="关闭" /> 
-		                </label>
-		            </div>
-		        </div>
-
-				<div class="layui-form-item">
-					<label class="layui-form-label">前端微信号字段自定义</label>
-					<div class="layui-input-block">
-						<input type="text" class="form-control valid" name="data[wechat_div]" style="width: 200px;" value="<?php echo ($data[wechat_div]); ?>">
-					</div>
-				</div>
-		
-		
-		        <div class="layui-form-item">
-		            <label class="layui-form-label">团长休息开关</label>
-		            <div class="layui-input-block">
-		                <label class='radio-inline'>
-		                    <input type='radio' name='data[close_community_reset_btn]' value='0' <?php if( !empty($data) && $data['close_community_reset_btn'] ==0 ){ ?>checked <?php } ?> title="开启" /> 
-		                </label>
-		                <label class='radio-inline'>
-		                    <input type='radio' name='data[close_community_reset_btn]' value='1' <?php if( empty($data) || $data['close_community_reset_btn'] ==1 ){ ?>checked <?php } ?> title="关闭" /> 
-		                </label>
-		            </div>
-		        </div>
-				
-				
-		        <div class="layui-form-item">
-		            <label class="layui-form-label">社区用户待核销</label>
-		            <div class="layui-input-block">
-		                <label class='radio-inline'>
-		                    <input type='radio' name='data[close_community_delivery_orders]' value='0' <?php if( empty($data) || $data['close_community_delivery_orders'] ==0 ){ ?> checked <?php } ?> title="开启" /> 
-		                </label>
-		                <label class='radio-inline'>
-		                    <input type='radio' name='data[close_community_delivery_orders]' value='1' <?php if( !empty($data) && $data['close_community_delivery_orders'] ==1 ){ ?> checked <?php } ?> title="关闭" /> 
-		                </label>
-		            </div>
-		        </div>
-				
-				
-				<div class="layui-form-item">
-		            <label class="layui-form-label">单团长模式</label>
-		            <div class="layui-input-block">
-		                <label class='radio-inline'>
-		                    <input type='radio' name='data[open_danhead_model]' value='0' <?php if( empty($data) || $data['open_danhead_model'] ==0 ){ ?>checked <?php } ?> title="关闭" /> 
-		                </label>
-		                <label class='radio-inline'>
-		                    <input type='radio' name='data[open_danhead_model]' value='1' <?php if( !empty($data) && $data['open_danhead_model'] ==1 ){ ?>checked <?php } ?> title="开启" /> 
-		                </label>
-						
-						<div class="help-block" style="color: #a94442;">
-							开启单团长模式后,小程序端只有一个默认的团长(<strong>务必</strong>前往团长列表,选择默认团长),不能切换其他团长
-						</div>	
-		            </div>
-					
-		        </div>
-
-
-				<div class="layui-form-item">
-					<label class="layui-form-label">前台团长排行</label>
-					<div class="layui-input-block">
-						<label class='radio-inline'>
-							<input type='radio' name='data[is_show_community_ranking]' value='0' <?php if( empty($data) || $data['is_show_community_ranking'] ==0 ){ ?>checked <?php } ?> title="不显示" />
-						</label>
-						<label class='radio-inline'>
-							<input type='radio' name='data[is_show_community_ranking]' value='1' <?php if( !empty($data) && $data['is_show_community_ranking'] ==1 ){ ?>checked <?php } ?> title="显示" />
-						</label>
-					</div>
-				</div>
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label"> </label>
-					<div class="layui-input-block">
-						<input type="submit" value="提交" lay-submit lay-filter="formDemo" class="btn btn-primary"  />
-						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-						<a class="btn btn-default" style='margin-left:10px;display:none;' href="<?php echo U('config/configindex.notice',array('ok'=>'1'));?>">返回列表</a>
-						
-					</div>
-				</div>
-			</form>
-		</div>
-</div>
-</div>
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-var cur_open_div;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  
-	form.on('radio(community_money_type)', function(data){
-		if (data.value == 0) {
-			$('#danwei').html('%');
-			$('#dan_notice').html('预计团长可得佣金 = 商品最终的成交价格 * 比例%');
-			$('#ti_name').html('团长提成比例');
-		} else {
-			$('#danwei').html('元');
-			$('#dan_notice').html('预计团长可得佣金 = 商品总数量 * 固定金额');
-			$('#ti_name').html('团长提成金额');
-		}
-	});
-
-
-
-	form.on('radio(is_head_takegoods)', function(data){
-		if (data.value == 0) {
-			$('#head_money_type').show();
-			$('#head_money_explain').hide();
-			
-		} else {
-			$('#head_money_type').hide();
-			$('#head_money_explain').show();
-			
-		}
-	});
-
-
-
-	form.on('radio(community_level_rate_status111)', function(data){
-		var type = $('input[name="data[community_money_type]"]:checked').val();
-		var type_txt = "提成比例";
-		if(type == 1){
-			type_txt = "固定金额";
-		}
-		var content = "启用后,请务必到团长等级设置相应的"+type_txt+"!!!";
-		if (data.value == 1) {
-			layer.confirm(content, {
-				area:['450px','160px'],
-				btn: ['知道了'] //按钮
-			}, function(){
-				layer.closeAll();
-			});
-		}
-	});
-	
-	form.on('radio(linktype)', function(data){
-		if (data.value == 2) {
-			$('#typeGroup').show();
-		} else {
-			$('#typeGroup').hide();
-		}
-	});  
-
-	
-	$('#chose_link').click(function(){
-		cur_open_div = $(this).attr('data-input');
-		$.post("<?php echo U('util.selecturl', array('ok' => 1));?>", {}, function(shtml){
-		 layer.open({
-			type: 1,
-			area: '930px',
-			content: shtml //注意,如果str是object,那么需要字符拼接。
-		  });
-		});
-	})
-		
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-})
-
-
-
-</script>  
-
-<script>
-$(function(){
-	
-	$('.radi').click(function(){
-		var open_community_head_leve = $(this).val();
-		
-		if( open_community_head_leve == 0 )
-		{
-			$('.community_head_commiss1').hide();
-			$('.community_head_commiss2').hide();
-			$('.community_head_commiss3').hide();
-		}else if( open_community_head_leve == 1 ){
-			$('.community_head_commiss1').show();
-			$('.community_head_commiss2').hide();
-			$('.community_head_commiss3').hide();
-		}else if(open_community_head_leve == 2){
-			$('.community_head_commiss1').show();
-			$('.community_head_commiss2').show();
-			$('.community_head_commiss3').hide();
-		}else if(open_community_head_leve == 3){
-			$('.community_head_commiss1').show();
-			$('.community_head_commiss2').show();
-			$('.community_head_commiss3').show();
-		}
-		
-	})
-	
-	$('#clear_member_qrcode').click(function(){
-		$.ajax({
-			url:"<?php echo U('distribution/clear_user_member_qrcode');?>",
-			type:'get',
-			dataType:'json',
-			success:function(){
-				tip.msgbox.suc('清空成功');
-			}
-		})
-	})
-	
-})
-</script>
-</body>

+ 0 - 426
Runtime/Cache/Seller/bfd63cf22766f2c8428aeb5a16720709.php

@@ -1,426 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-            window.sysinfo = {
-            <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-			
-            <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-			
-            'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-			
-            'siteroot': '<?php echo ($_W['siteroot']); ?>',
-                    'siteurl': '<?php echo ($_W['siteurl']); ?>',
-                    'attachurl': '<?php echo ($_W['attachurl']); ?>',
-                    'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-                    'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-                    'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-            'cookie' : {'pre': ''},
-            'account' : <?php echo json_encode($_W['account']);?>,
-            };
-        </script>
-		
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-	<script type="text/javascript" src="./resource/components/colpick/colpick.js"></script>
-  <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-   <link href="/static/css/snailfish.css" rel="stylesheet">
-	<link href="./resource/components/colpick/colpick.css" rel="stylesheet">
-</head>
-<body layadmin-themealias="default">
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">小程序tabbar设置</span></div>
-		<div class="layui-card-body" style="padding:15px;">
-			<form action="" method="post" class="layui-form" lay-filter="component-layui-form-item" enctype="multipart/form-data" >
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label">首页标题</label>
-					<div class="layui-input-block">
-						<input type="text" name="parameter[wepro_tabbar_text1]" class="layui-input" value="<?php echo ($data['wepro_tabbar_list']['t1']); ?>" />
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label">未选中图标</label>
-					<div class="layui-input-block">
-						<?php echo tpl_form_field_image2('parameter[wepro_tabbar_iconPath1]', $data['wepro_tabbar_list']['i1']);?>
-						<span class="layui-form-mid">此图为导航栏未选中状态图标,尺寸为81*81</span>
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label">选中图标</label>
-					<div class="layui-input-block">
-						<?php echo tpl_form_field_image2('parameter[wepro_tabbar_selectedIconPath1]', $data['wepro_tabbar_list']['s1']);?>
-						<span class="layui-form-mid">此图为导航栏选中状态图标,尺寸为81*81</span>
-					</div>
-				</div>
-				<hr>
-				<div class="layui-form-item">
-					<label class="layui-form-label">分类标题</label>
-					<div class="layui-input-block">
-						<input type="text" name="parameter[wepro_tabbar_text4]" class="layui-input" value="<?php echo ($data['wepro_tabbar_list']['t4']); ?>" />
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label">未选中图标</label>
-					<div class="layui-input-block">
-						<?php echo tpl_form_field_image2('parameter[wepro_tabbar_iconPath4]', $data['wepro_tabbar_list']['i4']);?>
-						<span class="layui-form-mid">此图为导航栏未选中状态图标,尺寸为81*81</span>
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label">选中图标</label>
-					<div class="layui-input-block">
-						<?php echo tpl_form_field_image2('parameter[wepro_tabbar_selectedIconPath4]', $data['wepro_tabbar_list']['s4']);?>
-						<span class="layui-form-mid">此图为导航栏选中状态图标,尺寸为81*81</span>
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label">是否开启分类</label>
-					<div class="layui-input-block">
-						<label class='radio-inline'>
-							<input type='radio' name='parameter[open_tabbar_type]' title="关闭" value='0' <?php if( !empty($data) && $data['open_tabbar_type'] ==0 ){ ?>checked <?php } ?> />
-						</label>
-						<label class='radio-inline'>
-							<input type='radio' name='parameter[open_tabbar_type]' title="开启" value='1' <?php if( empty($data) || $data['open_tabbar_type'] ==1 ){ ?>checked <?php } ?> />
-						</label>
-					</div>
-				</div>
-				<hr>
-				<div class="layui-form-item">
-					<label class="layui-form-label">外部跳转标题</label>
-					<div class="layui-input-block">
-						<input type="text" name="parameter[wepro_tabbar_text5]" class="layui-input" value="<?php echo ($data['wepro_tabbar_list']['t5']); ?>" />
-					</div>
-				</div>
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label">链接类型</label>
-					<div class="layui-input-block">
-						<label class='radio-inline'>
-							<input type='radio' name='parameter[tabbar_out_type]' title="本小程序链接" lay-filter="linktype" value="1" <?php if( $data['tabbar_out_type']==1 || empty($data) ){ ?>checked<?php } ?> /> 
-						</label>
-						<label class='radio-inline'>
-							<input type='radio' name='parameter[tabbar_out_type]' title="webview外链" lay-filter="linktype" value="0" <?php if( $data['tabbar_out_type']==0 && !empty($data) ){ ?>checked<?php } ?> /> 
-						</label>
-						<label class='radio-inline'>
-							<input type='radio' name='parameter[tabbar_out_type]' title="外部小程序链接" lay-filter="linktype" value="2" <?php if( $data['tabbar_out_type']==2 && !empty($data) ){ ?>checked<?php } ?> />
-						</label>
-						<label class='radio-inline'>
-							<input type='radio' name='parameter[tabbar_out_type]' title="拼团" lay-filter="linktype" value="3" <?php if( $data['tabbar_out_type']==3 && !empty($data )){ ?>checked<?php } ?> />
-						</label>
-						<label class='radio-inline'>
-							<input type='radio' name='parameter[tabbar_out_type]' title="菜谱" lay-filter="linktype" value="4" <?php if( $data['tabbar_out_type']==4 && !empty($data) ){ ?>checked<?php } ?> />
-						</label>
-						<label class='radio-inline'>
-							<input type='radio' name='parameter[tabbar_out_type]' title="视频列表" lay-filter="linktype" value="5" <?php if( $data['tabbar_out_type']==5 && !empty($data) ){ ?>checked<?php } ?> />
-						</label>
-						<label class='radio-inline'>
-							<input type='radio' name='parameter[tabbar_out_type]' title="群接龙" lay-filter="linktype" value="6" <?php if( $data['tabbar_out_type']==6 && !empty($data) ){ ?>checked<?php } ?> />
-						</label>
-						<label class='radio-inline'>
-							<input type='radio' name='parameter[tabbar_out_type]' title="直播列表" lay-filter="linktype" value="7" <?php if( $data['tabbar_out_type']==7 && !empty($data) ){ ?>checked<?php } ?> />
-						</label>
-						<label class='radio-inline'>
-							<input type='radio' name='parameter[tabbar_out_type]' title="商城" lay-filter="linktype" value="8" <?php if( $data['tabbar_out_type']==8 && !empty($data) ){ ?>checked<?php } ?> />
-						</label>
-						<label class='radio-inline'>
-							<input type='radio' name='parameter[tabbar_out_type]' title="预售" lay-filter="linktype" value="8" <?php if( $data['tabbar_out_type']==9 && !empty($data) ){ ?>checked<?php } ?> />
-						</label>
-					</div>
-				</div>
-				
-				<div class="layui-form-item" id="appidGroup" style="<?php if( $data['tabbar_out_type']!=2 ){ ?>display: none;<?php } ?>">
-					<label class="layui-form-label">跳转小程序appID</label>
-					<div class="layui-input-block">
-						<input type="text" name="parameter[tabbar_out_appid]" class="layui-input" value="<?php echo ($data['tabbar_out_appid']); ?>" />
-					</div>
-				</div> 
-				<div class="layui-form-item" id="linkGroup" style="<?php if( $data['tabbar_out_type']==3 || $data['tabbar_out_type']==4 || $data['tabbar_out_type']==5 || $data['tabbar_out_type']==6 || $data['tabbar_out_type']==7 || $data['tabbar_out_type']==8){ ?>display: none;<?php } ?>">
-					<label class="layui-form-label">跳转链接</label>
-					<div class="layui-input-block">
-						<!-- <input type="text" name="parameter[tabbar_out_link]" class="layui-input" value="<?php echo ($data['tabbar_out_link']); ?>" /> -->
-						
-						<div class="input-group" style="margin: 0;">
-							<input type="text" value="<?php echo ($data['tabbar_out_link']); ?>" class="form-control valid" name="parameter[tabbar_out_link]" placeholder="" id="advlink">
-							<span class="input-group-btn">
-								<span data-input="#advlink" id="chose_link" data-toggle="selectUrl" class="btn btn-default">选择链接</span>
-							</span>
-						</div>
-						<!-- <input type="text" name="parameter[tabbar_out_link]" class="layui-input" value="<?php echo ($data['tabbar_out_link']); ?>" /> -->
-						
-					</div>
-				</div>
-				
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label">未选中图标</label>
-					<div class="layui-input-block">
-						<?php echo tpl_form_field_image2('parameter[wepro_tabbar_iconPath5]', $data['wepro_tabbar_list']['i5']);?>
-						<span class="layui-form-mid">此图为导航栏未选中状态图标,尺寸为81*81</span>
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label">选中图标</label>
-					<div class="layui-input-block">
-						<?php echo tpl_form_field_image2('parameter[wepro_tabbar_selectedIconPath5]', $data['wepro_tabbar_list']['s5']);?>
-						<span class="layui-form-mid">此图为导航栏选中状态图标,尺寸为81*81</span>
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label">是否开启跳转按钮</label>
-					<div class="layui-input-block">
-						<label class='radio-inline'>
-							<input type='radio' name='parameter[open_tabbar_out_weapp]' title="关闭" value='0' <?php if( !empty($data) && $data['open_tabbar_out_weapp'] ==0 ){ ?>checked <?php } ?> /> 
-						</label>
-						<label class='radio-inline'>
-							<input type='radio' name='parameter[open_tabbar_out_weapp]' title="开启" value='1' <?php if( empty($data) || $data['open_tabbar_out_weapp'] ==1 ){ ?>checked <?php } ?> /> 
-						</label>
-					</div>
-				</div>
-				<hr>
-				<div class="layui-form-item">
-					<label class="layui-form-label">购物车标题</label>
-					<div class="layui-input-block">
-						<input type="text" name="parameter[wepro_tabbar_text2]" class="layui-input" value="<?php echo ($data['wepro_tabbar_list']['t2']); ?>" />
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label">未选中图标</label>
-					<div class="layui-input-block">
-						<?php echo tpl_form_field_image2('parameter[wepro_tabbar_iconPath2]', $data['wepro_tabbar_list']['i2']);?>
-						<span class="layui-form-mid">此图为导航栏未选中状态图标,尺寸为81*81</span>
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label">选中图标</label>
-					<div class="layui-input-block">
-						<?php echo tpl_form_field_image2('parameter[wepro_tabbar_selectedIconPath2]', $data['wepro_tabbar_list']['s2']);?>
-						<span class="layui-form-mid">此图为导航栏选中状态图标,尺寸为81*81</span>
-					</div>
-				</div>
-				<hr>
-				<div class="layui-form-item">
-					<label class="layui-form-label">个人中心标题</label>
-					<div class="layui-input-block">
-						<input type="text" name="parameter[wepro_tabbar_text3]" class="layui-input" value="<?php echo ($data['wepro_tabbar_list']['t3']); ?>" />
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label">未选中图标</label>
-					<div class="layui-input-block">
-						<?php echo tpl_form_field_image2('parameter[wepro_tabbar_iconPath3]', $data['wepro_tabbar_list']['i3']);?>
-						<span class="layui-form-mid">此图为导航栏未选中状态图标,尺寸为81*81</span>
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label">选中图标</label>
-					<div class="layui-input-block">
-						<?php echo tpl_form_field_image2('parameter[wepro_tabbar_selectedIconPath3]', $data['wepro_tabbar_list']['s3']);?>
-						<span class="layui-form-mid">此图为导航栏选中状态图标,尺寸为81*81</span>
-					</div>
-				</div>
-				
-				
-				<div class="layui-form-item" >
-					<label class="layui-form-label">选中字体颜色</label>
-					<div class="layui-input-block">
-						<div class="" style="margin:0px;">
-							<div class="layui-input-inline" style="width: 120px;">
-							  <input type="text" name="parameter[wepro_tabbar_selectedColor]" value="<?php echo ($data['wepro_tabbar_selectedColor']); ?>" placeholder="请选择颜色" class="layui-input" id="test-colorpicker-form-input">
-							</div>
-							<div class="layui-inline" style="left: -11px;">
-							  <div id="minicolors">
-								  <div class="layui-unselect layui-colorpicker"><span><span class="layui-colorpicker-trigger-span" lay-type="" style="background: <?php echo ($data['wepro_tabbar_selectedColor']); ?>"><i class="layui-icon layui-colorpicker-trigger-i layui-icon-down"></i></span></span></div>
-							  </div>
-							</div>
-						  </div>
-						<span class='layui-form-mid'>颜色值,有效值为十六进制颜色。默认色值:<font color="#F75451">#F75451</font></span>
-					</div>
-				</div>
-
-				<div class="layui-form-item" >
-					<label class="layui-form-label">背景颜色</label>
-					<div class="layui-input-block">
-						<div class="" style="margin:0px;">
-							<div class="layui-input-inline" style="width: 120px;">
-							  <input type="text" name="parameter[wepro_tabbar_bgColor]" value="<?php echo ($data['wepro_tabbar_bgColor']); ?>" placeholder="请选择颜色" class="layui-input" id="test-colorpicker-form-input2">
-							</div>
-							<div class="layui-inline" style="left: -11px;">
-							  <div id="minicolors2">
-								  <div class="layui-unselect layui-colorpicker"><span><span class="layui-colorpicker-trigger-span" lay-type="" style="background: <?php echo ($data['wepro_tabbar_bgColor']); ?>"><i class="layui-icon layui-colorpicker-trigger-i layui-icon-down"></i></span></span></div>
-							  </div>
-							</div>
-						  </div>
-						<span class='layui-form-mid'>颜色值,有效值为十六进制颜色。默认色值:#FFFFFF</span>
-					</div>
-				</div>
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label"> </label>
-					<div class="layui-input-block">
-					
-						<input type="hidden" name="wepro_tabbar_version" value="<?php if( !empty($data['wepro_tabbar_version']) ){ echo $data['wepro_tabbar_version']+1; }else{ ?>0<?php } ?>">
-						
-						<input type="submit" value="提交" lay-submit lay-filter="formDemo" class="btn btn-primary"  />
-					</div>
-				</div>
-			</form>
-		</div>
-</div>
-</div>
-
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-
-	var wepro_tabbar_selectedColor = '<?php echo ($data["wepro_tabbar_selectedColor"]); ?>';
-	$('#minicolors').colpick({
-		submit:true,
-		color: wepro_tabbar_selectedColor,
-		onSubmit: function(color,color2){
-			$('#test-colorpicker-form-input').val('#'+color2);
-			$('#minicolors').find('.layui-colorpicker-trigger-span').css('background','#'+color2);
-			$('.colpick_full').hide();
-		}
-	});
-
-	var wepro_tabbar_bgColor = '<?php echo ($data["wepro_tabbar_bgColor"]); ?>';
-	$('#minicolors2').colpick({
-		submit:true,
-		color: wepro_tabbar_bgColor,
-		onSubmit: function(color,color2){
-			$('#test-colorpicker-form-input2').val('#'+color2);
-			$('#minicolors2').find('.layui-colorpicker-trigger-span').css('background','#'+color2);
-			$('.colpick_full').hide();
-		}
-	});
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer','form','colorpicker'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  
-  
-  	var colorpicker = layui.colorpicker;
-  
-    //表单赋值
-    /*var wepro_tabbar_selectedColor = '<?php echo ($data["wepro_tabbar_selectedColor"]); ?>';
-    colorpicker.render({
-      elem: '#minicolors'
-      ,color: wepro_tabbar_selectedColor ? wepro_tabbar_selectedColor : '#F75451'
-      ,done: function(color){
-        $('#test-colorpicker-form-input').val(color);
-      }
-    });
-
-    var wepro_tabbar_bgColor = '<?php echo ($data["wepro_tabbar_bgColor"]); ?>';
-    colorpicker.render({
-      elem: '#minicolors2'
-      ,color: wepro_tabbar_bgColor ? wepro_tabbar_bgColor : '#FFFFFF'
-      ,done: function(color){
-        $('#test-colorpicker-form-input2').val(color);
-      }
-    });*/
-  
-   form.on('radio(linktype)', function(data){
-		if (data.value == 2) {
-			$('#linkGroup').show();
-			$('#appidGroup').show();
-		} else if(data.value == 3 || data.value == 4 || data.value == 5 || data.value == 6 || data.value == 7 || data.value == 8){
-			$('#linkGroup').hide();
-			$('#appidGroup').hide();
-		} else {
-			$('#linkGroup').show();
-			$('#appidGroup').hide();
-		}
-	});
-	
-	
-	
-	$('#chose_link').click(function(){
-		cur_open_div = $(this).attr('data-input');
-		$.post("<?php echo U('util/selecturl', array('ok' => 1));?>", {}, function(shtml){
-		 layer.open({
-			type: 1,
-			area: '930px',
-			content: shtml //注意,如果str是object,那么需要字符拼接。
-		  });
-		});
-	})
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-})
-
-
-
-</script>  
-</body>

+ 0 - 719
Runtime/Cache/Seller/c23fe33e3876be8a0b2edcd16d7047d3.php

@@ -1,719 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-            window.sysinfo = {
-            <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-			
-            <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-			
-            'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-			
-            'siteroot': '<?php echo ($_W['siteroot']); ?>',
-                    'siteurl': '<?php echo ($_W['siteurl']); ?>',
-                    'attachurl': '<?php echo ($_W['attachurl']); ?>',
-                    'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-                    'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-                    'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-            'cookie' : {'pre': ''},
-            'account' : <?php echo json_encode($_W['account']);?>,
-            };
-        </script>
-		
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-	<script type="text/javascript" src="./resource/components/colpick/colpick.js"></script>
-  <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-   <link href="/static/css/snailfish.css" rel="stylesheet">
-	<link href="./resource/components/colpick/colpick.css" rel="stylesheet">
-</head>
-<body layadmin-themealias="default">
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">商品设置</span></div>
-		<div class="layui-card-body" style="padding:15px;">
-			<form action="" method="post" class="layui-form" lay-filter="component-layui-form-item" enctype="multipart/form-data" >
-		
-				<div class="layui-form-item">
-			<label class="layui-form-label">商品库存预警</label>
-			<div class="layui-input-block">
-				<input type="text" name="parameter[goods_stock_notice]" class="form-control" value="<?php echo ($data['goods_stock_notice']); ?>" />
-			</div>
-		</div>
-		<div class="layui-form-item">
-            <label class="layui-form-label">购买记录</label>
-            <div class="layui-input-block">
-                <label class='radio-inline'>
-                    <input type='radio' name='parameter[is_show_buy_record]' value='0' <?php if( !empty($data) && $data['is_show_buy_record'] ==0 ){ ?>checked <?php } ?> title="隐藏" /> 
-                </label>
-                <label class='radio-inline'>
-                    <input type='radio' name='parameter[is_show_buy_record]' value='1' <?php if( empty($data) || $data['is_show_buy_record'] ==1 ){ ?>checked <?php } ?> title="显示" /> 
-                </label>
-            </div>
-        </div>
-        <div class="layui-form-item">
-            <label class="layui-form-label">商品评价</label>
-            <div class="layui-input-block">
-                <label class='radio-inline'>
-                    <input type='radio' name='parameter[is_show_comment_list]' value='0' <?php if( !empty($data) && $data['is_show_comment_list'] ==0 ){ ?>checked <?php } ?> title="隐藏" /> 
-                </label>
-                <label class='radio-inline'>
-                    <input type='radio' name='parameter[is_show_comment_list]' value='1' <?php if( empty($data) || $data['is_show_comment_list'] ==1 ){ ?>checked <?php } ?> title="显示" /> 
-                </label>
-            </div>
-        </div>
-        <div class="layui-form-item">
-            <label class="layui-form-label">首页商品倒计时</label>
-            <div class="layui-input-block">
-                <label class='radio-inline'>
-                    <input type='radio' name='parameter[is_show_list_timer]' value='0' <?php if( empty($data) || $data['is_show_list_timer'] ==0 ){ ?>checked <?php } ?> title="隐藏" /> 
-                </label>
-                <label class='radio-inline'>
-                    <input type='radio' name='parameter[is_show_list_timer]' value='1' <?php if( !empty($data) && $data['is_show_list_timer'] ==1 ){ ?>checked <?php } ?> title="显示" /> 
-                </label>
-            </div>
-        </div>
-		
-		<div class="layui-form-item">
-            <label class="layui-form-label">首页商品排序方式</label>
-            <div class="layui-input-block">
-                <label class='radio-inline'>
-                    <input type='radio' name='parameter[index_sort_method]' value='0' <?php if( empty($data) || $data['index_sort_method'] ==0 ){ ?>checked <?php } ?> title="使用置顶排序" /> 
-                </label>
-                <label class='radio-inline'>
-                    <input type='radio' name='parameter[index_sort_method]' value='1' <?php if( !empty($data) && $data['index_sort_method'] ==1 ){ ?>checked <?php } ?> title="使用数字大小排序(从大到小)" /> 
-                </label>
-            </div>
-        </div>
-		
-		
-		
-        <div class="layui-form-item">
-            <label class="layui-form-label">首页商品销量</label>
-            <div class="layui-input-block">
-                <label class='radio-inline'>
-                    <input type='radio' name='parameter[is_show_list_count]' value='0' <?php if( !empty($data) && $data['is_show_list_count'] ==0 ){ ?>checked <?php } ?> title="隐藏" /> 
-                </label>
-                <label class='radio-inline'>
-                    <input type='radio' name='parameter[is_show_list_count]' value='1' <?php if( empty($data) || $data['is_show_list_count'] ==1 ){ ?>checked <?php } ?> title="显示" /> 
-                </label>
-            </div>
-        </div>
-
-        <div class="layui-form-item">
-            <label class="layui-form-label">详情页商品销量</label>
-            <div class="layui-input-block">
-                <label class='radio-inline'>
-                    <input type='radio' name='parameter[is_hide_details_count]' value='1' <?php if( !empty($data) && $data['is_hide_details_count']==1 ){ ?>checked <?php } ?> title="隐藏" /> 
-                </label>
-                <label class='radio-inline'>
-                    <input type='radio' name='parameter[is_hide_details_count]' value='0' <?php if( empty($data) || $data['is_hide_details_count']==0 ){ ?>checked <?php } ?> title="显示" /> 
-                </label>
-            </div>
-        </div>
-		
-		 <div class="layui-form-item">
-            <label class="layui-form-label">新人专享</label>
-            <div class="layui-input-block">
-                <label class='radio-inline'>
-                    <input type='radio' name='parameter[is_show_new_buy]' value='0' <?php if(!empty($data) && $data['is_show_new_buy'] ==0){ ?>checked <?php } ?> title="隐藏" /> 
-                </label>
-                <label class='radio-inline'>
-                    <input type='radio' name='parameter[is_show_new_buy]' value='1' <?php if(empty($data) || $data['is_show_new_buy'] ==1){ ?>checked <?php } ?> title="显示" /> 
-                </label>
-            </div>
-        </div>
-		<div class="layui-form-item">
-			<label class="layui-form-label">新人专享限制</label>   
-			<div class="layui-input-block">
-				<div class="input-group" style="width: 300px;">
-					<div class="input-group-addon" style="padding-top: 0px;">
-						<input type="checkbox" lay-skin="primary" name="parameter[is_new_buy_limit]" class="form-control" <?php if( !empty($data) && $data['is_new_buy_limit'] == 1 ){ ?>checked<?php } ?> value="1"/>
-					</div>
-					<div class="input-group-addon">限制新人购买“新人专享”商品</div>
-					<input class="form-control" name="parameter[new_buy_limit_num]" type="text" style="width: 50px;height: 40px;" value="<?php echo !empty($data['new_buy_limit_num']) ? $data['new_buy_limit_num'] : 1;?>">
-					<div class="input-group-addon">种</div>
-				</div>
-				<span class="layui-form-mid layui-word-aux">勾选以后,新用户购买“新人专享”商品种类根据设置种类数购买,无设置商品种类则默认限制1种</span>
-			</div>
-		</div>
-		<div class="layui-form-item">
-			<label class="layui-form-label">限时秒杀</label>
-			<div class="layui-input-block">
-				<label class='radio-inline'>
-					<input type='radio' name='parameter[is_show_spike_buy]' value='0' <?php if(!empty($data) && $data['is_show_spike_buy'] ==0){ ?>checked <?php } ?> title="隐藏" /> 
-				</label>
-				<label class='radio-inline'>
-					<input type='radio' name='parameter[is_show_spike_buy]' value='1' <?php if(empty($data) || $data['is_show_spike_buy'] ==1){ ?>checked <?php } ?> title="显示" /> 
-				</label>
-			</div>
-		</div>
-		<div class="layui-form-item">
-			<label class="layui-form-label">限时秒杀倒计时</label>
-			<div class="layui-input-block">
-				<label class='radio-inline'>
-					<input type='radio' name='parameter[is_show_spike_buy_time]' value='0' <?php if(!empty($data) && $data['is_show_spike_buy_time']==0){ ?>checked <?php } ?> title="隐藏" /> 
-				</label>
-				<label class='radio-inline'>
-					<input type='radio' name='parameter[is_show_spike_buy_time]' value='1' <?php if(empty($data) || $data['is_show_spike_buy_time']==1){ ?>checked <?php } ?> title="显示" /> 
-				</label>
-			</div>
-		</div>
-		<div class="layui-form-item">
-			<label class="layui-form-label">大家常买<br/>(购物车)</label>
-			<div class="layui-input-block">
-				<label class='radio-inline'>
-					<input type='radio' name='parameter[is_show_guess_like]' value='0' <?php if(!empty($data) && $data['is_show_guess_like'] ==0){ ?>checked <?php } ?> title="隐藏" /> 
-				</label>
-				<label class='radio-inline'>
-					<input type='radio' name='parameter[is_show_guess_like]' value='1' <?php if(empty($data) || $data['is_show_guess_like'] ==1){ ?>checked <?php } ?> title="显示" /> 
-				</label>
-			</div>
-		</div>
-		
-		<div class="layui-form-item">
-			<label class="layui-form-label">猜你喜欢<br/>(商品详情页)</label>
-			<div class="layui-input-block">
-				<label class='radio-inline'>
-					<input type='radio' name='parameter[show_goods_guess_like]' value='0' <?php if( !empty($data) && $data['show_goods_guess_like'] ==0 ){ ?>checked <?php } ?> title="隐藏" /> 
-				</label>
-				<label class='radio-inline'>
-					<input type='radio' name='parameter[show_goods_guess_like]' value='1' <?php if( empty($data) || $data['show_goods_guess_like'] ==1 ){ ?>checked <?php } ?> title="显示" /> 
-				</label>
-			</div>
-		</div>
-		<div class="layui-form-item">
-			<label class="layui-form-label">猜你喜欢展示数量</label>
-			<div class="layui-input-block fixmore-input-group">
-			<div class="input-group">
-				<input type="text" name="parameter[num_guess_like]" class="form-control valid" value="<?php echo ($data['num_guess_like']); ?>" />
-			</div>
-				<div class="help-block">默认:8个</div> 
-			</div>
-		</div>
-		
-		<div class="layui-form-item">
-            <label class="layui-form-label">自提时间</label>
-            <div class="layui-input-block">
-                <label class='radio-inline'>
-                    <input type='radio' name='parameter[is_show_ziti_time]' value='0' <?php if(!empty($data) && $data['is_show_ziti_time'] ==0){ ?>checked <?php } ?> title="隐藏" /> 
-                </label>
-                <label class='radio-inline'>
-                    <input type='radio' name='parameter[is_show_ziti_time]' value='1' <?php if(empty($data) || $data['is_show_ziti_time'] ==1){ ?>checked <?php } ?> title="显示" /> 
-                </label>
-            </div>
-        </div>
-		
-		<div class="layui-form-item">
-			<label class="layui-form-label">支持商品仅快递</label>
-			<div class="layui-input-block">
-				<label class='radio-inline'>
-					<input type='radio' name='parameter[is_open_only_express]' value='0' <?php if(empty($data) || $data['is_open_only_express'] ==0 ){ ?>checked <?php } ?> title="否" /> 
-				</label>
-				<label class='radio-inline'>
-					<input type='radio' name='parameter[is_open_only_express]' value='1' <?php if(!empty($data) && $data['is_open_only_express'] ==1){ ?>checked <?php } ?> title="是" /> 
-				</label>
-			</div>
-		</div>
-		
-		<div class="layui-form-item">
-			<label class="layui-form-label">开启推荐商品</label>
-			<div class="layui-input-block">
-				<label class='radio-inline'>
-					<input type='radio' name='parameter[is_open_goods_relative_goods]' value='0' <?php if(empty($data) || $data['is_open_goods_relative_goods'] ==0){ ?>checked <?php } ?> title="否" /> 
-				</label>
-				<label class='radio-inline'>
-					<input type='radio' name='parameter[is_open_goods_relative_goods]' value='1' <?php if(!empty($data) && $data['is_open_goods_relative_goods'] ==1){ ?>checked <?php } ?> title="是" /> 
-				</label>
-			</div>
-		</div>
-		
-		
-		<div class="layui-form-item">
-			<label class="layui-form-label">关闭商品详情页倒计时</label>
-			<div class="layui-input-block">
-				<label class='radio-inline'>
-					<input type='radio' name='parameter[is_close_details_time]' value='0' <?php if( empty($data) || $data['is_close_details_time'] ==0 ){ ?>checked <?php } ?> title="否" />
-				</label>
-				<label class='radio-inline'>
-					<input type='radio' name='parameter[is_close_details_time]' value='1' <?php if( !empty($data) && $data['is_close_details_time'] ==1 ){ ?>checked <?php } ?> title="是" />
-				</label>
-			</div>
-		</div>
-		
-		<div class="layui-form-item">
-			<label class="layui-form-label">加入购物车背景色</label>
-			<div class="layui-input-block">
-				<div style="margin:0px;">
-					<div class="layui-input-inline" style="width: 120px;">
-					  <input type="text" name="parameter[goodsdetails_addcart_bg_color]" value="<?php echo ($data['goodsdetails_addcart_bg_color']); ?>" placeholder="请选择颜色" class="layui-input" id="test-colorpicker-form-input">
-					</div>
-					<div class="layui-inline" style="left: -11px;">
-					  <div id="minicolors">
-						  <div class="layui-unselect layui-colorpicker"><span><span class="layui-colorpicker-trigger-span" lay-type="" style="background: <?php echo ($data['goodsdetails_addcart_bg_color']); ?>"><i class="layui-icon layui-colorpicker-trigger-i layui-icon-down"></i></span></span></div>
-					  </div>
-					</div>
-				  </div>
-				<span class='layui-form-mid'>背景颜色值,有效值为十六进制颜色,默认:#f9c706</span>
-			</div>
-		</div>
-		<div class="layui-form-item">
-			<label class="layui-form-label">立即购买背景色</label>
-			<div class="layui-input-block">
-				<div style="margin:0px;">
-					<div class="layui-input-inline" style="width: 120px;">
-					  <input type="text" name="parameter[goodsdetails_buy_bg_color]" value="<?php echo ($data['goodsdetails_buy_bg_color']); ?>" placeholder="请选择颜色" class="layui-input" id="test-colorpicker-form-input1">
-					</div>
-					<div class="layui-inline" style="left: -11px;">
-					  <div id="minicolors1">
-						  <div class="layui-unselect layui-colorpicker"><span><span class="layui-colorpicker-trigger-span" lay-type="" style="background: <?php echo ($data['goodsdetails_buy_bg_color']); ?>"><i class="layui-icon layui-colorpicker-trigger-i layui-icon-down"></i></span></span></div>
-					  </div>
-					</div>
-				  </div>
-				<span class='layui-form-mid'>背景颜色值,有效值为十六进制颜色,默认:#ff5041</span>
-			</div>
-		</div>
-		
-		<div class="layui-form-item" >
-			<label class="layui-form-label">海报头像圆角填充颜色</label>
-			<div class="layui-input-block">
-				
-				<div class="" style="margin:0px;">
-					<div class="layui-input-inline" style="width: 120px;">
-					  <input type="text" name="parameter[goods_avatar_rgb]" value="<?php echo ($data['goods_avatar_rgb']); ?>" placeholder="请选择颜色" class="layui-input" id="goods_avatar_rgb_colorpicker">
-					</div>
-					<div class="layui-inline" style="left: -11px;">
-					  <div id="goods_avatar_rgb">
-						  <div class="layui-unselect layui-colorpicker"><span><span class="layui-colorpicker-trigger-span" lay-type="" style="background: <?php echo ($data['goods_avatar_rgb']); ?>"><i class="layui-icon layui-colorpicker-trigger-i layui-icon-down"></i></span></span></div>
-					  </div>
-					</div>
-				</div>
-				
-				<span class='layui-form-mid'>商品详情页海报头像颜色自定义,不设置则默认黄色<b style="color:red"></b></span>
-			</div>
-		</div>
-			
-		<div class="layui-form-item">
-			<label class="layui-form-label">服务说明</label>
-		    <div class="layui-input-block">
-		        <div class="">
-		            <?php echo tpl_ueditor('parameter[instructions]',$data['instructions'],array('height'=>'300'));?>
-		        </div>
-		    </div>
-		</div>
-		
-		 <div class="layui-form-item">
-			<label class="layui-form-label">显示团长信息</label>
-			<div class="layui-input-block">
-				<label class='radio-inline'>
-					<input type='radio' name='parameter[is_show_goodsdetails_communityinfo]' value='0' <?php if( empty($data) || $data['is_show_goodsdetails_communityinfo'] ==0 ){ ?>checked <?php } ?> title="否" /> 
-				</label>
-				<label class='radio-inline'>
-					<input type='radio' name='parameter[is_show_goodsdetails_communityinfo]' value='1' <?php if( !empty($data) && $data['is_show_goodsdetails_communityinfo'] ==1 ){ ?>checked <?php } ?> title="是" /> 
-				</label>
-			</div>
-		</div>
-		<div class="layui-form-item">
-			<label class="layui-form-label">显示预计佣金信息</label>
-			<div class="layui-input-block">
-				<label class='radio-inline'>
-					<input type='radio' name='parameter[is_show_goodsdetails_commiss_money]' value='0' <?php if( empty($data) || $data['is_show_goodsdetails_commiss_money'] ==0 ){ ?>checked <?php } ?> title="否" /> 
-				</label>
-				<label class='radio-inline'>
-					<input type='radio' name='parameter[is_show_goodsdetails_commiss_money]' value='1' <?php if( !empty($data) && $data['is_show_goodsdetails_commiss_money'] ==1 ){ ?>checked <?php } ?> title="是" /> 
-				</label>
-			</div>
-			<span class='layui-form-mid' style="margin-left: 50px;">普通会员不显示,团长或分销身份时显示,既是团长又是分销,仅显示团长佣金</span>
-		</div>
-
-		<div class="layui-form-item">
-			<label class="layui-form-label">预售、提货时间显示</label>
-			<div class="layui-input-block">
-				<label class='radio-inline'>
-					<input type="radio" name="parameter[ishow_index_pickup_time]" value="0" title="隐藏" <?php if( empty($data) || $data['ishow_index_pickup_time'] ==0 ){ ?>checked <?php } ?> />
-				</label>
-				<label class='radio-inline'>
-					<input type="radio" name="parameter[ishow_index_pickup_time]" value="1" title="显示" <?php if( !empty($data) && $data['ishow_index_pickup_time'] ==1 ){ ?>checked <?php } ?> />
-				</label>
-			  <br>
-			  <span class='layui-form-mid' style="margin-left: 20px;">首页商品列表预售、提货时间显示,默认隐藏。</span>
-			</div>
-		</div>
-
-				
-		<div class="layui-form-item">
-			<label class="layui-form-label">非付费会员购买会员专享商品弹出图片:</label>
-			<div class="layui-input-block">
-				<label class='radio-inline'>
-					<input type="radio" name="parameter[is_pop_vipmember_buytip]" value="0" title="关闭" <?php if( empty($data) || $data['is_pop_vipmember_buytip'] ==0 ){ ?>checked <?php } ?> />
-				</label>
-				<label class='radio-inline'>
-					<input type="radio" name="parameter[is_pop_vipmember_buytip]" value="1" title="开启" <?php if( !empty($data) && $data['is_pop_vipmember_buytip'] ==1 ){ ?>checked <?php } ?> />
-				</label>
-			  <br>
-			  <span class='layui-form-mid' style="margin-left: 20px;">开启后,需要上传弹出图片</span>
-			</div>
-		</div>
-		
-		<div class="layui-form-item">
-			<label class="layui-form-label">非付费会员弹出图片</label>
-			<div class="layui-input-block">
-				<?php echo tpl_form_field_image2('parameter[pop_vipmember_buyimage]', $data['pop_vipmember_buyimage']);?>
-				<span class='layui-form-mid'>需要开启付费会员卡功能</span>
-			</div>
-		</div>
-
-		<div class="layui-form-item">
-			<label class="layui-form-label">开启全屏视频播放</label>
-			<div class="layui-input-block">
-				<label class='radio-inline'>
-					<input type='radio' name='parameter[is_open_goods_full_video]' value='0' <?php if(empty($data) || $data['is_open_goods_full_video'] ==0){ ?>checked <?php } ?> title="否" /> 
-				</label>
-				<label class='radio-inline'>
-					<input type='radio' name='parameter[is_open_goods_full_video]' value='1' <?php if(!empty($data) && $data['is_open_goods_full_video'] ==1){ ?>checked <?php } ?> title="是" /> 
-				</label>
-				<br />
-				<span class='layui-form-mid'>开启后,若有此商品带有视频,则进入商品详情页面先全屏展示视频,播放结束后自动关闭。默认关闭。</span>
-			</div>
-		</div>
-		
-		<div class="layui-form-item">
-			<label class="layui-form-label">商品海报背景</label>
-			<div class="layui-input-block">
-				<?php echo tpl_form_field_image2('parameter[haibao_gooods_bg2]', $data['haibao_gooods_bg2'], "/static/images/bg2.jpg");?>
-				<span class='layui-form-mid'>请注意:请勿开图片压缩功能,否则生成海报变形。请务必传jpg背景图(750*1364),<a href="/static/images/bg2.jpg" target="_blank" class="line-text">点击查看</a>默认背景图。</span>
-			</div>
-		</div>
-
-		<div class="layui-form-item">
-			<label class="layui-form-label">商品详情头部</label>
-			<div class="layui-input-block">
-				<?php echo tpl_form_field_image2('parameter[goods_details_title_bg]', $data['goods_details_title_bg'], "/static/placeholder/goodsDetailTitle.png");?>
-				<span class='layui-form-mid'>商品详情页详情内容头部标题图片。坚持尺寸:336*60。</span>
-			</div>
-		</div>
-		<div class="layui-form-item">
-			<label class="layui-form-label">商品详情</label>
-			<div class="layui-input-block">
-				<label class='radio-inline'>
-					<input type='radio' name='parameter[ishide_details_desc]' value='1' <?php if( !empty($data) && $data['ishide_details_desc'] ==1 ){ ?>checked <?php } ?> title="隐藏" /> 
-				</label>
-				<label class='radio-inline'>
-					<input type='radio' name='parameter[ishide_details_desc]' value='0' <?php if( empty($data) || $data['ishide_details_desc'] ==0 ){ ?>checked <?php } ?> title="显示" /> 
-				</label>
-				<br>
-				<span class='layui-form-mid'>默认显示,隐藏则包括“商品详情头部”一起隐藏。</span>
-			</div>
-		</div>
-
-		<div class="layui-form-item">
-			<label class="layui-form-label">销量单位</label>
-			<div class="layui-input-block fixmore-input-group">
-				<div class="input-group">
-					<label class='radio-inline'>
-						<input lay-filter="isnull_unit" type='radio' name='parameter[isnull_goods_sale_unit]' value='1' <?php if(!empty($data) && $data['isnull_goods_sale_unit']==1){ ?>checked <?php } ?> title="空" />
-					</label>
-					<label class='radio-inline'>
-						<input lay-filter="isnull_unit" type='radio' name='parameter[isnull_goods_sale_unit]' value='0' <?php if(empty($data) || $data['isnull_goods_sale_unit']==0){ ?>checked <?php } ?> title="自定义" />
-					</label>
-					<div class="radio-inline" style="padding-left: 0;margin-left: 0">
-						<input id="goodsSaleUnit" type="text" name="parameter[goods_sale_unit]" class="form-control valid" value="<?php echo ($data['goods_sale_unit']); ?>" style="<?php if(empty($data) || $data['isnull_goods_sale_unit'] ==0){ ?>display:inline;<?php }else{ ?>display: none;<?php } ?>width:120px;" />
-					</div>
-				</div>
-				<div class="help-block">前端默认展示已售**件,仅剩**件。默认单位:件</div> 
-			</div>
-		</div>
-
-		<div class="layui-form-item">
-			<label class="layui-form-label">商品简介<br/>(商品详情页)</label>
-			<div class="layui-input-block">
-				<label class='radio-inline'>
-					<input type='radio' name='parameter[show_goods_subtitle]' value='0' <?php if( empty($data) || $data['show_goods_subtitle'] ==0 ){ ?>checked <?php } ?> title="隐藏" /> 
-				</label>
-				<label class='radio-inline'>
-					<input type='radio' name='parameter[show_goods_subtitle]' value='1' <?php if( !empty($data) && $data['show_goods_subtitle'] ==1 ){ ?>checked <?php } ?> title="显示" /> 
-				</label>
-			</div>
-		</div>
-
-		<div class="layui-form-item">
-			<label class="layui-form-label">图片单击放大<br/>(商品详情页)</label>
-			<div class="layui-input-block">
-				<label class='radio-inline'>
-					<input type='radio' name='parameter[show_goods_preview]' value='0' <?php if( empty($data) || $data['show_goods_preview'] ==0 ){ ?>checked <?php } ?> title="开启" /> 
-				</label>
-				<label class='radio-inline'>
-					<input type='radio' name='parameter[show_goods_preview]' value='1' <?php if( !empty($data) && $data['show_goods_preview'] ==1 ){ ?>checked <?php } ?> title="关闭" />
-				</label>
-				<br>
-				<div class="help-block">商品详情页顶部幻灯片。默认开启。</div> 
-			</div>
-		</div>
-				
-		<blockquote class="layui-elem-quote">商品详情域名替换</blockquote>		
-			<div class="layui-form-item">
-				
-				<label class="layui-form-label">旧的域名</label>
-				<div class="layui-input-block">
-					<input type="text"  name="present_realm_name"  class="form-control" /> <!--readonly="readonly"-->
-					域名格式为 http://域名 , 如 https://www.baidu.com </br>
-				</div>
-			</div>
-			<div class="layui-form-item">
-				<label class="layui-form-label">新的域名</label>
-				<div class="layui-input-block">
-					<input type="text" name="new_realm_name" class="form-control"  />
-					填写‘旧的域名’与‘新的域名’后开始替换域名,不填写无效
-				</div>
-			</div>	
-
-			
-		<blockquote class="layui-elem-quote">分享群信息</blockquote>
-		<div class="layui-form-item">
-			<label class="layui-form-label">团长群分享</label>
-			<div class="layui-input-block">
-				<label class='radio-inline'>
-					<input type='radio' name='parameter[isopen_community_group_share]' value='1' <?php if(!empty($data) && $data['isopen_community_group_share'] ==1){ ?>checked <?php } ?> title="开启" />
-				</label>
-				<label class='radio-inline'>
-					<input type='radio' name='parameter[isopen_community_group_share]' value='0' <?php if(empty($data) || $data['isopen_community_group_share'] ==0){ ?>checked <?php } ?> title="关闭" />
-				</label>
-			</div>
-		</div>	
-		
-			<div class="layui-form-item">
-				<label class="layui-form-label">头像</label>
-				<div class="layui-input-block">
-					<?php echo tpl_form_field_image2('parameter[group_share_avatar]', $data['group_share_avatar']);?>
-					<span class='layui-form-mid'>正方型图片</span>
-				</div>
-			</div>
-			<div class="layui-form-item">
-				<label class="layui-form-label">标题</label>
-				<div class="layui-input-block">
-					<input type="text" name="parameter[group_share_title]" class="form-control" value="<?php echo ($data['group_share_title']); ?>" />
-				</div>
-			</div>
-			<div class="layui-form-item">
-				<label class="layui-form-label">描述</label>
-				<div class="layui-input-block">
-					<input type="text" name="parameter[group_share_desc]" class="form-control" value="<?php echo ($data['group_share_desc']); ?>" />
-				</div>
-			</div>
-
-
-			<blockquote class="layui-elem-quote">商品视频列表</blockquote>
-			<div class="layui-form-item">
-				<label class="layui-form-label">顶部导航标题</label>
-				<div class="layui-input-block">
-					<input type="text" name="parameter[videolist_nav_title]" class="form-control" value="<?php echo ($data['videolist_nav_title']); ?>" />
-				</div>
-			</div>
-			<div class="layui-form-item">
-				<label class="layui-form-label">分享标题</label>
-				<div class="layui-input-block">
-					<input type="text" name="parameter[videolist_share_title]" class="form-control" value="<?php echo ($data['videolist_share_title']); ?>" />
-				</div>
-			</div>
-			<div class="layui-form-item">
-				<label class="layui-form-label">分享图</label>
-				<div class="layui-input-block">
-					<?php echo tpl_form_field_image2('parameter[videolist_share_poster]', $data['videolist_share_poster']);?>
-					<span class='layui-form-mid'>支持PNG及JPG,显示图片长宽比是 5:4。</span>
-				</div>
-			</div>
-		
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label"> </label>
-					<div class="layui-input-block">
-						<input type="submit" value="提交" lay-submit lay-filter="formDemo" class="btn btn-primary"  />
-						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-						
-					</div>
-				</div>
-			</form>
-		</div>
-</div>
-</div>
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-
-	var goodsdetails_addcart_bg_color = '<?php echo ($data["goodsdetails_addcart_bg_color"]); ?>';
-	$('#minicolors').colpick({
-		submit:true,
-		color: goodsdetails_addcart_bg_color,
-		onSubmit: function(color,color2){
-			$('#test-colorpicker-form-input').val('#'+color2);
-			$('#minicolors').find('.layui-colorpicker-trigger-span').css('background','#'+color2);
-			$('.colpick_full').hide();
-		}
-	});
-
-	var goods_avatar_rgb = '<?php echo ($data["goods_avatar_rgb"]); ?>';
-	$('#goods_avatar_rgb').colpick({
-		submit:true,
-		color: goods_avatar_rgb,
-		onSubmit: function(color,color2){
-			$('#goods_avatar_rgb_colorpicker').val('#'+color2);
-			$('#goods_avatar_rgb').find('.layui-colorpicker-trigger-span').css('background','#'+color2);
-			$('.colpick_full').hide();
-		}
-	});
-
-	var goodsdetails_buy_bg_color = '<?php echo ($data["goodsdetails_buy_bg_color"]); ?>';
-	$('#minicolors1').colpick({
-		submit:true,
-		color: goodsdetails_buy_bg_color,
-		onSubmit: function(color,color2){
-			$('#test-colorpicker-form-input1').val('#'+color2);
-			$('#minicolors1').find('.layui-colorpicker-trigger-span').css('background','#'+color2);
-			$('.colpick_full').hide();
-		}
-	});
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-var cur_open_div;
-
-layui.use(['jquery', 'layer','form','colorpicker'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  var colorpicker = layui.colorpicker;
-
-  
-	form.on('radio(linktype)', function(data){
-		if (data.value == 2) {
-			$('#typeGroup').show();
-		} else {
-			$('#typeGroup').hide();
-		}
-	});  
-
-	
-	//表单赋值
-    /*var goodsdetails_addcart_bg_color = '<?php echo ($data["goodsdetails_addcart_bg_color"]); ?>';
-    colorpicker.render({
-      elem: '#minicolors'
-      ,color: goodsdetails_addcart_bg_color ? goodsdetails_addcart_bg_color : '#f9c706'
-      ,done: function(color){
-        $('#test-colorpicker-form-input').val(color);
-      }
-    });
-
-    colorpicker.render({
-      elem: '#goods_avatar_rgb'
-      ,color: '<?php echo ($data['goods_avatar_rgb']); ?>'
-      ,done: function(color){
-        $('#goods_avatar_rgb_colorpicker').val(color);
-      }
-    });
-
-    //表单赋值
-    var goodsdetails_buy_bg_color = '<?php echo ($data["goodsdetails_buy_bg_color"]); ?>';
-    colorpicker.render({
-      elem: '#minicolors1'
-      ,color: goodsdetails_buy_bg_color ? goodsdetails_buy_bg_color : '#ff5041'
-      ,done: function(color){
-        $('#test-colorpicker-form-input1').val(color);
-      }
-    });*/
-
-	
-	$('#chose_link').click(function(){
-		cur_open_div = $(this).attr('data-input');
-		$.post("<?php echo U('util.selecturl', array('ok' => 1));?>", {}, function(shtml){
-		 layer.open({
-			type: 1,
-			area: '930px',
-			content: shtml //注意,如果str是object,那么需要字符拼接。
-		  });
-		});
-	})
-		
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-
-
-  	form.on('radio(isnull_unit)', function(data){
-	  	if (data.value==1) {
-			$("#goodsSaleUnit").hide();
-		} else {
-			$("#goodsSaleUnit").css('display','inline');
-		}
-		form.render('checkbox');
-	});
-})
-
-
-
-</script>  
-</body>

+ 0 - 373
Runtime/Cache/Seller/c2d6e67e633492a2c64048da03d5b216.php

@@ -1,373 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-            window.sysinfo = {
-            <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-			
-            <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-			
-            'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-			
-            'siteroot': '<?php echo ($_W['siteroot']); ?>',
-                    'siteurl': '<?php echo ($_W['siteurl']); ?>',
-                    'attachurl': '<?php echo ($_W['attachurl']); ?>',
-                    'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-                    'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-                    'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-            'cookie' : {'pre': ''},
-            'account' : <?php echo json_encode($_W['account']);?>,
-            };
-        </script>
-		
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-	<script type="text/javascript" src="./resource/components/colpick/colpick.js"></script>
-  <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-   <link href="/static/css/snailfish.css" rel="stylesheet">
-	<link href="./resource/components/colpick/colpick.css" rel="stylesheet">
-</head>
-<body layadmin-themealias="default">
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">图片设置</span></div>
-		<div class="layui-card-body" style="padding:15px;">
-			<form action="" method="post" class="layui-form" lay-filter="component-layui-form-item" enctype="multipart/form-data" >
-				
-				<div class="layui-form-item" >
-					<label class="layui-form-label">后台登录图片</label>
-					<div class="layui-input-block" >
-						<?php echo tpl_form_field_image2('parameter[seller_backimage]', $data['seller_backimage'], "Common/image/login_admin.png");?>  <span class='layui-form-mid'>商家后台登录页面,封面图(400*300)。(XXX|管理后台)也是这个图片。手动FTP替换地址:Common/image/pdd_small2.png</span>
-					</div>
-				</div>
-				
-				<div class="layui-form-item" >
-					<label class="layui-form-label">XXX|管理后台图片</label>
-					<div class="layui-input-block">
-						<?php echo tpl_form_field_image2('parameter[admin_login_image]', $data['admin_login_image'], "Common/image/login_small.png");?> <span class='layui-form-mid'>尺寸:250*32。</span>
-					</div>
-				</div>
-		
-		
-				<div class="layui-form-item" >
-					<label class="layui-form-label">首页商品列表加载图片</label>
-					<div class="layui-input-block">
-						<?php echo tpl_form_field_image2('parameter[loading]', $data['loading']);?>
-						<span class='layui-form-mid'>未加载图片时显示的背景图(小图模式为1:1图片,大图模式为670*400)</span>
-					</div>
-				</div>
-				<div class="layui-form-item" >
-					<label class="layui-form-label">商品详情价格区域背景图</label>
-					<div class="layui-input-block">
-						<?php echo tpl_form_field_image2('parameter[goods_details_price_bg]', $data['goods_details_price_bg'], "/static/placeholder/shareBottomBg.png");?>
-						<span class='layui-form-mid'>未设置将使用默认,尺寸:710*100。</span>
-					</div>
-				</div>
-				
-				<div class="layui-form-item" >
-					<label class="layui-form-label">首页分享二维码背景图片</label>
-					<div class="layui-input-block">
-						<?php echo tpl_form_field_image2('parameter[index_share_qrcode_bg]', $data['index_share_qrcode_bg'], "/static/images/index_share_bg.jpg");?>
-						<span class='layui-form-mid'>不传则使用系统默认<b style="color:red">(请传jpg类型图片)</b>,尺寸:750*1334。</span>
-					</div>
-				</div>
-				
-				<div class="layui-form-item" >
-					<label class="layui-form-label">二维码颜色</label>
-					<div class="layui-input-block">
-					
-						<div class="" style="margin:0px;">
-							<div class="layui-input-inline" style="width: 120px;">
-							  <input type="text" name="parameter[qrcode_rgb]" value="<?php echo ($data['qrcode_rgb']); ?>" placeholder="请选择颜色" class="layui-input" id="test-colorpicker-form-input1">
-							</div>
-							<div class="layui-inline" style="left: -11px;">
-							  <div id="minicolors">
-								  <div class="layui-unselect layui-colorpicker"><span><span class="layui-colorpicker-trigger-span" lay-type="" style="background: <?php echo ($data['qrcode_rgb']); ?>"><i class="layui-icon layui-colorpicker-trigger-i layui-icon-down"></i></span></span></div>
-							  </div>
-							</div>
-						</div>
-						<span class='layui-form-mid'>二维码颜色自定义,不设置则默认红色<b style="color:red"></b></span>
-					</div>
-				</div>
-				<div class="layui-form-item" >
-					<label class="layui-form-label">海报头像圆角填充颜色</label>
-					<div class="layui-input-block">
-						
-						<div class="" style="margin:0px;">
-							<div class="layui-input-inline" style="width: 120px;">
-							  <input type="text" name="parameter[avatar_rgb]" value="<?php echo ($data['avatar_rgb']); ?>" placeholder="请选择颜色" class="layui-input" id="test-colorpicker-form-input2">
-							</div>
-							<div class="layui-inline" style="left: -11px;">
-							  <div id="avatar_rgb">
-								  <div class="layui-unselect layui-colorpicker"><span><span class="layui-colorpicker-trigger-span" lay-type="" style="background: <?php echo ($data['avatar_rgb']); ?>"><i class="layui-icon layui-colorpicker-trigger-i layui-icon-down"></i></span></span></div>
-							  </div>
-							</div>
-						</div>
-						
-						<span class='layui-form-mid'>二维码颜色自定义,不设置则默认黄色<b style="color:red"></b></span>
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label">首页二维码自定义时分</label>
-					<div class="layui-input-block">
-						<input type="text" name="parameter[modify_index_share_time]" class="form-control" value="<?php echo ($data['modify_index_share_time']); ?>" />
-						<span class='layui-form-mid'>例如:08:00,用于首页海报显示的固定时分,日期随着每天改变</span>
-					</div>
-				</div>
-				
-				<div class="layui-form-item" style="">
-					<label class="layui-form-label">首页底部图片</label>
-					<div class="layui-input-block">
-						<?php echo tpl_form_field_image2('parameter[index_bottom_image]', $data['index_bottom_image'], "/static/placeholder/icon-index-slogan.png");?>
-						<span class='layui-form-mid'>原尺寸:250*56。</span>
-					</div>
-				</div>
-				<div class="layui-form-item" style="">
-					<label class="layui-form-label">首页商品列表顶部图</label>
-					<div class="layui-input-block">
-						<?php echo tpl_form_field_image2('parameter[index_list_top_image]', $data['index_list_top_image'], "/static/placeholder/past-title.png");?>
-						<span class='layui-form-mid'>原尺寸:332*88。</span>
-						<label class="layui-form-label" style="width: auto;padding-left: 0;">是否开启</label>
-						<div class="layui-input-block">
-							<label class='radio-inline'>
-								<input type='radio' name='parameter[index_list_top_image_on]' title="显示" value='0' <?php if( !empty($data) && $data['index_list_top_image_on'] ==0 ){ ?>checked <?php } ?> />
-							</label>
-							<label class='radio-inline'>
-								<input type='radio' name='parameter[index_list_top_image_on]' title="隐藏" value='1' <?php if( empty($data) || $data['index_list_top_image_on'] ==1 ){ ?>checked <?php } ?> /> 
-							</label>
-						</div>
-					</div>
-				</div>
-				<div class="layui-form-item" style="">
-					<label class="layui-form-label">商品详情页声明顶上图</label>
-					<div class="layui-input-block">
-						<?php echo tpl_form_field_image2('parameter[goods_details_middle_image]', $data['goods_details_middle_image'], "/static/placeholder/past-title.png");?>
-						<span class='layui-form-mid'>原尺寸:184*48。</span>
-					</div>
-				</div>
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label">首页引导加入我的小程序</label>
-					<div class="layui-input-block">
-						<?php echo tpl_form_field_image2('parameter[index_lead_image]', $data['index_lead_image']);?>
-						<span class='layui-form-mid'>原尺寸:750*1208</span>
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label">是否显示引导</label>
-					<div class="layui-input-block">
-						<label class='radio-inline'>
-							<input type='radio' name='parameter[is_show_index_lead_image]' title="否" value='0' <?php if( !empty($data) && $data['is_show_index_lead_image'] ==0 ){ ?>checked <?php } ?> /> 
-						</label>
-						<label class='radio-inline'>
-							<input type='radio' name='parameter[is_show_index_lead_image]' title="是" value='1' <?php if( empty($data) || $data['is_show_index_lead_image'] ==1 ){ ?>checked <?php } ?> /> 
-						</label>
-					</div>
-				</div>
-
-				<div class="layui-form-item">
-					<label class="layui-form-label">页头公共背景图</label>
-					<div class="layui-input-block">
-						<?php echo tpl_form_field_image2('parameter[common_header_backgroundimage]', $data['common_header_backgroundimage'], "/static/placeholder/TOP_background@2x.png");?>
-						<span class='layui-form-mid'>包括订单详情页头和社区选择页头,尺寸:750*340。</span>
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label">首页页头背景图</label>
-					<div class="layui-input-block">
-						<?php echo tpl_form_field_image2('parameter[index_header_backgroundimage]', $data['index_header_backgroundimage'], "/static/placeholder/TOP_background@2x.png");?>
-						<span class='layui-form-mid'>尺寸:750*340。</span>
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label">个人中心页头背景图</label>
-					<div class="layui-input-block">
-						<?php echo tpl_form_field_image2('parameter[user_header_backgroundimage]', $data['user_header_backgroundimage'], "/static/placeholder/TOP_background@2x.png");?>
-						<span class='layui-form-mid'>尺寸:750*340。</span>
-					</div>
-				</div>
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label">授权弹窗背景</label>
-					<div class="layui-input-block">
-						<?php echo tpl_form_field_image2('parameter[newauth_bg_image]', $data['newauth_bg_image'], "/static/placeholder/auth-bg.png");?>
-						<span class='layui-form-mid'>建议尺寸:宽度520,高度480~660之间。</span>
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label">授权弹窗取消按钮</label>
-					<div class="layui-input-block">
-						<?php echo tpl_form_field_image2('parameter[newauth_cancel_image]', $data['newauth_cancel_image']);?>
-						<span class='layui-form-mid'>建议尺寸:180*70</span>
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label">授权弹窗确认按钮</label>
-					<div class="layui-input-block">
-						<?php echo tpl_form_field_image2('parameter[newauth_confirm_image]', $data['newauth_confirm_image']);?>
-						<span class='layui-form-mid'>建议尺寸:180*70</span>
-					</div>
-				</div>
-				
-				<div class="layui-form-item" >
-					<label class="layui-form-label">更新会员核销二维码</label>
-					<div class="layui-input-block" style="padding-top:7px;">
-						<a id="clear_qrcode" href="javascript:;"  data-href="<?php echo U('config/clearqrcode');?>"  class="text-primary">立即更新</a>
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label"></label>
-					<div class="layui-input-block">
-						<input type="submit" lay-submit lay-filter="formDemo" value="提交" class="btn btn-primary"  />
-					</div>
-				</div>
-			</form>
-		</div>
-	</div>
-</div>
-
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-
-	var minicolors = '<?php echo ($data["qrcode_rgb"]); ?>';
-	$('#minicolors').colpick({
-		submit:true,
-		color: minicolors,
-		onSubmit: function(color,color2){
-			$('#test-colorpicker-form-input1').val('#'+color2);
-			$('#minicolors').find('.layui-colorpicker-trigger-span').css('background','#'+color2);
-			$('.colpick_full').hide();
-		}
-	});
-
-	var avatar_rgb = '<?php echo ($data["avatar_rgb"]); ?>';
-	$('#avatar_rgb').colpick({
-		submit:true,
-		color: avatar_rgb,
-		onSubmit: function(color,color2){
-			$('#test-colorpicker-form-input2').val('#'+color2);
-			$('#avatar_rgb').find('.layui-colorpicker-trigger-span').css('background','#'+color2);
-			$('.colpick_full').hide();
-		}
-	});
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer','form','colorpicker'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  var colorpicker = layui.colorpicker;
- 
-							  
-	$('#clear_qrcode').click(function(){
-		var s_url = $(this).attr('data-href');
-		
-		console.log(s_url);
-		
-		layer.confirm('确认更新会员核销二维码吗?', function(index){
-		  //do something
-		  $.ajax({
-			url : s_url,
-			dataType:'json',
-			success:function(ret){
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-					}
-				});
-			}
-		  })
-		  layer.close(index);
-		});  
-	
-	});
-   //表单赋值
-    /*colorpicker.render({
-      elem: '#minicolors'
-      ,color: '<?php echo ($data['qrcode_rgb']); ?>'
-      ,done: function(color){
-        $('#test-colorpicker-form-input1').val(color);
-      }
-    });
-	
-    colorpicker.render({
-      elem: '#avatar_rgb'
-      ,color: '<?php echo ($data['avatar_rgb']); ?>'
-      ,done: function(color){
-        $('#test-colorpicker-form-input2').val(color);
-      }
-    });*/
-  
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-})
-
-
-
-</script>

+ 0 - 500
Runtime/Cache/Seller/c5340cd3ba9d6f922dde567552ceac4c.php

@@ -1,500 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-    <!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-    <!--[if lt IE 9]>
-      <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-      <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-    <![endif]-->  
-
-    <link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-    <link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-    <script type="text/javascript">
-        window.sysinfo = {
-            <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-            <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-            <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-            <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-            'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-            'siteroot': '<?php echo ($_W['siteroot']); ?>',
-            'siteurl': '<?php echo ($_W['siteurl']); ?>',
-            'attachurl': '<?php echo ($_W['attachurl']); ?>',
-            'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-            'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-            'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-            'cookie' : {'pre': ''},
-            'account' : <?php echo json_encode($_W['account']);?>,
-        };
-    </script>
-            
-    <script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-    <script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-    <script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-    <script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-    <script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-    <script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-    <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-    <link href="/static/css/snailfish.css" rel="stylesheet">
-</head>
-<body layadmin-themealias="default">
-
-<div class="layui-fluid">
-  <div class="layui-card">
-    <div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">群接龙活动管理</span></div>
-	
-	<div class="layui-tab layui-tab-brief" >
-	  <ul class="layui-tab-title">
-		
-			<li  <?php if( empty($_GPC['type']) || $_GPC['type']=='0' ){ ?>class="layui-this"<?php } ?>>
-				<a href="<?php echo U('solitaire/index', array('type' => 0 ));?>">全部(<?php echo ($all_count); ?>)</a>
-			</li>
-			<li  <?php if( $_GPC['type']=='1' ){ ?>class="layui-this"<?php } ?> >
-				<a href="<?php echo U('solitaire/index', array('type' => 1));?>">进行中(<?php echo ($count_status_1); ?>)</a>
-			</li>
-			<li  <?php if( $_GPC['type']=='2' ){ ?>class="layui-this"<?php } ?> >
-				<a href="<?php echo U('solitaire/index', array('type' => 2));?>">未开始(<?php echo ($count_status_2); ?>)</a>
-			</li>
-			<li  <?php if( $_GPC['type']=='3' ){ ?>class="layui-this"<?php } ?> >
-				<a href="<?php echo U('solitaire/index', array('type' => 3));?>">已结束(<?php echo ($count_status_3); ?>)</a>
-			</li>
-			<li  <?php if( $_GPC['type']=='4' ){ ?>class="layui-this"<?php } ?> >
-				<a href="<?php echo U('solitaire/index', array('type' => 4));?>">待审核(<?php echo ($count_status_4); ?>)</a>
-			</li>
-			<li  <?php if( $_GPC['type']=='5' ){ ?>class="layui-this"<?php } ?> >
-				<a href="<?php echo U('solitaire/index', array('type' => 5));?>">已拒绝(<?php echo ($count_status_5); ?>)</a>
-			</li>
-	  </ul>
-	</div>
-		
-    <div class="layui-card-body" style="padding:15px;">
-      <form action="" method="get" class="form-horizontal form-search layui-form" role="form">
-        <input type="hidden" name="c" value="solitaire" />
-        <input type="hidden" name="a" value="index" />
-     
-        
-        <div class="layui-form-item">
-          <div class="layui-inline">
-			  <div class="layui-input-inline">
-				<input type="text" class="layui-input" name='keyword' value="<?php echo ($_GPC['keyword']); ?>" placeholder="输入关键词然后回车">  
-			  </div>
-			  <div class="layui-input-inline">
-				<button class="layui-btn layui-btn-sm"  type="submit"> 搜索</button>
-			  </div>
-          </div>
-        </div>
-        
-      </form>
-      <form action="" class="layui-form" lay-filter="example" method="post" >
-       
-	   
-		
-        <div class="row">
-          <div class="col-md-12">
-            <div class="page-table-header">
-              <span class="pull-right"> 
-                <a href="<?php echo U('solitaire/add', array('ok' => 1));?>" class="layui-btn layui-btn-sm"><i class="fa fa-plus"></i> 添加群接龙活动</a>
-              </span>
-              <div class="btn-group">
-					<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch-remove' data-confirm="确认要删除吗?" data-href="<?php echo U('solitaire/delete');?>">删除</button>
-              </div>
-            </div>
-            <table class="layui-table" lay-skin="line" lay-size="lg">
-              <thead>
-                <tr>
-                  <th style="width:25px;"><input type='checkbox' name="checkall" lay-skin="primary" lay-filter="checkboxall"  /></th>
-                  <th style="width:80px;">ID</th>
-                 
-				  <th style="">接龙名称</th>
-                  <th style="">接龙社区团长</th>
-				  <th style="width: 120px;">商品数量</th>
-				  <th style="width: 120px;">接龙人数</th>
-				  <th style="width: 120px;">浏览人数</th>
-				  <th style="width: 150px;">接龙状态</th>
-				  <th style="width: 150px;">接龙时间</th>
-                 
-                  <th >操作</th>
-                </tr>
-              </thead>
-              <tbody>
-              
-			  <?php foreach($list as $item){ ?>
-                <tr>
-                  <td style="width:25px;">
-                    <input type='checkbox' name="item_checkbox" lay-skin="primary" value="<?php echo ($item['id']); ?>"/>
-                  </td>
-                  <td>
-                    <?php echo ($item['id']); ?>
-                  </td>
-                  <td>
-                    <?php echo ($item['solitaire_name']); ?>
-                  </td>
-				  <td>
-                    <?php echo ($item['head_info']['community_name']); ?><br/>(<?php echo ($item['head_info']['head_name']); ?>)
-                  </td>
-				  <td>
-                    <?php echo ($item['goods_count']); ?>
-                  </td>
-				  <td>
-                    <?php echo ($item['order_count']); ?>
-                  </td>
-				  <td>
-                    <?php echo ($item['invite_count']); ?>
-                  </td>
-				  
-				  <td>
-					<?php if($item['appstate'] == 0){ ?>
-						
-					    <input type="checkbox" name="" lay-filter="is_appstate2" data-href="<?php echo U('solitaire/change',array('type'=>'appstate','id'=>$item['id'] , 'value' => 1 ));?>"  lay-skin="switch" lay-text="已通过|通过">
-						<input type="checkbox" name="" lay-filter="is_appstate1" data-href="<?php echo U('solitaire/change',array('type'=>'appstate','id'=>$item['id'] , 'value' => 2 ));?>"  lay-skin="switch" lay-text="已拒绝|拒绝">
-					
-					<?php }else if( $item['appstate'] == 1 ){ ?>
-						
-						<input type="checkbox" name="" lay-filter="iswsitch_state" data-href="<?php echo U('solitaire/changestate',array('type'=>'state','id'=>$item['id'] ));?>" <?php if($item['state'] == 1){ ?> checked<?php } ?> lay-skin="switch" lay-text="启用|禁用">
-					
-					<?php }else if($item['appstate'] == 2){ ?>
-						拒绝审核
-					<?php } ?>
-				  </td>
-				  <td>
-					  <?php echo date('Y-m-d H:i:s', $item['begin_time']); ?><br/>
-					  <?php echo date('Y-m-d H:i:s', $item['end_time']); ?>
-				  </td>
-                  <td style="overflow:visible;position:relative">
-                    <a class='layui-btn layui-btn-xs' href="<?php echo U('solitaire/add', array('id'=>$item['id'],'ok' => 1));?>" >
-                      <i class="layui-icon layui-icon-edit"></i>编辑
-                    </a>
-                    <a class='layui-btn layui-btn-xs deldom' href="javascript:;" data-href="<?php echo U('solitaire/delete',array('id'=>$item['id']));?>" data-confirm='确认要删除吗?'>
-                      <i class="layui-icon">&#xe640;</i>删除
-                    </a>
-					<?php if( $item['state'] == 1 && $item['appstate'] == 1 ){ ?>
-						<a class='layui-btn layui-btn-xs' href="<?php echo U('solitaire/detail', array('id'=>$item['id'],'ok' => 1));?>" >
-						  查看详情
-						</a>
-					<?php } ?>
-                  </td>
-				  
-                </tr>
-              <?php } ?>
-              </tbody>
-              <tfoot>
-              <tr>
-                <td colspan="4">
-                  <div class="page-table-header">
-                    <input type="checkbox" name="checkall" lay-skin="primary" lay-filter="checkboxall">
-                    <div class="btn-group">
-                     <button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch-remove' data-confirm="确认要删除吗?" data-href="<?php echo U('solitaire/delete');?>">删除</button>
-                    </div>
-                  </div>
-                </td>
-                <td colspan="6" style="text-align: right">
-                  <?php echo ($pager); ?>
-                </td>
-              </tr>
-              </tfoot>
-            </table>
-          </div>
-        </div>
-        
-      </form>
-    </div>
-  </div>
-</div>
-
-
-
-<script src="/layuiadmin/layui/layui.js"></script>
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  
-  
-  $('.deldom').click(function(){
-    var s_url = $(this).attr('data-href');
-    layer.confirm($(this).attr('data-confirm'), function(index){
-           $.ajax({
-            url:s_url,
-            type:'post',
-            dataType:'json',
-            success:function(info){
-            
-              if(info.status == 0)
-              {
-                layer.msg(info.result.message,{icon: 1,time: 2000});
-              }else if(info.status == 1){
-                var go_url = location.href;
-                if( info.result.hasOwnProperty("url") )
-                {
-                  go_url = info.result.url;
-                }
-                
-                layer.msg('操作成功',{time: 1000,
-                  end:function(){
-                    location.href = info.result.url;
-                  }
-                }); 
-              }
-            }
-          })
-        }); 
-  })
-  
-  $('.btn-operation').click(function(){
-    var ids_arr = [];
-    var obj = $(this);
-    var s_toggle = $(this).attr('data-toggle');
-    var s_url = $(this).attr('data-href');
-    
-    
-    $("input[name=item_checkbox]").each(function() {
-      
-      if( $(this).prop('checked') )
-      {
-        ids_arr.push( $(this).val() );
-      }
-    })
-    if(ids_arr.length < 1)
-    {
-      layer.msg('请选择要操作的内容');
-    }else{
-      var can_sub = true;
-      if( s_toggle == 'batch-remove' )
-      {
-        can_sub = false;
-        
-        layer.confirm($(obj).attr('data-confirm'), function(index){
-           $.ajax({
-            url:s_url,
-            type:'post',
-            dataType:'json',
-            data:{ids:ids_arr},
-            success:function(info){
-            
-              if(info.status == 0)
-              {
-                layer.msg(info.result.message,{icon: 1,time: 2000});
-              }else if(info.status == 1){
-                var go_url = location.href;
-                if( info.result.hasOwnProperty("url") )
-                {
-                  go_url = info.result.url;
-                }
-                
-                layer.msg('操作成功',{time: 1000,
-                  end:function(){
-                    location.href = info.result.url;
-                  }
-                }); 
-              }
-            }
-          })
-        }); 
-      }else{
-        $.ajax({
-          url:s_url,
-          type:'post',
-          dataType:'json',
-          data:{ids:ids_arr},
-          success:function(info){
-          
-            if(info.status == 0)
-            {
-              layer.msg(info.result.message,{icon: 1,time: 2000});
-            }else if(info.status == 1){
-              var go_url = location.href;
-              if( info.result.hasOwnProperty("url") )
-              {
-                go_url = info.result.url;
-              }
-              
-              layer.msg('操作成功',{time: 1000,
-                end:function(){
-                  location.href = info.result.url;
-                }
-              }); 
-            }
-          }
-        })
-      }
-    }
-  })
-  
-  form.on('switch(is_appstate1)', function(data){
-    
-    var s_url = $(this).attr('data-href')
-    
-    $.ajax({
-      url:s_url,
-      type:'post',
-      dataType:'json',
-      success:function(info){
-      
-        if(info.status == 0)
-        {
-          layer.msg(info.result.message,{icon: 1,time: 2000});
-        }else if(info.status == 1){
-          var go_url = location.href;
-          if( info.result.hasOwnProperty("url") )
-          {
-            go_url = info.result.url;
-          }
-          
-          layer.msg('操作成功',{time: 1000,
-            end:function(){
-              location.href = info.result.url;
-            }
-          }); 
-        }
-      }
-    })
-  });  
-  form.on('switch(is_appstate2)', function(data){
-    
-    var s_url = $(this).attr('data-href')
-    
-    $.ajax({
-      url:s_url,
-      type:'post',
-      dataType:'json',
-      success:function(info){
-      
-        if(info.status == 0)
-        {
-          layer.msg(info.result.message,{icon: 1,time: 2000});
-        }else if(info.status == 1){
-          var go_url = location.href;
-          if( info.result.hasOwnProperty("url") )
-          {
-            go_url = info.result.url;
-          }
-          
-          layer.msg('操作成功',{time: 1000,
-            end:function(){
-              location.href = info.result.url;
-            }
-          }); 
-        }
-      }
-    })
-  });  
-  
-  form.on('switch(iswsitch_state)', function(data){
-    
-    var s_url = $(this).attr('data-href')
-    
-    var s_value = 1;
-    if(data.elem.checked)
-    {
-    s_value = 1;
-    }else{
-    s_value = 0;
-    }
-    
-    $.ajax({
-      url:s_url,
-      type:'post',
-      dataType:'json',
-      data:{value:s_value},
-      success:function(info){
-      
-        if(info.status == 0)
-        {
-          layer.msg(info.result.message,{icon: 1,time: 2000});
-        }else if(info.status == 1){
-          var go_url = location.href;
-          if( info.result.hasOwnProperty("url") )
-          {
-            go_url = info.result.url;
-          }
-          
-          layer.msg('操作成功',{time: 1000,
-            end:function(){
-              location.href = info.result.url;
-            }
-          }); 
-        }
-      }
-    })
-  });  
-  form.on('checkbox(checkboxall)', function(data){
-    
-    if(data.elem.checked)
-    {
-    $("input[name=item_checkbox]").each(function() {
-      $(this).prop("checked", true);
-    });
-    $("input[name=checkall]").each(function() {
-      $(this).prop("checked", true);
-    });
-    
-    }else{
-    $("input[name=item_checkbox]").each(function() {
-      $(this).prop("checked", false);
-    });
-    $("input[name=checkall]").each(function() {
-      $(this).prop("checked", false);
-    });
-    }
-    
-    form.render('checkbox');
-  });
-  
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-  
-   $.ajax({
-    url: data.form.action,
-    type: data.form.method,
-    data: data.field,
-    dataType:'json',
-    success: function (info) {
-      
-      if(info.status == 0)
-      {
-        layer.msg(info.result.message,{icon: 1,time: 2000});
-      }else if(info.status == 1){
-        var go_url = location.href;
-        if( info.result.hasOwnProperty("url") )
-        {
-          go_url = info.result.url;
-        }
-        
-        layer.msg('操作成功',{time: 1000,
-          end:function(){
-            location.href = info.result.url;
-          }
-        }); 
-      }
-    }
-  });
-  
-    return false;
-  });
-})
-
-</script>  
-</body>
-</html>

+ 0 - 1561
Runtime/Cache/Seller/c691c9c4728d656d559517264a51abb8.php

@@ -1,1561 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-	window.sysinfo = {
-	<?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-	
-	<?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-	
-	'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-	
-	'siteroot': '<?php echo ($_W['siteroot']); ?>',
-			'siteurl': '<?php echo ($_W['siteurl']); ?>',
-			'attachurl': '<?php echo ($_W['attachurl']); ?>',
-			'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-			'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-			'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-	'cookie' : {'pre': ''},
-	'account' : <?php echo json_encode($_W['account']);?>,
-	};
-</script>
-
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-<link href="/static/css/snailfish.css" rel="stylesheet">
-<style>
-    tbody tr td{
-        position: relative;
-    }
-    tbody tr  .icow-weibiaoti--{
-        visibility: hidden;
-        display: inline-block;
-        color: #fff;
-        height:18px;
-        width:18px;
-        background: #e0e0e0;
-        text-align: center;
-        line-height: 18px;
-        vertical-align: middle;
-    }
-    tbody tr:hover .icow-weibiaoti--{
-        visibility: visible;
-    }
-    tbody tr  .icow-weibiaoti--.hidden{
-        visibility: hidden !important;
-    }
-    .full .icow-weibiaoti--{
-        margin-left:10px;
-    }
-    .full>span{
-        display: -webkit-box;
-        display: -webkit-flex;
-        display: -ms-flexbox;
-        display: flex;
-        vertical-align: middle;
-        align-items: center;
-    }
-    tbody tr .label{
-        margin: 5px 0;
-    }
-    .goods_attribute a{
-        cursor: pointer;
-    }
-    .newgoodsflag{
-        width: 22px;height: 16px;
-        background-color: #ff0000;
-        color: #fff;
-        text-align: center;
-        position: absolute;
-        bottom: 70px;
-        left: 57px;
-        font-size: 12px;
-    }
-	.a{cursor: pointer;}
-	.img-40 {
-		width: 40px;
-		height: 40px;
-	}
-	.daterangepicker select.ampmselect, .daterangepicker select.hourselect, .daterangepicker select.minuteselect{
-		width:auto!important;
-	}
-	.hxBtn{color:#428bca;}
-	.form-title {
-		font-size: 16px;
-		font-weight: bold;
-		line-height: 22px;
-		padding: 9px 20px;
-		background-color: #F4F6F8;
-		border-radius: 2px;
-		margin-top: 20px;
-		margin-bottom: 20px;
-	}
-	ul.form_list li{width: 30%;display: inline-block;text-align: left;margin: 10px;}
-</style>
-
-</head>
-<body layadmin-themealias="default">
-
-<table id="demo" lay-filter="test"></table>
-
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">
-			当前位置:<span class="line-text">订单详情</span>
-		</div>
-		
-		<div class="layui-card-body" style="padding:15px;">
-		
-			<ul class="layui-timeline">
-			  <?php foreach($history_list as $history){ ?>
-			  <li class="layui-timeline-item">
-				<i class="layui-icon layui-timeline-axis"></i>
-				<div class="layui-timeline-content layui-text">
-				  <h3 class="layui-timeline-title">
-					<?php echo date("Y-m-d H:i:s", $history['date_added']); ?>&nbsp;<span class="layui-badge <?php if($history['order_status_id'] != 1){ ?>layui-bg-green<?php }else{ ?> layui-badge<?php } ?>"><?php echo $history['order_status_name']; ?></span>
-				  </h3>
-				  <p>
-					<?php echo $history['comment']; ?>
-				  </p>
-				</div>
-			  </li>
-			  <?php } ?>
-			</ul> 	
-			<form action="" class="layui-form" lay-filter="example" method="post" >
-				<input type="hidden" name="id" value="<?php echo ($item['order_id']); ?>" />
-				<input type="hidden" name="dispatchid" value="<?php echo ($express_info['id']); ?>" />
-				<!---订单详情begin--->
-				
-				<div class="layui-row order-container">
-					<div class="order-container-left" style="border-right: 1px solid #efefef">
-						<div class="layui-row">
-							<div class="layui-col-md-12">
-								<ul class="">
-									<li class="text"><span class="layui-col-sm">订单编号:</span><?php echo ($item['order_num_alias']); ?></li>
-									<?php if( !empty($coupon)){ ?>
-									<li class="text">
-										<span class="layui-col-sm">优惠券:</span>
-										<span class="text-default"><?php echo ($coupon['voucher_title']); ?> &nbsp;&nbsp;</span>
-									</li>
-									<?php } ?>
-									
-									<li class="text">
-										<span class="layui-col-sm">付款方式:</span>
-										<span class="text-default">
-											<?php if( $item['payment_code'] == ''){ ?>未付款<?php } ?>
-											<?php if( $item['payment_code'] == 'yuer'){ ?>余额支付<?php } ?>
-											<?php if( $item['payment_code'] == 'admin'){ ?>后台付款<?php } ?>
-											<?php if( $item['payment_code'] == 'weixin'){ ?>微信支付<?php } ?>
-											<?php if( $item['payment_code'] == 'supply_mobile'){ ?>供应商手机端付款<?php } ?>
-											<?php if( $item['payment_code'] == 'cashon_delivery'){ ?>货到付款<?php } ?>
-										</span>
-									</li>
-									<li class="text">
-										<span class="layui-col-sm">买  家:</span>
-										<span class="text-default">
-											<?php  if (defined('ROLE') && ROLE == 'agenter' ) { ?>
-											 <?php echo ($member['username']); ?> &nbsp;&nbsp;会员ID :<?php echo ($member['member_id']); ?>
-											<?php }else{ ?>
-												<?php if($s_id == 1){ ?>
-													<a href="<?php echo U('user/detail',array('id'=>$member['member_id']));?>" target='_blank' class="text-primary"><?php echo ($member['username']); ?></a> 
-												<?php }else{ ?>
-													<a id="user" target='_blank' class="text-primary"><?php echo ($member['username']); ?></a> 
-												<?php } ?>
-											&nbsp;&nbsp;会员ID :<?php echo ($member['member_id']); ?>
-											<?php if( !empty($member['content']) ){ ?>
-											 <font class="text-danger">(<?php echo ($member['content']); ?>)</font>
-											<?php } ?>
-											
-											<?php } ?>
-											&nbsp;&nbsp;
-										</span>
-									</li>
-									<?php if($is_order_note_open == 1){ ?>
-									<?php if(!($item['delivery'] == 'express' && ($item['type'] == 'normal' || $item['type'] == 'pintuan'))){ ?>
-									<?php if( !empty($item['note_content'])){ ?>
-									<li class="text">
-										<span style="padding-left: 10px;"><?php echo ($order_note_name); ?>:</span>
-										<span class="text-default">
-											 <?php echo ($item['note_content']); ?>
-										</span>
-									</li>
-									<?php } ?>
-									<?php } ?>
-									<?php } ?>
-
-									<li class="text">
-										<span class="layui-col-sm">配送方式:</span>
-										<span class="text-default">
-											<?php if( $item['delivery'] == 'pickup'){ ?>
-												社区自提
-											<?php }elseif( $item['delivery'] == 'express' ){ ?>
-
-												<?php if( $is_virtualcard == 1 ){ ?>
-												礼品卡兑换余额
-												<?php }else{ ?>
-													快递<?php if( !empty($express_info['name'])){ ?>(<?php echo ($express_info['name']); ?> <?php if( !empty($item['shipping_no'])){ ?>快递单号:<?php echo ($item['shipping_no']); } ?>)<?php } ?>
-													<a class="text-primary" data-toggle="ajaxModal" href="javascript:;" data-href="<?php echo U('order/express', array('order_id' => $item['order_id']));?>" >查看物流</a>
-												<?php } ?>
-
-
-											<?php }elseif( $item['delivery'] == 'tuanz_send' ){ ?>
-												团长配送
-											<?php  }elseif( $item['delivery'] == 'hexiao' ){ ?>
-												到店核销
-											<?php  }else{ ?>
-												同城配送
-											<?php } ?>
-										</span>
-									</li>
-									<?php if( $is_virtualcard == 0 ){ ?>
-									<li class="text">
-										<span class="layui-col-sm">收 货 人:</span>
-										<span class="text-default">
-											<?php echo ($item['shipping_name']); ?> <?php echo ($item['shipping_tel']); ?> 
-										</span>
-									</li>
-									<?php } ?>
-									<?php if($is_can_look_headinfo){ ?>
-									<?php if( $item['type'] != 'integral' && ( $item['type'] != 'pintuan' || $item['head_id'] > 0 ) ){ ?>
-									<li class="text">
-										<span class="layui-col-sm">团  长:</span>
-										<span class="text-default">
-											<?php echo ($item['ziti_name']); ?> <?php echo ($item['ziti_mobile']); ?>
-										</span>
-									</li>
-									<?php } ?>
-									
-									<?php if( $item['delivery'] == 'tuanz_send'){ ?>
-									<li class="text">
-										<span class="layui-col-sm">送货地址:</span>
-										<span class="text-default">
-											<?php echo ($item['tuan_send_address']); ?>
-										</span>
-									</li>
-									<?php } ?>
-									
-									<?php }else{ ?>
-									
-									<li class="text">
-										<span class="layui-col-sm">团  长:</span>
-										<span class="text-default">
-											<?php echo ($item['ziti_name']); ?>
-										</span>
-									</li>
-									
-									<?php } ?>
-									
-									
-									<?php if( $item['delivery'] == 'pickup'){ ?>
-									<li class="text">
-										<span class="layui-col-sm">取货地址:</span>
-										<span class="text-default">
-											<?php echo ($item['shipping_address']); ?>
-										</span>
-									</li>
-									<?php } ?>
-									<?php if( !empty($item['address_id']) && $is_virtualcard == 0 ){ ?>
-									<li class="text">
-										<span class="layui-col-sm">收货详细地址:</span>
-										<span class="text-default">
-											<?php echo ($province_info['name']); echo ($city_info['name']); echo ($area_info['name']); ?>  <?php if( $item['delivery'] == 'tuanz_send'){ echo ($item['tuan_send_address']); }else{ ?> <?php echo ($item['shipping_address']); } ?>, <?php echo ($item['shipping_name']); ?>, <?php echo ($item['shipping_tel']); ?> 
-											<a class='text-primary op js-clip' data-url="<?php echo ($province_info['name']); echo ($city_info['name']); echo ($area_info['name']); if( $item['delivery'] == 'tuanz_send'){ echo ($item['tuan_send_address']); }else{ ?> <?php echo ($item['shipping_address']); } ?>, <?php echo ($item['shipping_name']); ?>, <?php echo ($item['shipping_tel']); ?>">复制</a>
-										</span>
-									</li>
-
-									<?php } ?>
-
-									<?php if( !empty($item['comment'])){ ?>
-									<li class="text"><span class="col-sm">买家备注:</span><span class="text-default"><?php echo ($item['comment']); ?></span></li>
-									<?php } ?>
-								</ul>
-							</div>
-							
-							<?php if( !empty($item['address_id'])){ ?>
-							<div class="layui-col-md-12 ops">
-								<a class="btn btn-primary" style="margin-left: 10px" data-toggle="ajaxModal" href="javascript:;" data-href="<?php echo U('order/opchangeaddress', array('id' => $item['order_id']));?>">修改订单收货信息</a>
-							</div>
-							<?php } ?>
-							
-						</div>
-
-					</div>
-					<div class=" order-container-static">
-						<div class=" status">
-							<span class="text"> 订单状态:</span>
-							<?php if( $item['order_status_id'] == 1){ ?>
-							<span class="text-warning font18">待发货</span> 
-							<?php } ?>
-							<?php if( $item['order_status_id'] == 3){ ?>
-							<span class="text-warning font18">待付款</span> 
-							<?php } ?>
-							<?php if( $item['order_status_id'] == 4){ ?>
-								<span class="text-warning font18">已发货</span>
-								<?php if($item['delivery'] == 'hexiao'){ ?>
-									<span class="text-warning font18">待使用</span>
-								<?php }else{?>
-									<span class="text-warning font18">待收货</span>
-								<?php } ?>
-							<?php } ?>
-							<?php if( $item['order_status_id'] == 6){ ?>
-							<span class="text-warning font18">已签收</span>
-							<?php } ?>
-							
-							<?php if( $item['order_status_id'] == 7){ ?>
-							<span class="text-warning font18">已退款</span>
-							<?php } ?>
-							<?php if( $item['order_status_id'] == 14){ ?>
-							<span class="text-warning font18">配送中</span>
-							<?php } ?>
-							<?php if( $item['order_status_id'] == 11){ ?>
-							<span class="text-success font18">交易完成</span>
-							<?php } ?>
-							<?php if( $item['order_status_id'] == 5){ ?>
-							<span class="text-default font18">已关闭</span>
-							<?php } ?>
-
-							<?php if( $item['order_status_id'] == 15){ ?>
-							<span class="text-default font18">定金已支付,等待活动结束买家支付尾款</span>
-							<?php } ?>
-							
-							<i>
-								<?php if( $item['order_status_id'] == 3){ ?>
-								   ( 等待买家付款)
-								<?php } ?>
-								
-								<?php if( $item['order_status_id'] == 1 ){ ?>(买家已经付款,请商家尽快发货)<?php } ?>
-								
-								<?php if( $item['order_status_id'] == 4){ ?>
-									<?php if($item['delivery'] == 'hexiao'){ ?>
-									(买家已经付款,等待买家到店核销)
-									<?php }else{ ?>
-									(商家已发货,等待买家收货并交易完成)
-									<?php }?>
-								<?php } ?>
-								<?php if( $item['order_status_id'] == 14){ ?>(商家已发货,正在配送给团长途中)<?php } ?>
-								
-								<?php if( $item['order_status_id'] == 12){ ?>
-										(  <span class="label label-default">已维权</span> <?php if( !empty($refund['refundtime'])){ ?>维权时间: <?php echo date('Y-m-d H:i:s',$refund['refundtime']); } ?>)
-									
-								<?php } ?>
-							</i>
-						</div>
-						<?php if( $item['delivery'] == 'localtown_delivery'){ ?>
-							<?php if( !empty($item['expected_delivery_time']) && empty($item['presale_info']) ){ ?>
-							<div>
-								<ul>
-									<!--
-									<?php
- $weekarray=array("日","一","二","三","四","五","六"); $week = $weekarray[date('w',$item['date_added'])]; ?>
-									<li class="text">期望配送时间:<span class="text-default"><?php echo date('m-d',$item['date_added'])?>(周<?php echo $week;?>)<?php echo ($item['expected_delivery_time']); ?></span></li>-->
-									<li class="text">期望配送时间:<span class="text-default"><?php echo ($item['expected_delivery_time']); ?></span></li>
-								</ul>
-							</div>
-							<?php } ?>
-							<?php
- if( $item['order_status_id'] == 4 || $item['order_status_id'] == 6 || $item['order_status_id'] == 11 ){ if(!empty($item['orderdistribution_order']['username'])){ ?>
-							<div>
-								<ul>
-									<li class="text">配送员:
-										<span class="text-default"><a href="javascript:void(0);" style="color:#428bca;"><?php echo $item['orderdistribution_order']['username']; ?></a></span>
-										<!--<?php if($item['orderdistribution_order']['orderdistribution_id'] == -1){?>
-										<i class="layui-icon layui-icon-about font20" data-message="“批量发货--订单批量确认收货”系统默认配送员配送完成。" style="font-size: 20px;"></i>
-										<?php }?>-->
-									</li>
-								</ul>
-							</div>
-							<?php }} ?>
-						<?php } ?>
-
-						<?php if( $item['type'] == 'pintuan' ){ ?>
-						<div>
-							<td>
-								<a href="<?php echo U('group/pintuan_detail', array('pin_id' => $pin_id));?>" target="_blank" class="btn btn-success btn-sm">查看拼团详情</a>
-							</td>
-						</div>
-						<?php } ?>
-						
-						<?php if( !empty($item['transaction_id'])){ ?>
-						<div>
-							<ul>
-								<li class="text">交易单号:<span class="text-default"><?php echo ($item['transaction_id']); ?></span></li>
-							</ul>
-						</div>
-						<?php } ?>
-
-						<?php if( !empty($item['presale_info'])){ ?>
-						<div>
-							<ul>
-								<?php if( $item['presale_info']['presale_type'] == 0 ){ ?>
-								<li class="text">预售方式:<span class="text-default">定金预售</span></li>
-								<?php }else{ ?>
-								<li class="text">预售方式:<span class="text-default">全款预售</span></li>
-								<?php } ?>
-								<li class="text">阶段一: <span class="text-default">预付定金(定金 ¥<?php echo ($item['presale_info']['presale_ding_money']); ?> <?php echo !empty($item['presale_info']['presale_deduction_money']) && $item['presale_info']['presale_deduction_money'] > 0 ? '抵扣 ¥'.$item['presale_info']['presale_deduction_money'] : ''; ?>)</span></li>
-
-								<?php if( $item['presale_info']['presale_type'] == 0 ){ ?>
-
-								<li class="text">阶段二:
-									<span class="text-default">
-										<?php if( $item['presale_info']['state'] == 1 ){ ?>
-										支付尾款(未支付)
-										<?php }else if( $item['presale_info']['state'] == 2 ){ ?>
-										支付尾款(已支付)
-										<?php }else if( $item['presale_info']['state'] == 0 ){ ?>
-										定金还未支付
-										<?php } ?>
-									</span>
-								</li>
-								<?php } ?>
-
-								<?php if( $item['presale_info']['presale_limit_balancepaytime'] == 0 ){ ?>
-								<li class="text">尾款支付时间:<span class="text-default">不限制</span></li>
-								<?php }else if( $item['presale_info']['presale_limit_balancepaytime'] == 1 && $item['presale_info']['presale_type'] == 0 ){ ?>
-								<li class="text">尾款支付时间:
-									<span class="text-default"><?php echo ($item['presale_info']['balance_pay_begintime']); ?> - <?php echo ($item['presale_info']['balance_pay_endtime']); ?></span>
-								</li>
-								<?php } ?>
-							</ul>
-						</div>
-						<?php } ?>
-
-
-						<?php if( !empty($item['expresssn']) && $item['delivery']=='express' && !empty($item['shipping_method'])){ ?>
-						<div>
-							<ul>
-								<li class="text">快递公司:<span class="text-default"><?php if( empty($express_info['name'])){ ?>其他快递<?php  }else{ echo ($express_info['name']); } ?></span></li>
-								<li class="text">快递单号:<span class="text-default"><?php echo ($item['shipping_no']); ?></span>&nbsp;<a class="text-primary op" data-toggle="ajaxModal" href="<?php echo U('util/express', array('id' => $item['id'],'express'=>$item['express'],'expresssn'=>$item['expresssn']));?>">查看物流</a></li>
-								<li class="text">发货时间:<span class="text-default"><?php echo date('Y-m-d H:i:s',$item['express_time']);?></span></li>
-							</ul>
-						</div>
-						<?php } ?>
-						
-						<?php if( $item['delivery']=='pickup' ){ ?>
-						<div>
-							<ul>
-								<?php if( !empty($item['express_time'])){ ?>
-							   <li class="text">发货时间:<span class="text-default"><?php echo date('Y-m-d H:i:s',$item['express_time']);?></span></li>
-							   <?php } ?>
-							   <?php if( !empty($item['express_tuanz_time'])){ ?>
-							   <li class="text">团长接货时间:<span class="text-default"><?php echo date('Y-m-d H:i:s',$item['express_tuanz_time']);?></span></li>
-							   <?php } ?>
-							</ul>
-						</div>
-						<?php } ?>
-						
-						
-						
-						<div class="ops  layui-col-md-12" style="padding: 0;">
-						   
-							<?php  $is_ops_show = true; if (defined('ROLE') && ROLE == 'agenter' ) { $supper_info = get_agent_logininfo(); if( $supper_info['type'] != 1) { $is_ops_show = false; } } ?>
-							<?php if($is_ops_show){ ?>
-							<!---操作开始-->
-							<?php if( $item['order_status_id'] == 3){ ?>
-							<!--未付款-->
-							<?php  $is_pay_show = true; if (defined('ROLE') && ROLE == 'agenter' ) { $supper_info = json_decode(base64_decode($_GPC['__lionfish_comshop_agent']), true); $is_pay_show = false; } ?>
-							<?php if($is_pay_show){ ?>
-								<?php if(!isset($open_admin_payment) || $open_admin_payment == '1'){ ?>
-								<a class="btn btn-primary btn-xs deldom" data-toggle="ajaxPost" href="javascript:;" data-href="<?php echo U('order/oppay', array('id' => $item['order_id']));?>" data-confirm="确认此订单已付款吗?">确认付款</a>
-								<?php } ?>
-							<?php } ?>
-							<?php }elseif( $item['order_status_id'] == 1 ){ ?>
-							<!--已付款-->
-
-								<?php if( $item['order_status_id'] == 1 && $item['delivery'] == 'express' ){ ?>
-								<!--快递 发货-->
-																		
-								<a class="btn btn-primary btn-xs ajaxPost" data-toggle='ajaxModal' href="javascript:;" data-href="<?php echo U('order/opsend', array('id' => $item['order_id']));?>" data-confirm="确认此订单发货吗?">确认发货</a>
-
-								<?php }elseif( $item['order_status_id'] == 1 && ($item['delivery'] == 'pickup' || $item['delivery'] == 'tuanz_send' ) ){ ?>
-								  <a class="btn btn-primary btn-xs deldom" href="javascript:;"   data-confirm="确认此订单发货吗?" data-href="<?php echo U('order/opsend_tuanz', array('id' => $item['order_id']));?>">确认配送</a>
-								
-								
-								<?php  }else{ ?>
-									
-
-								<?php } ?>
-
-
-							<?php }elseif( $item['order_status_id'] == 14 && ($item['delivery'] == 'pickup' || $item['delivery'] == 'tuanz_send') ){ ?>
-								<?php if($is_can_confirm_delivery){ ?>
-								  <a class="btn btn-primary btn-xs deldom" href="javascript:;" data-href="<?php echo U('order/opsend_tuanz_over', array('id' => $item['order_id']));?>" data-confirm="确认送达团长吗?">确认送达团长</a>
-							    <?php }?>
-
-							<?php }elseif( $item['order_status_id'] == 14 && ($item['delivery'] == 'express') ){ ?>
-								<a class="btn btn-primary btn-xs deldom" href="javascript:;" data-href="<?php echo U('order/opreceive', array('id' => $item['order_id']));?>" data-confirm="确认订单收货吗?">确认收货</a><br />
-								
-								
-							<?php }elseif( $item['order_status_id'] == 4 || $item['order_status_id'] == 6 ){ ?>
-							<!--已发货-->
-								<?php if( $item['order_status_id'] == 4){ ?>
-							<!--快递 取消发货-->
-									
-								<?php if($is_can_confirm_receipt){ ?>
-									<?php if($item['delivery'] == 'hexiao'){ ?>
-									<a class="btn btn-primary btn-xs deldom" href="javascript:;"   data-confirm="确认使用该订单吗?<br/><span style='color:#ad0909;font-size:13px;'>确认使用订单以后,订单下面全部商品默认核销成功。</span>" data-href="<?php echo U('order/order_hexiao', array('id' => $item['order_id']));?>">确认使用</a>
-									<?php }else{ ?>
-									<a class="btn btn-primary btn-xs deldom" href="javascript:;" data-href="<?php echo U('order/opreceive', array('id' => $item['order_id']));?>" data-confirm="确认订单收货吗?">确认收货</a><br />
-									<?php }?>
-								<?php }?>
-								
-								<?php if( $item['delivery'] == 'express' && $is_virtualcard == 0 ){ ?>
-								<a class="text-primary" data-toggle="ajaxModal" href="javascript:;" data-href="<?php echo U('order/opchangeexpress', array('id' => $item['order_id']));?>">修改物流</a>
-								
-								<?php } ?>
-								
-								<?php  }else{ ?>
-								  
-								  <a class="btn btn-primary btn-xs deldom"  href="javascript:;" data-href="<?php echo U('order/opfinish', array('id' => $item['order_id']));?>" data-confirm="确认完成订单吗?">确认完成</a>
-								<?php } ?>
-							<?php }elseif( $item['order_status_id'] == 3 ){ ?>
-
-							<?php } ?>
-							<!---操作结束--->
-							<?php } ?>
-
-							<?php
- if (!defined('ROLE')){ if( $item['order_status_id'] == 3 && $item['type'] != 'integral' && $is_presale == 0 ){ ?>
-							<a class='op btn btn-primary btn-xs' data-toggle="ajaxModal" href="javascript:;" data-href="<?php echo U('order/change_order', array('id' => $item['order_id']));?>" >
-								<i class="icow icow-yibiaoji" style="color: #999;display: inline-block;vertical-align: middle" title="订单改价" ></i>
-								订单改价
-							</a>
-							<?php }} ?>
-
-							<a class="text-primary" data-toggle="ajaxModal" href="javascript:;" data-href="<?php echo U('order/opremarksaler', array('id' => $item['order_id']));?>"  >
-								<?php if( !empty($item['remarksaler'])){ ?>查看备注
-								 <?php  }else{ ?>
-								添加备注
-								<?php } ?>
-							</a>
-						   
-							
-						</div>
-						<?php if( $item['order_status_id'] != 3){ ?>
-						<div class="order-container-footer text col-md-12" style="border: none;padding: 0">
-							<?php if( $item['order_status_id'] == 1){ ?>
-							友情提示:如果无法进行发货,请及时联系买家进行妥善处理;
-							<?php } ?>
-							<?php if( $item['order_status_id'] == 4){ ?>
-							<?php if($item['delivery'] == 'hexiao'){ ?>
-							<span style="font-size:12px;color:#a7a5a5;">注:确认使用后,订单下面全部商品默认核销成功!</span>
-							<br/>
-							友情提示:如果无法进行发货,请及时联系买家进行妥善处理;
-							<?php }else{?>
-							友情提示:
-								请及时关注物流状态,确保买家及时收到商品;
-								如果买家未收到货物或有退换货请求,请及时联系买家妥善处理
-							<?php }} ?>
-							<?php if( $item['order_status_id']==11){ ?>
-							友情提示:
-							交易成功,如买家有售后申请,请与买家进行协商,妥善处理
-							<?php } ?>
-						</div>
-						<?php } ?>
-					</div>
-					
-				</div>
-				<!---订单详情end-->
-				<?php if( $is_virtualcard == 1 ){ ?>
-				<h3 style="margin:15px 0px;">礼品卡信息</h3>
-				<table class="layui-table ">
-					<thead>
-					<tr class="trorder" style="background: #fff">
-						<th class="" style="width:200px;text-align: left;padding-right: 0;">
-							兑换码
-						</th>
-						<th style="padding-left: 20px;width:10%;">状态</th>
-						<th style="text-align: left;padding-left: 20px;width:10%;">有效期</th>
-						<th  style="text-align: left;width: 100px;">可兑换余额</th>
-						<th  style="text-align: left;width: 100px;">使用人</th>
-					</tr>
-					</thead>
-					<tbody>
-						<tr>
-							<td style="text-align:left;"><?php echo ($virtualcard_info['code_sn']); ?></td>
-							<td>
-								<?php
- switch( $virtualcard_info['state'] ) { case 0: echo '未支付'; break; case 1: echo '未使用'; break; case 2: echo '已使用'; break; case 3: echo '已失效'; break; } ?>
-							</td>
-							<td>
-								<?php if( $virtualcard_info['is_effect'] == 1 ){ ?>
-									<?php if( $virtualcard_info['effect_type'] == 0 ){ ?>
-										无限期
-									<?php }else{ ?>
-										<?php echo ($virtualcard_info['effect_enddate']); ?>
-									<?php } ?>
-								<?php }else{ ?>
-									已失效
-								<?php } ?>
-							</td>
-							<td>¥<?php echo round($virtualcard_info['code_money'], 2);?></td>
-							<td><?php echo ($virtualcard_info['use_member_name']); ?></td>
-						</tr>
-					</tbody>
-				</table>
-				<?php } ?>
-
-				<?php
- if( !empty($order_form_data) && !empty($order_form_data['form_list']) ){ $form_list = $order_form_data['form_list']; ?>
-				<div class="form-title">
-					关联表单信息:
-				</div>
-				<div class="layui-row">
-					<ul class="form_list">
-						<?php
- foreach($form_list as $k => $v){ ?>
-						<li>
-							<?php if($v['type'] == 'image'){ ?>
-							<?php echo ($v['item_name']); ?>:
-							<?php if(!empty($v['item_val'])){ ?>
-							<?php foreach($v['item_val'] as $ik=>$iv){ ?>
-							<?php if( empty($iv) ){ ?>
-							暂无
-							<?php }else{ ?>
-							<img src="<?php echo ($iv); ?>" style="width:52px;height:52px;border:1px solid #efefef; padding:1px;">
-							<?php } ?>
-
-							<?php } ?>
-							<?php } ?>
-							<?php }else{ ?>
-							<?php echo ($v['item_name']); ?>:<?php echo ($v['item_val']); ?>
-							<?php } ?>
-						</li>
-						<?php } ?>
-					</ul>
-				</div>
-				<?php } ?>
-
-				<h3 style="margin:15px 0px;">商品信息</h3>
-				<p style="text-aligin:right;">
-					<?php if( in_array($item['order_status_id'], array(1,4,6,10,11,12,14)) && $is_can_nowrfund_order ){ ?>
-					<a class='op btn btn-primary btn-xs' style="float:right;"  data-toggle="ajaxModal" href="javascript:;" data-href="<?php echo U('order/oprefund_do', array('id' => $item['order_id']));?>" >
-						
-						<i class="icow icow-yibiaoji" style="color: #999;display: inline-block;vertical-align: middle" title="整个订单立即退款" ></i>
-						整个订单立即退款
-					</a>
-					<?php } ?>
-				</p>
-				<table class="layui-table ">
-					<thead>
-					<tr class="trorder" style="background: #fff">
-						<th class="" style="width: 75px;text-align: right;padding-right: 0;">
-							商品标题
-						</th>
-						<th style="width:10%;">
-
-						</th>
-						<th style="padding-left: 20px;width:10%;">规格、编号</th>
-						<th style="text-align: left;padding-left: 20px;width:10%;">基数</th>
-						<?php if( $item['type'] != 'integral' ){ ?>
-						<th style="padding-left: 20px;width:15%;">团长佣金&nbsp;</th>
-						<?php } ?>
-						<th style="width:120px;">是否退款</th>
-						<?php if($item['delivery'] == 'hexiao'){ ?>
-						<th style="width:120px;">到店核销方式</th>
-						<?php }?>
-						<th style="text-align: center;width: 100px">供应商</th>
-						<th style="text-align: center;width: 80px">单价</th>
-						<th style="text-align: center;width: 80px;">数量</th>
-					   
-						<th  style="text-align: center;width: 100px;">价格</th>
-						
-					</tr>
-					</thead>
-					<tbody>
-
-					<?php $i =0; ?>
-					<?php $member_youhui = 0; ?>
-					<?php $total_refund_money = 0; ?>
-					<?php $total_refund_shipping_fare = 0; ?>
-					
-					<?php $integral_total_refund_money = 0; ?>
-					<?php $integral_total_refund_shipping_fare = 0; ?>
-					
-					
-					<?php $order_total = 0; ?>
-					<?php foreach( $order_goods as $goods ){ ?>
-					    <?php
- if(!empty($goods['goods_refund_shipping_fare'])){ $total_refund_shipping_fare = $total_refund_shipping_fare + $goods['goods_refund_shipping_fare']; } ?>
-						<?php $member_youhui += ($goods['oldprice'] - $goods['price'])*$goods['quantity']; ?>
-						<?php $total_refund_money += ($goods['has_refund_money']); ?>
-						<tr class="trorder" style="background: #fff">
-							<td style="text-align: right;padding-right: 0">
-								<img src="<?php echo tomedia($goods['goods_images']);?>" style='width:52px;height:52px;border:1px solid #efefef; padding:1px;' >
-							</td>
-							<td style="min-width: 300px">
-								<a target="_blank" href="<?php echo U('goods/edit', array('id' => $goods['goods_id']));?>"title="查看" style="display: block;line-height: 22px;max-width: 250px;white-space: nowrap;
-				overflow: hidden;text-overflow: ellipsis;"><?php echo ($goods['name']); if($goods['is_refund_state'] == 1 ){ ?>(退款)<?php } ?></a>
-								
-							  
-							</td>
-							<td style="padding: 10px 20px">
-								<p style="white-space:normal;">
-								规格:<?php if( !empty($goods['option_sku'])){ ?><span class="label label-primary" data-container="body" data-toggle="popover" data-placement="right" data-content="<?php echo ($goods['option_sku']); ?>"><?php echo ($goods['option_sku']); ?></span><?php  }else{ ?>无<?php } ?>
-								</p>
-								<p>
-									编码:<?php if( !empty($goods['model'])){ ?><span><?php echo ($goods['model']); ?></span><?php  }else{ ?>无<?php } ?>
-								</p>
-								
-							</td>
-							<td style="padding: 10px 20px">
-								<?php  $vip_free_money = 0; $mblevel_free_money =0; if( $goods['is_level_buy'] == 1 ) { $mblevel_free_money = round(($goods['oldprice'] - $goods['price'])*$goods['quantity'],2); } if( $goods['is_vipcard_buy'] == 1 ) { $vip_free_money = round(($goods['oldprice'] - $goods['price'])*$goods['quantity'],2); } $order_total = $order_total + $goods['old_total']; $change_price = 0; if($goods['is_change_price'] == 1){ $change_price = $goods['price']*$goods['quantity'] - $goods['total']; } ?>
-								 &nbsp;&nbsp;商品合计<?php echo ($goods['old_total']); ?><br/>
-								 -&nbsp;满减:<?php echo ($goods['fullreduction_money']); ?><br/>
-								 -&nbsp;优惠券:<?php echo ($goods['voucher_credit']); ?><br/>
-								<?php if( ($goods['is_change_price'] == 1 && $change_price > 0 ) ){ ?>
-								-&nbsp;商家改价:<?php echo ($change_price); ?><br/>
-								<?php } ?>
-								 <?php if( ($goods['is_level_buy']>0 && $mblevel_free_money > 0 ) ){ $item['is_level_buy'] = 1; ?>
-								  -&nbsp;会员等级优惠:<?php echo ($mblevel_free_money); ?><br/>
-								 <?php } ?>
-								 <?php if( ($goods['is_vipcard_buy']>0 && $vip_free_money > 0 ) ){ $item['is_vipcard_buy'] = 1; ?>
-								  -&nbsp;付费会员优惠:<?php echo ($vip_free_money); ?><br/>
-								 <?php } ?>
-								 <?php if($goods['has_refund_money']>0){ ?>
-								 -&nbsp;已退款:<?php echo ($goods['has_refund_money']); ?><br/>
-								 <?php } ?>
-								 
-								 =&nbsp;基数:<?php echo round($goods['total'] -$goods['fullreduction_money']-$goods['voucher_credit']-$goods['has_refund_money'],2); ?>
-								
-							</td>
-							
-							<?php if( $item['type'] != 'integral' && ($item['type'] == 'normal' || $item['head_id'] > 0) ){ ?>
-							<td style="padding: 10px 20px">
-									<?php  foreach($goods['head_commission_order_info'] as $kkk => $vvv) { ?>
-									<p style="white-space:normal;padding-bottom:8px;">
-									团长:<?php echo $vvv['head_name']; ?>&nbsp;&nbsp;
-									 
-									<?php if($item['delivery']=='tuanz_send'){ ?>
-										佣金:<?php if($vvv['money'] ==0 ){ echo round( $vvv['add_shipping_fare'],2); }else{ echo round($vvv['money'] - $vvv['add_shipping_fare'],2);} ?> </br>
-										<?php if($vvv['level'] <= 0){ ?>
-											配送收入:<?php echo $vvv['add_shipping_fare']; ?></br>
-										<?php } ?>
-										总佣金: <?php echo $vvv['money']; ?>	
-									<?php }else{ ?>
-										¥<?php echo $vvv['money']; ?>
-									<?php } ?>&nbsp;
-										<?php if($vvv['level'] >0){ ?>
-											(<?php echo $vvv['level']; ?>级)
-											<br/>
-											<?php if($vvv['fen_type'] == 0){ ?>
-												分佣比例:<?php echo $vvv['bili']; ?>%
-											<?php }else{ ?>
-												固定团长分佣金额:<?php echo $vvv['bili']; ?>
-											<?php } ?>
-										<?php }else{ ?>
-										<br/>
-											<?php if($vvv['fen_type'] == 0){ ?>
-												提成比例:<?php echo $vvv['bili']; ?>%
-											<?php }else{ ?>
-												固定团长分佣金额:<?php echo $vvv['bili']; ?>
-											<?php } ?>
-										
-										<?php } ?>
-										
-										
-									 </p>
-									<?php  } ?>
-							</td>
-							<?php } ?>
-							
-							<td style="text-align: center;">
-								
-								<?php if($item['order_status_id'] == 7){ ?>
-									已退款
-								<?php }else if($goods['is_refund_state'] == 1 && !empty($goods['refund_info']) ){ ?>		
-									退款金额:<?php echo $goods['refund_info']['ref_money']; ?>  <?php if($item['type'] == 'integral'){ ?>积分<?php }else{ ?>元<?php } ?>,
-									<?php if($goods['refund_info']['state'] == 0 ){ ?>
-										<span class="layui-badge">申请中</span>
-									<?php }else if($goods['refund_info']['state'] == 3){ ?>
-										<span class="label label-success">退款成功</span>
-									<?php }else if($goods['refund_info']['state'] == 4){ ?>
-										<span class="label label-default">退款失败</span>
-									<?php  } ?>
-									<br/><br/>
-									<a class="btn btn-primary btn-xs " href="<?php echo U('order/oprefund', array('id' => $item['order_id'], 'ref_id' => $goods['refund_info']['ref_id'] ));?>" >退款详情</a>
-									
-								<?php  }else if($goods['is_refund_state'] == 0 && in_array( $item['order_status_id'], array(1,4,6,10,11,12,14)) && $is_can_nowrfund_order ){ ?>
-									<?php if($item['delivery'] == 'hexiao'){ ?>
-										<?php if(!empty($goods['hx_info']) && $goods['hx_info']['is_can_refund'] == 1){ ?>
-											<a class='btn op btn-primary btn-xs'  data-toggle="ajaxModal" href="javascript:;" data-href="<?php echo U('order/oprefund_goods_do', array('id' => $item['order_id'], 'order_goods_id' => $goods['order_goods_id'] ));?>" >
-												<i class="icow icow-yibiaoji" style="color: #999;display: inline-block;vertical-align: middle" title="后台商品退款" ></i>
-												后台商品退款
-											</a>
-										<?php } ?>
-									<?php }else{ ?>
-									<a class='btn op btn-primary btn-xs'  data-toggle="ajaxModal" href="javascript:;" data-href="<?php echo U('order/oprefund_goods_do', array('id' => $item['order_id'], 'order_goods_id' => $goods['order_goods_id'] ));?>" >
-										<i class="icow icow-yibiaoji" style="color: #999;display: inline-block;vertical-align: middle" title="后台商品退款" ></i>
-										后台商品退款
-									</a>
-									<?php } ?>
-									<?php if($goods['has_refund_quantity'] > 0){ ?>已退款商品数量<?php echo ($goods['has_refund_quantity']); ?>个,<br />退款<?php if($item['type'] == 'integral'){ ?>积分<?php }else{ ?>金额<?php } echo ($goods['has_refund_money']); if($item['type'] == 'integral'){ ?>积分<?php }else{ ?>元<?php } } ?>
-								<?php }else{ ?>
-									<?php if($goods['has_refund_quantity'] > 0){ ?>已退款商品数量<?php echo ($goods['has_refund_quantity']); ?>个,<br />退款<?php if($item['type'] == 'integral'){ ?>积分<?php }else{ ?>金额<?php } echo ($goods['has_refund_money']); if($item['type'] == 'integral'){ ?>积分<?php }else{ ?>元<?php } } ?>
-								<?php } ?>
-							</td>
-							<?php if($item['delivery'] == 'hexiao'){ ?>
-							<td style="text-align: center;">
-								<?php if(!empty($goods['hx_info'])){ ?>
-									<?php if($goods['hx_info']['hexiao_type'] == 0){ ?>
-										<span>订单核销</span>
-									<?php }else{ ?>
-										<span>按次核销</span>
-									<?php } ?>
-									<br/>
-									<?php if($item['order_status_id'] == 11 && $goods['hx_info']['is_hexiao_over'] == 1){ ?>
-									<a class="hxBtn"  href="javascript:;" data-href="<?php echo U('order/view_hexiao_history', array('id' => $item['order_id'],'order_goods_id'=>$goods['order_goods_id']));?>">(核销记录)</a>
-									<?php }?>
-
-									<?php  if($item['order_status_id'] == 7 || $goods['is_refund_state'] == 1 || (!empty($goods['refund_info'] && $goods['refund_info']['state'] != 4))){ }else{ ?>
-									<?php if($goods['hx_info']['is_hexiao_over'] == 1){ ?>
-										<?php if($item['order_status_id'] == 4){ ?>
-										<a class="hxBtn"  href="javascript:;" data-href="<?php echo U('order/view_hexiao_history', array('id' => $item['order_id'],'order_goods_id'=>$goods['order_goods_id']));?>">(已核销)</a>
-										<?php } ?>
-									<?php }else{ ?>
-										<?php if($goods['hx_info']['hexiao_type'] == 0){ ?>
-											<?php if($item['order_status_id'] == 4){ ?>
-											<a class="btn btn-primary btn-xs deldom" href="javascript:;"   data-confirm="确认使用该订单吗?" data-href="<?php echo U('order/order_goods_hexiao', array('id' => $item['order_id'],'order_goods_id'=>$goods['order_goods_id']));?>">确认使用</a>
-											<?php } ?>
-										<?php }else{ ?>
-											<?php if($item['order_status_id'] == 4){ ?>
-												<a class="btn btn-primary btn-xs hxAction"  href="javascript:;" data-href="<?php echo U('order/hexiao_times', array('id' => $item['order_id'],'order_goods_id'=>$goods['order_goods_id']));?>">确认使用</a>
-											<?php } ?>
-											<?php if($goods['hx_info']['remain_hexiao_count'] > 0 && $goods['hx_info']['remain_hexiao_count'] < $goods['hx_info']['hexiao_count'] && $goods['hx_info']['hexiao_count'] > 0 ){ ?>
-												<br/>
-												<a class="hxBtn"  href="javascript:;" data-href="<?php echo U('order/view_hexiao_history', array('id' => $item['order_id'],'order_goods_id'=>$goods['order_goods_id']));?>">(部分核销)</a>
-											<?php } ?>
-											<?php if($goods['hx_info']['hexiao_count'] == 0 && $goods['hx_info']['record_count'] > 0){ ?>
-												<br/>
-												<a class="hxBtn"  href="javascript:;" data-href="<?php echo U('order/view_hexiao_history', array('id' => $item['order_id'],'order_goods_id'=>$goods['order_goods_id']));?>">(核销记录)</a>
-											<?php } ?>
-										<?php } ?>
-									<?php } ?>
-									<?php } ?>
-								<?php } ?>
-							</td>
-							<?php } ?>
-							<td style="text-align: center;">
-								<span><?php echo ($goods['supply_name']); ?><br/>(<?php echo ($goods['supply_type']); ?>)</span>
-								<?php if($item['delivery'] == 'hexiao'){ ?>
-								<?php  if(!empty($goods['hx_info']) && $goods['hx_info']['hx_assign_salesroom'] == 1){ ?>
-									<br/>
-									<a class="hxBtn"  href="javascript:;" data-href="<?php echo U('order/hexiao_goods_assign_salesroom', array('goods_id' => $goods['goods_id'],'order_goods_id'=>$goods['order_goods_id']));?>">(商品指定核销)</a>
-								<?php } } ?>
-							</td>
-							
-							
-							
-							<td style="text-align: center">
-								
-								<p><?php if($item['type'] == 'integral'){ ?> <?php }else{ ?>¥<?php } echo round($goods['oldprice'],2); if($item['type'] == 'integral'){ ?>积分<?php }else{ ?> <?php } ?>
-								<!--
-								<?php if( $goods['member_disc'] < 100 ){ ?>
-								<span class="label label-primary">会员折扣:<?php echo ($goods['member_disc']); ?>%</span>
-								<?php } ?>-->
-								<?php if( $goods['is_vipcard_buy'] == 1){ ?>
-									<span class="label label-primary">付费会员价格:<?php echo round($goods['price'],2);?></span>
-								<?php }else if($goods['is_level_buy'] == 1){ ?>
-									<?php if( $goods['member_disc'] < 100 ){ ?>
-									<span class="label label-primary">会员折扣:<?php echo ($goods['member_disc']); ?>%</span>
-									<?php } ?>
-								<?php } ?>
-								</p>
-							</td>
-							<td style="text-align: center">
-								<p><?php echo ($goods['quantity']); ?>个<?php if($goods['has_refund_quantity'] > 0){ ?>(已退<?php echo ($goods['has_refund_quantity']); ?>个)<?php } ?></p>
-							</td>
-							<td  style="text-align: center"><?php if($item['type'] == 'integral'){ ?> <?php }else{ ?>¥<?php } echo round($goods['oldprice']*$goods['quantity'],2);?></td>
-							
-						</tr>
-						<?php if($item['is_commission'] == 1 && !empty($goods['member_commission_list']) ){ ?>
-						 <tr class="tr-order-sn">
-							<td <?php if($item['delivery'] == 'hexiao'){ ?>colspan="11"<?php }else{ ?>colspan="10"<?php } ?>>
-								分销佣金:<br/>
-								<?php foreach($goods['member_commission_list'] as $mb_val){ ?>
-
-								<!--分销员:<?php echo $mb_val['username']; ?>(<?php echo $mb_val['level']; ?>级上线)
-			
-								 佣金比例:
-								 <?php if($mb_val['type'] == 1){ ?>
-								 &nbsp;<?php echo $mb_val['bili']; ?>%
-								*(&nbsp;基数:<?php echo ($goods['price']); ?>
-								*&nbsp;数量:<?php echo ($goods['quantity']); ?>
-								 <?php if($goods['has_refund_money']>0){ ?>
-								 -&nbsp;已退款:<?php echo ($goods['has_refund_money']); ?>
-								 <?php } ?>
-								 )
-								<?php }else{ ?>
-									固定佣金<?php echo $mb_val['bili']; ?>
-											&nbsp;*&nbsp;数量:<?php echo ($goods['quantity']); ?>
-								<?php } ?>
-								=&nbsp;具体佣金:<?php echo $mb_val['money']; ?>元 &nbsp;-->
-								分销员:<span style="display:inline-block;min-width: 70px;"><?php echo $mb_val['username']; ?></span>(<?php echo $mb_val['level']; ?>级上线)
-								&nbsp;&nbsp;&nbsp;&nbsp;佣金比例:
-								<?php if($mb_val['type'] == 1){ $jishu = $goods['total'] -$goods['fullreduction_money']-$goods['voucher_credit']-$goods['has_refund_money']; ?><span style="display:inline-block;width: 50px;"><?php echo $mb_val['bili'];?>%</span>  &nbsp;&nbsp;&nbsp;&nbsp;有效基数:<span style="display:inline-block;width: 50px;"><?php echo $jishu; ?></span>
-								&nbsp;&nbsp;&nbsp;&nbsp;具体佣金:<?php echo round($jishu*$mb_val['bili']/100,2); ?>元 &nbsp;
-								<?php }else{ ?>
-								固定佣金<?php echo $mb_val['bili']; ?>
-								&nbsp;*&nbsp;数量:<?php echo ($goods['quantity']); ?>
-								=&nbsp;具体佣金:<?php echo round($mb_val['bili']*$goods['quantity'],2); ?>元 &nbsp;
-								<?php } ?>
-								<!--=&nbsp;具体佣金:<?php echo $mb_val['money']; ?>元 &nbsp;-->
-
-								<?php  $str_state = ''; switch($mb_val['state']) { case 0: $str_state='待结算'; break; case 1: $str_state='已结算'; $order_status = 1; break; case 2: $str_state='订单退款'; break; } ?>(<?php echo $str_state; ?>)<br/>     
-								<?php } ?>	
-							</td>
-						</tr>
-						<?php } ?>
-
-						<?php $i++; ?>
-					<?php } ?>
-					</tbody>
-
-					<tfoot style="height:20px;">
-					<?php if($item['type'] != 'integral'){ ?>
-					<tr class="trorder">
-						<td colspan="2" style="padding-left: 20px"> 
-							订单结算状态:
-								<?php  $order_states = ''; switch($order_status) { case 0: $order_states='待结算'; break; case 1: $order_states='已结算'; break; case 2: $order_states='已失效'; break; } echo $order_states; ?>   
-							<span onmouseover="overShow1()" onmouseout="outHide1()" style="display:inline;border-radius: 50%; height: 17px;width:17px; display: inline-block; border-style: solid; border-color: #8a8a8a; border-width:1px; font-size:11px"><span style="padding-left: 4px;font-weight:bold;color:#8a8a8a;">?</span></span>
-						</td>
-						<td  <?php if($item['type'] == 'integral'){ ?> colspan="7"<?php }else if($item['delivery'] == 'hexiao'){ ?> colspan="9"<?php }else{ ?>colspan="8"<?php } ?> style="padding-right: 60px"></td>
-					</tr>
-					<?php } ?>
-					<tr class="trorder" style="height:100px;">
-						<td colspan="2"> 
-						<div id="showDiv" style="position:relative; background-color: #8a8a8a; display:none; height:80px;width:1200px;border-radius:20px;padding-left: 20px;color:#FFF;">
-						-待结算:还在订单“售后期”。<br />
-						-已结算:已过订单“售后期”。<br />
-						-已失效:整单退款的订单。<br />
-						<?php if(($item['order_status_id'] ==6 || $item['order_status_id'] ==11) ){ ?> 
-							<?php if($order_status == 0 && $open_aftersale == 1){ ?> 
-							-订单预计结算时间:<?php echo date("Y-m-d H:i:s",$order_settlement); ?>,订单结算状态为“已结算”的时候,用户在小程序订单中不能在申请商品售后,订单中的会员佣金,团长佣金为已结算状态。
-							<?php }else{ ?> 
-							-订单结算状态为“已结算”的时候,用户在小程序订单中不能在申请商品售后,订单中的会员佣金,团长佣金为已结算状态。
-							<?php } ?> 
-						<?php }else{ ?>
-							<?php if($order_status == 2){ ?> 
-							-订单结算状态为“已结算”的时候,用户在小程序订单中不能在申请商品售后,订单中的会员佣金,团长佣金为已结算状态。
-							<?php }else{ ?> 
-							
-								<?php if($open_aftersale == 1){ ?> 
-								-订单预计结算时间:订单 “确认收货” 后,预计<?php echo $open_aftersale_time; ?>天后进行结算,订单结算状态为“已结算”的时候,用户在小程序订单中不能在申请商品售后,订单中的会员佣金,团长佣金为已结算状态。
-								<?php }else{ ?> 
-								-订单预计结算时间:订单 “确认收货” 后进行结算,订单结算状态为“已结算”的时候,用户在小程序订单中不能在申请商品售后,订单中的会员佣金,团长佣金为已结算状态。
-								<?php } ?> 
-							<?php } ?> 
-						<?php } ?>
-						</div>
-
-
-						</td>
-						<td  <?php if($item['type'] == 'integral'){ ?> colspan="7"<?php }else if($item['delivery'] == 'hexiao'){ ?> colspan="9"<?php }else{ ?>colspan="8"<?php } ?> style="padding-right: 60px">
-							<div class="price">
-								
-								<p> <span class="price-inner">商品合计:</span><span style="font-weight: bold"><?php if( $item['type'] == 'integral' ){ }else{ ?>¥<?php } echo $order_total; if( $item['type'] == 'integral' ){ ?>积分<?php } ?></span></p>
-
-								<?php if( $item['delivery'] == 'localtown_delivery'){ ?>
-									<?php if( $item['is_localtown_free_shipping_fare'] == 1 ){ ?>
-									<p><span class="price-inner">同城配送费:</span>¥<?php echo ($item['localtown_free_shipping_fare']); ?></p>
-									<p><span class="price-inner">满减配送费:</span>-¥<?php echo ($item['localtown_free_shipping_fare']); ?></p>
-									<?php }else{ ?>
-									<p><span class="price-inner">同城配送费:</span>¥<?php echo ($item['shipping_fare']); ?></p>
-									<?php  } ?>
-									<?php if( !empty($item['localtown_add_shipping_fare']) && $item['localtown_add_shipping_fare'] > 0 ){ ?>
-									<p><span class="price-inner">加价配送:</span>¥<?php echo ($item['localtown_add_shipping_fare']); ?></p>
-									<?php  } ?>
-								<?php }else{ ?>
-									<?php if( $item['is_free_shipping_fare'] == 1 ){ ?>
-									<p><span class="price-inner">运费:</span>¥<?php echo ($item['fare_shipping_free']); ?><span>( <?php echo ($item['delivery_text']); ?>  )</span></p>
-									<p><span class="price-inner">满<?php echo ($item['man_e_money']); ?>减运费:</span>-¥<?php echo ($item['fare_shipping_free']); ?></p>
-									<?php }else{ ?>
-									<p><span class="price-inner">运费:</span>¥<?php echo ($item['shipping_fare']); ?><span>( <?php echo ($item['delivery_text']); ?>  )</span></p>
-									<?php  } ?>
-								<?php  } ?>
-								
-								<?php if( $item['packing_fare']>0 ){ ?>
-								<p><span class="price-inner"><?php echo ($localtown_modifypickingname); ?>:</span>¥<?php echo ($item['packing_fare']); ?></p>
-								<?php } ?>
-								
-								<?php if( $item['voucher_id']>0 ){ ?>
-								<p><span class="price-inner">优惠券优惠:</span><span class="text-danger">-¥<?php echo ($item['voucher_credit']); ?></span></p>
-								<?php } ?>
-								<?php if( $item['fullreduction_money']>0 ){ ?>
-								<p><span class="price-inner">满减优惠:</span><span class="text-danger">-¥<?php echo ($item['fullreduction_money']); ?></span></p>
-								<?php } ?>
-								
-							
-								<?php if( $item['score_for_money']>0 ){ ?>
-								<p><span class="price-inner">积分抵扣:</span><span class="text-danger">-¥<?php echo ($item['score_for_money']); ?></span></p>
-								<?php } ?>
-
-								<?php if($item['is_change_price'] == 1){ ?>
-								<p>
-									<span class="price-inner">商家改价:</span>
-									<span style=''>
-										<?php
- $change_price = $item['total'] - $item['old_price']; if($change_price < 0){ echo '-¥'.(0-$change_price); }else{ echo '¥'.$change_price; } ?>
-									</span>
-								</p>
-								<?php } ?>
-								
-								<?php if( ($item['changedtotal'])!=0){ ?>
-								<p>
-									<span class="price-inner">卖家改价:</span>
-									<span style='<?php if( 0<$item['changedtotal']){ ?>color:green<?php  }else{ ?>color:red<?php } ?>'><?php if( 0<$item['changedtotal']){ ?>+<?php  }else{ ?>-<?php } ?>¥{php echo number_format(abs($item['changedtotal']),2)}</span>
-								</p>
-								<?php } ?>
-
-								<?php if( ($item['changedshipping_fare'])!=0){ ?>
-								<p>
-									<span class="price-inner">卖家改运费:</span>
-									<span style='<?php if( 0<$item['changedshipping_fare']){ ?>color:green<?php  }else{ ?>color:red<?php } ?>'><?php if( 0<$item['changedshipping_fare']){ ?>+<?php  }else{ ?>-<?php } ?>¥{php echo abs($item['changedshipping_fare'])}</span>
-								</p>
-								<?php } ?>
-								<?php if($item['shipping_fare'] <= 0 ){ $item['fare_shipping_free'] = 0; } ?>
-								<?php  $free_tongji = $item['total'] + $item['packing_fare'] +$item['shipping_fare']-$item['voucher_credit']-$item['fullreduction_money'] - $item['score_for_money'] + $item['localtown_add_shipping_fare']- $item['fare_shipping_free'] - $presale_for_ordermoney; if($free_tongji < 0){ $free_tongji = 0; } ?>
-
-								<?php
- if( $item['is_vipcard_buy'] == 1 && $member_youhui >0 ) { ?>
-									<p><span class="price-inner">会员卡优惠:</span><span class="text-danger">-¥<?php echo ($member_youhui); ?></span></p>
-								<?php
- } ?>
-								<?php
- if( $item['is_level_buy'] == 1 && $member_youhui >0 ) { ?>	
-									<p><span class="price-inner">会员等级折扣优惠:</span><span class="text-danger">-¥<?php echo ($member_youhui); ?></span></p>
-								<?php	 } ?>
-								
-								
-								<?php if($item['type'] == 'integral'){ ?>
-								<p><span class="price-inner">实付款:</span>
-									
-								<span style="font-size: 14px;font-weight: bold;color: #e4393c"><?php if( $item['shipping_fare'] > 0 ){ ?>¥<?php echo round($item['shipping_fare'],2);?>+<?php } ?> <?php echo round($item['total'],2);?> 积分</span>
-								
-								</p>
-								
-									<?php  if( $total_refund_money > 0 ){ ?>
-									<p><span class="price-inner">退款:</span><span style="font-size: 14px;font-weight: bold;color: #e4393c"><?php echo ($total_refund_money); ?>积分</span></p>
-									<?php } ?>
-									<?php
- if( $total_refund_shipping_fare > 0 ){ ?>
-									<p><span class="price-inner">退运费:</span><span style="font-size: 14px;font-weight: bold;color: #e4393c">¥<?php echo ($total_refund_shipping_fare); ?></span></p>
-									<?php } ?>
-								
-								<?php }else{ ?>
-
-									<?php
- if( $presale_for_ordermoney > 0 ){ ?>
-									<p><span class="price-inner">定金抵扣:</span><span style="font-size: 14px;font-weight: bold;color: #e4393c">-¥<?php echo ($presale_for_ordermoney); ?></span></p>
-									<?php } ?>
-
-									<p><span class="price-inner">实付款:</span><span style="font-size: 14px;font-weight: bold;color: #e4393c">¥<?php echo round($free_tongji,2)?></span></p>
-
-
-
-
-
-									<?php
- if( $total_refund_money > 0 ){ ?>
-									<p><span class="price-inner">退款:</span><span style="font-size: 14px;font-weight: bold;color: #e4393c">¥<?php echo ($total_refund_money); ?></span></p>
-									<?php } ?>
-									<?php
- if( $total_refund_shipping_fare > 0 ){ ?>
-									<p><span class="price-inner">退运费:</span><span style="font-size: 14px;font-weight: bold;color: #e4393c">¥<?php echo ($total_refund_shipping_fare); ?></span></p>
-									<?php } ?>
-
-								<?php } ?>
-								
-								
-							</div>
-						</td>
-					</tr>
-					</tfoot>
-				</table>
-			</form>
-		</div>
-	</div>
-</div>
-
-
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  
-  
-	
-	$('.tip_headcommiss').click(function(){
-		var s_str = '团长佣金结算状态: 待结算<br/>团长佣金结算金额:2.40<br/>佣金预计结算时间:2016-09-14 16:04:05  <br>结算说明:结算前商品退款会改变佣金计算情况,佣金结算后商品进行退款不改变佣金计算情况。';
-		
-		layer.tips( s_str ,this, {
-			tips:[1,'#000'],
-			time: 10000 
-		});
-	})
-
-	$('.layui-icon-about').mouseover(function(){
-		var that = this;
-		var _msg = $(this).attr('data-message');
-		layer.tips(_msg, that,{ tips:[1] });
-
-	})
-	
-	$('.deldom').click(function(){
-		var s_url = $(this).attr('data-href');
-		layer.confirm($(this).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						success:function(info){
-						
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-	})
-	
-	$('.hxBtn').click(function(){
-		var url = $(this).attr('data-href');
-		$.post(url, {}, function(shtml){
-		 layer.open({
-			type: 1,
-			area: '930px',
-			content: shtml //注意,如果str是object,那么需要字符拼接。
-		  });
-		});
-	   return false;
-	})
-	
-	$('.hxAction').click(function(){
-		var url = $(this).attr('data-href');
-		$.post(url, {}, function(shtml){
-		 layer.open({
-			type: 1,
-			title: '商品核销',
-			area: '930px',
-			content: shtml
-			,btnAlign : 'c'
-			,btn: ['确认使用', '取消']
-			,yes: function(index, layero){
-			    hexiao_goods();
-			},btn2: function(index, layero){
-			    layer.closeAll();
-			}
-			,cancel: function(){ 
-				layer.closeAll();
-			}
-		  });
-		});
-	   return false;
-	})
-	
-	$('.btn-operation').click(function(){
-		var ids_arr = [];
-		var obj = $(this);
-		var s_toggle = $(this).attr('data-toggle');
-		var s_url = $(this).attr('data-href');
-		
-		
-		$("input[name=item_checkbox]").each(function() {
-			
-			if( $(this).prop('checked') )
-			{
-				ids_arr.push( $(this).val() );
-			}
-		})
-		if(ids_arr.length < 1)
-		{
-			layer.msg('请选择要操作的内容');
-		}else{
-			var can_sub = true;
-			if( s_toggle == 'batch-remove' )
-			{
-				can_sub = false;
-				
-				layer.confirm($(obj).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						data:{ids:ids_arr},
-						success:function(info){
-						
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-			}else{
-				$.ajax({
-					url:s_url,
-					type:'post',
-					dataType:'json',
-					data:{ids:ids_arr},
-					success:function(info){
-					
-						if(info.status == 0)
-						{
-							layer.msg(info.result.message,{icon: 1,time: 2000});
-						}else if(info.status == 1){
-							var go_url = location.href;
-							if( info.result.hasOwnProperty("url") )
-							{
-								go_url = info.result.url;
-							}
-							
-							layer.msg('操作成功',{time: 1000,
-								end:function(){
-									location.href = info.result.url;
-								}
-							}); 
-						}
-					}
-				})
-			}
-		}
-	})
-
-	form.on('switch(restwsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var rest = 1;
-	  if(data.elem.checked)
-	  {
-		rest = 1;
-	  }else{
-		rest = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{rest:rest},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	}); 
-	form.on('switch(enablewsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var enable = 1;
-	  if(data.elem.checked)
-	  {
-		enable = 1;
-	  }else{
-		enable = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{enable:enable},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	}); 
-	
-	form.on('switch(statewsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var state = 1;
-	  if(data.elem.checked)
-	  {
-		state = 1;
-	  }else{
-		state = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{state:state},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	});  
-	form.on('checkbox(checkboxall)', function(data){
-	  
-	  if(data.elem.checked)
-	  {
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", true);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", true);
-		});
-		
-	  }else{
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", false);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", false);
-		});
-	  }
-	  
-	  form.render('checkbox');
-	});
-  
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-})
-
-</script>
-<script>
-$(function(){
-	var ajax_url = "";
-	$("[data-toggle='ajaxModal']").click(function () {
-		var s_url = $(this).attr('data-href');
-		ajax_url = s_url;
-		$.ajax({
-			url:s_url,
-			type:"get",
-			success:function(shtml){
-				//console.log(shtml);
-				$('#ajaxModal').html(shtml);
-				$('#ajaxModal').modal();
-			}
-		})
-		
-	})
-	
-	$(document).delegate(".modal-footer .btn-primary","click",function(){
-		var s_data = $('#ajaxModal form').serialize();
-		console.log(ajax_url);
-		console.log(s_data);
-		$.ajax({
-			url:ajax_url,
-			type:'post',
-			dataType:'json',
-			data:s_data,
-			success:function(info){
-				console.log(info);
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-		return false;
-	})
-
-})
-</script>
-
-<div id="ajaxModal" class="modal fade" style="display: none;">
-</div>
-<script>
-    //没有选中时间段不能导出
-    $(function () {
-        $('.btn-submit').click(function () {
-            var e = $(this).data('export');
-            if(e==1 ){
-                if($('#keyword').val() !='' ){
-                    $('#export').val(1);
-                    $('#search').submit();
-                }else if($('#searchtime').val()!=''){
-                    $('#export').val(1);
-                    $('#search').submit();
-                }else{
-                   $('#export').val(1);
-                    $('#search').submit();
-                    return;
-                }
-            }else{
-                $('#export').val(0);
-                $('#search').submit();
-            }
-        });
-		
-		$('#user').click(function(){
-				layer.msg('权限不足!',{icon: 2,time: 1200});
-		});
-    })
-
-</script>
-<script>
- function overShow1() {
-  var showDiv = document.getElementById('showDiv');
-  showDiv.style.display = 'block';
- }
- 
- function outHide1() {
-  var showDiv = document.getElementById('showDiv');
-  showDiv.style.display = 'none';
-
- }
-</script>
-
-</body>

+ 0 - 542
Runtime/Cache/Seller/c87159976b67c1b71f3a2c49b8397be0.php

@@ -1,542 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-    <!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-    <!--[if lt IE 9]>
-      <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-      <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-    <![endif]-->  
-
-    <link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-    <link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-    <script type="text/javascript">
-        window.sysinfo = {
-            <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-            <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-            <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-            <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-            'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-            'siteroot': '<?php echo ($_W['siteroot']); ?>',
-            'siteurl': '<?php echo ($_W['siteurl']); ?>',
-            'attachurl': '<?php echo ($_W['attachurl']); ?>',
-            'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-            'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-            'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-            'cookie' : {'pre': ''},
-            'account' : <?php echo json_encode($_W['account']);?>,
-        };
-    </script>
-            
-    <script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-    <script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-    <script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-    <script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-    <script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-    <script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-    <script type="text/javascript" src="/static/js/dist/area/cascade.js"></script>
-    <script src="https://map.qq.com/api/js?v=2.exp&key=6R4BZ-WAB3W-JITRG-OE7GY-R2753-P3BZ2" type="text/javascript" charset="utf-8"></script>
-    <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-    <link href="/static/css/snailfish.css" rel="stylesheet">
-    <style>
-        body.dragging, body.dragging * {
-            cursor: move !important;
-        }
-        .dragged {
-            position: absolute;
-            opacity: 0.5;
-            z-index: 2000;
-            border: 1px solid #ccc;
-            border-radius: 5px;
-            background: #fff;
-        }
-        #sortable li {
-            border-top: 1px solid #c5c5c5;
-            padding-top: 20px;
-        }
-        #sortable li:first-child {
-            border: 0;
-        }
-        #sortable li.placeholder {
-            position: relative;
-        }
-        #sortable li.placeholder:before {
-            position: absolute;
-        }
-    </style>
-</head>
-<body layadmin-themealias="default">
-
-    <div class="layui-fluid">
-        <div class="layui-card">
-            <div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text"><?php if( !empty($item['id'])){ ?>编辑<?php  }else{ ?>新增<?php } ?>门店<?php if( !empty($item['id'])){ ?>(<?php echo ($item['title']); ?>)<?php } ?></span></div>
-            <div class="layui-card-body" style="padding:15px;">
-                <form action="" method="post" class="layui-form" lay-filter="component-layui-form-item" enctype="multipart/form-data" >
-                    <input type="hidden" name="data[id]" value="<?php echo ($item['id']); ?>"/>
-                    <div class="layui-form-item">
-                        <label class="layui-form-label"><span style="color:red;">*&nbsp;</span>门店名称</label>
-                        <div class="layui-input-block">
-                            <input type="text" id='room_name' name="data[room_name]" class="form-control" value="<?php echo ($item['room_name']); ?>" lay-verify="required">
-                        </div>
-                    </div>
-                    <?php if($supply_id == 0){ ?>
-                    <div class="layui-form-item">
-                        <label class="layui-form-label">选择供应商</label>
-                        <div class="layui-input-block">
-                            <div class="input-group " style="margin: 0;">
-                                <input type="text" disabled value="<?php echo ($item['supply_id']); ?>" class="form-control valid" name="data[supply_id]" placeholder="" id="member_id">
-                                <span class="input-group-btn">
-                                    <span data-input="#member_id" id="chose_member_id"  class="btn btn-default">选择供应商</span>
-                                </span>
-                            </div>
-                            <?php if( $item['supply_info']){ ?>
-                            <div class="input-group " style="margin: 0;">
-                                <div class="layadmin-text-center choose_user">
-                                    <img style="" src="<?php echo tomedia($item['supply_info']['logo']);?>">
-                                    <div class="layadmin-maillist-img" style=""><?php echo ($item['supply_info']['shopname']); ?></div>
-                                    <button type="button" class="layui-btn layui-btn-sm" onclick="cancle_bind(this)"><i class="layui-icon">&#xe640;</i></button>
-                                </div>
-                            </div>
-                            <?php } ?>
-                        </div>
-						<div class="layui-input-block">
-								<span class="layui-form-mid layui-word-aux image-block">备注:新增门店是平台使用的时候不需要选择供应商</span>
-						 </div>
-                    </div>
-                    <?php } ?>
-                    <div class="layui-form-item">
-                        <label class="layui-form-label">门店标志图片</label>
-                        <div class="layui-input-block">
-                            <?php echo tpl_form_field_image2('data[room_logo]',$item['room_logo']);?>
-                            <span class="layui-form-mid layui-word-aux image-block">门店标志图片,建议尺寸:1750*1500,数量:1张,支持gif、png、jpg、jpeg格式,大小不超过1M</span>
-                        </div>
-                    </div>
-                    <div class="layui-form-item">
-                        <label class="layui-form-label"><span style="color:red;">*&nbsp;</span>门店地址</label>
-                        <div class="layui-input-block">
-                            <select id="sel-provance" lay-ignore name="data[province_id]" onChange="selectCity();"  style="width:130px;display:inline;" lay-verify="required">
-                                <option value="" selected="true">省/直辖市</option>
-                            </select>
-                            <select id="sel-city" lay-ignore name="data[city_id]" onChange="selectcounty(0)"  style="width:135px;display:inline;" lay-verify="required">
-                                <option value="" selected="true">请选择</option>
-                            </select>
-                            <select id="sel-area" lay-ignore name="data[country_id]" style="width:130px;display:inline;" lay-verify="required">
-                                <option value="" selected="true">请选择</option>
-                            </select>
-                        </div>
-                    </div>
-                    <div class="layui-form-item">
-                        <label class="layui-form-label">门店精确位置</label>
-                        <div class="layui-input-block">
-                            <div class="dEdit_1">
-                                <div class="layui-inline">
-
-                                    <div class="layui-input-inline" style="width: 200px;">
-                                        <input type="text" style="width: 200px;" name="data[address]" id="address"  data-val="true" data-val-required="请填写门店精确位置" class="form-control" value="<?php echo ($item['address']); ?>" data-rule-required="true"  />
-                                    </div>
-                                    <div class="layui-input-inline" style="width: 100px;">
-                                        <a class="btn btn-default" id="js_search_pos" onclick="getResult()">搜索地图</a>
-                                    </div>
-                                    <br />
-                                    <div class="layui-form-mid layui-word-aux">地图搜索以后,请点击地图定位进行标记坐标,经纬度出来以后在进行保存,以防设置失效。</div>
-                                </div>
-
-                            </div>
-                        </div>
-                    </div>
-                    <div class="layui-form-item">
-                        <label class="layui-form-label"><span style="color:red;">*&nbsp;</span>门店经纬度</label>
-                        <div class="layui-input-block">
-                            <div class="dEdit_1">
-                                <div class="layui-inline">
-                                    <div class="layui-input-inline" style="width: 100px;">
-                                        <input class="form-control input-sm" data-val="true"   id="lon" name="data[lon]" readonly="readonly" type="text" value="<?php echo ($item['lon']); ?>"  lay-verify="required">
-                                    </div>
-
-                                    <div class="layui-input-inline" style="width: 100px;">
-                                        <input class="form-control input-sm" data-val="true" id="lat" name="data[lat]" readonly="readonly" type="text" value="<?php echo ($item['lat']); ?>"  lay-verify="required">
-                                    </div>
-                                </div>
-
-                            </div>
-                        </div>
-                    </div>
-                    <div class="layui-form-item">
-                        <label class="layui-form-label">门店地图定位</label>
-                        <div class="layui-input-block">
-                            <div class="map-box" id="container" style="width: 603px; height: 300px; float: left;"></div>
-                            <div class="des" id="map_des" style="display: none; float: left;">请选择一个地址并点击地图中的“导入经纬度”</div>
-                            <div class="info-box" id="infoDiv" style="display: none"></div>
-                        </div>
-                    </div>
-
-                    <div class="layui-form-item">
-                        <label class="layui-form-label"><span style="color:red;">*&nbsp;</span>门店联系电话</label>
-                        <div class="layui-input-block">
-                            <input type="text" name="data[mobile]" class="form-control" value="<?php echo ($item['mobile']); ?>"  lay-verify="required"/>
-                        </div>
-                    </div>
-                    <div class="layui-form-item">
-                        <label class="layui-form-label"><span style="color:red;">*&nbsp;</span>门店营业时间</label>
-                        <div class="layui-input-block">
-                            <div class="input-group fixsingle-input-group">
-                                <div class="layui-input-inline">
-                                    <input type="text" class="layui-input" name='data[business_hours_begin]' value='<?php echo $item[business_hours_begin];?>' id="business_hour_1" placeholder="HH:mm" lay-key="5"  lay-verify="required">
-                                </div>
-                                <div class="layui-input-inline" style="width: 20px;">
-                                    至
-                                </div>
-                                <div class="layui-input-inline">
-                                    <input type="text" class="layui-input" name='data[business_hours_end]' value='<?php echo $item[business_hours_end];?>' id="business_hour_2" placeholder="HH:mm" lay-key="6"  lay-verify="required">
-                                </div>
-                            </div>
-                        </div>
-                    </div>
-                    <div class="layui-form-item">
-                        <label class="layui-form-label"><span style="color:red;">*&nbsp;</span>联系人</label>
-                        <div class="layui-input-block">
-                            <input type="text" name="data[contacts]" class="form-control" value="<?php echo ($item['contacts']); ?>"  lay-verify="required"/>
-                        </div>
-                    </div>
-                    <div class="layui-form-item">
-                        <label class="layui-form-label">门店介绍</label>
-                        <div class="layui-input-block">
-                            <textarea rows="5" cols="50" class="form-control"  name="data[introduction]"><?php echo ($item['introduction']); ?></textarea>
-                        </div>
-                    </div>
-                    <div class="layui-form-item">
-                        <label class="layui-form-label"><span style="color:red;">*&nbsp;</span>排序</label>
-                        <div class="layui-input-block">
-                            <input type="text" name="data[displayorder]" class="form-control" value="<?php echo ($item['displayorder']); ?>"  lay-verify="number"/>
-                            <span class='help-block'>数字越大,排名越靠前</span>
-                        </div>
-                    </div>
-                    <div class="layui-form-item">
-                        <label class="layui-form-label">状态</label>
-                        <div class="layui-input-block">
-                            <input type='radio' name='data[state]' title="启用" value=1 <?php if( $item['state']==1 || empty($item)){ ?>checked<?php } ?> />
-                            <input type='radio' name='data[state]' title="禁用" value=0 <?php if( $item['state']==0 && !empty($item) ){ ?>checked<?php } ?> />
-                        </div>
-                    </div>
-                    <div class="layui-form-item">
-                        <label class="layui-form-label"> </label>
-                        <div class="layui-input-block">
-                            <input type="submit" value="提交" lay-submit lay-filter="formDemo" class="btn btn-primary"  />
-                            
-                        </div>
-                    </div>
-                </form>
-            </div>
-        </div>
-    </div>
-
-    <script src="/layuiadmin/layui/layui.js"></script>
-    <script src="/static/js/jquery-sortable.js"></script>
-    <script>
-        layui.config({
-            base: '/layuiadmin/' //静态资源所在路径
-        }).extend({
-            index: 'lib/index' //主入口模块
-        }).use('index');
-    </script>
-    <script>
-        $(function  () {
-            initMap();//初始化门店地图
-            cascdeInit("1","1","<?php echo ($item['province_id']); ?>","<?php echo ($item['city_id']); ?>","<?php echo ($item['country_id']); ?>","0");
-        });
-
-        var layer = layui.layer;
-        var $;
-        var cur_open_div;
-        layui.use(['jquery', 'layer','form','laydate'], function(){
-          $ = layui.$;
-          var form = layui.form;
-          var laydate = layui.laydate;
-          //时间选择器
-          laydate.render({
-            elem: '#business_hour_1'
-             ,type: 'time'
-             ,format: 'HH:mm'
-          });
-          //时间选择器
-          laydate.render({
-            elem: '#business_hour_2'
-            ,type: 'time'
-            ,format: 'HH:mm'
-          });
-
-            form.on('radio(linktype)', function(data){
-                if (data.value == 2) {
-                    $('#typeGroup').show();
-                } else {
-                    $('#typeGroup').hide();
-                }
-            });
-
-
-            $('#chose_link').click(function(){
-                cur_open_div = $(this).attr('data-input');
-                $.post("<?php echo U('util.selecturl', array('ok' => 1));?>", {}, function(shtml){
-                 layer.open({
-                    type: 1,
-                    area: '930px',
-                    content: shtml //注意,如果str是object,那么需要字符拼接。
-                  });
-                });
-            });
-
-            $('#chose_member_id').click(function(){
-                cur_open_div = $(this).attr('data-input');
-                $.post("<?php echo U('supply/zhenquery', array('ok' => 1));?>", {}, function(shtml){
-                    layer.open({
-                        type: 1,
-                        area: '930px',
-                        content: shtml //注意,如果str是object,那么需要字符拼接。
-                    });
-                });
-            })
-
-            var is_post = true;
-            //监听提交
-            form.on('submit(formDemo)', function(data){
-                if(is_post){
-                    is_post = false;
-                    $.ajax({
-                        url: data.form.action,
-                        type: data.form.method,
-                        data: data.field,
-                        dataType:'json',
-                        success: function (info) {
-                            if(info.status == 0)
-                            {
-                                layer.msg(info.result.message,{icon: 1,time: 2000});
-                            }else if(info.status == 1){
-                                var go_url = location.href;
-                                if( info.result.hasOwnProperty("url") )
-                                {
-                                    go_url = info.result.url;
-                                }
-
-                                layer.msg('操作成功',{time: 1000,
-                                    end:function(){
-
-                                        var backurl = "<?php echo U('salesroom/index',array('ok'=>'1'));?>";
-                                        location.href = backurl;
-                                        // location.href = info.result.url;
-                                    }
-                                });
-                            }
-                        }
-                    });
-                }
-                return false;
-            });
-        })
-    </script>
-    <script>
-    $(function  () {
-        var group = $("#sortable").sortable({
-            group: 'limited_drop_targets',
-            handle: 'i.fa-arrows-alt',
-            onDrop: function ($item, container, _super) {
-                console.log(group.sortable("serialize").get().join("\n"));
-                $('#sortIpt').val(group.sortable("serialize").get().join("\n"));
-                _super($item, container);
-            },
-            serialize: function (parent, children, isContainer) {
-                return isContainer ? children.join() : $(parent).data('id');
-            },
-            tolerance: 6,
-            distance: 10
-        });
-    });
-    </script>
-
-
-    <script>
-    var map, searchService, marker, markers = [], infoWin = null;
-    var initMap = function () {
-        <?php if( !empty($item['lon']) ){ ?>
-            var center = new qq.maps.LatLng(<?php echo ($item['lat']); ?>,<?php echo ($item['lon']); ?>);
-        <?php }else{?>
-            var center = new qq.maps.LatLng(39.916527, 116.397128);
-        <?php }?>
-        map = new qq.maps.Map(document.getElementById('container'), {
-            center: center,
-            zoom: 13
-        });
-        var scaleControl = new qq.maps.ScaleControl({
-            align: qq.maps.ALIGN.BOTTOM_LEFT,
-            margin: qq.maps.Size(85, 15),
-            map: map
-        });
-        //调用Poi检索类
-        searchService = new qq.maps.SearchService({
-            //检索成功的回调函数
-            complete: function (results) {
-                //设置回调函数参数
-                var pois = results.detail.pois;
-                infoWin = new qq.maps.InfoWindow({
-                    map: map
-                });
-                var latlngBounds = new qq.maps.LatLngBounds();
-                for (var i = 0, l = pois.length; i < l; i++) {
-                    var poi = pois[i];
-                    //扩展边界范围,用来包含搜索到的Poi点
-                    latlngBounds.extend(poi.latLng);
-                    (function (n) {
-                        var marker = new qq.maps.Marker({
-                            map: map
-                        });
-                        marker.setPosition(pois[n].latLng);
-                        markers.push(marker);
-                        qq.maps.event.addListener(marker, 'click', function () {
-                            infoWin.open();
-                            infoWin.setContent('<div style = "width:200px;padding:10px 0;">' + pois[n].address + '<div class="map-import-btn"><input type="button" class="btn btn-xs btn-primary" value="导入经纬度" onclick="chooseShopLoc(this);" address=' + pois[n].address + ' lat =' + pois[n].latLng.getLat() + '  lng =' + pois[n].latLng.getLng() + ' /></div></div>');
-                            infoWin.setPosition(pois[n].latLng);
-                        });
-                    })(i);
-                }
-                //调整地图视野
-                map.fitBounds(latlngBounds);
-            },
-            //若服务请求失败,则运行以下函数
-            error: function () {
-                alert("很抱歉,未搜索到此地址,请重新输入!");
-            }
-        });
-    }
-    function getSelectArea() {
-        var storeArr = [];
-        var s_province = $('#sel-provance').val();
-        var s_city = $('#sel-city').val();
-        var s_area = $('#sel-area').val();
-        var s_street = $('#sel-street').val();
-
-        if('请选择省份' != s_province)
-        {
-            storeArr.push(s_province);
-        }
-        if('请选择城市' != s_city)
-        {
-            storeArr.push(s_city);
-        }
-        if('请选择区域' != s_area)
-        {
-            storeArr.push(s_area);
-        }
-        if('请选择街道/镇' != s_street && '' != s_street)
-        {
-            storeArr.push(s_street);
-        }
-
-
-        $("#area-selector select").each(function (i) {
-            if ($(this).find("option:selected").text() != '请选择') {
-                storeArr.push($(this).find("option:selected").text());
-            }
-        });
-        return storeArr;
-    }
-    //查询社区信息
-    function chooseShopLoc(t) {
-        var address = $(t).attr("address");
-        var storeAreaArr = getSelectArea();
-
-        for (var i = 3; i >= 0; i--) {
-            if (i == 0)
-            {
-                address = address.replace(storeAreaArr[0] + "市", '');
-            }
-            address = address.replace(storeAreaArr[i], '');
-        }
-        var lat = $(t).attr("lat");
-        var lng = $(t).attr("lng");
-        this.clearMarkers();
-        var position = new qq.maps.LatLng(lat, lng);
-        marker = new qq.maps.Marker({
-            map: map,
-            position: position,
-            draggable: true
-        });
-        map.panTo(position);
-        map.zoomTo(18);
-        $("#lon").val(lng);
-        $("#lat").val(lat);
-        qq.maps.event.addListener(marker, 'dragend', function () {
-            if (marker.getPosition()) {
-                $("#lon").val(marker.getPosition().getLng());
-                $("#lat").val(marker.getPosition().getLat());
-            }
-        });
-        if (infoWin) {
-            infoWin.close();
-        }
-        $("#map_des").hide();
-    }
-    ////删除所有标记
-    function clearMarkers() {
-        if (markers) {
-            for (i = 0; i < markers.length; i++) {
-                markers[i].setMap(null);
-            }
-            markers.length = 0;
-        }
-    }
-
-    //搜索地址,这里需要判断是否选择了省市区
-    function getResult() {
-        if ($("#AddressId").val() <= 0) {
-            // $.dialog.tips("请先选择店铺地址");
-            return;
-        }
-        if ($.trim($("#address").val()).length == 0) {
-            //tip.msgbox.err('请先输入详细地址');
-            layer.msg('请先输入详细地址',{icon: 1,time: 2000});
-            return;
-        }
-        if (marker != null) marker.setMap(null);
-        clearMarkers();
-        if (infoWin) {
-            infoWin.close();
-        }
-        var storeArr = getSelectArea();
-        var regions = storeArr[0] + storeArr[1] + storeArr[2];
-        var regionText = storeArr.join(',');
-        var poiText = regions + $.trim($("#address").val());
-    //searchService.setLocation(regionText);
-	searchService.setLocation(storeArr[1]);
-        searchService.search(poiText);
-        $("#map_des").show();
-    }
-    require(['bootstrap'],function(){
-        $('#myTab a').click(function (e) {
-            e.preventDefault();
-            $('#tab').val( $(this).attr('href'));
-            $(this).tab('show');
-        })
-    });
-
-    function showbacktype(type){
-
-        $('.backtype').hide();
-        $('.backtype' + type).show();
-    }
-    function cancle_bind(obj,id)
-    {
-        $('#member_id').val('');
-        $(obj).parent().parent().remove();
-    }
-    </script>
-</body>
-</html>

+ 0 - 180
Runtime/Cache/Seller/c9bb017f723e87c2da3a950ec8ed4f94.php

@@ -1,180 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-            window.sysinfo = {
-            <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-			
-            <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-			
-            'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-			
-            'siteroot': '<?php echo ($_W['siteroot']); ?>',
-                    'siteurl': '<?php echo ($_W['siteurl']); ?>',
-                    'attachurl': '<?php echo ($_W['attachurl']); ?>',
-                    'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-                    'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-                    'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-            'cookie' : {'pre': ''},
-            'account' : <?php echo json_encode($_W['account']);?>,
-            };
-        </script>
-		
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-  <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-   <link href="/static/css/snailfish.css" rel="stylesheet">
-</head>
-<body layadmin-themealias="default">
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">关于我们设置</div>
-		<div class="layui-card-body" style="padding:15px;">
-			<form action="" method="post" class="layui-form" lay-filter="component-layui-form-item" enctype="multipart/form-data" >
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label">是否开启</label>
-					<div class="layui-input-block">
-						<label class='radio-inline'>
-							<input type='radio' name='parameter[is_show_about_us]' value='0' <?php if( !empty($data) && $data['is_show_about_us'] ==0 ){ ?>checked <?php } ?> title="否" /> 
-						</label>
-						<label class='radio-inline'>
-							<input type='radio' name='parameter[is_show_about_us]' value='1' <?php if( empty($data) || $data['is_show_about_us'] ==1 ){ ?>checked <?php } ?> title="是" /> 
-						</label>
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label">关于我们</label>
-					<div class="layui-input-block">
-						<div class="">
-							<?php echo tpl_ueditor('parameter[personal_center_about_us]',$data['personal_center_about_us'],array('height'=>'300'));?>
-						</div>
-					</div>
-				</div>
-		
-		
-		
-				<div class="layui-form-item">
-					<label class="layui-form-label"> </label>
-					<div class="layui-input-block">
-						<input type="submit" value="提交" lay-submit lay-filter="formDemo" class="btn btn-primary"  />
-						
-					</div>
-				</div>
-			</form>
-		</div>
-</div>
-</div>
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-var cur_open_div;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  
-	form.on('radio(linktype)', function(data){
-		if (data.value == 2) {
-			$('#typeGroup').show();
-		} else {
-			$('#typeGroup').hide();
-		}
-	});  
-
-	$('#close_tuanz').click(function(){
-		$('#txtPickupDateTip').hide();
-	})
-	$('#open_tuanz').click(function(){
-		$('#txtPickupDateTip').css('display','inline-block');
-	})
-		
-	$('#chose_link').click(function(){
-		cur_open_div = $(this).attr('data-input');
-		$.post("<?php echo U('util.selecturl', array('ok' => 1));?>", {}, function(shtml){
-		 layer.open({
-			type: 1,
-			area: '930px',
-			content: shtml //注意,如果str是object,那么需要字符拼接。
-		  });
-		});
-	})
-		
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-})
-
-
-
-</script>  
-</body>

+ 0 - 2901
Runtime/Cache/Seller/cd78683d18a1166e9555a43077976e17.php

@@ -1,2901 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-
-<head>
-	<meta charset="utf-8">
-	<?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-	<title><?php echo $shoname; ?></title>
-	<link rel="shortcut icon" href="" />
-	<meta name="renderer" content="webkit">
-	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-	<link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
-	<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-	<!--[if lt IE 9]>
-	<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-	<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-	<![endif]-->
-
-	<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-	<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-	<script type="text/javascript">
-		window.sysinfo = {
-            <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-            <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-            <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-            <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-            'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-            'siteroot': '<?php echo ($_W['siteroot']); ?>',
-            'siteurl': '<?php echo ($_W['siteurl']); ?>',
-            'attachurl': '<?php echo ($_W['attachurl']); ?>',
-            'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-            'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-            'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-            'cookie' : {'pre': ''},
-            'account' : <?php echo json_encode($_W['account']);?>,
-        };
-	</script>
-
-	<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-	<script type="text/javascript" src="/static/js/diy/vue.min.js"></script>
-	<script src="/static/js/diy/ddsort.js"></script>
-
-	<script>
-		var random = Math.random();
-		document.write('<link href="/static/css/diy/shopdiy.css?v=' + random + '" rel="stylesheet" type="text/css"/>');
-	</script>
-	<script>
-		var random = Math.random();
-		document.write('<link href="/static/js/diy/color_picker/css/colorpicker.css?v=' + random + '" rel="stylesheet" type="text/css"/>');
-	</script>
-
-
-	<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-	<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-	<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-	<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-	<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-	<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-	<link href="/static/css/snailfish.css" rel="stylesheet">
-	<script>
-		//初始化高度
-		$(function () {
-			var lf_height = $(document).height() - $('#modify-view').offset().top - 28;
-			$('#modify-view').css('height', lf_height + 'px');
-			$('.all_component_list').css('height', lf_height + 'px');
-		})
-	</script>
-</head>
-
-<body layadmin-themealias="default">
-
-	<div class="layui-fluid">
-		<div class="layui-card">
-			<div class="layui-card-body">
-				<!-- begin modify -->
-				<div id="modify-view">
-					<!-- left component begin -->
-					<div class="all_component_list">
-						<div class="componnet_list_box">
-							<?php if(is_array($diyview)): foreach($diyview as $k=>$vo): ?><div class="component_title" data-index="<?php echo ($k); ?>">
-									<img src="/static/images/diy/down.png"><?php echo ($vo["type_name"]); ?>
-								</div>
-								<ul data-index="<?php echo ($k); ?>">
-									<?php if($vo['type'] == 'SYSTEM' && $name != 'DIYVIEW_GOODS_CATEGORY'): ?><!-- <li title="弹出广告" v-on:click='addSzyComponent("popadv")'>
-											<img src="/static/images/diy/ad.png">
-											<span>弹出广告</span>
-										</li> --><?php endif; ?>
-									<?php if(is_array($vo["list"])): foreach($vo["list"] as $li_k=>$li): ?><li 
-											title="<?php echo ($li["title"]); ?>" 
-											<?php if($li.value): ?>v-on:click='addSzyComponent(<?php echo ($li["value"]); ?>,{ controller: "<?php echo ($li["controller"]); ?>", name : "<?php echo ($li["name"]); ?>", title : "<?php echo ($li["title"]); ?>", max_count : <?php echo ($li["max_count"]); ?>, addon_name : "<?php echo ($li["addon_name"]); ?>", controller : "<?php echo ($li["controller"]); ?>", is_delete : "<?php echo ($li["is_delete"]); ?>" })'
-											v-bind:class="{ 'disabled' : !checkComponentIsAdd('<?php echo ($li["name"]); ?>',<?php echo ($li["max_count"]); ?>) }" 
-											<?php else: ?>class="disabled"<?php endif; ?>
-										>
-											<img src="<?php echo ($li["icon"]); ?>" data-icon="<?php echo ($li["icon"]); ?>" data-icon-selected="<?php echo ($li["icon_selected"]); ?>" >
-											<span><?php echo ($li["title"]); ?></span>
-										</li><?php endforeach; endif; ?>
-								</ul><?php endforeach; endif; ?>
-						</div>
-					</div>
-					<!-- left component end -->
-					<!-- center component begin -->
-					<div class="preview-box">
-						<div class="preview-div">
-							<div class="preview-screen">
-								<button class="layui-btn layui-btn-primary position-page-btn"
-									v-on:click="changeCurrentIndex(-99)">页面设置</button>
-									<div class="screen_center_wrap">
-										<div class="view-wrap" id="viewWrap">
-											<div class="screen_head">
-												<div class="preview-head_div"
-													v-bind:style="{ backgroundColor : global.topNavColor,color:global.textNavColor}">
-													<div class="search">
-														<span v-bind:style="{ textAlign:global.textImgPosLink}">{{global.title}}</span>
-													</div>
-												</div>
-
-												<!-- 全局设置项目 begin -->
-												<div v-bind:class="{selected : currentIndex==-99}" v-bind:data-sort="-99"
-													style="display:none;" v-show="data.length==0 || currentIndex==-99">
-													<div class="edit-attribute">
-														<div class="attr-wrap">
-															<div class="restore-wrap">
-																<h2 class="attr-title">页面设置</h2>
-																<div class="layui-form-item">
-																	<label class="layui-form-label sm">页面名称</label>
-																	<div class="layui-input-block">
-																		<input type="text" v-model="global.title"
-																			placeholder="请输入页面名称" class="layui-input"
-																			maxlength="15">
-																	</div>
-																</div>
-
-																<div class="layui-form-item">
-																	<label class="layui-form-label sm">首页展示</label>
-																	<div class="layui-input-block">
-																		<div class="flex_fill">
-																			<div v-on:click="global.openDiyPage=0" v-bind:class="{ 'layui-unselect layui-form-radio' : true,'layui-form-radioed' : (global.openDiyPage==0) }">
-																				<i class="layui-anim layui-icon">&#xe63f;</i>
-																				<div>旧版首页</div>
-																			</div>
-																			<div v-on:click="global.openDiyPage=1" v-bind:class="{ 'layui-unselect layui-form-radio' : true,'layui-form-radioed' : (global.openDiyPage==1) }">
-																				<i class="layui-anim layui-icon">&#xe63f;</i>
-																				<div>新版“首页DIY”</div>
-																			</div>
-																		</div>
-																		<div class="ns-word-aux ns-diy-word-aux" style="margin-left: 0;">
-																			小程序设置新版 “首页DIY” 以后,“小程序首页”内容根据“首页DIY”设置的内容进行展示,商城其他“首页”设置会无效。如还使用商城“首页”设置请切换至“旧版首页”
-																		</div>
-																	</div>
-																</div>
-
-																<div class="template-edit-title">
-																	<h3>页面显示样式</h3>
-																	<i class="layui-icon layui-icon-down"
-																		onclick="closeBox(this)"></i>
-																</div>
-
-																<div class="template-edit-wrap">
-																	<template>
-																		<color
-																			v-bind:data="{ field : 'bgColor', label : '页面颜色', value : global.bgColor, defaultcolor : '#f6f6f6', global: 1 }">
-																		</color>
-																		<color
-																			v-bind:data="{ field : 'topNavColor', label : '顶部颜色', value : global.topNavColor, defaultcolor : '#ffffff', global: 1 }">
-																		</color>
-																		<div class="layui-form-item flex">
-																			<div class="flex_left">
-																				<label class="layui-form-label sm">标题颜色</label>
-																				<div class="curr_color"></div>
-																			</div>
-																			<div class="layui-input-block flex_fill">
-																				<div v-on:click="global.textNavColor='#000000'" v-bind:class="{ 'layui-unselect layui-form-radio' : true,'layui-form-radioed' : (global.textNavColor=='#000000') }">
-																					<i class="layui-anim layui-icon">&#xe63f;</i>
-																					<div>黑色</div>
-																				</div>
-																				<div v-on:click="global.textNavColor='#ffffff'" v-bind:class="{ 'layui-unselect layui-form-radio' : true,'layui-form-radioed' : (global.textNavColor=='#ffffff') }">
-																					<i class="layui-anim layui-icon">&#xe63f;</i>
-																					<div>白色</div>
-																				</div>
-																			</div>
-																		</div>
-																	</template>
-																	<div class="layui-form-item">
-																		<label class="layui-form-label sm">背景图片</label>
-																		<div class="layui-input-block ns-img-upload">
-																			<img-sec-upload v-bind:data="{ data : global, field : 'bgUrl', text: '' }">
-																			</img-sec-upload>
-																		</div>
-																	</div>
-																</div>
-
-
-															</div>
-														</div>
-
-													</div>
-
-												</div>
-												<!-- 全局设置项目 end -->
-
-											</div>
-											<!--画布中心 begin -->
-											<div class="screen_center" style="background-size: contain;background-position: top center;background-repeat: no-repeat;" v-bind:style="{ backgroundColor : global.bgColor,backgroundImage : 'url('+global.bgUrl+')' }">
-												<template v-for="(nc,index) in data" v-bind:k="index">
-													<div 
-														v-bind:data-index="index" 
-														v-on:click="changeCurrentIndex(nc.index)" 
-														v-bind:class="{ 'draggable-element nc-border-color-selected' : true,selected : currentIndex == nc.index }" 
-														v-bind:data-sort="index"
-													>
-														<?php if(is_array($diyview)): foreach($diyview as $key=>$vo): if(is_array($vo["list"])): foreach($vo["list"] as $key=>$li): ?><template v-if="nc.type == '<?php echo ($li["name"]); ?>'">
-																	<?php if($li['name']=='TEXT'): ?><cm-construct v-bind:data="data[index]" class="component-title">
-	<!-- 预览 -->
-	<template slot="preview">
-		<div class="preview-box" v-bind:style="{textAlign: nc.alignStyle, backgroundColor : nc.backgroundColor, margin : nc.marginTop + 'px 15px 0'}">
-			<!-- 图一 -->
-			<div class="text-title" v-bind:class="'text-title-'+ nc.style" v-if="nc.style == 1">
-				<div class="text-title-box" v-show="nc.title">
-					<span class="text-title-con" v-bind:style="{ fontSize : nc.fontSize + 'px', color : nc.textColor, opacity: nc.textColor ? 1 : 0, padding: '0 7px' }">{{ nc.title }}</span>
-					<span class="line-left" v-bind:style="{ background: nc.textColor }"></span>
-					<span class="line-right" v-bind:style="{ background: nc.textColor }"></span>
-				</div>
-			</div>
-			<!-- 图二 -->
-			<div class="text-title" v-bind:class="'text-title-'+ nc.style" v-else-if="nc.style == 2">
-				<div class="text-title-box" v-show="nc.title">
-					<span class="text-title-con" v-bind:style="{ fontSize : nc.fontSize + 'px', color : nc.textColor, opacity: nc.textColor ? 1 : 0, paddingBottom: 3+'px' }">{{ nc.title }}</span>
-				</div>
-				<div v-bind:class="'text-title-con'+ nc.style">
-					<span class="inner-line" v-bind:style="{ background: nc.textColor }"></span>
-					<span class="line-triangle" v-bind:style="{ borderColor: nc.textColor, opacity: nc.textColor ? 1 : 0 }"></span>
-				</div>
-			</div>
-			<!-- 图三 -->
-			<div class="text-title" v-bind:class="'text-title-'+ nc.style" v-else-if="nc.style == 3">
-				<div class="text-title-box" v-show="nc.title">
-					<span class="text-title-con" v-bind:style="{ fontSize : nc.fontSize + 'px', color : nc.textColor, opacity: nc.textColor ? 1 : 0, paddingBottom: 3+'px' }">{{ nc.title }}</span>
-				</div>
-				<div v-bind:class="'text-title-con'+ nc.style">
-					<span class="inner-line" v-bind:style="{ background: nc.textColor }"></span>
-					<span class="line-short" v-bind:style="{ background: nc.textColor, opacity: nc.textColor ? 1 : 0 }"></span>
-				</div>
-			</div>
-			<!-- 图四 -->
-			<div class="text-title" v-bind:class="'text-title-'+ nc.style" v-else-if="nc.style == 4">
-				<div class="text-title-box" v-show="nc.title">
-					<span class="text-title-con" v-bind:style="{ fontSize : nc.fontSize + 'px', color : nc.textColor, opacity: nc.textColor ? 1 : 0, paddingBottom: 3+'px' }">{{ nc.title }}</span>
-				</div>
-				<div class="text-title-line">
-					<span class="line-left" v-bind:style="{ background: nc.textColor }"></span>
-					<span class="line-center" v-bind:style="{ borderColor: nc.textColor, opacity: nc.textColor ? 1 : 0 }"></span>
-					<span class="line-right" v-bind:style="{ background: nc.textColor }"></span>
-				</div>
-			</div>
-			<!-- 图五 -->
-			<div class="text-title" v-bind:class="'text-title-'+ nc.style" v-else-if="nc.style == 5">
-				<div class="text-title-box" v-show="nc.title">
-					<span class="text-title-block" v-bind:style="{ borderColor: nc.textColor, opacity: nc.textColor ? 1 : 0 }">
-						<span class="text-title-con" v-bind:style="{ fontSize : nc.fontSize + 'px', color : nc.textColor, opacity: nc.textColor ? 1 : 0, paddingBottom: 3+'px', borderColor: nc.textColor }">{{ nc.title }}</span>
-						<span class="line-left" v-bind:style="{ background: nc.textColor }"></span>
-						<span class="line-right" v-bind:style="{ background: nc.textColor }"></span>
-					</span>
-				</div>
-			</div>
-			<!-- 图六 -->
-			<div class="text-title" v-bind:class="'text-title-'+ nc.style" v-else-if="nc.style == 6">
-				<div class="text-title-box" v-show="nc.title">
-					<span class="text-title-outer" v-bind:style="{ borderColor: nc.textColor }">
-						<span class="text-title-con" v-bind:style="{ fontSize : nc.fontSize + 'px', color : nc.textColor, opacity: nc.textColor ? 1 : 0, paddingBottom: 3+'px', borderColor: nc.textColor, background: '#fff' }">{{ nc.title }}</span>
-						<span class="text-title-con-2" v-bind:style="{ borderColor: nc.textColor, opacity: nc.textColor ? 1 : 0 }"></span>
-					</span>
-				</div>
-			</div>
-			<!-- 图七 -->
-			<div class="text-title" v-bind:class="'text-title-'+ nc.style" v-else-if="nc.style == 7">
-				<div class="text-title-box" v-show="nc.title">
-					<span class="text-title-outer" v-bind:style="{ borderColor: nc.textColor }">
-						<span class="text-title-con" v-bind:style="{ fontSize : nc.fontSize + 'px', color : '#fff', paddingBottom: 3+'px', borderColor: nc.textColor, background: nc.textColor, opacity: nc.textColor ? 1 : 0 }">{{ nc.title }}</span>
-						<span class="text-title-con-2" v-bind:style="{ borderColor: nc.textColor, opacity: nc.textColor ? 1 : 0 }"></span>
-					</span>
-				</div>
-			</div>
-			<!-- 图八 -->
-			<div class="text-title" v-bind:class="'text-title-'+ nc.style" v-else-if="nc.style == 8" >
-				<div class="text-title-box" v-show="nc.title" v-bind:style="{ textAlign: 'left'}">
-					<span class="text-title-con" v-bind:style="{ fontSize : nc.fontSize + 'px', color : nc.textColor, opacity: nc.textColor ? 1 : 0, paddingBottom: 3+'px' }">{{ nc.title }}</span>
-					<span class="line-left" v-bind:style="{ height: (nc.fontSize*1 + 2) + 'px', background: nc.textColor}"></span>
-				</div>
-			</div>
-			<!-- 图九 -->
-			<div class="text-title" v-bind:class="'text-title-'+ nc.style" v-else-if="nc.style == 9" >
-				<div class="text-title-box" v-show="nc.title">
-					<div class="left"></div>
-					<div class="center">
-						<div><img src="<?php echo ($resourceurl); ?>/text/img/style9-1.png" /></div>
-						<span class="text-title-con" v-bind:style="{ fontSize : nc.fontSize + 'px', color : nc.textColor, opacity: nc.textColor ? 1 : 0, paddingBottom: 3+'px', fontWeight: nc.fontWeight }">{{ nc.title }}</span>
-						<div><img src="<?php echo ($resourceurl); ?>/text/img/style9-2.png" /></div>
-					</div>
-					<div v-show="nc.isShowMore == 1" class="more" v-bind:style="{ color: nc.btnColor, opacity: nc.btnColor ? 1 : 0 }">{{nc.moreText}} <i class="iconfont iconyoujiantou"></i></div>
-				</div>
-				<div class="text-subTitle-box" v-show="nc.subTitle">
-					<p v-show="nc.subTitle" v-bind:style="{ fontSize : nc.fontSizeSub + 'px', color: nc.colorSub, opacity: nc.colorSub ? 1 : 0 }">{{ nc.subTitle }}</p>
-				</div>
-			</div>
-
-			<!-- 图十 -->
-			<div class="text-title" v-bind:class="'text-title-'+ nc.style" v-else-if="nc.style == 10" >
-				<div class="text-title-box" v-show="nc.title">
-					<div class="left"></div>
-					<div class="center">
-						<div><img src="<?php echo ($resourceurl); ?>/text/img/style10-1.png" /></div>
-						<span class="text-title-con" v-bind:style="{ fontSize : nc.fontSize + 'px', color : nc.textColor, opacity: nc.textColor ? 1 : 0, paddingBottom: 3+'px', fontWeight: nc.fontWeight }">{{ nc.title }}</span>
-						<div><img src="<?php echo ($resourceurl); ?>/text/img/style10-2.png" /></div>
-						<img src="<?php echo ($resourceurl); ?>/text/img/style10-3.png" />
-					</div>
-					<div v-show="nc.isShowMore == 1" class="more" v-bind:style="{ color: nc.btnColor, opacity: nc.btnColor ? 1 : 0 }">{{nc.moreText}} <i class="iconfont iconyoujiantou"></i></div>
-				</div>
-				<div class="text-subTitle-box" v-show="nc.subTitle">
-					<p v-show="nc.subTitle" v-bind:style="{ fontSize : nc.fontSizeSub + 'px', color: nc.colorSub, opacity: nc.colorSub ? 1 : 0 }">{{ nc.subTitle }}</p>
-				</div>
-			</div>
-
-			<!-- 图十一 -->
-			<div class="text-title" v-bind:class="'text-title-'+ nc.style" v-else-if="nc.style == 11" >
-				<div class="text-title-box" v-show="nc.title">
-					<div class="left">
-						<span class="text-title-con" v-bind:style="{ fontSize : nc.fontSize + 'px', color : nc.textColor, opacity: nc.textColor ? 1 : 0, paddingBottom: 3+'px', fontWeight: nc.fontWeight }">{{ nc.title }}</span>
-						<div class="text-subTitle-box" v-show="nc.subTitle">
-							<p v-show="nc.subTitle" v-bind:style="{ fontSize : nc.fontSizeSub + 'px', color: nc.colorSub, opacity: nc.colorSub ? 1 : 0 }">{{ nc.subTitle }}</p>
-						</div>
-					</div>
-					<div v-show="nc.isShowMore == 1" class="more" v-bind:style="{ color: nc.btnColor, opacity: nc.btnColor ? 1 : 0 }"><span>{{nc.moreText}}</span> <i class="iconfont iconyoujiantou"></i></div>
-					<img class="left-img" src="<?php echo ($resourceurl); ?>/text/img/style11-1.png" />
-					<img class="right-img" src="<?php echo ($resourceurl); ?>/text/img/style11-2.png" />
-				</div>
-			</div>
-		</div>
-	</template>
-
-	<!-- 编辑 -->
-	<template slot="edit">
-		<template v-if="nc.lazyLoad">
-			<!-- <text-style></text-style> -->
-		</template>
-		
-		<!-- <h3 class="template-title">文本名</h3>
-		<div class="layui-form-item ns-padding-left">
-			<input type="text" v-model="nc.title" v-bind:id="'title_'+index" placeholder="请输入文本" class="layui-input">
-		</div> -->
-		<div class="layui-form-item">
-			<label class="layui-form-label sm">文本名称</label> 
-			<div class="layui-input-block">
-				<input type="text" v-model="nc.title" v-bind:id="'title_'+index" placeholder="请输入文本" class="layui-input">
-			</div>
-		</div>
-		<sel-link v-bind:data="{ field : nc.link }"></sel-link>
-		
-		<div class="template-edit-title">
-			<h3>文字显示样式</h3>
-			<i class="layui-icon layui-icon-down" onclick="closeBox(this)"></i>
-		</div>
-		
-		<div class="template-edit-wrap">
-			<!-- <font-size v-bind:data="{ value : nc.fontSize }"></font-size> -->
-			<!-- <slide v-bind:data="{ field : 'fontSize', label : '文字大小', max: 30, min: 12 }"></slide> -->
-			<!-- <text-align></text-align> -->
-			<template v-if="nc.lazyLoad">
-				<text-font-size v-bind:data="{ field : 'fontSize', label : '文字大小', max: 16 }"></text-font-size>
-				<color v-bind:data="{ field : 'textColor', 'label' : '文本颜色', 'defaultcolor': '#333333' }"></color>
-				<font-weight v-show="nc.sub == 1"></font-weight>
-				<!-- <text-align-style></text-align-style> -->
-			</template>
-		</div>
-		
-		<!-- <hr v-show="nc.sub == 1" /> -->
-		
-		
-		<!-- <hr v-show="nc.sub == 1" /> -->
-		
-		<!-- 副文本 -->
-		<div v-show="nc.sub == 1">
-			<div class="template-edit-title">
-				<h3>副标题</h3>
-				<i class="layui-icon layui-icon-down" onclick="closeBox(this)"></i>
-			</div>
-			
-			<div class="template-edit-wrap">
-				<div class="layui-form-item">
-					<label class="layui-form-label sm">标题文字</label>
-					<div class="layui-input-block">
-						<input type="text" v-model="nc.subTitle" v-bind:id="'subTitle_'+index" placeholder="请输入标题文字" class="layui-input">
-					</div>
-				</div>
-				<!-- <font-size v-bind:data="{ field : 'fontSizeSub', 'label' : '文字大小' }"></font-size> -->
-				<template v-if="nc.lazyLoad">
-					<text-font-size v-bind:data="{ field : 'fontSizeSub', label : '文字大小', max: 14 }"></text-font-size>
-				</template>
-				<!-- <slide v-bind:data="{ field : 'fontSize', label : '文字大小', max: 30, min: 12 }"></slide> -->
-				<color v-bind:data="{ field : 'colorSub', 'label' : '文字颜色', 'defaultcolor': '#999' }"></color>
-			</div>
-		</div>
-		
-		<!-- <hr v-show="nc.sub == 1" /> -->
-		
-		<!-- “更多”按钮设置 -->
-		<div v-show="nc.sub == 1">
-			<div class="template-edit-title">
-				<h3>“更多”按钮设置</h3>
-				<i class="layui-icon layui-icon-down" onclick="closeBox(this)"></i>
-			</div>
-			
-			<div class="template-edit-wrap">
-				<template v-if="nc.lazyLoad">
-					<text-more-btn></text-more-btn>
-				</template>
-				<div class="layui-form-item">
-					<label class="layui-form-label sm">按钮文字</label>
-					<div class="layui-input-block">
-						<input type="text" v-model="nc.moreText" v-bind:id="'moreText'+index" placeholder="查看更多 >" class="layui-input">
-					</div>
-				</div>
-				<color v-bind:data="{ field : 'btnColor', 'label' : '文字颜色', 'defaultcolor': '#999' }"></color>
-				<nc-link v-bind:data="{ field : nc.moreLink }"></nc-link>
-			</div>
-		</div>
-		
-		<div class="template-edit-title">
-			<h3>其他设置</h3>
-			<i class="layui-icon layui-icon-down" onclick="closeBox(this)"></i>
-		</div>
-		
-		<div class="template-edit-wrap">
-			<color v-bind:data="{ field : 'backgroundColor', 'label' : '背景颜色' }"></color>
-			<template v-if="nc.lazyLoad">
-				<text-empty></text-empty>
-			</template>
-		</div>
-		
-		<!-- 弹框 -->
-		<div class="style-list-box">
-			<div class="style-list layui-form">
-				<div class="style-list-con">
-					<div class="style-li" v-bind:class="{'selected ns-border-color': nc.style == 1}">
-						<input type="hidden" v-bind:class="'style-li-'+ nc.style" value="0" />
-						<span class="layui-hide">模板一</span>
-						<img src="<?php echo ($resourceurl); ?>/text/img/style1.png" />
-					</div>
-					
-					<div class="style-li" v-bind:class="{'selected ns-border-color': nc.style == 2}">
-						<input type="hidden" v-bind:class="'style-li-'+ nc.style" value="0" />
-						<span class="layui-hide">模板二</span>
-						<img src="<?php echo ($resourceurl); ?>/text/img/style2.png" />
-					</div>
-					
-					<div class="style-li" v-bind:class="{'selected ns-border-color': nc.style == 3}">
-						<input type="hidden" v-bind:class="'style-li-'+ nc.style" value="0" />
-						<span class="layui-hide">模板三</span>
-						<img src="<?php echo ($resourceurl); ?>/text/img/style3.png" />
-					</div>
-					
-					<div class="style-li" v-bind:class="{'selected ns-border-color': nc.style == 4}">
-						<input type="hidden" v-bind:class="'style-li-'+ nc.style" value="0" />
-						<span class="layui-hide">模板四</span>
-						<img src="<?php echo ($resourceurl); ?>/text/img/style4.png" />
-					</div>
-					
-					<div class="style-li" v-bind:class="{'selected ns-border-color': nc.style == 5}">
-						<input type="hidden" v-bind:class="'style-li-'+ nc.style" value="0" />
-						<span class="layui-hide">模板五</span>
-						<img src="<?php echo ($resourceurl); ?>/text/img/style5.png" />
-					</div>
-					
-					<div class="style-li" v-bind:class="{'selected ns-border-color': nc.style == 6}">
-						<input type="hidden" v-bind:class="'style-li-'+ nc.style" value="0" />
-						<span class="layui-hide">模板六</span>
-						<img src="<?php echo ($resourceurl); ?>/text/img/style6.png" />
-					</div>
-					
-					<div class="style-li" v-bind:class="{'selected ns-border-color': nc.style == 7}">
-						<input type="hidden" v-bind:class="'style-li-'+ nc.style" value="0" />
-						<span class="layui-hide">模板七</span>
-						<img src="<?php echo ($resourceurl); ?>/text/img/style7.png" />
-					</div>
-					
-					<div class="style-li" v-bind:class="{'selected ns-border-color': nc.style == 8}">
-						<input type="hidden" v-bind:class="'style-li-'+ nc.style" value="0" />
-						<span class="layui-hide">模板八</span>
-						<img src="<?php echo ($resourceurl); ?>/text/img/style8.png" />
-					</div>
-					
-					<div class="style-li" v-bind:class="{'selected ns-border-color': nc.style == 9}">
-						<input type="hidden" v-bind:class="'style-li-'+ nc.style" value="1" />
-						<span class="layui-hide">模板九</span>
-						<img src="<?php echo ($resourceurl); ?>/text/img/style9.png" />
-					</div>
-					
-					<div class="style-li" v-bind:class="{'selected ns-border-color': nc.style == 10}">
-						<input type="hidden" v-bind:class="'style-li-'+ nc.style" value="1" />
-						<span class="layui-hide">模板十</span>
-						<img src="<?php echo ($resourceurl); ?>/text/img/style10.png" />
-					</div>
-					
-					<div class="style-li" v-bind:class="{'selected ns-border-color': nc.style == 11}">
-						<input type="hidden" v-bind:class="'style-li-'+ nc.style" value="1" />
-						<span class="layui-hide">模板十一</span>
-						<img src="<?php echo ($resourceurl); ?>/text/img/style11.png" />
-					</div>
-				</div>
-				
-				<input type="hidden" name="style">
-				<input type="hidden" name="sub" />
-				<input type="hidden" name="style_name" />
-			</div>
-		</div>
-	</template>
-	
-	<!-- 资源 -->
-	<template slot="resource">
-		<js>
-			var textResourcePath = "<?php echo ($resourceurl); ?>";
-		</js>
-		<css src="<?php echo ($resourceurl); ?>/text/css/style.css"></css>
-		<js src="<?php echo ($resourceurl); ?>/text/js/style.js"></js>
-	</template>
-
-</cm-construct><?php endif; ?>
-																	<?php if($li['name']=='NOTICE'): ?><cm-construct v-bind:data="data[index]" class="notice">
-
-	<!-- 预览 -->
-	<template slot="preview">
-		<div class="preview-box" v-bind:style="{ backgroundColor : nc.backgroundColor, margin : nc.marginTop + 'px 15px 0' }">
-			<!-- style1 -->
-			<div class="notice-box" v-bind:class="'notice-box-'+ nc.style" v-if="nc.style == 1">
-				<div class="notice-con" v-for="(item, index) in nc.list" v-if="index < 1">
-					<div class="notice-con-icon" v-if="index == 0"><img v-bind:src="nc.leftImg" /></div>
-					<!-- <div class="notice-con-split"></div> -->
-					<span class="notice-con-font" v-bind:style="{color: nc.textColor?nc.textColor:'rgba(0,0,0,0)'}">{{ item.title }}</span>
-				</div>
-			</div>
-		</div>
-	</template>
-
-	<!-- 编辑 -->
-	<template slot="edit">
-		<template v-if="nc.lazyLoad">
-			<notice-con></notice-con>
-			<notice-edit></notice-edit>
-			
-		</template>
-		
-		<color v-show="nc.isEdit == 1" v-bind:data="{ defaultcolor: '#333333' }"></color>
-		<div class="template-edit-title">
-			<h3>其他设置</h3>
-		</div>
-		<div class="template-edit-wrap">
-			<color v-bind:data="{ field : 'backgroundColor', label : '背景颜色' }"></color>
-			<slide v-bind:data="{ field : 'marginTop', label : '页面间距' }"></slide>
-		</div>
-
-		<!-- 网站公告弹框 -->
-		<div class="notice-list">
-			<table class="layui-table" id="notice_list"></table>
-			<div class="layui-form layui-border-box layui-table-view">
-				<div class="layui-table-box">
-					<div class="layui-table-header">
-						<table cellspacing="0" cellpadding="0" border="0" class="layui-table" lay-skin="line" lay-size="lg">
-							<thead>
-								<tr>
-									<th data-field="0" data-key="2-0-0" data-unresize="true" class=" layui-table-col-special">
-										<div class="layui-table-cell laytable-cell-2-0-0">
-											<span>公告标题</span>
-										</div>
-									</th>
-									<th data-field="1" data-key="2-0-1" data-unresize="true" class=" layui-table-col-special">
-										<div class="layui-table-cell laytable-cell-2-0-1">
-											<span>创建时间</span>
-										</div>
-									</th>
-									<th data-field="2" data-key="2-0-2" data-unresize="true" class=" layui-table-col-special">
-										<div class="layui-table-cell laytable-cell-2-0-2">
-											<span>操作</span>
-										</div>
-									</th>
-								</tr>
-							</thead>
-						</table>
-					</div>
-					<div class="layui-table-body layui-table-main">
-						<table cellspacing="0" cellpadding="0" border="0" class="layui-table" lay-skin="line" lay-size="lg">
-							<tbody>
-							</tbody>
-						</table>
-					</div>
-				</div>
-			</div>
-		</div>
-
-	</template>
-
-	<!-- 资源 -->
-	<template slot="resource">
-
-		<js>
-			var noticeResourcePath = "<?php echo ($resourceurl); ?>";
-		</js>
-		<css src="<?php echo ($resourceurl); ?>/notice/css/style.css"></css>
-		<js src="<?php echo ($resourceurl); ?>/notice/js/style.js"></js>
-
-	</template>
-
-</cm-construct><?php endif; ?>
-																	<?php if($li['name']=='GRAPHIC_NAV'): ?><cm-construct v-bind:data="data[index]" v-bind:class="['graphic-navigation']">
-
-	<!-- 预览 -->
-	<template slot="preview">
-		<div class="preview-box" v-bind:style="{ background: nc.backgroundColor, marginTop : nc.marginTop + 'px', borderRadius: nc.navRadius == 'fillet' ? '5px' : '0px' }">
-			<template v-if="nc.lazyLoad">
-				<graphic-nav></graphic-nav>
-				<div class="navigation-indicator" v-if="(Math.ceil(nc.list.length/(nc.showType*2))>1)&&(nc.selectedTemplate =='imageNavigation')">
-					<span v-for="(item, index) in Math.ceil(nc.list.length/(nc.showType*2))" :key="index"></span>
-				</div>
-			</template>
-		</div>
-	</template>
-	
-	<!-- 编辑 -->
-	<template slot="edit">
-	
-		<template v-if="nc.lazyLoad">
-			<graphic-nav-list></graphic-nav-list>
-		</template>
-		
-	</template>
-	
-	<!-- 资源 -->
-	<template slot="resource">
-		
-		<js>
-			var graphicNavResourcePath = "<?php echo ($resourceurl); ?>";
-		</js>
-		<css src="<?php echo ($resourceurl); ?>/graphic_nav/css/style.css"></css>
-		<js src="<?php echo ($resourceurl); ?>/graphic_nav/js/style.js"></js>
-		
-	</template>
-
-</cm-construct><?php endif; ?>
-																	<?php if($li['name']=='SEARCH'): ?><cm-construct v-bind:data="data[index]" class="top-search">
-
-	<!-- 预览 -->
-	<template slot="preview">
-		<div class="preview-box" v-bind:style="{background: nc.backgroundColor}">
-			<div class="top-search-form">
-				<input name="d_elem" type="hidden" value="<?php echo ($shop_info["logo"]); ?>" ref="d_elem" />
-				<div class="logo" v-if="nc.searchType == 2" :style="{backgroundImage:'url('+changeImgUrl(nc.searchImg)+')'}">
-				</div>
-				<div class="top-search-box" v-bind:class="{'border-circle': nc.borderType == 2}" v-bind:style="{background: nc.bgColor, textAlign: nc.textAlign}">
-					<span class="top-search-intro" v-bind:style="{color: nc.textColor?nc.textColor:'rgba(0,0,0,0)'}">{{ nc.title }}</span>
-					<span class="top-search-icon"><i class="iconfont iconsousuo" v-bind:style="{color: nc.textColor?nc.textColor:'rgba(0,0,0,0)'}"></i></span>
-				</div>
-			</div>
-		</div>
-
-	</template>
-
-	<!-- 编辑 -->
-	<template slot="edit">
-		<div class="layui-form-item">
-			<label class="layui-form-label sm">文本名</label>
-			<div class="layui-input-block">
-				<input type="text" v-model="nc.title" v-bind:id="'title_'+index" placeholder="请输入搜索内容" class="layui-input">
-			</div>
-		</div>
-		
-		<div class="search_h3">
-			<h3 class="ns-margin-left">搜索样式</h3>
-			<span class="layui-nav-more"></span>
-		</div>
-		<div class="line"></div>
-		<color class="ns-margin-top" v-bind:data="{ 'defaultcolor': '#999999' }"></color>
-		<color v-bind:data="{ field : 'backgroundColor', 'label' : '背景颜色' }"></color>
-		<color v-bind:data="{ field : 'bgColor', 'label' : '框体颜色' }"></color>
-		
-		<template v-if="nc.lazyLoad">
-			<goods-search></goods-search>
-			<search-border></search-border>
-		</template>
-		
-	</template>
-	<!-- 预览 -->
-	<template slot="preview">
-		<div class="search_style" >
-			<div class="sytle">
-				<!-- 图一 -->
-				<div class="text-title" data-index="1" v-if="nc.searchType == 1" :class="{active:nc.searchStyle == 1}">
-					<img src="<?php echo ($resourceurl); ?>/search/img/style3.png"/>
-				</div>
-				<div class="text-title" data-index="2" v-if="nc.searchType == 1" :class="{active:nc.searchStyle == 2}">
-					<img src="<?php echo ($resourceurl); ?>/search/img/style4.png"/>
-				</div> 
-				<div class="text-title" data-index="1" v-if="nc.searchType == 2" :class="{active:nc.searchStyle == 1}">
-					<img src="<?php echo ($resourceurl); ?>/search/img/style1.png"/>
-				</div>
-				<div class="text-title" data-index="2" v-if="nc.searchType == 2" :class="{active:nc.searchStyle == 2}">
-					<img src="<?php echo ($resourceurl); ?>/search/img/style2.png"/>
-				</div> 
-			</div>
-		</div>
-	</template>
-	<!-- 资源 -->
-	<template slot="resource">
-		<js>
-			var searchResourcePath = "<?php echo ($resourceurl); ?>";
-		</js>
-		<css src="<?php echo ($resourceurl); ?>/search/css/style.css"></css>
-		<css src="<?php echo ($resourceurl); ?>/search/css/iconfont.css"></css>
-		<js src="<?php echo ($resourceurl); ?>/search/js/style.js"></js>
-		
-	</template>
-
-</cm-construct><?php endif; ?>
-																	<?php if($li['name']=='HORZ_LINE'): ?><cm-construct v-bind:data="data[index]" v-bind:class="['auxiliary-line',nc.padding]">
-
-	<!-- 预览 -->
-	<template slot="preview">
-		<div class="preview-box" :style="{paddingLeft: nc.padding+ 'px', paddingRight: nc.padding+'px'}">
-			<div v-bind:style="{ borderTop: '1px ' + nc.borderStyle + ' ' + nc.color, margin : (nc.margin + 'px 0') }"></div>
-		</div>
-		
-	</template>
-	
-	<!-- 编辑 -->
-	<template slot="edit">
-		
-		<color v-bind:data="{ field : 'color', label : '线条颜色', defaultcolor: '#000000' }"></color>
-		
-		<div class="layui-form-item ns-icon-radio">
-			<label class="layui-form-label sm">线条样式</label>
-			<div class="layui-input-block">
-				<span :class="{'layui-hide': nc.borderStyle!='solid'}">实线</span>
-				<span :class="{'layui-hide': nc.borderStyle!='dashed'}">虚线</span>
-				
-				<ul class="ns-icon">
-					<li :class="{'ns-text-color ns-border-color ns-bg-color-diaphaneity': nc.borderStyle=='solid'}" @click="nc.borderStyle='solid'">
-						<img v-if="nc.borderStyle=='solid'" src="<?php echo ($resourceurl); ?>/horz_line/img/solid_1.png" />
-						<img v-else src="<?php echo ($resourceurl); ?>/horz_line/img/solid.png" />
-					</li>
-					<li :class="{'ns-text-color ns-border-color ns-bg-color-diaphaneity': nc.borderStyle=='dashed'}" @click="nc.borderStyle='dashed'">
-						<img v-if="nc.borderStyle=='dashed'" src="<?php echo ($resourceurl); ?>/horz_line/img/dash_1.png" />
-						<img v-else src="<?php echo ($resourceurl); ?>/horz_line/img/dash.png" />
-					</li>
-				</ul>
-			</div>
-		</div>
-		
-		<slide v-bind:data="{ field : 'margin', label : '页面间距' }"></slide>
-		<slide v-bind:data="{ field : 'padding', label : '左右边距' }"></slide>
-	</template>
-	
-	<!-- 资源 -->
-	<template slot="resource">
-		<css src="<?php echo ($resourceurl); ?>/horz_line/css/style.css"></css>
-	</template>
-	
-</cm-construct><?php endif; ?>
-																	<?php if($li['name']=='HORZ_BLANK'): ?><cm-construct v-bind:data="data[index]" v-bind:class="['auxiliary-blank']">
-	<!-- 预览 -->
-	<template slot="preview">
-		<div class="preview-box">
-			<div v-bind:style="{ height: nc.height+'px', margin: '0 '+nc.marginLeftRight+'px', backgroundColor: nc.backgroundColor }"></div>
-		</div>
-	</template>
-	
-	<!-- 编辑 -->
-	<template slot="edit">
-		<color v-bind:data="{ field: 'backgroundColor', label: '空白颜色' }"></color>
-		<slide v-bind:data="{ field: 'height', label: '空白高度' }"></slide>
-		<slide v-bind:data="{ field: 'marginLeftRight', label: '左右边距' }"></slide>
-	</template>
-
-	<!-- 资源 -->
-	<template slot="resource">
-		<css src="<?php echo ($resourceurl); ?>/horz_blank/css/style.css"></css>
-	</template>
-</nc-component><?php endif; ?>
-																	<?php if($li['name']=='RICH_TEXT'): ?><cm-construct v-bind:data="data[index]" class="rich-text">
-
-	<!-- 预览 -->
-	<template slot="preview">
-		<div class="preview-box" v-bind:style="{ margin: nc.marginTop + 'px 15px 0', backgroundColor: nc.backgroundColor }" style="padding: 10px; line-height: 1.5;">
-			<div v-html="nc.html"></div>
-		</div>
-	</template>
-
-	<!-- 编辑 -->
-	<template slot="edit">
-		<template v-if="nc.lazyLoad">
-			<rich-text></rich-text>
-		</template>
-
-	</template>
-	
-	<!-- 资源 -->
-	<template slot="resource">
-
-		<css src="<?php echo ($resourceurl); ?>/rich_text/css/style.css"></css>
-		<js src="<?php echo ($resourceurl); ?>/rich_text/js/style.js"></js>
-
-	</template>
-	
-</cm-construct><?php endif; ?>
-																	<?php if($li['name']=='GOODS_LIST'): ?><cm-construct v-bind:data="data[index]" class="goods-list">
-
-	<!-- 预览 -->
-	<template slot="preview">
-		<div class="goods-list-preview" v-bind:style="{ backgroundColor : nc.backgroundColor, margin: (nc.marginTop + 'px 15px 0 15px') }">
-			<!-- 单列小图 -->
-			<div class="goods-list single-column" v-if="nc.style == 1">
-				<div class="goods-wrap margin-bottom" v-for="(item, index) in [0,1,2,3]" :key="index">	
-					<div class="goods-item">
-						<div class="goods-img">
-							<img src="/static/images/diy/crack_figure.png">
-							<div class="goods-tag" v-show="nc.goodsTag == 'default'">爆款</div>
-							<div class="goods-tag-img" v-show="nc.goodsTag == 'diy'">
-								<div v-if="nc.tagImg.imageUrl == '' " class="tag-wrap">角标区域</div>
-								<img v-else :src="changeImgUrl(nc.tagImg.imageUrl)">
-							</div>
-						</div>
-						<div class="info-wrap">
-							<div class="name-wrap">
-								<div class="goods-name">商品名称</div>
-								<div class="goods-desc">商品描述</div>
-								<div class="goods-time">仅剩08:08:08</div>
-								<div class="goods-sale">
-									<div>
-										<span>已售100</span>
-										<span class="goods-sale-bg">仅剩10</span>
-									</div>
-								</div>
-							</div>
-							<div class="lineheight-clear price-wrap">
-								<div class="discount-price">
-									<span class="unit">¥25</span>
-									<span class="price">.69</span>
-								</div>
-								<div class="delete-price"><span class="unit">¥</span>15.99</div>
-							</div>
-						</div>
-					</div>
-					<div class="presale-time">
-						<div>预售时间:2021-03-08</div>
-						<div>提货时间:2021-03-20</div>
-					</div>
-				</div>
-			</div>
-			<!-- 单列大图 -->
-			<div class="goods-list single-column-s2" v-if="nc.style == 2">
-				<div class="goods-wrap margin-bottom" v-for="(item, index) in [0,1]" :key="index">	
-					<div class="goods-item">
-						<div class="goods-img">
-							<img src="/static/images/diy/crack_figure.png">
-							<div class="goods-tag" v-show="nc.goodsTag == 'default'">爆款</div>
-							<div class="goods-tag-img" v-show="nc.goodsTag == 'diy'">
-								<div v-if="nc.tagImg.imageUrl == '' " class="tag-wrap">角标区域</div>
-								<img v-else :src="changeImgUrl(nc.tagImg.imageUrl)">
-							</div>
-							<div class="goods-time">仅剩08:08:08</div>
-						</div>
-						<div class="info-wrap">
-							<div class="name-wrap">
-								<div class="goods-name">商品名称</div>
-								<div class="goods-desc">商品描述</div>
-								<div class="presale-time">
-									<div>预售时间:2021-03-08</div>
-									<div>提货时间:2021-03-20</div>
-								</div>
-							</div>
-							<div class="lineheight-clear price-wrap">
-								<div class="discount-price">
-									<span class="unit">¥25</span>
-									<span class="price">.69</span>
-								</div>
-								<div class="delete-price"><span class="unit">¥</span>15.99</div>
-							</div>
-							<div class="goods-sale">
-								<div>
-									<span>已售100</span>
-									<span class="goods-sale-bg">仅剩10</span>
-								</div>
-							</div>
-						</div>
-					</div>
-				</div>
-			</div>
-			<!-- 三列 -->
-			<div class="goods-list three-column" v-if="nc.style == 3">
-				<div class="goods-wrap margin-bottom" v-for="(item, index) in [0,1,2,3,4,5,6,7,8]" :key="index">	
-					<div class="goods-item">
-						<div class="goods-img">
-							<img src="/static/images/diy/crack_figure.png">
-							<div class="goods-tag" v-show="nc.goodsTag == 'default'">爆款</div>
-							<div class="goods-tag-img" v-show="nc.goodsTag == 'diy'">
-								<div v-if="nc.tagImg.imageUrl == '' " class="tag-wrap">角标区域</div>
-								<img v-else :src="changeImgUrl(nc.tagImg.imageUrl)">
-							</div>
-						</div>
-						<div class="info-wrap">
-							<div class="name-wrap">
-								<div class="goods-name">商品名称</div>
-							</div>
-							<div class="lineheight-clear price-wrap">
-								<div class="discount-price">
-									<span class="unit">¥25</span>
-									<span class="price">.69</span>
-								</div>
-							</div>
-						</div>
-					</div>
-				</div>
-			</div>
-
-			<!-- 两列大图 -->
-			<div class="goods-list double-column" v-if="nc.style == 4">
-				<div class="goods-wrap margin-bottom" v-for="(item, index) in [0,1,2,3]" :key="index">	
-					<div class="goods-item">
-						<div class="goods-img">
-							<img src="/static/images/diy/crack_figure.png">
-							<div class="goods-tag" v-show="nc.goodsTag == 'default'">爆款</div>
-							<div class="goods-tag-img" v-show="nc.goodsTag == 'diy'">
-								<div v-if="nc.tagImg.imageUrl == '' " class="tag-wrap">角标区域</div>
-								<img v-else :src="changeImgUrl(nc.tagImg.imageUrl)">
-							</div>
-						</div>
-						<div class="info-wrap">
-							<div class="name-wrap">
-								<div class="goods-name">商品名称</div>
-							</div>
-							<div class="lineheight-clear price-wrap">
-								<div class="discount-price">
-									<span class="unit">¥25</span>
-									<span class="price">.69</span>
-								</div>
-								<div class="delete-price"><span class="unit">¥</span>15.99</div>
-							</div>
-						</div>
-					</div>
-				</div>
-			</div>
-		</div>
-
-	</template>
-
-	<!-- 编辑 -->
-	<template slot="edit">
-		<template v-if="nc.lazyLoad">
-			<goods-list-style></goods-list-style>
-		</template>
-		
-		<template v-if="nc.lazyLoad">
-			<goods-list></goods-list>
-		</template>
-		
-		<template v-if="nc.lazyLoad">
-			<goods-tag-style></goods-tag-style>
-		</template>
-
-		<div class="template-edit-title"><h3>其他设置</h3></div>
-		<color v-bind:data="{ field : 'backgroundColor', 'label' : '背景颜色' }"></color>
-		<slide v-bind:data="{ field : 'marginTop', label : '页面间距' }"></slide>
-
-		<!-- 商品列表风格弹框 -->
-		<div class="goods-list-style">
-			<div class="style-list-goods layui-form">
-				<div class="style-list-con-goods">
-					<div class="style-li-goods" v-bind:class="{'selected ns-border-color': nc.style == 1}">
-						<img src="<?php echo ($resourceurl); ?>/goods_list/img/style1.png" />
-					</div>
-					<div class="style-li-goods" v-bind:class="{'selected ns-border-color': nc.style == 2}">
-						<img src="<?php echo ($resourceurl); ?>/goods_list/img/style2.png" />
-					</div>
-					<div class="style-li-goods" v-bind:class="{'selected ns-border-color': nc.style == 3}">
-						<img src="<?php echo ($resourceurl); ?>/goods_list/img/style3.png" />
-					</div>
-					<div class="style-li-goods" v-bind:class="{'selected ns-border-color': nc.style == 4}">
-						<img src="<?php echo ($resourceurl); ?>/goods_list/img/style4.png" />
-					</div>
-				</div>
-				
-				<input type="hidden" name="style">
-				
-			</div>
-		</div>
-
-		<!-- 商品分类选择弹框 -->
-		<div class="goods-category-layer">
-			<?php if(!empty($goods_category_list)): ?><div class="category-head">分类名称</div>
-				<div class="category-wrap">
-				<?php if(is_array($goods_category_list)): foreach($goods_category_list as $key=>$vo): ?><div class="category-item" data-id="<?php echo ($vo["id"]); ?>"><?php echo ($vo["name"]); ?></div><?php endforeach; endif; ?>
-				</div><?php endif; ?>
-		</div>
-	</template>
-	
-	<!-- 资源 -->
-	<template slot="resource">
-		<js>
-		var goodsListResourcePath = "<?php echo ($resourceurl); ?>";
-		</js>
-		<css src="<?php echo ($resourceurl); ?>/goods_list/css/style.css"></css>
-		<js src="<?php echo ($resourceurl); ?>/goods_list/js/style.js"></js>
-	</template>
-	
-</cm-construct><?php endif; ?>
-																	<?php if($li['name']=='RUBIK_CUBE'): ?><cm-construct v-bind:data="data[index]" v-bind:class="['rubik-cube']">
-	<template slot="preview">
-		<div class="preview-box" v-bind:style="{background: nc.backgroundColor}">
-			<template v-if="nc.list.length>0 && !nc.list[0].imageUrl">
-				<div class="tip">点击编辑魔方</div>
-			</template>
-			
-			<template v-if="(nc.selectedTemplate != 'custom-rubik-cube')">
-			<ul>
-				<template v-if="nc.selectedTemplate == 'row1-of3'">
-					<li v-for="item in nc.list" v-bind:class="nc.selectedTemplate" :style="{width: 'calc((100% - '+ nc.imageGap * 2 +'px) / 3)'}">
-						<template v-if="item.imageUrl!=''">
-							<div >
-								<img v-bind:src="changeImgUrl(item.imageUrl)">
-							</div>
-						</template>
-					</li>
-				</template>
-				
-				<template v-else-if="nc.selectedTemplate == 'row1-of4'">
-					<li v-for="item in nc.list" v-bind:class="nc.selectedTemplate" :style="{width: 'calc((100% - '+ nc.imageGap * 3 +'px) / 4)'}">
-						<template v-if="item.imageUrl!=''">
-							<div >
-								<img v-bind:src="changeImgUrl(item.imageUrl)">
-							</div>
-						</template>
-					</li>
-				</template>
-				
-				<template v-else-if="nc.selectedTemplate == 'row1-lt-of2-rt'">
-					<div class="template-left">
-						<template v-for="(item, index) in nc.list">
-							<template v-if="index == 0">
-								<li v-bind:class="nc.selectedTemplate">
-									<template v-if="item.imageUrl!=''">
-										<div :style="{padding: nc.imageGap/2 + 'px'}">
-											<img v-bind:src="changeImgUrl(item.imageUrl)">
-										</div>
-									</template>
-								</li>
-							</template>
-						</template>
-					</div>
-					<div class="template-right">
-						<template v-for="(item, index) in nc.list">
-							<template v-if="index != 0">
-								<li v-bind:class="nc.selectedTemplate">
-									<template v-if="item.imageUrl!=''">
-										<div :style="{padding: nc.imageGap/2 + 'px'}">
-											<img v-bind:src="changeImgUrl(item.imageUrl)">
-										</div>
-									</template>
-								</li>
-							</template>
-						</template>
-					</div>
-				</template>
-				
-				<template v-else-if="nc.selectedTemplate == 'row1-lt-of1-tp-of2-bm'">
-					<div class="template-left" :style="{paddingRight: nc.imageGap/2 + 'px'}">
-						<template v-for="(item, index) in nc.list">
-							<template v-if="index == 0">
-								<li v-bind:class="nc.selectedTemplate">
-									<template v-if="item.imageUrl!=''">
-										<div>
-											<img v-bind:src="changeImgUrl(item.imageUrl)">
-										</div>
-									</template>
-								</li>
-							</template>
-						</template>
-					</div>
-					<div class="template-right" :style="{paddingLeft: nc.imageGap/2 + 'px'}">
-						<div class="template-top" :style="{paddingBottom: nc.imageGap/2 + 'px'}">
-							<template v-for="(item, index) in nc.list">
-								<template v-if="index == 1">
-									<li v-bind:class="nc.selectedTemplate">
-										<template v-if="item.imageUrl!=''">
-											<div>
-												<img v-bind:src="changeImgUrl(item.imageUrl)">
-											</div>
-										</template>
-									</li>
-								</template>
-							</template>
-						</div>
-						
-						<div class="template-bottom" :style="{paddingTop: nc.imageGap/2 + 'px'}">
-							<template v-for="(item, index) in nc.list">
-								<template v-if="index != 1 && index != 0">
-									<li v-bind:class="nc.selectedTemplate" :style="{padding: '0 ' + nc.imageGap/2 + 'px'}">
-										<template v-if="item.imageUrl!=''">
-											<div>
-												<img v-bind:src="changeImgUrl(item.imageUrl)">
-											</div>
-										</template>
-									</li>
-								</template>
-							</template>
-						</div>
-					</div>
-				</template>
-				
-				<template v-else>
-					<li v-for="item in nc.list" v-bind:class="nc.selectedTemplate">
-						<template v-if="item.imageUrl!=''">
-							<div :style="{padding: nc.imageGap/2 + 'px'}">
-								<img v-bind:src="changeImgUrl(item.imageUrl)">
-							</div>
-						</template>
-					</li>
-				</template>
-			</ul>
-			</template>
-
-			<template v-else>
-				<template v-if="nc.lazyLoad">
-					<rubik-cube-diy-html v-bind:diy-html="nc.diyHtml"></rubik-cube-diy-html>
-				</template>
-			</template>
-		</div>
-	</template>
-	
-	<template slot="edit">
-		<template v-if="nc.lazyLoad">
-			<rubik-cube></rubik-cube>
-		</template>
-		<slide v-bind:data="{ field : 'imageGap', label : '图片间隙', max: 30 }"></slide>
-		
-		<div class="template-edit-title">
-			<h3>其他设置</h3>
-			<i class="layui-icon layui-icon-down" onclick="closeBox(this)"></i>
-		</div>
-		<div class="template-edit-wrap">
-			<color v-bind:data="{ field : 'backgroundColor', 'label' : '背景颜色' }"></color>
-		</div>
-	</template>
-	
-	<!-- 资源 -->
-	<template slot="resource">
-		
-		<js>
-		var rubikCubeResourcePath = "<?php echo ($resourceurl); ?>";
-		</js>
-		<css src="<?php echo ($resourceurl); ?>/rubik_cube/css/style.css"></css>
-		<js src="<?php echo ($resourceurl); ?>/rubik_cube/js/style.js"></js>
-		
-	</template>
-
-</cm-construct><?php endif; ?>
-																	<?php if($li['name']=='COMMUNITY_SHOW'): ?><cm-construct v-bind:data="data[index]" class="component-store-show-info">
-	
-	<!-- 预览 -->
-	<template slot="preview">
-		
-		<div class="preview-box" v-bind:style="{ backgroundColor : nc.backgroundColor }">
-			<div class="info-list">
-				<div class="info-item style-one" v-if="nc.style == 1">
-					<div class="info-item">
-						<span class="store-name" :style="{ color: nc.textColor?nc.textColor:'rgba(0,0,0,0)' }">社区名称</span>
-						<span class="change" :style="{ color: nc.textColor?nc.textColor:'rgba(0,0,0,0)' }">切换 ></span>
-						<p :style="{ color: nc.textColor?nc.textColor:'rgba(0,0,0,0)' }">这里展示社区地址</p>
-					</div>
-					<div class="info-item-r">
-						<div class="img-wrap">
-							<img src="<?php echo ($resourceurl); ?>/community_show/img/default_store.png" />
-						</div>
-						<div class="conmunity-name" :style="{ color: nc.textColor?nc.textColor:'rgba(0,0,0,0)' }">团长昵称</div>
-					</div>
-				</div>
-
-				<div class="info-item style-three" v-if="nc.style == 2">
-					<div class="info-item">
-						<div class="img-wrap">
-							<img src="<?php echo ($resourceurl); ?>/community_show/img/default_store.png" />
-						</div>
-						<span class="store-name" :style="{ color: nc.textColor?nc.textColor:'rgba(0,0,0,0)' }">门店名称</span>
-						<span class="change" :style="{ color: nc.textColor?nc.textColor:'rgba(0,0,0,0)' }">切换 ></span>
-					</div>
-					<div class="store-right-search">
-						<div><img src="<?php echo ($resourceurl); ?>/community_show/img/sousuo.png" /> 搜索</div>
-					</div>
-				</div>
-				
-				<div class="info-item style-four" v-if="nc.style == 3">
-					<div class="store-left-wrap">
-						<i class="iconfont iconweizhi" :style="{ color: nc.textColor?nc.textColor:'rgba(0,0,0,0)' }"></i>
-						<span class="store-name" :style="{ color: nc.textColor?nc.textColor:'rgba(0,0,0,0)' }">门店名称</span>
-						<i class="layui-icon layui-icon-down" :style="{ color: nc.textColor?nc.textColor:'rgba(0,0,0,0)' }"></i>
-					</div>
-					<div class="store-right-search">
-						<div>商品搜索<i class="iconfont iconsousuo2"></i></div>
-					</div>
-				</div>
-			</div>
-		</div>
-
-	</template>
-	
-	<!-- 编辑 -->
-	<template slot="edit">
-		<template v-if="nc.lazyLoad">
-			<store-show-style></store-show-style>
-		</template>
-
-
-		<!-- 商品列表风格弹框 -->
-		<div class="goods-list-style" style="display: none;">
-			<div class="style-list-goods layui-form">
-				<div class="style-list-con-store">
-					<div class="style-li-goods" v-bind:class="{'selected ns-border-color': nc.style == 1}">
-						<img src="<?php echo ($resourceurl); ?>/community_show/img/style1.jpg" />
-						<span class="layui-hide">风格一</span>
-					</div>
-					<div class="style-li-goods" v-bind:class="{'selected ns-border-color': nc.style == 2}">
-						<img src="<?php echo ($resourceurl); ?>/community_show/img/style2.jpg" />
-						<span class="layui-hide">风格二</span>
-					</div>
-				</div>
-
-				<input type="hidden" name="style">
-				<input type="hidden" name="style_name" />
-
-			</div>
-		</div>
-	</template>
-	
-	<!-- 资源 -->
-	<template slot="resource">
-		
-		<css src="<?php echo ($resourceurl); ?>/community_show/css/style.css"></css>
-		<js src="<?php echo ($resourceurl); ?>/community_show/js/style.js"></js>
-	
-	</template>
-
-</cm-construct><?php endif; ?>
-																	<?php if($li['name']=='SLIDER'): ?><cm-construct v-bind:data="data[index]" v-bind:class="['slider']">
-
-	<!-- 预览 -->
-	<template slot="preview">
-		<div class="preview-box" v-bind:style="{ background: nc.backgroundColor, marginTop : nc.marginTop + 'px', borderRadius: nc.navRadius == 'fillet' ? '5px' : '0px' }">
-			<template v-if="nc.lazyLoad">
-				<slider></slider>
-			</template>
-		</div>
-	</template>
-	
-	<!-- 编辑 -->
-	<template slot="edit">
-	
-		<template v-if="nc.lazyLoad">
-			<slider-list></slider-list>
-		</template>
-		
-	</template>
-	
-	<!-- 资源 -->
-	<template slot="resource">
-		
-		<js>
-			var sliderResourcePath = "<?php echo ($resourceurl); ?>";
-		</js>
-		<css src="<?php echo ($resourceurl); ?>/slider/css/style.css"></css>
-		<js src="<?php echo ($resourceurl); ?>/slider/js/style.js"></js>
-		
-	</template>
-
-</cm-construct><?php endif; ?>
-																	<?php if($li['name']=='COUPON'): ?><cm-construct v-bind:data="data[index]" class="coupon-wrap">
-
-	<!-- 预览 -->
-	<template slot="preview">
-		<div class="preview-box" v-bind:style="{ backgroundColor : nc.backgroundColor, margin: nc.marginTop + 'px 15px 0' }">
-			<div class="coupon-preview">
-				<div class="coupon-box coupon-box-1" v-if="nc.style == 1">
-					<div class="coupon-box-list">
-						<div class="coupon">
-							<img src="<?php echo ($resourceurl); ?>/coupon/img/style1-bg.png">
-							<div class="coupon-intro">
-								<p class="coupon-price">¥<span>500</span></p>
-								<p class="coupon-desc">满3000可用</p>
-							</div>
-						</div>
-						
-						<div class="coupon" v-if="nc.couponCount>1">
-							<img src="<?php echo ($resourceurl); ?>/coupon/img/style1-bg.png">
-							<div class="coupon-intro">
-								<p class="coupon-price">¥<span>500</span></p>
-								<p class="coupon-desc">满3000可用</p>
-							</div>
-						</div>
-						
-						<div class="coupon" v-if="nc.couponCount>2">
-							<img src="<?php echo ($resourceurl); ?>/coupon/img/style1-bg.png">
-							<div class="coupon-intro">
-								<p class="coupon-price">¥<span>500</span></p>
-								<p class="coupon-desc">满3000可用</p>
-							</div>
-						</div>
-
-						<div class="coupon" v-if="nc.couponCount>3">
-							<img src="<?php echo ($resourceurl); ?>/coupon/img/style1-bg.png">
-							<div class="coupon-intro">
-								<p class="coupon-price">¥<span>500</span></p>
-								<p class="coupon-desc">满3000可用</p>
-							</div>
-						</div>
-					</div>
-				</div>
-				
-				<div class="coupon-box coupon-box-2" v-else-if="nc.style == 2">
-					<div class="coupon-box-list">
-						<div class="coupon">
-							<img src="<?php echo ($resourceurl); ?>/coupon/img/coupon_bg.png">
-							<div class="coupon-intro">
-								<p class="coupon-price ns-red-color">¥<span>500.00</span></p>
-								<p class="coupon-desc ns-red-color">满3000元可用</p>
-							</div>
-							<div class="coupon-btn ns-red-color">领取</div>
-						</div>
-						
-						<div class="coupon" v-if="nc.couponCount>1">
-							<img src="<?php echo ($resourceurl); ?>/coupon/img/coupon_bg.png">
-							<div class="coupon-intro">
-								<p class="coupon-price ns-red-color">¥<span>500.00</span></p>
-								<p class="coupon-desc ns-red-color">满3000元可用</p>
-							</div>
-							<div class="coupon-btn ns-red-color">领取</div>
-						</div>
-	
-						<div class="coupon" v-if="nc.couponCount>2">
-							<img src="<?php echo ($resourceurl); ?>/coupon/img/coupon_bg.png">
-							<div class="coupon-intro">
-								<p class="coupon-price ns-red-color">¥<span>500.00</span></p>
-								<p class="coupon-desc ns-red-color">满3000元可用</p>
-							</div>
-							<div class="coupon-btn ns-red-color">领取</div>
-						</div>
-					</div>
-				</div>
-				
-				<div class="coupon-box" v-bind:class="'coupon-box-'+ nc.style" v-if="nc.style == 3">
-					<div class="coupon-block">
-						<div class="coupon">
-							<img src="<?php echo ($resourceurl); ?>/coupon/img/style3-bg-2.png">
-							<div class="coupon-intro">
-								<p class="coupon-price ns-red-color">¥<span>500.00</span></p>
-								<p class="coupon-desc ns-red-color">满3000元可用</p>
-								<p class="coupon-info">指定商品可用</p>
-							</div>
-							<div class="coupon-btn">立即抢</div>
-						</div>
-						
-						<div class="coupon" v-if="nc.couponCount>1">
-							<img src="<?php echo ($resourceurl); ?>/coupon/img/style3-bg-2.png">
-							<div class="coupon-intro">
-								<p class="coupon-price ns-red-color">¥<span>500.00</span></p>
-								<p class="coupon-desc ns-red-color">满3000元可用</p>
-								<p class="coupon-info">指定商品可用</p>
-							</div>
-							<div class="coupon-btn">立即抢</div>
-						</div>
-						
-						<div class="coupon" v-if="nc.couponCount>2">
-							<img src="<?php echo ($resourceurl); ?>/coupon/img/style3-bg-2.png">
-							<div class="coupon-intro">
-								<p class="coupon-price ns-red-color">¥<span>500.00</span></p>
-								<p class="coupon-desc ns-red-color">满3000元可用</p>
-								<p class="coupon-info">指定商品可用</p>
-							</div>
-							<div class="coupon-btn">立即抢</div>
-						</div>
-					</div>
-				</div>
-			</div>
-		</div>
-	</template>
-
-	<!-- 编辑 -->
-	<template slot="edit">
-		
-		<template v-if="nc.lazyLoad">
-			<coupon-style></coupon-style>
-			<coupon-list></coupon-list>
-		</template>
-		
-		<slide v-bind:data="{ field : 'marginTop', label : '页面间距' }"></slide>
-		
-		<!-- 弹框 -->
-		<div class="coupon-list-style">
-			<div class="style-list-coupon layui-form">
-				<div class="style-list-con-coupon">
-					<div class="style-li-coupon" v-bind:class="{'selected ns-border-color': nc.style == 1}">
-						<img src="<?php echo ($resourceurl); ?>/coupon/img/style1.png" />
-						<span class="layui-hide">风格一</span>
-					</div>
-					
-					<div class="style-li-coupon" v-bind:class="{'selected ns-border-color': nc.style == 2}">
-						<img src="<?php echo ($resourceurl); ?>/coupon/img/style2.png" />
-						<span class="layui-hide">风格二</span>
-					</div>
-					
-					<div class="style-li-coupon" v-bind:class="{'selected ns-border-color': nc.style == 3}">
-						<img src="<?php echo ($resourceurl); ?>/coupon/img/style3.png" />
-						<span class="layui-hide">风格三</span>
-					</div>
-				</div>
-
-				<input type="hidden" name="style">
-				<input type="hidden" name="style_name">
-			</div>
-		</div>
-	
-	</template>
-	
-	<!-- 资源 -->
-	<template slot="resource">
-		<js>
-			var couponResourcePath = "<?php echo ($resourceurl); ?>";
-		</js>
-		<css src="<?php echo ($resourceurl); ?>/coupon/css/style.css"></css>
-		<js src="<?php echo ($resourceurl); ?>/coupon/js/style.js"></js>
-		
-	</template>
-
-</cm-construct><?php endif; ?>
-																	<?php if($li['name']=='PINTUAN_LIST'): ?><cm-construct v-bind:data="data[index]" class="component-pintuan">
-
-	<!-- 预览 -->
-	<template slot="preview">
-		<div class="preview-box" v-bind:style="{ backgroundColor : nc.backgroundColor, margin: nc.marginTop + 'px 15px 0' }">
-			<div class="marketing-wrap marketing-wrap-1 marketing-wrap-4" v-if="nc.style == 1">
-				<div class="marketing-box">
-					<template v-if="nc.lazyLoad&&nc.list[0].imageUrl">
-						<img :src="nc.list[0].imageUrl" alt="">
-					</template>
-					
-					<div class="list-wrap">
-						<div class="item">
-							<div class="img-wrap">
-								<img src="/static/images/diy/crack_figure.png" />
-							</div>
-							<div class="content">
-								<div class="content-desc">商品名称</div>
-								<div class="content-num">2人团</div>
-								<div class="content-price">
-									¥<span>99.00</span>
-								</div>
-							</div>
-						</div>
-						
-						<div class="item">
-							<div class="img-wrap">
-								<img src="/static/images/diy/crack_figure.png" />
-							</div>
-							<div class="content">
-								<div class="content-desc">商品名称</div>
-								<div class="content-num">2人团</div>
-								<div class="content-price">
-									¥<span>99.00</span>
-								</div>
-							</div>
-						</div>
-						
-						<div class="item">
-							<div class="img-wrap">
-								<img src="/static/images/diy/crack_figure.png" />
-							</div>
-							<div class="content">
-								<div class="content-desc">商品名称</div>
-								<div class="content-num">2人团</div>
-								<div class="content-price">
-									¥<span>99.00</span>
-								</div>
-							</div>
-						</div>
-					</div>
-				</div>
-			</div>
-
-			<!-- 风格四 -->
-			<div class="marketing-wrap marketing-wrap-1" v-if="nc.style == 4">
-				<img v-if="nc.bgSelect == 'red'" src="<?php echo ($resourceurl); ?>/pintuan/img/red.png" />
-				<img v-if="nc.bgSelect == 'blue'" src="<?php echo ($resourceurl); ?>/pintuan/img/blue.png" />
-				<img v-if="nc.bgSelect == 'yellow'" src="<?php echo ($resourceurl); ?>/pintuan/img/yellow.png" />
-				<img v-if="nc.bgSelect == 'violet'" src="<?php echo ($resourceurl); ?>/pintuan/img/violet.png" />
-				
-				<div class="marketing-box">
-					<template v-if="nc.lazyLoad">
-						<pintuan-top-content></pintuan-top-content>
-					</template>
-					
-					<div class="list-wrap">
-						<div class="item">
-							<div class="img-wrap">
-								<img src="/static/images/diy/crack_figure.png" />
-							</div>
-							<div class="content">
-								<div class="content-desc">商品名称</div>
-								<div class="content-num">2人团</div>
-								<div class="content-price">
-									¥<span>99.00</span>
-								</div>
-							</div>
-						</div>
-						
-						<div class="item">
-							<div class="img-wrap">
-								<img src="/static/images/diy/crack_figure.png" />
-							</div>
-							<div class="content">
-								<div class="content-desc">商品名称</div>
-								<div class="content-num">2人团</div>
-								<div class="content-price">
-									¥<span>99.00</span>
-								</div>
-							</div>
-						</div>
-						
-						<div class="item">
-							<div class="img-wrap">
-								<img src="/static/images/diy/crack_figure.png" />
-							</div>
-							<div class="content">
-								<div class="content-desc">商品名称</div>
-								<div class="content-num">2人团</div>
-								<div class="content-price">
-									¥<span>99.00</span>
-								</div>
-							</div>
-						</div>
-					</div>
-				</div>
-			</div>
-			
-			<!-- 风格二/风格三 -->
-			<div class="marketing-box marketing-box-two" v-bind:class="'marketing-box-'+ nc.style" v-if="nc.style == 2 || nc.style == 3">
-				<template v-if="nc.lazyLoad">
-					<pintuan-top-content></pintuan-top-content>
-				</template>
-				
-				<div class="list-wrap">
-					<div class="item">
-						<div class="img-wrap">
-							<img src="/static/images/diy/crack_figure.png" />
-						</div>
-						<div class="content">
-							<div class="top">
-								<div class="content-desc">商品名称</div>
-								<div class="label">
-									<div class="label-person"><i class="layui-icon layui-icon-user"></i><span>2人团</span></div>
-									<div class="label-num"><span>已拼10件</span></div>
-								</div>
-							</div>
-							
-							<div class="bot">
-								<div class="content-price">
-									<div>¥<span>99.00</span></div>
-									<div class="content-num">¥139.00</div>
-								</div>
-								<button class="layui-btn">去拼团</button>
-							</div>
-						</div>
-					</div>
-					<div class="item">
-						<div class="img-wrap">
-							<img src="/static/images/diy/crack_figure.png" />
-						</div>
-						<div class="content">
-							<div class="top">
-								<div class="content-desc">商品名称</div>
-								<div class="label">
-									<div class="label-person"><i class="layui-icon layui-icon-user"></i><span>2人团</span></div>
-									<div class="label-num"><span>已拼10件</span></div>
-								</div>
-							</div>
-							
-							<div class="bot">
-								<div class="content-price">
-									<div>¥<span>99.00</span></div>
-									<div class="content-num">¥139.00</div>
-								</div>
-								<button class="layui-btn">去拼团</button>
-							</div>
-						</div>
-					</div>
-					<div class="item">
-						<div class="img-wrap">
-							<img src="/static/images/diy/crack_figure.png" />
-						</div>
-						<div class="content">
-							<div class="top">
-								<div class="content-desc">商品名称</div>
-								<div class="label">
-									<div class="label-person"><i class="layui-icon layui-icon-user"></i><span>2人团</span></div>
-									<div class="label-num"><span>已拼10件</span></div>
-								</div>
-							</div>
-							
-							<div class="bot">
-								<div class="content-price">
-									<div>¥<span>99.00</span></div>
-									<div class="content-num">¥139.00</div>
-								</div>
-								<button class="layui-btn">去拼团</button>
-							</div>
-						</div>
-					</div>
-				</div>
-				
-				<div class="more" v-if="nc.style == 3">
-					<span>更多拼团</span><i class="layui-icon layui-icon-right"></i>
-				</div>
-			</div>
-		</div>
-	</template>
-
-	<!-- 编辑 -->
-	<template slot="edit">
-		<template v-if="nc.lazyLoad">
-			<!-- <pintuan-list></pintuan-list> -->
-			<pintuan-style></pintuan-style>
-		</template>
-		
-		<template v-if="nc.lazyLoad">
-			<pintuan-color v-if="nc.style == 4"></pintuan-color>
-			<!-- <change-type v-if="nc.style == 4"></change-type> -->
-		</template>
-		
-		<div class="template-edit-title">
-			<h3>顶部标题设置</h3>
-			<i class="layui-icon layui-icon-down" onclick="closeBox(this)"></i>
-		</div>
-		<template v-if="nc.lazyLoad">
-			<pintuan-top-list></pintuan-top-list>
-		</template>
-		
-		<div class="template-edit-title">
-			<h3>其他设置</h3>
-			<i class="layui-icon layui-icon-down" onclick="closeBox(this)"></i>
-		</div>
-		<template v-if="nc.lazyLoad">
-			<slide v-bind:data="{ field : 'marginTop', label : '页面间距' }"></slide>
-		</template>
-
-		<!-- 弹框 -->
-		<div class="pintuan-list-style">
-			<div class="style-list-pintuan layui-form">
-				<div class="style-list-con-pintuan">
-					<div class="style-li-pintuan" v-bind:class="{'selected ns-border-color': nc.style == 1}">
-						<img src="<?php echo ($resourceurl); ?>/pintuan/img/pintuan_style_1.png" />
-						<span class="layui-hide">风格一</span>
-					</div>
-					<div class="style-li-pintuan" v-bind:class="{'selected ns-border-color': nc.style == 2}">
-						<img src="<?php echo ($resourceurl); ?>/pintuan/img/pintuan_style_2.png" />
-						<span class="layui-hide">风格二</span>
-					</div>
-					<div class="style-li-pintuan" v-bind:class="{'selected ns-border-color': nc.style == 3}">
-						<img src="<?php echo ($resourceurl); ?>/pintuan/img/pintuan_style_3.png" />
-						<span class="layui-hide">风格三</span>
-					</div>
-					<!-- <div class="style-li-pintuan" v-bind:class="{'selected ns-border-color': nc.style == 4}">
-						<img src="<?php echo ($resourceurl); ?>/pintuan/img/pintuan_style_4.png" />
-						<span class="layui-hide">风格四</span>
-					</div> -->
-				</div>
-				
-				<input type="hidden" name="style">
-				<input type="hidden" name="style_name" />
-			</div>
-		</div>
-
-	</template>
-
-	<!-- 资源 -->
-	<template slot="resource">
-		<js>
-			var pintuanResourcePath = "<?php echo ($resourceurl); ?>";
-		</js>
-		<css src="<?php echo ($resourceurl); ?>/pintuan/css/style.css"></css>
-		<js src="<?php echo ($resourceurl); ?>/pintuan/js/style.js"></js>
-
-	</template>
-
-</cm-construct><?php endif; ?>
-																	<?php if($li['name']=='SECKILL_LIST'): ?><cm-construct v-bind:data="data[index]" class="component-seckill">
-
-	<!-- 预览 -->
-	<template slot="preview">
-		<div class="preview-box" v-bind:style="{ backgroundColor : nc.backgroundColor, margin: nc.marginTop + 'px 15px 0' }">
-			<div class="marketing-wrap marketing-wrap-1" v-if="nc.style == 1">
-				<div class="seckill-list-preview marketing-box marketing-box-two">
-					<div class="seckill-time-list1" v-bind:style="{ backgroundColor : nc.backgroundColor }">
-						<div class="seckill-time-list1-tit">
-							<div>整点</div>
-							<div>秒杀</div>
-						</div>
-						<ul>
-							<li class="selected">
-								<p class="time">12:00</p>
-								<p class="desc">已开抢</p>
-							</li>
-							<li class="active">
-								<p class="time">14:00</p>
-								<p class="desc" v-bind:style="{ color : nc.backgroundColor }">疯抢中</p>
-							</li>
-							<li>
-								<p class="time">16:00</p>
-								<p class="desc">即将开抢</p>
-							</li>
-						</ul>
-						<div class="seckill-time-list1-more">更多</div>
-					</div>
-					
-					<div class="list-wrap" style="position: relative;" v-if="nc.style==1">
-						<div class="item">
-							<div class="img-wrap">
-								<img src="/static/images/diy/crack_figure.png" />
-							</div>
-							<div class="content">
-								<div class="top">
-									<div class="content-desc">商品名称</div>
-									<div class="progress">
-										<div class="img">
-											<div class="img-con"></div>
-										</div>
-										<div class="num">已抢888件</div>
-									</div>
-								</div>
-								
-								<div class="bot">
-									<div class="content-price">
-										<div>¥<span>99.00</span></div>
-										<div class="content-num">¥139.00</div>
-									</div>
-									<button class="layui-btn">马上抢</button>
-								</div>
-							</div>
-						</div>
-						<span class="current">1/3</span>
-					</div>
-				</div>
-			</div>
-			
-			<!-- 风格二/风格三 -->
-			<div class="seckill-list-preview marketing-box marketing-box-two" v-bind:class="'marketing-box-'+ nc.style" v-if="nc.style == 2 || nc.style == 3">
-				<template v-if="nc.lazyLoad">
-					<seckill-top-content></seckill-top-content>
-				</template>
-				
-				<div class="list-wrap">
-					<div class="item">
-						<div class="img-wrap">
-							<img src="/static/images/diy/crack_figure.png" />
-						</div>
-						<div class="content">
-							<div class="top">
-								<div class="content-desc">商品名称</div>
-								<div class="progress">
-									<div class="img">
-										<div class="img-con"></div>
-									</div>
-									<div class="num">已抢65.32%</div>
-								</div>
-							</div>
-							
-							<div class="bot">
-								<div class="content-price">
-									<div>¥<span>99.00</span></div>
-									<div class="content-num">¥139.00</div>
-								</div>
-								<button class="layui-btn">立即抢购</button>
-							</div>
-						</div>
-					</div>
-					<div class="item">
-						<div class="img-wrap">
-							<img src="/static/images/diy/crack_figure.png" />
-						</div>
-						<div class="content">
-							<div class="top">
-								<div class="content-desc">商品名称</div>
-								<div class="progress">
-									<div class="img">
-										<div class="img-con"></div>
-									</div>
-									<div class="num">已抢65.32%</div>
-								</div>
-							</div>
-							
-							<div class="bot">
-								<div class="content-price">
-									<div>¥<span>99.00</span></div>
-									<div class="content-num">¥139.00</div>
-								</div>
-								<button class="layui-btn">立即抢购</button>
-							</div>
-						</div>
-					</div>
-					<div class="item">
-						<div class="img-wrap">
-							<img src="/static/images/diy/crack_figure.png" />
-						</div>
-						<div class="content">
-							<div class="top">
-								<div class="content-desc">商品名称</div>
-								<div class="progress">
-									<div class="img">
-										<div class="img-con"></div>
-									</div>
-									<div class="num">已抢65.32%</div>
-								</div>
-							</div>
-							
-							<div class="bot">
-								<div class="content-price">
-									<div>¥<span>99.00</span></div>
-									<div class="content-num">¥139.00</div>
-								</div>
-								<button class="layui-btn">立即抢购</button>
-							</div>
-						</div>
-					</div>
-				</div>
-				
-				<div class="more" v-if="nc.style == 3">
-					<span>更多秒杀</span><i class="layui-icon layui-icon-right"></i>
-				</div>
-			</div>
-
-			<!-- 风格四 -->
-			<div class="marketing-wrap" v-if="nc.style == 4">
-				<img v-if="nc.bgSelect == 'red'" src="<?php echo ($resourceurl); ?>/seckill/img/red.png" />
-				<img v-if="nc.bgSelect == 'blue'" src="<?php echo ($resourceurl); ?>/seckill/img/blue.png" />
-				<img v-if="nc.bgSelect == 'yellow'" src="<?php echo ($resourceurl); ?>/seckill/img/yellow.png" />
-				<img v-if="nc.bgSelect == 'violet'" src="<?php echo ($resourceurl); ?>/seckill/img/violet.png" />
-				
-				<div class="seckill-list-preview marketing-box">
-					
-					<template v-if="nc.lazyLoad">
-						<seckill-top-content></seckill-top-content>
-					</template>
-					
-					<div class="seckill-time-list">
-						<ul>
-							<li class="selected">
-								<p>12:00</p>
-								<p>抢购中</p>
-							</li>
-							<li>
-								<p>14:00</p>
-								<p>敬请期待</p>
-							</li>
-							<li>
-								<p>16:00</p>
-								<p>敬请期待</p>
-							</li>
-							<li>
-								<p>18:00</p>
-								<p>敬请期待</p>
-							</li>
-							<li>
-								<p>20:00</p>
-								<p>敬请期待</p>
-							</li>
-						</ul>
-					</div>
-					
-					<div class="list-wrap" v-if="nc.style==1">
-						<div class="item">
-							<div class="img-wrap">
-								<img src="/static/images/diy/crack_figure.png" />
-							</div>
-							<div class="content">
-								<div class="content-desc">商品名称</div>
-								<div class="content-price">
-									¥<span>99.00</span>
-								</div>
-								<div class="content-num">¥139.00</div>
-							</div>
-						</div>
-						<div class="item">
-							<div class="img-wrap">
-								<img src="/static/images/diy/crack_figure.png" />
-							</div>
-							<div class="content">
-								<div class="content-desc">商品名称</div>
-								<div class="content-price">
-									¥<span>99.00</span>
-								</div>
-								<div class="content-num">¥139.00</div>
-							</div>
-						</div>
-						<div class="item">
-							<div class="img-wrap">
-								<img src="/static/images/diy/crack_figure.png" />
-							</div>
-							<div class="content">
-								<div class="content-desc">商品名称</div>
-								<div class="content-price">
-									¥<span>99.00</span>
-								</div>
-								<div class="content-num">¥139.00</div>
-							</div>
-						</div>
-					</div>
-				</div>
-			</div>
-		</div>
-		
-	</template>
-
-	<!-- 编辑 -->
-	<template slot="edit">
-		<!-- <slide v-if="nc.style == 2 || nc.style == 3" v-bind:data="{ field : 'goodsCount', label: '商品数量', max: 9, min: 1}"></slide> -->
-		
-		<template v-if="nc.lazyLoad">
-			<seckill-style></seckill-style>
-			<!-- <seckill-color v-if="nc.style == 1"></seckill-color> -->
-			<!-- <seckill-change-type v-if="nc.style == 1"></seckill-change-type> -->
-		</template>
-		
-		<div class="template-edit-title">
-			<h3>顶部标题设置</h3>
-			<i class="layui-icon layui-icon-down" onclick="closeBox(this)"></i>
-		</div>
-		<div class="template-edit-wrap">
-			<template v-if="nc.lazyLoad">
-				<div v-if="nc.style == 1">
-					<color v-bind:data="{ field : 'titleTextColor', 'label' : '文本颜色', 'defaultcolor': '#333333' }"></color>
-					<color v-bind:data="{ field : 'backgroundColor', 'label' : '背景颜色' }"></color>
-				</div>
-				<seckill-top-list v-else="nc.style !== 1"></seckill-top-list>
-			</template>
-		</div>
-		
-		<div class="template-edit-title">
-			<h3>其他设置</h3>
-			<i class="layui-icon layui-icon-down" onclick="closeBox(this)"></i>
-		</div>
-		<div class="template-edit-wrap">
-			<slide v-bind:data="{ field : 'marginTop', label : '页面间距' }"></slide>
-		</div>
-		
-
-		<!-- 弹框 -->
-		<div class="seckill-list-style">
-			<div class="style-list-seckill layui-form">
-				<div class="style-list-con-seckill">
-					<div class="style-li-seckill" v-bind:class="{'selected ns-border-color': nc.style == 1}">
-						<img src="<?php echo ($resourceurl); ?>/seckill/img/seckill_style_1.png" />
-						<span class="layui-hide">风格一</span>
-					</div>
-					
-					<div class="style-li-seckill" v-bind:class="{'selected ns-border-color': nc.style == 2}">
-						<img src="<?php echo ($resourceurl); ?>/seckill/img/seckill_style_2.png" />
-						<span class="layui-hide">风格二</span>
-					</div>
-					
-					<div class="style-li-seckill" v-bind:class="{'selected ns-border-color': nc.style == 3}">
-						<img src="<?php echo ($resourceurl); ?>/seckill/img/seckill_style_3.png" />
-						<span class="layui-hide">风格三</span>
-					</div>
-				</div>
-
-				<input type="hidden" name="style">
-				<input type="hidden" name="style_name" />
-			</div>
-		</div>
-	
-	</template>
-	
-	<!-- 资源 -->
-	<template slot="resource">
-		<js>
-			var seckillResourcePath = "<?php echo ($resourceurl); ?>";
-		</js>
-		<js src="<?php echo ($resourceurl); ?>/seckill/js/style.js"></js>
-		<css src="<?php echo ($resourceurl); ?>/seckill/css/style.css"></css>
-
-	</template>
-	
-</nc-component><?php endif; ?>
-																	<?php if($li['name']=='FLOAT_BTN'): ?><cm-construct v-bind:data="data[index]" class="float-btn right_bottom" data-disabled="1"
-	v-if="nc.bottomPosition == 1 || nc.bottomPosition == 2"
-	:style="{top:(parseInt(nc.baseBtnBottom)+parseInt(nc.btnBottom))+'px !important'}">
-
-	<!-- 预览 -->
-	<template slot="preview">
-		<div class="float-mask" data-disabled="1">
-			<div class="float-btn-box" data-disabled="1">
-				<!--			v-bind:style="{ backgroundColor : nc.backgroundColor }"-->
-				<a v-for="(item, index) in nc.list" :key="index" href="javascript:;" class="float-btn-item" data-disabled="1">
-					<div class="img-box" data-disabled="1">
-						<img v-bind:src="item.imageUrl" alt="" data-disabled="1">
-					</div>
-					<!--				<span v-bind:style="{color: nc.textColor}">{{item.title}}</span>-->
-				</a>
-			</div>
-		</div>
-
-	</template>
-
-	<!-- 编辑 -->
-	<template slot="edit">
-		<!--		<color v-bind:data="{ field : 'textColor', 'label' : '文字颜色' }"></color>-->
-		<!--		<color v-bind:data="{ field : 'backgroundColor', 'label' : '背景颜色' }"></color>-->
-		<template v-if="nc.lazyLoad">
-			<float-btn-list ref="float_btn"></float-btn-list>
-			<btn-position></btn-position>
-			<slide v-bind:data="{ field : 'btnBottom', label : '上下偏移' }"></slide>
-		</template>
-	</template>
-
-	<!-- 资源 -->
-	<template slot="resource">
-		<js>
-			var floatBtnResourcePath = "<?php echo ($resourceurl); ?>";
-		</js>
-		<css src="<?php echo ($resourceurl); ?>/float_btn/css/style.css"></css>
-		<js src="<?php echo ($resourceurl); ?>/float_btn/js/style.js"></js>
-	</template>
-
-</cm-construct>
-<cm-construct v-bind:data="data[index]" class="float-btn right_bottom" data-disabled="1"
-	v-else-if="nc.bottomPosition == 3 || nc.bottomPosition == 4"
-	:style="{bottom:(parseInt(nc.baseBtnBottom)  + parseInt(nc.btnBottom))+'px !important'}">
-
-	<!-- 预览 -->
-	<template slot="preview">
-		<div class="float-mask" data-disabled="1">
-			<div class="float-btn-box" data-disabled="1">
-				<a v-for="(item, index) in nc.list" :key="index" href="javascript:;" class="float-btn-item" data-disabled="1">
-					<div class="img-box" data-disabled="1">
-						<img v-bind:src="item.imageUrl" alt="" data-disabled="1">
-					</div>
-				</a>
-			</div>
-		</div>
-
-	</template>
-
-	<!-- 编辑 -->
-	<template slot="edit">
-		<template v-if="nc.lazyLoad">
-			<float-btn-list ref="float_btn"></float-btn-list>
-			<btn-position></btn-position>
-			<slide v-bind:data="{ field : 'btnBottom', label : '上下偏移' }"></slide>
-		</template>
-	</template>
-
-	<!-- 资源 -->
-	<template slot="resource">
-
-		<js>
-			var floatBtnResourcePath = "<?php echo ($resourceurl); ?>";
-		</js>
-		<css src="<?php echo ($resourceurl); ?>/float_btn/css/style.css"></css>
-		<js src="<?php echo ($resourceurl); ?>/float_btn/js/style.js"></js>
-	</template>
-
-</cm-construct><?php endif; ?>
-																	<?php if($li['name']=='VIDEO'): ?><cm-construct v-bind:data="data[index]" v-bind:class="['video']">
-
-	<!-- 预览 -->
-	<template slot="preview">
-		<div class="preview-box" v-bind:style="{ background: nc.backgroundColor, marginTop : nc.marginTop + 'px', borderRadius: nc.navRadius == 'fillet' ? '5px' : '0px' }">
-			<template v-if="nc.lazyLoad">
-				<szy-video></szy-video>
-			</template>
-		</div>
-	</template>
-	
-	<!-- 编辑 -->
-	<template slot="edit">
-	
-		<template v-if="nc.lazyLoad">
-			<video-list></video-list>
-		</template>
-		
-	</template>
-	
-	<!-- 资源 -->
-	<template slot="resource">
-		
-		<js>
-			var videoResourcePath = "<?php echo ($resourceurl); ?>";
-		</js>
-		<css src="<?php echo ($resourceurl); ?>/video/css/style.css"></css>
-		<js src="<?php echo ($resourceurl); ?>/video/js/style.js"></js>
-		
-	</template>
-
-</cm-construct><?php endif; ?>
-																	<?php if($li['name']=='NEW_COME'): ?><cm-construct v-bind:data="data[index]" class="component-pintuan">
-
-	<!-- 预览 -->
-	<template slot="preview">
-		<div class="preview-box" v-bind:style="{ backgroundColor : nc.backgroundColor, margin: nc.marginTop + 'px 15px 0' }">
-			<div class="marketing-wrap marketing-wrap-1 marketing-wrap-4" v-if="nc.style == 4">
-				<div class="marketing-box">
-					<template v-if="nc.lazyLoad&&nc.list[0].imageUrl">
-						<img :src="nc.list[0].imageUrl" alt="">
-					</template>
-					
-					<div class="list-wrap">
-						<div class="item">
-							<div class="img-wrap">
-								<img src="/static/images/diy/crack_figure.png" />
-							</div>
-							<div class="content">
-								<div class="content-desc">商品名称</div>
-								<div class="content-num">2人团</div>
-								<div class="content-price">
-									¥<span>99.00</span>
-								</div>
-							</div>
-						</div>
-						
-						<div class="item">
-							<div class="img-wrap">
-								<img src="/static/images/diy/crack_figure.png" />
-							</div>
-							<div class="content">
-								<div class="content-desc">商品名称</div>
-								<div class="content-num">2人团</div>
-								<div class="content-price">
-									¥<span>99.00</span>
-								</div>
-							</div>
-						</div>
-						
-						<div class="item">
-							<div class="img-wrap">
-								<img src="/static/images/diy/crack_figure.png" />
-							</div>
-							<div class="content">
-								<div class="content-desc">商品名称</div>
-								<div class="content-num">2人团</div>
-								<div class="content-price">
-									¥<span>99.00</span>
-								</div>
-							</div>
-						</div>
-					</div>
-				</div>
-			</div>
-
-			<!-- 风格一 -->
-			<div class="marketing-wrap marketing-wrap-1" v-if="nc.style == 1" style="min-height: 210px;">
-				<img v-if="nc.bgSelect == 'red'" src="<?php echo ($resourceurl); ?>/new_come/img/red.png" />
-				<img v-if="nc.bgSelect == 'blue'" src="<?php echo ($resourceurl); ?>/new_come/img/blue.png" />
-				<img v-if="nc.bgSelect == 'yellow'" src="<?php echo ($resourceurl); ?>/new_come/img/yellow.png" />
-				<img v-if="nc.bgSelect == 'violet'" src="<?php echo ($resourceurl); ?>/new_come/img/violet.png" />
-				
-				<div class="marketing-box">
-					<template v-if="nc.lazyLoad">
-						<newcome-top-content></newcome-top-content>
-					</template>
-					
-					<div class="list-wrap">
-						<div class="item">
-							<div class="img-wrap">
-								<img src="/static/images/diy/crack_figure.png" />
-							</div>
-							<div class="content">
-								<div class="content-desc">商品名称</div>
-								<div class="content-price">
-									¥<span>99.00</span>
-								</div>
-							</div>
-						</div>
-						
-						<div class="item">
-							<div class="img-wrap">
-								<img src="/static/images/diy/crack_figure.png" />
-							</div>
-							<div class="content">
-								<div class="content-desc">商品名称</div>
-								<div class="content-price">
-									¥<span>99.00</span>
-								</div>
-							</div>
-						</div>
-						
-						<div class="item">
-							<div class="img-wrap">
-								<img src="/static/images/diy/crack_figure.png" />
-							</div>
-							<div class="content">
-								<div class="content-desc">商品名称</div>
-								<div class="content-price">
-									¥<span>99.00</span>
-								</div>
-							</div>
-						</div>
-					</div>
-				</div>
-			</div>
-			
-			<!-- 风格二/风格三 -->
-			<div class="marketing-box marketing-box-two" v-bind:class="'marketing-box-'+ nc.style" v-if="nc.style == 2 || nc.style == 3">
-				<template v-if="nc.lazyLoad">
-					<newcome-top-content></newcome-top-content>
-				</template>
-				
-				<div class="list-wrap">
-					<div class="item">
-						<div class="img-wrap">
-							<img src="/static/images/diy/crack_figure.png" />
-						</div>
-						<div class="content">
-							<div class="top">
-								<div class="content-desc">商品名称</div>
-								<div class="label">
-									<div class="label-person"><i class="layui-icon layui-icon-user"></i><span>2人团</span></div>
-									<div class="label-num"><span>已拼10件</span></div>
-								</div>
-							</div>
-							
-							<div class="bot">
-								<div class="content-price">
-									<div>¥<span>99.00</span></div>
-									<div class="content-num">¥139.00</div>
-								</div>
-								<button class="layui-btn">去拼团</button>
-							</div>
-						</div>
-					</div>
-					<div class="item">
-						<div class="img-wrap">
-							<img src="/static/images/diy/crack_figure.png" />
-						</div>
-						<div class="content">
-							<div class="top">
-								<div class="content-desc">商品名称</div>
-								<div class="label">
-									<div class="label-person"><i class="layui-icon layui-icon-user"></i><span>2人团</span></div>
-									<div class="label-num"><span>已拼10件</span></div>
-								</div>
-							</div>
-							
-							<div class="bot">
-								<div class="content-price">
-									<div>¥<span>99.00</span></div>
-									<div class="content-num">¥139.00</div>
-								</div>
-								<button class="layui-btn">去拼团</button>
-							</div>
-						</div>
-					</div>
-					<div class="item">
-						<div class="img-wrap">
-							<img src="/static/images/diy/crack_figure.png" />
-						</div>
-						<div class="content">
-							<div class="top">
-								<div class="content-desc">商品名称</div>
-								<div class="label">
-									<div class="label-person"><i class="layui-icon layui-icon-user"></i><span>2人团</span></div>
-									<div class="label-num"><span>已拼10件</span></div>
-								</div>
-							</div>
-							
-							<div class="bot">
-								<div class="content-price">
-									<div>¥<span>99.00</span></div>
-									<div class="content-num">¥139.00</div>
-								</div>
-								<button class="layui-btn">去拼团</button>
-							</div>
-						</div>
-					</div>
-				</div>
-				
-				<div class="more" v-if="nc.style == 3">
-					<span>更多拼团</span><i class="layui-icon layui-icon-right"></i>
-				</div>
-			</div>
-		</div>
-	</template>
-
-	<!-- 编辑 -->
-	<template slot="edit">
-		<template v-if="nc.lazyLoad">
-			<!-- <newcome-list></newcome-list> -->
-			<!-- <newcome-style></newcome-style> -->
-		</template>
-		
-		<template v-if="nc.lazyLoad">
-			<newcome-color v-if="nc.style == 1"></newcome-color>
-			<!-- <change-type v-if="nc.style == 1"></change-type> -->
-		</template>
-		
-		<div class="template-edit-title">
-			<h3>顶部标题设置</h3>
-			<i class="layui-icon layui-icon-down" onclick="closeBox(this)"></i>
-		</div>
-		<template v-if="nc.lazyLoad">
-			<newcome-top-list></newcome-top-list>
-		</template>
-		
-		<div class="template-edit-title">
-			<h3>其他设置</h3>
-			<i class="layui-icon layui-icon-down" onclick="closeBox(this)"></i>
-		</div>
-		<template v-if="nc.lazyLoad">
-			<slide v-bind:data="{ field : 'marginTop', label : '页面间距' }"></slide>
-		</template>
-
-		<!-- 弹框 -->
-		<div class="pintuan-list-style">
-			<div class="style-list-pintuan layui-form">
-				<div class="style-list-con-pintuan">
-					<div class="style-li-pintuan" v-bind:class="{'selected ns-border-color': nc.style == 1}">
-						<img src="<?php echo ($resourceurl); ?>/new_come/img/newcome_style_1.png" />
-						<span class="layui-hide">风格一</span>
-					</div>
-					<div class="style-li-pintuan" v-bind:class="{'selected ns-border-color': nc.style == 2}">
-						<img src="<?php echo ($resourceurl); ?>/new_come/img/newcome_style_2.png" />
-						<span class="layui-hide">风格二</span>
-					</div>
-					<div class="style-li-pintuan" v-bind:class="{'selected ns-border-color': nc.style == 3}">
-						<img src="<?php echo ($resourceurl); ?>/new_come/img/newcome_style_3.png" />
-						<span class="layui-hide">风格三</span>
-					</div>
-				</div>
-				
-				<input type="hidden" name="style">
-				<input type="hidden" name="style_name" />
-			</div>
-		</div>
-
-	</template>
-
-	<!-- 资源 -->
-	<template slot="resource">
-		<js>
-			var newcomeResourcePath = "<?php echo ($resourceurl); ?>";
-		</js>
-		<css src="<?php echo ($resourceurl); ?>/new_come/css/style.css"></css>
-		<js src="<?php echo ($resourceurl); ?>/new_come/js/style.js"></js>
-
-	</template>
-
-</cm-construct><?php endif; ?>
-																	<?php if($li['name']=='SPECIAL_LIST'): ?><cm-construct v-bind:data="data[index]" class="component-special">
-
-	<!-- 预览 -->
-	<template slot="preview">
-		<div class="preview-box" v-bind:style="{ backgroundColor : nc.backgroundColor, margin: nc.marginTop + 'px 15px 0' }">
-			<div class="marketing-wrap marketing-wrap-1 marketing-wrap-4" v-if="nc.style == 1">
-				<div class="marketing-box">
-					<template v-if="nc.lazyLoad&&nc.list[0].imageUrl">
-						<img :src="nc.list[0].imageUrl" alt="">
-					</template>
-					
-					<div class="list-wrap">
-						<div class="item">
-							<div class="img-wrap">
-								<img src="/static/images/diy/crack_figure.png" />
-							</div>
-							<div class="content">
-								<div class="content-desc">商品名称</div>
-								<div class="content-price">
-									¥<span>99.00</span>
-								</div>
-							</div>
-						</div>
-						
-						<div class="item">
-							<div class="img-wrap">
-								<img src="/static/images/diy/crack_figure.png" />
-							</div>
-							<div class="content">
-								<div class="content-desc">商品名称</div>
-								<div class="content-price">
-									¥<span>99.00</span>
-								</div>
-							</div>
-						</div>
-						
-						<div class="item">
-							<div class="img-wrap">
-								<img src="/static/images/diy/crack_figure.png" />
-							</div>
-							<div class="content">
-								<div class="content-desc">商品名称</div>
-								<div class="content-price">
-									¥<span>99.00</span>
-								</div>
-							</div>
-						</div>
-					</div>
-				</div>
-			</div>
-
-			<!-- 风格四 -->
-			<div class="marketing-wrap marketing-wrap-1" v-if="nc.style == 4">
-				<img v-if="nc.bgSelect == 'red'" src="<?php echo ($resourceurl); ?>/special/img/red.png" />
-				<img v-if="nc.bgSelect == 'blue'" src="<?php echo ($resourceurl); ?>/special/img/blue.png" />
-				<img v-if="nc.bgSelect == 'yellow'" src="<?php echo ($resourceurl); ?>/special/img/yellow.png" />
-				<img v-if="nc.bgSelect == 'violet'" src="<?php echo ($resourceurl); ?>/special/img/violet.png" />
-				
-				<div class="marketing-box">
-					<template v-if="nc.lazyLoad">
-						<special-top-content></special-top-content>
-					</template>
-					
-					<div class="list-wrap">
-						<div class="item">
-							<div class="img-wrap">
-								<img src="/static/images/diy/crack_figure.png" />
-							</div>
-							<div class="content">
-								<div class="content-desc">商品名称</div>
-								<div class="content-num">2人团</div>
-								<div class="content-price">
-									¥<span>99.00</span>
-								</div>
-							</div>
-						</div>
-						
-						<div class="item">
-							<div class="img-wrap">
-								<img src="/static/images/diy/crack_figure.png" />
-							</div>
-							<div class="content">
-								<div class="content-desc">商品名称</div>
-								<div class="content-num">2人团</div>
-								<div class="content-price">
-									¥<span>99.00</span>
-								</div>
-							</div>
-						</div>
-						
-						<div class="item">
-							<div class="img-wrap">
-								<img src="/static/images/diy/crack_figure.png" />
-							</div>
-							<div class="content">
-								<div class="content-desc">商品名称</div>
-								<div class="content-num">2人团</div>
-								<div class="content-price">
-									¥<span>99.00</span>
-								</div>
-							</div>
-						</div>
-					</div>
-				</div>
-			</div>
-			
-			<!-- 风格二/风格三 -->
-			<div class="marketing-box marketing-box-two" v-bind:class="'marketing-box-'+ nc.style" v-if="nc.style == 2 || nc.style == 3">
-				<template v-if="nc.lazyLoad">
-					<special-top-content></special-top-content>
-				</template>
-				
-				<div class="list-wrap">
-					<div class="item">
-						<div class="img-wrap">
-							<img src="/static/images/diy/crack_figure.png" />
-						</div>
-						<div class="content">
-							<div class="top">
-								<div class="content-desc">商品名称</div>
-								<div class="label">
-									<div class="label-person"><i class="layui-icon layui-icon-user"></i><span>2人团</span></div>
-									<div class="label-num"><span>已拼10件</span></div>
-								</div>
-							</div>
-							
-							<div class="bot">
-								<div class="content-price">
-									<div>¥<span>99.00</span></div>
-									<div class="content-num">¥139.00</div>
-								</div>
-								<button class="layui-btn">去拼团</button>
-							</div>
-						</div>
-					</div>
-					<div class="item">
-						<div class="img-wrap">
-							<img src="/static/images/diy/crack_figure.png" />
-						</div>
-						<div class="content">
-							<div class="top">
-								<div class="content-desc">商品名称</div>
-								<div class="label">
-									<div class="label-person"><i class="layui-icon layui-icon-user"></i><span>2人团</span></div>
-									<div class="label-num"><span>已拼10件</span></div>
-								</div>
-							</div>
-							
-							<div class="bot">
-								<div class="content-price">
-									<div>¥<span>99.00</span></div>
-									<div class="content-num">¥139.00</div>
-								</div>
-								<button class="layui-btn">去拼团</button>
-							</div>
-						</div>
-					</div>
-					<div class="item">
-						<div class="img-wrap">
-							<img src="/static/images/diy/crack_figure.png" />
-						</div>
-						<div class="content">
-							<div class="top">
-								<div class="content-desc">商品名称</div>
-								<div class="label">
-									<div class="label-person"><i class="layui-icon layui-icon-user"></i><span>2人团</span></div>
-									<div class="label-num"><span>已拼10件</span></div>
-								</div>
-							</div>
-							
-							<div class="bot">
-								<div class="content-price">
-									<div>¥<span>99.00</span></div>
-									<div class="content-num">¥139.00</div>
-								</div>
-								<button class="layui-btn">去拼团</button>
-							</div>
-						</div>
-					</div>
-				</div>
-				
-				<div class="more" v-if="nc.style == 3">
-					<span>更多拼团</span><i class="layui-icon layui-icon-right"></i>
-				</div>
-			</div>
-		</div>
-	</template>
-
-	<!-- 编辑 -->
-	<template slot="edit">
-		<template v-if="nc.lazyLoad">
-			<!-- <special-list></special-list> -->
-			<!-- <special-style></special-style> -->
-		</template>
-		
-		<template v-if="nc.lazyLoad">
-			<special-color v-if="nc.style == 4"></special-color>
-			<!-- <change-type v-if="nc.style == 4"></change-type> -->
-		</template>
-		
-		<div class="template-edit-title">
-			<h3>顶部标题设置</h3>
-			<i class="layui-icon layui-icon-down" onclick="closeBox(this)"></i>
-		</div>
-		<template v-if="nc.lazyLoad">
-			<special-top-list></special-top-list>
-		</template>
-		
-		<div class="template-edit-title">
-			<h3>其他设置</h3>
-			<i class="layui-icon layui-icon-down" onclick="closeBox(this)"></i>
-		</div>
-		<template v-if="nc.lazyLoad">
-			<slide v-bind:data="{ field : 'marginTop', label : '页面间距' }"></slide>
-		</template>
-
-		<!-- 弹框 -->
-		<div class="special-list-style">
-			<div class="style-list-special layui-form">
-				<div class="style-list-con-special">
-					<div class="style-li-special" v-bind:class="{'selected ns-border-color': nc.style == 1}">
-						<img src="<?php echo ($resourceurl); ?>/special/img/special_style_1.png" />
-						<span class="layui-hide">风格一</span>
-					</div>
-					<div class="style-li-special" v-bind:class="{'selected ns-border-color': nc.style == 2}">
-						<img src="<?php echo ($resourceurl); ?>/special/img/special_style_2.png" />
-						<span class="layui-hide">风格二</span>
-					</div>
-					<div class="style-li-special" v-bind:class="{'selected ns-border-color': nc.style == 3}">
-						<img src="<?php echo ($resourceurl); ?>/special/img/special_style_3.png" />
-						<span class="layui-hide">风格三</span>
-					</div>
-					<div class="style-li-special" v-bind:class="{'selected ns-border-color': nc.style == 4}">
-						<img src="<?php echo ($resourceurl); ?>/special/img/special_style_4.png" />
-						<span class="layui-hide">风格四</span>
-					</div>
-				</div>
-				
-				<input type="hidden" name="style">
-				<input type="hidden" name="style_name" />
-			</div>
-		</div>
-
-	</template>
-
-	<!-- 资源 -->
-	<template slot="resource">
-		<js>
-			var specialResourcePath = "<?php echo ($resourceurl); ?>";
-		</js>
-		<css src="<?php echo ($resourceurl); ?>/special/css/style.css"></css>
-		<js src="<?php echo ($resourceurl); ?>/special/js/style.js"></js>
-
-	</template>
-
-</cm-construct><?php endif; ?>
-																	<?php if($li['name']=='MANY_GOODS_LIST'): ?><cm-construct v-bind:data="data[index]" class="many-goods-list">
-
-	<!-- 预览 -->
-	<template slot="preview">
-		<div class="goods-list-preview" v-bind:style="{ marginTop: nc.marginTop + 'px' }" style="padding: 0 15px;">
-			<template v-if="nc.style == 1">
-				<div class="goods-cate-list">
-					<template v-for="(item, index) in nc.list">
-						<div class="split-line" v-if="index > 0"></div>
-						<div class="goods-cate-item" :class="{'active': index == 0}">
-							<p>{{item.title}}</p>
-							<p :style="{background: index == 0 && item.desc ? nc.selectColor : ''}">{{item.desc}}</p>
-						</div>
-					</template>
-				</div>
-			</template>
-		</div>
-	</template>
-
-	<!-- 编辑 -->
-	<template slot="edit">
-		<!-- <div class="layui-form-item">
-			<label class="layui-form-label sm">名称</label> 
-			<div class="layui-input-block">
-				<input type="text" v-model="nc.goodsGroupTitle" v-bind:id="'title_'+index" placeholder="请输入商品组名称" class="layui-input">
-			</div>
-		</div> -->
-		
-		<template v-if="nc.lazyLoad">
-			<many-goods-list-style></many-goods-list-style>
-		</template>
-		
-		<template v-if="nc.lazyLoad">
-			<many-goods-list></many-goods-list>
-		</template>
-		
-		<div class="template-edit-title"><h3>其他设置</h3></div>
-		<slide v-bind:data="{ field : 'marginTop', label : '页面间距' }"></slide>
-
-		<!-- 商品组风格弹框 -->
-		<div class="goods-cate-style">
-			<div class="style-cate-goods layui-form">
-				<div class="style-cate-con-goods">
-					<div class="style-li-goods" v-bind:class="{'selected ns-border-color': nc.style == 1}">
-						<img src="<?php echo ($resourceurl); ?>/many_goods_list/img/cate_style_1.png" />
-					</div>
-				</div>
-				
-				<input type="hidden" name="style">
-				
-			</div>
-		</div>
-
-		<!-- 商品分类选择弹框 -->
-		<div class="goods-category-layer">
-			<?php if(!empty($goods_category_list)): ?><div class="category-head">分类名称</div>
-				<div class="category-wrap">
-				<?php if(is_array($goods_category_list)): foreach($goods_category_list as $key=>$vo): ?><div class="category-item" data-id="<?php echo ($vo["id"]); ?>"><?php echo ($vo["name"]); ?></div><?php endforeach; endif; ?>
-				</div><?php endif; ?>
-		</div>
-		
-		<!-- 商品列表风格弹框 -->
-		<!-- <div class="goods-list-style">
-			<div class="style-list-goods layui-form">
-				<div class="style-list-con-goods">
-					<div class="style-li-goods" v-bind:class="{'selected ns-border-color': nc.style == 1}">
-						<img src="<?php echo ($resourceurl); ?>/many_goods_list/img/style3.png" />
-					</div>
-				</div>
-				
-				<input type="hidden" name="style">
-				
-			</div>
-		</div> -->
-	</template>
-	
-	<!-- 资源 -->
-	<template slot="resource">
-		<js>
-		var goodsListResourcePath = "<?php echo ($resourceurl); ?>";
-		</js>
-		<css src="<?php echo ($resourceurl); ?>/many_goods_list/css/style.css"></css>
-		<js src="<?php echo ($resourceurl); ?>/many_goods_list/js/style.js"></js>
-	</template>
-	
-</cm-construct><?php endif; ?>
-																	<?php if($li['name']=='SINGLE_IMG'): ?><cm-construct v-bind:data="data[index]" v-bind:class="['single_img']">
-
-	<!-- 预览 -->
-	<template slot="preview">
-		<div class="preview-box" v-bind:style="{ background: nc.backgroundColor, marginTop : nc.marginTop + 'px' }">
-			<template v-if="nc.lazyLoad">
-				<single-img></single-img>
-			</template>
-		</div>
-	</template>
-	
-	<!-- 编辑 -->
-	<template slot="edit">
-	
-		<template v-if="nc.lazyLoad">
-			<single-img-list></single-img-list>
-		</template>
-		
-	</template>
-	
-	<!-- 资源 -->
-	<template slot="resource">
-		
-		<js>
-			var singleImgResourcePath = "<?php echo ($resourceurl); ?>";
-		</js>
-		<css src="<?php echo ($resourceurl); ?>/single_img/css/style.css"></css>
-		<js src="<?php echo ($resourceurl); ?>/single_img/js/style.js"></js>
-		
-	</template>
-
-</cm-construct><?php endif; ?>
-																</template><?php endforeach; endif; endforeach; endif; ?>
-													</div>
-												</template>
-
-											</div>
-											<!--画布中心 end   -->
-										</div>
-									</div>
-							</div>
-						</div>
-					</div>
-					<!-- center component end -->
-
-					<!-- 底部 保存 begin -->
-					<div class="custom-save">
-						<button class="layui-btn ns-bg-color save">保存</button>
-					</div>
-					<!-- 底部 end -->
-				</div>
-				<!-- end modify -->
-			</div>
-		</div>
-	</div>
-	<script type="text/javascript">
-		document.write('<script src="/static/js/diy/color_picker/js/colorpicker.js?t="' + Math.random() + '><\/script>');
-	</script>
-	<script type="text/javascript">
-		document.write('<script src="/static/js/diy/color_picker/js/paigusu.min.js?t="' + Math.random() + '><\/script>');
-	</script>
-
-	<script type="text/javascript">
-		var linkUrl = "<?php echo U('Shopdiy/link');?>";
-		var specialUrl = "<?php echo U('Marketing/special_select');?>";
-		document.write('<script type="text/javascript" charset="utf-8" src="/static/js/diy/common.js?t="' + Math.random() + '><\/script>');
-	</script>
-	<script type="text/javascript">
-		document.write('<script src="/static/js/diy/async_load_css.js?t="' + Math.random() + '><\/script>');
-	</script>
-	<script type="text/javascript" charset="utf-8" src="/Common/ueditor/ueditor.config.js"></script>
-	<script type="text/javascript" charset="utf-8" src="/Common/ueditor/ueditor.all.min.js"> </script>
-	<script type="text/javascript" charset="utf-8" src="/Common/ueditor/lang/zh-cn/zh-cn.js"></script>
-
-	<script src="/layuiadmin/layui/layui.js"></script>
-	<script>
-		layui.config({
-			base: '/layuiadmin/' //静态资源所在路径
-		}).extend({
-			index: 'lib/index' //主入口模块
-		}).use('index');
-	</script>
-
-	<script>
-		//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-		var layer = layui.layer;
-		var $;
-		var cur_open_div;
-		layui.use(['jquery', 'layer', 'form', 'slider'], function () {
-			$ = layui.$;
-			var form = layui.form;
-			var table = layui.table;
-		})
-	</script>
-	<script type="text/javascript">
-		document.write('<script src="/static/js/diy/szycompontents.js?t="' + Math.random() + '><\/script>');
-	</script>
-	<script type="text/javascript">
-		var diyJson = <?php echo ($diyJson); ?>;
-		var global = <?php echo ($global); ?>;
-		var openDiyPage =  <?php echo ($openDiyPage); ?>;
-		if(global) {
-			global.openDiyPage = openDiyPage;
-		} else {
-			global = {openDiyPage: openDiyPage};
-		}
-		document.write('<script src="/static/js/diy/szydiy.js?t="' + Math.random() + '><\/script>');
-	</script>
-	
-	<!-- 提交begin -->
-	<script>
-		$('.all_component_list').on("mousemove",".componnet_list_box ul li",function () {
-			var icon_selected = $(this).find("img").attr("data-icon-selected");
-			$(this).find("img").attr("src", icon_selected);
-		}).on("mouseout",".componnet_list_box ul li",function () {
-			var icon = $(this).find("img").attr("data-icon");
-			$(this).find("img").attr("src", icon);
-		});
-
-		var id = 0;
-		if(diyJson) {
-			for(var i=0;i<diyJson.length;i++) vue.addSzyComponent(diyJson[i]);
-		} else {
-			vue.globalLazyLoad = true;
-		}
-
-		var repeat_flag = false;
-		$("button.save").click(function(){
-			// 刷新排序
-			vue.refreshSort();
-			setTimeout(function () {
-				if(vue.submitVerify()){
-					//全局属性
-					var global = JSON.stringify(vue.global);
-					global = eval("("+global+")");
-
-					//组件属性
-					var value = JSON.stringify(vue.data).replace(/\@/g, "");
-					value = JSON.parse(value);
-
-					//重新排序
-					value.sort(function(a,b){
-						return a.sort-b.sort;
-					});
-
-					for(var item in value){
-						delete value[item].verify;
-						delete value[item].lazyLoad;
-						delete value[item].lazyLoadCss;
-						delete value[item].index;
-						delete value[item].sort;
-						delete value[item].outerCountJs;
-					}
-
-					var v = {
-						global : global,
-						value : value
-					};
-
-					if(repeat_flag) return;
-					repeat_flag = true;
-
-					var data = { 
-						id: id, 
-						name: 'index', 
-						title: vue.global.title, 
-						openDiyPage: vue.global.openDiyPage, 
-						global: JSON.stringify(global).replace(/\'/g, "@"),
-						value: JSON.stringify(value).replace(/\'/g, "@")
-					};
-					var diyurl = "<?php echo U('Shopdiy/save');?>";
-					$.ajax({
-						url: diyurl,
-						type: "post",
-						data: data,
-						dataType:'json',
-						success: function (info) {
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}
-			},100);
-		});
-
-	</script>
-
-</body>

+ 0 - 439
Runtime/Cache/Seller/d25fd634fd67e36b84ad948f79d2065e.php

@@ -1,439 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
-  <!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-  <!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-  <![endif]-->
-
-  <link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-  <link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-  <script type="text/javascript">
-      window.sysinfo = {
-        <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-        <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-        <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-        <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-        'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-        'siteroot': '<?php echo ($_W['siteroot']); ?>',
-        'siteurl': '<?php echo ($_W['siteurl']); ?>',
-        'attachurl': '<?php echo ($_W['attachurl']); ?>',
-        'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-        'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-        'module': {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-        'cookie': {'pre': ''},
-        'account': <?php echo json_encode($_W['account']);?>,
-      };
-  </script>
-        
-  <script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-  <script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-  <script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-  <script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-  <script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-  <script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-  <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-  <link href="/static/css/snailfish.css" rel="stylesheet">
-  <style type="text/css">
-        .img-40 {
-            width: 40px;
-            height: 40px;
-        }
-  </style>
-</head>
-<body layadmin-themealias="default">
-
-<div class="layui-fluid">
-    <div class="layui-card">
-        <div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">配送司机管理</span></div>
-        <div class="layui-card-body" style="padding:15px;">
-            <div class="page-content">
-                <form action="" method="get" class="form-horizontal form-search layui-form" role="form">
-            		<input type="hidden" name="c" value="delivery" />
-                    <input type="hidden" name="a" value="delivery_clerk" />
-                    
-                    <div class="layui-form-item">
-						<span class="layui-input-inline">
-    						<select name='searchtime' class='form-control' style="width:100px;padding:0 5px;"  id="searchtime">
-    							<option value=''>一键打印筛选时间</option>
-    							<option value='create_time' <?php if( $gpc['searchtime']=='create_time'){ ?>selected<?php } ?>>创建清单时间</option>
-    							<option value='express_time' <?php if( $gpc['searchtime']=='express_time'){ ?>selected<?php } ?>>配送时间</option>
-    							<option value='head_get_time' <?php if( $gpc['searchtime']=='head_get_time'){ ?>selected<?php } ?>>送达时间</option>
-    						</select>
-    					</span>
-    					<span class="layui-input-inline" style="width: 285px;">
-    						<?php echo tpl_form_field_daterange('time', array('starttime'=>date('Y-m-d H:i'),'endtime'=>date('Y-m-d H:i')),true);;?>
-    					</span>
-						
-                        <div class="layui-input-inline">
-        					<input type="text" class="input-sm form-control layui-input" name='keyword' value="<?php echo ($gpc['keyword']); ?>" placeholder="输入关键词然后回车">
-                        </div>
-                        <span class="layui-input-inline">
-                            <button class="btn btn-primary" type="submit"> 搜索</button>
-                        </span>
-						
-									
-                    </div>
-                </form>
-	
-                <form action="" method="post" class="layui-form" role="form">
-                    <div class="row">
-                        <div class="col-md-12">
-                            <div class="page-table-header">
-                                <!-- <input type='checkbox' name="checkall" lay-skin="primary" lay-filter="checkboxall" /> -->
-            					<span class="pull-right">
-            						<a href="<?php echo U('delivery/adddelivery_clerk',array('ok'=>1));?>" class="layui-btn layui-btn-sm"><i class="fa fa-plus"></i> 添加配送司机</a>
-									
-									<a  class='btn layui-btn  layui-btn-sm' id="clerk_allprint" data-href="<?php echo U('delivery/clerk_allprint', array('id' => $item['id'],'ok'=>1));?>" >
-										<span data-toggle="tooltip" data-placement="top" title="" data-original-title="打印配送单">
-											一键打印配送单
-										</span>
-									</a>
-									
-									<a  class='btn layui-btn  layui-btn-sm' style="display:none;" id="clerk_allprint_order"  data-href="<?php echo U('delivery/clerk_allprint_order');?>" >
-										<span data-toggle="tooltip" data-placement="top" title="" data-original-title="一键打印所有相关订单">
-											一键打印所有相关订单
-										</span>
-									</a>
-            					</span>
-                                <div class="btn-group">
-                                    <button class="btn btn-default btn-sm btn-operation" type="button" data-toggle='batch-remove' data-confirm="确认要删除吗,删除后商品将进入回收站?" data-href="<?php echo U('delivery/deldelivery_clerk');?>">
-                                        <i class='icow icow-shanchu1'></i> 删除
-            						</button>
-									
-                                </div>
-                            </div>
-                            <table class="layui-table" lay-skin="line" lay-size="lg">
-                                <thead>
-                                    <tr>
-                						<th style="width:25px;"><input type='checkbox' name="checkall" lay-skin="primary" lay-filter="checkboxall" /></th>
-                						<th style="width:80px;">ID</th>
-                						<th style="">姓名</th>
-                						<th style="width: 200px;">手机号</th>
-                						<th style="width: 300px;">操作</th>
-                					</tr>
-                                </thead>
-                                <tbody>
-                                    <?php foreach( $list as $item ){ ?>
-                                    <tr>
-                    					<td style="width:25px;">
-                    						<input type='checkbox' value="<?php echo ($item['id']); ?>" name="item_checkbox" lay-skin="primary"/>
-                    					</td>
-                    					<td>
-                    						<?php echo ($item['id']); ?>
-                    					</td>
-                    					<td>
-                    						<div style="display: flex">
-                    						   <img class="img-40" src="<?php echo tomedia($item['logo']);?>" style='border-radius:50%;border:1px solid #efefef;' />
-                    						   <span style="display: flex;flex-direction: column;justify-content: center;align-items: flex-start;padding-left: 5px">
-                    							   <span class="nickname">
-                    								   <?php echo ($item['name']); ?>
-                    							   </span>
-                    						   </span>
-                    						</div>
-                    					</td>
-                    					<td>
-                    						<?php echo ($item['mobile']); ?>
-                    					</td>
-                						<td  style="overflow:visible;position:relative">
-                							<a  class='layui-btn layui-btn-xs' href="<?php echo U('delivery/adddelivery_clerk', array('id' => $item['id'],'ok'=>1));?>" >
-                								<span data-toggle="tooltip" data-placement="top" title="" data-original-title="编辑">
-                									<i class="layui-icon layui-icon-edit"></i>编辑
-                								</span>
-                							</a>
-											
-											
-											
-                                            <a  class='layui-btn layui-btn-danger layui-btn-xs deldom' href="javascript:;" data-href="<?php echo U('delivery/deldelivery_clerk',array('id' => $item['id']));?>" data-confirm='确认要删除吗?'>
-                                                <span data-toggle="tooltip" data-placement="top" title="" data-original-title="删除">
-                                                    <i class="layui-icon">&#xe640;</i>删除
-                                                </span>
-                                            </a>
-                                        </td>
-                                    </tr>
-                                    <?php } ?>
-                                </tbody>
-                                <tfoot>
-                                    <tr>
-                                        <td colspan="3">
-                							<div class="page-table-header">
-                								<input type="checkbox" name="checkall" lay-skin="primary" lay-filter="checkboxall">
-                								<div class="btn-group">
-                									<button class="btn btn-default btn-sm btn-operation" type="button" data-toggle='batch-remove' data-confirm="确认要删除吗,删除后商品将进入回收站?" data-href="<?php echo U('delivery/deldelivery_clerk');?>">
-                										<i class='icow icow-shanchu1'></i> 删除
-                									</button>
-                								</div>
-                							</div>
-                                        </td>
-                                        <td colspan="2" style="text-align: right">
-                                            <?php echo ($pager); ?>
-                                        </td>
-                                    </tr>
-                                </tfoot>
-                            </table>
-                        </div>
-                    </div>
-                    
-                </form>
-            </div>
-        </div>
-    </div>
-</div>
-
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-    layui.config({
-        base: '/layuiadmin/' //静态资源所在路径
-    }).extend({
-        index: 'lib/index' //主入口模块
-    }).use('index');
-</script>
-
-<script>
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer', 'form'], function(){ 
-    $ = layui.$;
-    var form = layui.form;
-  
-  
-
-
-
-  $('#clerk_allprint,#clerk_allprint_order').click(function(){
-		var searchtime = $('#searchtime').val();
-		
-		var start = $('input[name="time[start]"]').val();
-		var end = $('input[name="time[end]"]').val();
-		
-		var s_url= $(this).attr('data-href');
-		
-		s_url += '&searchtime='+searchtime+"&start="+start+"&end="+end;
-		
-		window.open(s_url);
-		
-		//console.log( start );
-		//console.log(searchtime);
-		//name="time[start]"
-		//time[end]
-	})
-	
-    $('.deldom').click(function(){
-        var s_url = $(this).attr('data-href');
-        layer.confirm($(this).attr('data-confirm'), function(index){
-            $.ajax({
-                url:s_url,
-                type:'post',
-                dataType:'json',
-                success:function(info){
-                
-                    if(info.status == 0)
-                    {
-                        layer.msg(info.result.message,{icon: 1,time: 2000});
-                    }else if(info.status == 1){
-                        var go_url = location.href;
-                        if( info.result.hasOwnProperty("url") )
-                        {
-                            go_url = info.result.url;
-                        }
-                        
-                        layer.msg('操作成功',{time: 1000,
-                            end:function(){
-                                location.href = info.result.url;
-                            }
-                        }); 
-                    }
-                }
-            })
-        }); 
-    })
-    
-    $('.btn-operation').click(function(){
-        var ids_arr = [];
-        var obj = $(this);
-        var s_toggle = $(this).attr('data-toggle');
-        var s_url = $(this).attr('data-href');
-        
-        
-        $("input[name=item_checkbox]").each(function() {
-            
-            if( $(this).prop('checked') )
-            {
-                ids_arr.push( $(this).val() );
-            }
-        })
-        if(ids_arr.length < 1)
-        {
-            layer.msg('请选择要操作的内容');
-        }else{
-            var can_sub = true;
-            if( s_toggle == 'batch-remove' )
-            {
-                can_sub = false;
-                
-                layer.confirm($(obj).attr('data-confirm'), function(index){
-                     $.ajax({
-                        url:s_url,
-                        type:'post',
-                        dataType:'json',
-                        data:{ids:ids_arr},
-                        success:function(info){
-                        
-                            if(info.status == 0)
-                            {
-                                layer.msg(info.result.message,{icon: 1,time: 2000});
-                            }else if(info.status == 1){
-                                var go_url = location.href;
-                                if( info.result.hasOwnProperty("url") )
-                                {
-                                    go_url = info.result.url;
-                                }
-                                
-                                layer.msg('操作成功',{time: 1000,
-                                    end:function(){
-                                        location.href = info.result.url;
-                                    }
-                                }); 
-                            }
-                        }
-                    })
-                }); 
-            }else{
-                $.ajax({
-                    url:s_url,
-                    type:'post',
-                    dataType:'json',
-                    data:{ids:ids_arr},
-                    success:function(info){
-                    
-                        if(info.status == 0)
-                        {
-                            layer.msg(info.result.message,{icon: 1,time: 2000});
-                        }else if(info.status == 1){
-                            var go_url = location.href;
-                            if( info.result.hasOwnProperty("url") )
-                            {
-                                go_url = info.result.url;
-                            }
-                            
-                            layer.msg('操作成功',{time: 1000,
-                                end:function(){
-                                    location.href = info.result.url;
-                                }
-                            }); 
-                        }
-                    }
-                })
-            }
-        }
-    })
-  
-    form.on('switch(statewsitch)', function(data){
-      
-      var s_url = $(this).attr('data-href')
-      
-      var s_value = 1;
-      if(data.elem.checked)
-      {
-        s_value = 1;
-      }else{
-        s_value = 0;
-      }
-      
-      $.ajax({
-            url:s_url,
-            type:'post',
-            dataType:'json',
-            data:{value:s_value},
-            success:function(info){
-            
-                if(info.status == 0)
-                {
-                    layer.msg(info.result.message,{icon: 1,time: 2000});
-                }else if(info.status == 1){
-                    var go_url = location.href;
-                    if( info.result.hasOwnProperty("url") )
-                    {
-                        go_url = info.result.url;
-                    }
-                    
-                    layer.msg('操作成功',{time: 1000,
-                        end:function(){
-                            location.href = info.result.url;
-                        }
-                    }); 
-                }
-            }
-        })
-    });
-
-    form.on('checkbox(checkboxall)', function(data){
-      if(data.elem.checked)
-      {
-        $("input[name=item_checkbox]").each(function() {
-            $(this).prop("checked", true);
-        });
-        $("input[name=checkall]").each(function() {
-            $(this).prop("checked", true);
-        });
-        
-      }else{
-        $("input[name=item_checkbox]").each(function() {
-            $(this).prop("checked", false);
-        });
-        $("input[name=checkall]").each(function() {
-            $(this).prop("checked", false);
-        });
-      }
-      
-      form.render('checkbox');
-    });
-  
-    //监听提交
-    form.on('submit(formDemo)', function(data){
-        $.ajax({
-            url: data.form.action,
-            type: data.form.method,
-            data: data.field,
-            dataType:'json',
-            success: function (info) {
-              
-                if(info.status == 0)
-                {
-                    layer.msg(info.result.message,{icon: 1,time: 2000});
-                }else if(info.status == 1){
-                    var go_url = location.href;
-                    if( info.result.hasOwnProperty("url") )
-                    {
-                        go_url = info.result.url;
-                    }
-                    
-                    layer.msg('操作成功',{time: 1000,
-                        end:function(){
-                            location.href = info.result.url;
-                        }
-                    }); 
-                }
-            }
-        });
-        return false;
-    });
-})
-
-</script>  
-</body>
-</html>

+ 0 - 2002
Runtime/Cache/Seller/d2ffc1feb626495d560391e21e1ab33f.php

@@ -1,2002 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-	window.sysinfo = {
-	<?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-	
-	<?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-	
-	'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-	
-	'siteroot': '<?php echo ($_W['siteroot']); ?>',
-			'siteurl': '<?php echo ($_W['siteurl']); ?>',
-			'attachurl': '<?php echo ($_W['attachurl']); ?>',
-			'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-			'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-			'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-	'cookie' : {'pre': ''},
-	'account' : <?php echo json_encode($_W['account']);?>,
-	};
-</script>
-
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-
-<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-<link href="/static/css/snailfish.css" rel="stylesheet">
-<style>
-    tbody tr td{
-        position: relative;
-    }
-    tbody tr  .icow-weibiaoti--{
-        visibility: hidden;
-        display: inline-block;
-        color: #fff;
-        height:18px;
-        width:18px;
-        background: #e0e0e0;
-        text-align: center;
-        line-height: 18px;
-        vertical-align: middle;
-    }
-    tbody tr:hover .icow-weibiaoti--{
-        visibility: visible;
-    }
-    tbody tr  .icow-weibiaoti--.hidden{
-        visibility: hidden !important;
-    }
-    .full .icow-weibiaoti--{
-        margin-left:10px;
-    }
-    .full>span{
-        display: -webkit-box;
-        display: -webkit-flex;
-        display: -ms-flexbox;
-        display: flex;
-        vertical-align: middle;
-        align-items: center;
-    }
-    tbody tr .label{
-        margin: 5px 0;
-    }
-    .goods_attribute a{
-        cursor: pointer;
-    }
-    .newgoodsflag{
-        width: 22px;height: 16px;
-        background-color: #ff0000;
-        color: #fff;
-        text-align: center;
-        position: absolute;
-        bottom: 70px;
-        left: 57px;
-        font-size: 12px;
-    }
-	.a{cursor: pointer;}
-	.daterangepicker select.ampmselect, .daterangepicker select.hourselect, .daterangepicker select.minuteselect{
-		width:auto!important;
-	}
-	.we7-modal-dialog .modal-footer, .modal-dialog .modal-footer{padding:0px;}
-	.modal-footer{padding:0px;}
-</style>
-</head>
-<body layadmin-themealias="default">
-
-<table id="demo" lay-filter="test"></table>
-
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">商品列表</span></div>
-		
-		<div class="layui-tab layui-tab-brief" >
-		  <ul class="layui-tab-title">
-				
-				<li  <?php if(empty($type) || $type=='all'){ ?>class="layui-this"<?php } ?>><a href="<?php echo U('goods/index');?>">全部商品(<?php echo ($all_count); ?>)</a></li>
-                <li  <?php if($type=='saleon'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U('goods/index',array('type'=>'saleon'));?>">出售中(<?php echo ($onsale_count); ?>)</a></li>
-                <li <?php if($type=='stock_notice'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U('goods/index',array('type'=>'stock_notice'));?>">库存预警(<?php echo ($stock_notice_count); ?>)</a></li>
-                <li <?php if($type=='getdown'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U('goods/index',array('type'=>'getdown'));?>">已下架(<?php echo ($getdown_count); ?>)</a></li>
-                
-				<li  <?php if($type=='wait_shen'){ ?> class="layui-this"<?php } ?> ><a href="<?php echo U('goods/index',array('type'=>'wait_shen'));?>">待审核(<?php echo ($waishen_count); ?>)</a></li>
-                <li <?php if($type=='refuse'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U('goods/index',array('type'=>'refuse'));?>">已拒绝(<?php echo ($unsuccshen_count); ?>)</a></li>
-                
-				<!--<?php if($is_open_shenhe == 1){ ?>-->
-				<!--<li <?php if($type=='warehouse'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U('goods/index',array('type'=>'warehouse'));?>">仓库(<?php echo ($warehouse_count); ?>)</a></li>-->
-               <!--<?php } ?>-->
-			    <li <?php if($type=='recycle'){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U('goods/index',array('type'=>'recycle'));?>">回收站(<?php echo ($recycle_count); ?>)</a></li>
-				
-		  </ul>
-		</div>
-		
-		<div class="layui-card-body" style="padding:15px;">
-			<form action="" id="searchform" method="get" class="form-horizontal form-search layui-form" role="form">
-				<input type="hidden" name="c" value="goods" />
-				<input type="hidden" name="a" value="index" />
-				<input type="hidden" name="type" value="<?php echo ($type); ?>" />
-				
-				<input type="hidden" name="sortfield" id="sortfield" value="<?php echo ($sortfield); ?>" />
-				<input type="hidden" name="sortby" id="sortby" value="<?php echo ($sortby); ?>" />
-				<div class="layui-form-item">
-				  <div class="layui-inline">
-					<div class="layui-input-inline" >
-						<input type="text" class="layui-input"  name="keyword" value="<?php echo ($keyword); ?>" placeholder="输入商品编码或者名称"/>
-				
-					</div>
-					<div class="layui-input-inline" >
-						<select name='searchtime'  class='layui-input layui-unselect'   style="width:100px;padding:0 5px;">
-							<option value=''>不按时间</option>
-							<option value='create' <?php if($searchtime=='create'){ ?>selected<?php } ?>>团购时间</option>
-						</select>
-					</div>
-					<div class="layui-input-inline" style="width:280px;">
-						<?php echo tpl_form_field_daterange('time', array('starttime'=>date('Y-m-d H:i', $starttime),'endtime'=>date('Y-m-d H:i', $endtime)),true);;?>
-					</div>
-					<div class="layui-input-inline" >
-						<select name="cate" class='layui-input layui-unselect' style="width:200px;" >
-							<option value="" <?php if( empty($cate) ){ ?>selected<?php } ?> >商品分类</option>
-							<?php foreach($category as $c){ ?>
-							<option value="<?php echo ($c['id']); ?>" <?php if( $cate==$c['id'] ){ ?>selected<?php } ?> ><?php echo ($c['name']); ?></option>
-							<?php } ?>
-						</select>
-					</div>
-					
-					<div class="layui-input-inline">
-						<button class="layui-btn layui-btn-sm" type="submit"> 搜索</button>
-						<button type="submit" name="export" value="1" class="layui-btn layui-btn-sm ">导出</button>
-
-					</div>
-				  </div>
-				</div>
-			</form>
-			<form action="" class="layui-form" lay-filter="example" method="post" >
-       
-				<div class="row">
-					<div class="col-md-12">
-					
-						<div class="page-table-header">
-							
-							<span class="pull-right"> 
-								<a href="<?php echo U('goods/addgoods', array('ok' =>1));?>" class="layui-btn layui-btn-sm"><i class="fa fa-plus"></i> 添加商品</a>
-								<button type="button" class="layui-btn layui-btn-sm exceledit" style="display:none;">excel导入编辑</button>
-							</span>
-							<input type="checkbox" name="checkall" lay-skin="primary" lay-filter="checkboxall">
-							<div class="btn-group">
-								<?php if($is_index){ ?>
-								<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch'  data-href="<?php echo U('goods/change',array('type'=>'is_index_show', 'value' => 1));?>">
-									<i class='icow icow-xiajia3'></i> 首页推荐
-								</button>
-								<?php } ?>
-								
-								<?php if($is_updown){ ?>
-
-									<?php if( defined('ROLE') && ROLE == 'agenter'){ ?>
-
-									<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch' data-href="<?php echo U('goods/change',array('type'=>'grounding','value'=>1));?>">
-											<i class='icow icow-shangjia2'></i> 上架
-									</button>
-
-									<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch'  data-href="<?php echo U('goods/change',array('type'=>'grounding','value'=>0));?>">
-										<i class='icow icow-xiajia3'></i> 下架
-									</button>
-									<?php } ?>
-								<?php } ?>
-								<?php if($is_open_fullreduction == 1 && $is_fullreduce ){ ?>
-								<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch' data-href="<?php echo U('goods/change_cm',array('type'=>'is_take_fullreduction','value'=>1));?>">
-									<i class='icow icow-shangjia2'></i> 参加满减
-								</button>
-								<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch'  data-href="<?php echo U('goods/change_cm',array('type'=>'is_take_fullreduction','value'=>0));?>">
-									<i class='icow icow-xiajia3'></i> 不参加满减
-								</button>
-								<?php } ?>
-								<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch-group'  id="batchcatesbut" >商品分类</button>
-								
-								<?php if( defined('ROLE') && ROLE == 'agenter'){ ?>
-										<?php if($is_distributionsale){ ?>
-											<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch-group'  id="batch_head" >分配售卖团长</button>
-											<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch-group'  id="batch_head_group" >分配售卖团长分组</button>
-										<?php  }else{ ?>
-										
-										<?php } ?>
-								<?php  }else{ ?>
-										<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch-group'  id="batch_head" >分配售卖团长</button>
-										<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch-group'  id="batch_head_group" >分配售卖团长分组</button>
-								<?php } ?>
-								
-								<button class="btn btn-default btn-sm btn-operation" type="button" data-toggle='batch-group'  id="batchtime" >设置活动时间</button>
-								
-								<?php if($is_index){ ?>
-								<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch'  data-href="<?php echo U('goods/change',array('type'=>'is_index_show', 'value' => 0));?>">
-									<i class='icow icow-xiajia3'></i> 取消首页推荐
-								</button>
-								<?php } ?>
-											
-								<?php if($type!='recycle'){ ?>
-								<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch-remove' data-confirm="确认要删除吗,删除后商品将进入回收站?" data-href="<?php echo U('goods/change',array('type'=>'grounding','value'=>3));?>">
-									<i class='icow icow-shanchu1'></i> 删除
-								</button>
-								<?php } ?>
-								<?php if($type=='recycle'){ ?>
-								<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch-remove' data-confirm="确认要彻底删除吗?" data-href="<?php echo U('goods/delete');?>"><i class='icow icow-shanchu1'></i> 彻底删除</button>
-								<?php } ?>
-							</div>
-						</div>
-						<table class="table table-responsive" lay-even lay-skin="line" lay-size="lg">
-						
-							<thead>
-								<tr>
-									<th style="width:25px;">
-										<input type='checkbox' name="checkall" lay-skin="primary" lay-filter="checkboxall"  />
-									</th>
-									<th style="width:80px;text-align:center;">ID</th>
-									<th style="">&nbsp;</th>
-									<th style="width:200px;">商品名称</th>
-									<th style="">活动时间</th>
-									<th style="width: 120px;">价格</th>
-									<th style="width: 80px;">
-										<a href="<?php echo U('goods/index', array('sortby' =>$sortby,'sortfield' => 'seller_count','keyword'=>$keyword,'cate' =>$cate,'searchtime'=>$searchtime,'sort_starttime'=>$starttime,'sort_endtime'=>$endtime, 'type' =>$type, ) );?>" >
-											<span>总销量</span>
-										<span class="layui-table-sort layui-inline" lay-sort="<?php echo ($sortfield == 'seller_count' ? $sortby :''); ?>">
-											<i class="layui-edge layui-table-sort-asc" title="升序"></i>
-											<i class="layui-edge layui-table-sort-desc" title="降序"></i>
-										</span>
-										</a>
-									</th>
-									<th style="width: 120px;">
-										<a href="<?php echo U('goods/index', array('sortby' =>$sortby,'sortfield' => 'total','keyword'=>$keyword,'cate' =>$cate,'searchtime'=>$searchtime,'sort_starttime'=>$starttime,'sort_endtime'=>$endtime, 'type' =>$type, ) );?>" >
-										<span>库存</span>
-										<span class="layui-table-sort layui-inline" lay-sort="<?php echo ($sortfield == 'total' ? $sortby :''); ?>">
-											<i class="layui-edge layui-table-sort-asc" title="升序"></i>
-											<i class="layui-edge layui-table-sort-desc" title="降序"></i>
-										</span>
-										</a>
-									</th>
-									<th style="width: 120px;"> 
-										<a href="<?php echo U('goods/index', array('sortby' =>$sortby,'sortfield' => 'day_salescount','keyword'=>$keyword,'cate' =>$cate,'searchtime'=>$searchtime,'sort_starttime'=>$starttime,'sort_endtime'=>$endtime, 'type' =>$type, ) );?>" >
-										<span>今日销量</span>
-										<span class="layui-table-sort layui-inline" lay-sort="<?php echo ($sortfield == 'day_salescount' ? $sortby :''); ?>" >
-											<i class="layui-edge layui-table-sort-asc" title="升序"></i>
-											<i class="layui-edge layui-table-sort-desc" title="降序"></i>
-										</span>
-										</a>
-									</th>
-									<?php if($is_open_fullreduction == 1 && $is_fullreduce){ ?>
-									<th  style="width:120px;" >是否满减</th>
-									<?php } ?>
-									
-									<?php if($is_updown == 1 ){ ?>
-									<th  style="width:180px;" >是否上架<?php if($is_open_shenhe==1){ ?><br/>是否审核<?php } ?></th>
-									<?php }else{ ?>
-									<th  style="width:130px;" ></th>
-									<?php } ?>
-									
-								<?php if( defined('ROLE') && ROLE == 'agenter'){ ?>
-										<?php if($is_top){ ?>
-											<?php if($index_sort_method == 1){ ?>
-										
-											<?php }else{ ?>
-												<th>置顶</th>
-											<?php } ?>
-										<?php } ?>
-								<?php  }else{ ?>									
-								
-									<?php if($is_top){ ?>
-										<?php if($index_sort_method == 1){ ?>
-										<th>首页排序</th>
-										<?php }else{ ?>
-										<th>置顶</th>
-										<?php } ?>
-									<?php } ?>
-								<?php } ?>
-								
-									<?php if($is_index){ ?>
-										<th>首页推荐</th>
-										<?php } ?>
-									<th style="">操作</th>
-								</tr>
-							</tr>
-							</thead>
-							<tbody>
-							
-							<?php foreach($list as $item){ ?>
-							<tr>
-							<td>
-								<input type='checkbox' name="item_checkbox" data_is_all_sale="<?php echo ($item['is_all_sale']); ?>" class="checkone" lay-skin="primary" value="<?php echo ($item['id']); ?>"/>
-							</td>
-							<td style="text-align:center;">
-								<?php echo ($item['id']); ?>
-							</td>
-							<td>
-								<a href="<?php echo U('goods/edit', array('id' => $item['id'],'goodsfrom'=>$goodsfrom,'page'=>$page));?>">
-									<img src="<?php echo ($item['thumb']); ?>" style="width:72px;height:72px;padding:1px;border:1px solid #efefef;margin: 7px 0"  />
-								</a>
-							</td>
-							<td class='full' >
-								<span>
-									<span style="display: block;width: 100%;">
-										
-									
-										<?php if( $item['is_only_hexiao'] == 1 ){ ?>
-										<span class="text-danger">[核销]</span>
-										<?php } ?>
-										
-										<?php if($isopen_localtown_delivery == 1 ){ ?>
-											<?php if($item['supply_id'] <=0){ ?>
-													<?php if( $item['is_only_distribution'] == 1 ){ ?>
-													<span class="line-text">[同城配送]</span>
-													<?php } ?>
-											<?php }else{ ?>
-													<?php if( $item['is_only_distribution'] == 1 && $supply_is_open_localtown_distribution == 1 ){ ?>
-													<span class="line-text">[同城配送]</span>
-													<?php } ?>
-											<?php } ?>
-										<?php } ?>
-
-
-										<?php if($seckill_is_open == 1){ ?>
-										<?php if( $item['is_seckill'] == 1 ){ ?>
-										<span class="text-danger">[整点秒杀]</span>
-										<?php } ?>
-										<?php } ?>
-
-										<?php if($item['is_new_buy'] == 1){ ?>
-										<span class="line-text">[新人专享]</a>
-										<?php } ?>
-										
-										<?php if($item['is_only_express'] == 1){ ?>
-										<span class="line-text">[仅快递]</a>
-										<?php } ?>
-										
-										<?php if($item['is_spike_buy'] == 1){ ?>
-										<span class="text-danger">[限时秒杀]</a>
-										<?php } ?>
-										
-										<?php if($item['supply_id'] <=0){ ?><span class="text">[自营<?php if( !empty($item['supply_name']) ){ echo ($item['supply_name']); } ?>]</span><?php }else if( !empty($item['supply_name']) ){ ?><span class="text">[<?php echo ($item['supply_name']); ?>]</span><?php } ?>
-										<a href='javascript:;' data-toggle='ajaxEdit' data-href="<?php echo U('goods/change',array('type'=>'goodsname','id'=>$item['id']));?>" >
-							
-										<span class="text-danger"><?php echo ($item['goodsname']); ?></span>
-										</a>
-										
-										
-										
-										<?php if( !empty($item['cate']) ){ ?>
-											<?php foreach($item['cate'] as $g_cate){ ?>
-											<span class="text-danger">[<?php echo isset($category[$g_cate['cate_id']]) ? $category[$g_cate['cate_id']]['name']: '无分类';?>]</span>
-											<?php } ?>
-										<?php  }else{ ?>
-										<span class="text-danger">[无分类]</span>
-										<?php } ?>
-										
-										<br/>
-										<?php if( $item['is_all_sale'] == 1 ){ ?>
-										<span class="text-green">[所有团长<?php echo ($item['head_count']); ?>]</span>
-										<?php }else if( $item['head_count'] >0 ){ ?>
-										<!--<span class="text-green">[部分团长<?php echo ($item['head_count']); ?>]</span>-->
-										<a href="<?php echo U('goods/goods_head',array('id'=>$item['id']));?>" style="color:#428bca;"><span class="text-green">[部分团长可售 <?php echo ($item['head_count']); ?>]</span></a>
-										<?php }else if( $item['head_count'] == 0 ){ ?>
-										<span class="text-green">[无团长0]</span>
-										<?php } ?>
-										
-										
-										
-										
-										
-									</span>
-								</span>
-							</td>
-							<td>
-								<?php echo date("Y-m-d H:i:s",$item['begin_time']);?>
-								   <br/>
-								<?php echo date("Y-m-d H:i:s",$item['end_time']);?>
-								<br/>
-								
-								<?php if($item['grounding']==1){ ?>
-									<?php if($item['end_time'] <= time()){ ?>
-									<span class="text-danger">活动已结束</span>
-									<?php } ?>
-									<?php if( $item['begin_time'] <= time() && $item['end_time'] > time() ){ ?>
-									<span class="text-danger">正在进行中</span>
-									<?php } ?>
-								
-									<?php if( $item['begin_time'] > time() ){ ?>
-									<span class="text-danger">活动未开始</span>
-									<?php } ?>
-								<?php  }else{ ?>
-									
-									<?php if( $item['end_time'] <= time() ){ ?>
-									<span class="text-danger">活动已结束</span>
-									<?php } ?>
-									<?php if( $item['begin_time'] <= time() && $item['end_time'] > time() ){ ?>
-									<span class="text-danger">未上架</span>
-									<?php } ?>
-								
-									<?php if( $item['begin_time'] > time() ){ ?>
-									<span class="text-danger">活动未开始</span>
-									<?php } ?>
-								<?php } ?>
-								
-							</td>
-							<td >&yen;
-								
-								<?php if( $item['hasoption']==1 ){ ?>
-									<?php echo ($item['price_arr']['price']); ?> <?php if( isset($item['price_arr']['max_danprice']) ){ ?>~&yen;<?php echo ($item['price_arr']['max_danprice']); } ?>
-								<?php  }else{ ?>
-									<a href='javascript:;' data-toggle='ajaxEdit' data-href="<?php echo U('goods/change',array('type'=>'price','id'=>$item['id']));?>" >
-										
-									<?php echo ($item['price']); ?>
-									</a>
-							   <?php } ?>
-							</td>
-							<td><?php echo ($item['seller_count']); ?></td>
-							<td>
-								
-								<?php if( $item['hasoption']==1 ){ ?>
-									<?php echo ($item['total']); ?>
-								<?php  }else{ ?>
-									<a href='javascript:;' data-toggle='ajaxEdit' data-href="<?php echo U('goods/change',array('type'=>'total','id'=>$item['id']));?>" >
-							
-										<span class="text-danger"><?php echo ($item['total']); ?></span>
-									</a>
-							   <?php } ?>
-							   <?php if($open_redis_server == 1){ ?>
-							   <br/>
-							   redis库存<?php echo ($item['redis_total']); ?>
-							   <a href="<?php echo U('goods/show_logs', array('goods_id' => $item['id'] ));?>" target="_blank"></a>
-							   <?php } ?>
-							</td>
-							
-							
-							
-							
-							<td><?php echo ($item['day_salescount']); ?></td>
-							
-							<?php if($is_open_fullreduction == 1 && $is_fullreduce){ ?>
-								<td >
-									<?php if($item['supply_type'] == 1){ ?>
-									供应商不参与平台满减
-									<?php }else{ ?>
-									<input type="checkbox" name="" lay-filter="cmwsitch" data-href="<?php echo U('goods/change_cm',array('type'=>'is_take_fullreduction','id'=>$item['id']));?>" <?php if($item['is_take_fullreduction']==1){ ?>checked<?php  }else{ } ?> lay-skin="switch" lay-text="参加|不参加">
-									<?php } ?>
-								</td>
-							<?php } ?>
-								
-							<td>
-								<?php if( $item['grounding']==4 || $item['grounding']==5){ ?>
-								
-									<?php if( defined('ROLE') && ROLE == 'agenter' && $is_open_shenhe == 1){ ?>
-										<?php if($item['grounding']==4){ ?>等待审核<?php  }else{ ?>拒绝审核<?php } ?>
-									<?php  }else{ ?>
-										
-										
-										<?php if($item['grounding']==4){ ?> 
-										
-										<input type="checkbox" name="" lay-filter="engroundingsitch" data-href="<?php echo U('goods/change',array('type'=>'grounding','id'=>$item['id']));?>" <?php if( $item['grounding']==4 ){ }else{ } ?> lay-skin="switch" lay-text="审核通过|审核通过">
-										<input type="checkbox" name="" lay-filter="unengroundingsitch" data-href="<?php echo U('goods/change',array('type'=>'grounding','id'=>$item['id']));?>" <?php if( $item['grounding']==4 ){ }else{ } ?> lay-skin="switch" lay-text="拒绝审核|拒绝审核">
-									
-										<?php } ?>
-										
-										<?php if($item['grounding']==5){ ?> 
-											<input type="checkbox" name="" lay-filter="engroundingsitch" data-href="<?php echo U('goods/change',array('type'=>'grounding','id'=>$item['id']));?>" <?php if( $item['grounding']==4 ){ }else{ } ?> lay-skin="switch" lay-text="审核通过|审核通过">
-											<br/>&nbsp;拒绝审核
-										<?php } ?>
-										
-									<?php } ?>
-								<?php  }else{ ?>
-									<?php if( defined('ROLE') && ROLE == 'agenter' && $is_open_shenhe == 1 && $is_updown == 0){ ?>
-										<?php if($item['grounding']==1){ ?>上架<?php  }else{ ?>下架<?php } ?>
-									<?php  }else{ ?>
-										
-										<input type="checkbox" name="" lay-filter="undowngroundingsitch" data-href="<?php echo U('goods/change',array('type'=>'grounding','id'=>$item['id']));?>" <?php if( $item['grounding']==1 ){ ?>checked<?php  }else{ } ?> lay-skin="switch" lay-text="上架|下架">
-
-									<?php } ?>
-								<?php } ?>
-							</td>
-							
-						<?php if( defined('ROLE') && ROLE == 'agenter'){ ?>
-						
-						<?php if($is_top){ ?>
-								
-								<?php if($index_sort_method == 1){ ?>
-	
-								<?php }else{ ?>
-								<td >
-								
-								<input type="checkbox" name="" lay-filter="istop_showsitch" data-href="<?php echo U('goods/settop',array('type'=>'istop','id'=>$item['id']));?>" <?php if($item['istop']==1){ ?>checked<?php  }else{ } ?> lay-skin="switch" lay-text="置顶|未置顶">
-									
-								</td>
-								<?php } ?>
-							<?php } ?>
-
-						<?php  }else{ ?>						
-						
-							<?php if($is_top){ ?>
-								
-								<?php if($index_sort_method == 1){ ?>
-								<td style="text-align:center;">
-									<a href='javascript:;' data-toggle='ajaxEdit' data-href="<?php echo U('goods/change',array('type'=>'index_sort','id'=>$item['id']));?>" >
-										<span class="text-danger"><?php echo ($item['index_sort']); ?></span>
-									</a>
-								</td>	
-								<?php }else{ ?>
-								<td >
-								
-								<input type="checkbox" name="" lay-filter="istop_showsitch" data-href="<?php echo U('goods/settop',array('type'=>'istop','id'=>$item['id']));?>" <?php if($item['istop']==1){ ?>checked<?php  }else{ } ?> lay-skin="switch" lay-text="置顶|未置顶">
-									
-								</td>
-								<?php } ?>
-							<?php } ?>
-						<?php } ?>
-							
-							<?php if($is_index){ ?>
-							<td >
-								<input type="checkbox" name="" lay-filter="is_index_showsitch" data-href="<?php echo U('goods/change',array('type'=>'is_index_show','id'=>$item['id']));?>" <?php if( $item['is_index_show']==1 ){ ?>checked<?php  }else{ } ?> lay-skin="switch" lay-text="首页推荐|未推荐">
-									
-							</td>
-							<?php } ?>
-							
-								<td  style="overflow:visible;position:relative">
-									
-									<a  class='layui-btn layui-btn-xs' href="<?php echo U('goods/edit', array('id' => $item['id'],'ok'=>1,'page'=>$page));?>"  >
-										<i class="layui-icon layui-icon-edit"></i>编辑
-									</a>
-									
-									<?php if($type!='recycle'){ ?>
-									<a  class='layui-btn layui-btn-xs deldom' href="javascript:;" data-href="<?php echo U('goods/change',array('id' => $item['id'],'type'=>'grounding','value'=>3));?>" data-confirm='确认要删除吗,删除后商品将进入回收站?'>
-										<i class="layui-icon">&#xe640;</i>删除
-									</a>
-									<?php } ?>	
-
-
-									<?php if($type=='recycle'){ ?>
-									<a  class='layui-btn layui-btn-xs deldom' href="javascript:;" data-href="<?php echo U('goods/delete', array('id' => $item['id']));?>" data-confirm='确认要彻底删除吗?'>
-										<i class="layui-icon">&#xe640;</i>彻底删除
-									</a>
-									<?php } ?>									
-									
-									<a href="javascript:;" class="js-clip layui-btn layui-btn-xs" data-url="lionfish_comshop/pages/goods/goodsDetail?id=<?php echo ($item['id']); ?>"><i class="layui-icon">&#xe64c;</i>小程序链接</a>
-									<a  class='layui-btn layui-btn-xs copy' href="javascript:;" data-href="<?php echo U('goods/copy',array('id' => $item['id']));?>" data-confirm='确认复制商品吗?'>
-										<i class="layui-icon">&#xe605;</i>复制新建商品
-									</a>
-								</td>
-							</tr>
-							<?php } ?>
-							</tbody>
-							<tfoot>
-							<tr>
-								<td colspan="7">
-									<div class="page-table-header">
-										<input type="checkbox" name="checkall" lay-skin="primary" lay-filter="checkboxall">
-										<div class="btn-group">
-											<?php if($is_index){ ?>
-											<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch'  data-href="<?php echo U('goods/change',array('type'=>'is_index_show', 'value' => 1));?>">
-												<i class='icow icow-xiajia3'></i> 首页推荐
-											</button>
-											<?php } ?>
-											
-											
-											<?php if($is_updown){ ?>
-											<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch' data-href="<?php echo U('goods/change',array('type'=>'grounding','value'=>1));?>">
-												<i class='icow icow-shangjia2'></i> 上架
-											</button>
-											<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch'  data-href="<?php echo U('goods/change',array('type'=>'grounding','value'=>0));?>">
-												<i class='icow icow-xiajia3'></i> 下架
-											</button>
-											<?php } ?>
-											
-											<?php if($is_open_fullreduction == 1 && $is_fullreduce ){ ?>
-											<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch' data-href="<?php echo U('goods/change_cm',array('type'=>'is_take_fullreduction','value'=>1));?>">
-												<i class='icow icow-shangjia2'></i> 参加满减
-											</button>
-											<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch'  data-href="<?php echo U('goods/change_cm',array('type'=>'is_take_fullreduction','value'=>0));?>">
-												<i class='icow icow-xiajia3'></i> 不参加满减
-											</button>
-											<?php } ?>
-											<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch-group'  id="batchcatesbut2" >商品分类</button>
-											
-											<?php if( defined('ROLE') && ROLE == 'agenter'){ ?>
-												<?php if($is_distributionsale){ ?>
-													<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch-group'  id="batch_head" >分配售卖团长</button>
-													<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch-group'  id="batch_head_group" >分配售卖团长分组</button>
-												<?php  }else{ ?>
-												
-												<?php } ?>
-											<?php  }else{ ?>
-													<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch-group'  id="batch_head" >分配售卖团长</button>
-													<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch-group'  id="batch_head_group" >分配售卖团长分组</button>
-											<?php } ?>
-											
-											<button class="btn btn-default btn-sm btn-operation" type="button" data-toggle='batch-group'  id="batchtime" >设置活动时间</button>
-											
-											<?php if($is_index){ ?>
-											<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch'  data-href="<?php echo U('goods/change',array('type'=>'is_index_show', 'value' => 0));?>">
-												<i class='icow icow-xiajia3'></i> 取消首页推荐
-											</button>
-											<?php } ?>
-											
-											<?php if($type!='recycle'){ ?>
-											<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch-remove' data-confirm="确认要删除吗,删除后商品将进入回收站?" data-href="<?php echo U('goods/change',array('type'=>'grounding','value'=>3));?>">
-												<i class='icow icow-shanchu1'></i> 删除
-											</button>
-											<?php } ?>
-											
-											<?php if($type=='recycle'){ ?>
-											<button class="btn btn-default btn-sm  btn-operation" type="button" data-toggle='batch-remove' data-confirm="确认要彻底删除吗?" data-href="<?php echo U('goods/delete');?>"><i class='icow icow-shanchu1'></i> 彻底删除</button>
-											<?php } ?>
-										</div>
-									</div>
-								</td>
-								<td colspan="6" style="text-align: right">
-									<?php echo ($pager); ?>
-								</td>
-							</tr>
-							</tfoot>
-						</table>
-					</div>
-				</div>
-				
-			</form>
-		</div>
-	</div>
-</div>
-
-
-<div id="batchcates_html" style="display:none;">
-	<div class="layui-card">
-	  <div class="layui-card-body">
-			<div class="modal-body" >
-                <div class="layui-form-item">
-                    <label class="layui-form-label"></label>
-                    <div class="layui-input-block">
-                        <label class="radio-inline"><input type="radio"  name="iscover" value="0" <?php if($iscover ==0){ ?> checked="checked"<?php } ?> /> 保留原有分类</label>
-                        <label class="radio-inline"><input type="radio"  name="iscover" value="1" <?php if($iscover ==1){ ?> checked="checked"<?php } ?> /> 覆盖原有分类</label>
-					</div>
-                </div>
-                <div class="layui-form-item">
-                    <label class="layui-form-label">商品分类</label>
-                    <div class="layui-input-block">
-						<select id="cates2" lay-verify="cates_sel" name='cates' class="form-control " style='' >
-							
-							<?php foreach($category as $c){ ?>
-							<option value="<?php echo ($c['id']); ?>" <?php if(is_array($cates) && in_array($c['id'],$cates)){ ?>selected<?php } ?> ><?php echo ($c['name']); ?></option>
-							<?php } ?>
-						</select>
-                    </div>
-                </div>
-				<div class="layui-form-item">
-					<div class="layui-input-block">
-						<button class="btn btn-primary modal-fenlei">确认</button>
-						<button class="btn btn-default cancle" >取消</button>
-					</div>
-				</div>
-            </div>
-	  </div>
-	</div>
-</div>
-
-
-<div id="batchcates_headgroup_html" style="display:none;">
-	<div class="layui-card">
-	  <div class="layui-card-body">
-			<div class="modal-body" >
-                
-                <div class="layui-form-item">
-                    <label class="layui-form-label">团长分组</label>
-                    <div class="layui-input-block">
-						<select id="group_heads" lay-verify="group_heads" name='group_heads' class="form-control " style='' >
-							
-							<?php foreach($group_list as $c){ ?>
-							<option value="<?php echo ($c['id']); ?>" <?php if(is_array($cates) && in_array($c['id'],$cates)){ ?>selected<?php } ?> ><?php echo ($c['groupname']); ?></option>
-							<?php } ?>
-						</select>
-                    </div>
-                </div>
-				<div class="layui-form-item">
-                    <label class="layui-form-label">仅这个团长分组可售</label>
-                    <div class="layui-input-block">
-						<label><input type="checkbox" class="is_cancle_old2" id="is_cancle_old2" name="is_cancle_old2" style="vertical-align: text-bottom;">
-							<div class="btn-group" style="color:#666;">
-								备注:会取消以往所有分配
-							</div>
-						</label>
-						<br/>
-						<label><input type="checkbox" class="is_cancle_allhead2" id="is_cancle_allhead2" name="is_cancle_allhead2" style="vertical-align: text-bottom;">
-							<div class="btn-group" style="color:#666;">
-								取消商品 “所有团长可售”
-							</div>
-							<div style="color: #999;font-size: 12px;display: none;" id="all_headgroup_tip">所有商品中包含“所有团长可售”商品,建议取消以免设置失效</div>
-						</label>
-                    </div>
-                </div>
-				
-				<div class="layui-form-item">
-					<div class="layui-input-block">
-						<button class="btn btn-primary modal-group-head">确认</button>
-						<button class="btn btn-default cancle" >取消</button>
-					</div>
-				</div>
-            </div>
-	  </div>
-	</div>
-</div>
-
-
-<div id="batchheads" style="z-index: 999;display: none;position: fixed;top: 0;left: 0;right: 0;bottom: 0;background: rgba(0,0,0,0.5)" class="form-horizontal form-validate batchcates"  enctype="multipart/form-data">
-    <div class="modal-dialog" style="position: absolute;margin-top: -300px">
-        <div class="modal-content">
-            <div class="modal-header" style="padding:5px;">
-                <button data-dismiss="modal" class="close" type="button">×</button>
-                <h4 class="modal-title">选取团长</h4>
-            </div>
-            <div class="modal-body" style="height:600px">
-            	<div class="form-group">
-            	<label class="col-sm-2 control-label">社区位置</label>
-                    <div class="col-sm-10 col-xs-12">
-                        <p>
-			                <select id="sel-provance" name="province_id" onChange="selectCity();" class="select form-control" style="width:130px;display:inline;">
-			                    <option value="" selected="true">省/直辖市</option>
-			                </select>
-			                <select id="sel-city" name="city_id" onChange="selectcounty(0)" class="select form-control" style="width:135px;display:inline;">
-			                    <option value="" selected="true">请选择</option>
-			                </select>
-			                <select id="sel-area" name="area_id" onChange="selectstreet(0)" class="select form-control" style="width:130px;display:inline;">
-			                    <option value="" selected="true">请选择</option>
-			                </select>
-			                 <select id="sel-street" name="country_id" class="select form-control" style="width:130px;display:inline;">
-			                    <option value="" selected="true">请选择</option>
-			                </select>
-			            </p>
-                    </div>
-                </div>
-            	<div class="form-group">
-                    <label class="col-sm-2 control-label">团长名称</label>
-                    <div class="col-sm-10 col-xs-12">
-                        <div class="input-group">
-	                        <input type="text" class="form-control" name="keyword" id="supply_id_input" placeholder="团长名称/团长手机号/社区地址">
-			            	<span class="input-group-btn">
-			            		<button type="button" class="btn btn-default" onclick="search_heads()">搜索</button>
-			            	</span>
-		            	</div>
-                    </div>
-                </div>
-                
-                <div class="form-group">
-                    <div class="col-sm-1 control-label">
-                    
-                    </div>
-                    <div class="col-sm-10 col-xs-12">
-                       	<div class="page-table-header">
-		                    <input type="checkbox" class="check_heads_all">
-		                    <div class="btn-group">
-		                    	全选/反选
-		                    </div>
-							
-							<br/>
-							<label><input type="checkbox" class="is_cancle_old" id="is_cancle_old" style="vertical-align: text-bottom;">
-							<div class="btn-group" style="color:#666;">
-		                    	同时取消以前所有分配
-		                    </div>
-							</label>
-							&nbsp;&nbsp;&nbsp;&nbsp;
-							
-							<label><input type="checkbox" class="is_cancle_allhead" id="is_cancle_allhead" style="vertical-align: text-bottom;">
-							<div class="btn-group" style="color:#666;">
-		                    	同时取消商品 “所有团长可售”
-		                    </div>
-							</label>
-							
-							
-		                </div>
-						<div class="all_heads_tip" style="display: none;">
-							<span style="color: #999;">所有商品中包含“所有团长可售”商品,建议取消以免设置失效</span>
-						</div>
-                    </div>
-                </div>
-                
-                <div class="row">
-                	<label class="col-sm-1 control-label"></label>
-                	<div class="col-sm-11 col-xs-12">
-	                	<div class="content" style="padding-top:5px;" data-name="supply_id">
-	                		<div style="max-height:410px;overflow:auto;" id="batchheads_content">
-							
-							</div>
-							<div class="" id="batchheads_page">
-								
-							</div>
-						</div>
-					</div>	
-                </div>
-            	
-                
-            </div>
-            <div class="modal-footer">
-                <button class="btn btn-primary model_heads">确认</button>
-                <button class="btn btn-default" >取消</button>
-            </div>
-        </div>
-    </div>
-</div>
-
-
-<div id="excel_goods_edit" style="display:none;">
-	<form action="<?php echo U('goods/excel_goodslist_edit');?>" method="post"  enctype="multipart/form-data" >
-		<div class="layui-card">
-			<div class="layui-card-body">
-				<div class="modal-body" >
-					<div class="layui-form-item">
-						<label class="layui-form-label">excel文件</label>
-						<div class="layui-input-block">
-							<input type="file" name="excel">
-						</div>
-					</div>
-
-				</div>
-			</div>
-		</div>
-	</form>
-</div>
-
-<div id="batch_time" style="z-index: 8;display: none;position: fixed;top: 0;left: 0;right: 0;bottom: 0;background: rgba(0,0,0,0.5)" class="form-horizontal form-validate batchtime"  enctype="multipart/form-data">
-    <div class="modal-dialog" style="position: absolute;margin-top: -190px">
-        <div class="modal-content">
-            <div class="modal-header">
-                <button data-dismiss="modal" class="close" type="button">×</button>
-                <h4 class="modal-title">设置活动时间</h4>
-            </div>
-            <div class="modal-body" style="height:270px">
-                <div class="form-group">
-                    <label class="col-sm-2 control-label">活动时间</label>
-                    <div class="col-sm-8 col-xs-12">
-                        <span class="input-group-btn">
-                            <?php echo tpl_form_field_daterange('setsametime', array('starttime'=>date('Y-m-d H:i', $starttime),'endtime'=>date('Y-m-d H:i', $endtime)),true);;?>
-                        </span>
-                    </div>
-                </div>
-            </div>
-            <div class="modal-footer">
-                <button class="btn btn-primary modal-time">确认</button>
-                <button class="btn btn-default cancle" >取消</button>
-            </div>
-        </div>
-    </div>
-</div>
-
-
-
-
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-
-	$('.exceledit').click(function(){
-		//页面层
-		layer.open({
-			type: 1,
-			title:'excel导入编辑商品',
-			area: ['520px', '240px'], //宽高
-			content: $('#excel_goods_edit'),
-			btn:['提交','取消'],
-			btn1:function(){
-				$('#excel_goods_edit').find('form').submit();
-			}
-		});
-	})
-  
-	$('.deldom').click(function(){
-		var s_url = $(this).attr('data-href');
-		layer.confirm($(this).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						success:function(info){
-						
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-	})
-
-//copy_goods
-	$('.copy').click(function(){
-		var s_url = $(this).attr('data-href');
-		index = layer.confirm($(this).attr('data-confirm'), function(index){
-			layer.close(index);
-			$.ajax({
-				url:s_url,
-				type:'post',
-				dataType:'json',
-				success:function(res){
-					layer.msg('复制成功',{
-						time:1000
-						,end:function(){
-							location.href = res.url;
-						}
-
-					});
-
-				},error:function(XMLHttpRequest, textStatus, errorThrown){
-					alert(XMLHttpRequest.status);
-					alert(XMLHttpRequest.readyState);
-					alert(textStatus);
-				}
-			})
-		});
-	})
-
-	$('.btn-operation').click(function(){
-		var ids_arr = [];
-		var obj = $(this);
-		var s_toggle = $(this).attr('data-toggle');
-		var s_url = $(this).attr('data-href');
-		
-		
-		$("input[name=item_checkbox]").each(function() {
-			
-			if( $(this).prop('checked') )
-			{
-				ids_arr.push( $(this).val() );
-			}
-		})
-		if(ids_arr.length < 1)
-		{
-			layer.msg('请选择要操作的内容');
-			return false;
-		}else{
-			var can_sub = true;
-			if( s_toggle == 'batch-remove' )
-			{
-				can_sub = false;
-				
-				layer.confirm($(obj).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						data:{ids:ids_arr},
-						success:function(info){
-						
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								});
-								
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-			}else{
-				$.ajax({
-					url:s_url,
-					type:'post',
-					dataType:'json',
-					data:{ids:ids_arr},
-					success:function(info){
-					
-						if(info.status == 0)
-						{
-							layer.msg(info.result.message,{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								});
-						}else if(info.status == 1){
-							var go_url = location.href;
-							if( info.result.hasOwnProperty("url") )
-							{
-								go_url = info.result.url;
-							}
-							
-							layer.msg('操作成功',{time: 1000,
-								end:function(){
-									location.href = info.result.url;
-								}
-							}); 
-							
-						}
-					}
-				})
-			}
-		}
-	})
-
-	
-	  
-	form.on('switch(cmwsitch)', function(data){
-		  
-		  var s_url = $(this).attr('data-href')
-		  
-		  var is_take_fullreduction = 1;
-		  if(data.elem.checked)
-		  {
-			is_take_fullreduction = 1;
-		  }else{
-			is_take_fullreduction = 0;
-		  }
-		  
-		  $.ajax({
-				url:s_url,
-				type:'post',
-				dataType:'json',
-				data:{value:is_take_fullreduction},
-				success:function(info){
-				
-					if(info.status == 0)
-					{
-						layer.msg(info.result.message,{icon: 1,time: 2000});
-					}else if(info.status == 1){
-						var go_url = location.href;
-						if( info.result.hasOwnProperty("url") )
-						{
-							go_url = info.result.url;
-						}
-						
-						layer.msg('操作成功',{time: 1000,
-							end:function(){
-								location.href = info.result.url;
-							}
-						}); 
-					}
-				}
-			})
-		});
-
-		form.on('switch(groundingsitch)', function(data){
-		  
-		  var s_url = $(this).attr('data-href')
-		  
-		  var grounding = 1;
-		  if(data.elem.checked)
-		  {
-			grounding = 1;
-		  }else{
-			grounding = 0;
-		  }
-		  
-		  $.ajax({
-				url:s_url,
-				type:'post',
-				dataType:'json',
-				data:{value:grounding},
-				success:function(info){
-				
-					if(info.status == 0)
-					{
-						layer.msg(info.result.message,{icon: 1,time: 2000});
-					}else if(info.status == 1){
-						var go_url = location.href;
-						if( info.result.hasOwnProperty("url") )
-						{
-							go_url = info.result.url;
-						}
-						
-						layer.msg('操作成功',{time: 1000,
-							end:function(){
-								location.href = info.result.url;
-							}
-						}); 
-					}
-				}
-			})
-		});
-
-
-			
-		
-	form.on('switch(unengroundingsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var grounding = 1;
-	  if(data.elem.checked)
-	  {
-		grounding = 5;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{value:grounding},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	});
-	
-	form.on('switch(engroundingsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var grounding = 1;
-	  if(data.elem.checked)
-	  {
-		grounding = 1;
-	  }else{
-		grounding = 5;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{value:grounding},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	});
-
-
-	form.on('switch(undowngroundingsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var grounding = 1;
-	  if(data.elem.checked)
-	  {
-		grounding = 1;
-	  }else{
-		grounding = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{value:grounding},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-					
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	});
-
-  
-form.on('switch(is_index_showsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var is_index_show = 1;
-	  if(data.elem.checked)
-	  {
-		is_index_show = 1;
-	  }else{
-		is_index_show = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{value:is_index_show},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	});
-
-   
-
-	form.on('switch(istop_showsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var istop = 1;
-	  if(data.elem.checked)
-	  {
-		istop = 1;
-	  }else{
-		istop = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{value:istop},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	});
-	
-	form.on('switch(restwsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var rest = 1;
-	  if(data.elem.checked)
-	  {
-		rest = 1;
-	  }else{
-		rest = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{rest:rest},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	}); 
-	form.on('switch(enablewsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var enable = 1;
-	  if(data.elem.checked)
-	  {
-		enable = 1;
-	  }else{
-		enable = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{enable:enable},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	}); 
-	
-	form.on('switch(statewsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var state = 1;
-	  if(data.elem.checked)
-	  {
-		state = 1;
-	  }else{
-		state = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{state:state},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	});  
-	form.on('checkbox(checkboxall)', function(data){
-	  
-	  if(data.elem.checked)
-	  {
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", true);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", true);
-		});
-		
-	  }else{
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", false);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", false);
-		});
-	  }
-	  
-	  form.render('checkbox');
-	});
-  
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-})
-
-</script>  
-<script type="text/javascript" src="/static/js/dist/area/cascade.js"></script>
-<script>
-var heads_page = 1;
-
-	$("body").delegate("#batchheads_page .pagination a","click",function(){
-		heads_page = $(this).attr('page');
-		search_heads_do();
-	})
-	function search_heads()
-    {
-		heads_page = 1;
-		search_heads_do();
-	}
-    function search_heads_do()
-    {
-        var province_name = $('#sel-provance').val();
-        var city_name = $('#sel-city').val();
-        var area_name = $('#sel-area').val();
-        var country_name = $('#sel-street').val();
-        var keyword = $('#supply_id_input').val();
-        
-    	$.post("<?php echo U('communityhead/query_head');?>",{page:heads_page,'province_name':province_name,'city_name': city_name,'area_name':area_name,'country_name':country_name,'keyword':keyword}, 
-    	    function (ret) {
-	            if (ret.status == 1) {
-	                $('#batchheads_content').html(ret.html);
-					$('#batchheads_page').html(ret.page_html);
-	                return
-	            } else {
-	                layer.msg('修改失败');
-	            }
-	        }, 'json');
-    }
-    //显示批量分类
-     $('#batchcatesbut').click(function () {
-      //  var index = layer.load(1);
-		var index = layer.open({
-		  type: 1,
-		  area: '500px',
-		  title: '选取分类'
-		  ,content: $('#batchcates_html').html(),
-		  yes: function(index, layero){
-			//do something
-			layer.close(index); //如果设定了yes回调,需进行手工关闭
-		  }
-		}); 
-    })
-	
-	 $('#batch_head_group').click(function () {
-      //  var index = layer.load(1);
-		var index = layer.open({
-		  type: 1,
-		  area: '600px',
-		  title: '选取团长分组'
-		  ,content: $('#batchcates_headgroup_html').html(),
-		  yes: function(index, layero){
-			//do something
-			layer.close(index); //如果设定了yes回调,需进行手工关闭
-		  }
-		});
-    })
-	
-	$('#batch_head_group2').click(function () {
-      //  var index = layer.load(1);
-		var index = layer.open({
-		  type: 1,
-		  area: '600px',
-		  title: '选取团长分组'
-		  ,content: $('#batchcates_headgroup_html').html(),
-		  yes: function(index, layero){
-			//do something
-			layer.close(index); //如果设定了yes回调,需进行手工关闭
-		  }
-		}); 
-    })
-	
-   
-    $('.check_heads_all').click(function(){
-    	//head_id
-    	if($(this).is(':checked')){
-    		$('.head_id').prop('checked',true);
-    	}else{
-    		$('.head_id').prop('checked',false);
-    	}
-    })
-    $('#batch_head,#batch_head2').click(function(){
-    	
-    	cascdeInit("1","1","","","","");
-    	search_heads_do();
-		
-		
-		var offs_lf = ( $(window).width() -720 )/2;
-		var offs_ht = ( $(window).height() -690 )/2;
-		
-		
-		$('#batchheads .modal-dialog').css('top',offs_ht+'px');
-		$('#batchheads .modal-dialog').css('margin-top','0px');
-		
-		$('#batchheads .modal-dialog').css('left',offs_lf+'px');
-		$('#batchheads .modal-dialog').css('margin-left','0px');
-		
-    	$('#batchheads').show();
-
-		var is_tip_notice = 0;
-		var selected_checkboxs = $('.table-responsive tbody tr td:first-child [type="checkbox"]:checked');
-		var goodsids = selected_checkboxs.map(function () {
-			if( $(this).attr('data_is_all_sale') == 1 )
-			{
-				is_tip_notice = 1;
-			}
-			return $(this).val()
-		}).get();
-		if(is_tip_notice == 1){
-			$('#batchheads .all_heads_tip').show();
-		}else{
-			$('#batchheads .all_heads_tip').hide();
-		}
-    })
-    
-    
-    
-    $('#batchcatesbut2').click(function () {
-        var index = layer.open({
-		  type: 1,
-		  area: '500px',
-		  title: '选取分类'
-		  ,content: $('#batchcates_html').html(),
-		  yes: function(index, layero){
-			//do something
-			layer.close(index); //如果设定了yes回调,需进行手工关闭
-		  }
-		}); 
-    })
-
-    //关闭批量分类
-    $('.modal-header .close').click(function () {
-        $('#batchcates').hide();
-        $('#batchheads').hide();
-        $('#batch_time').hide();
-    })
-
-    // 取消批量分类
-    $('.modal-footer .btn.btn-default').click(function () {
-    	$('#batchcates').hide();
-        $('#batchheads').hide();
-        $('#batch_time').hide();
-    })
-    $('.model_heads').click(function(){
-		var head_id_arr = [];
-		$('.head_id').each(function(){
-			if($(this).is(':checked')) {
-				head_id_arr.push( $(this).val() )
-			}
-		})
-		
-		//modal-group-head  
-		var is_clear_old = 0;
-		
-		if( $('#is_cancle_old').is(':checked') )
-		{
-			is_clear_old = 1;
-		}
-		
-		var is_cancle_allhead2 = 0;
-		
-		if( $('#is_cancle_allhead').is(':checked') )
-		{
-			is_cancle_allhead2 = 1;
-		}
-		
-		//is_cancle_allhead2
-		
-		
-		if(head_id_arr.length > 0)
-		{
-			var is_tip_notice = 0;
-			
-			var selected_checkboxs = $('.table-responsive tbody tr td:first-child [type="checkbox"]:checked');
-	        var goodsids = selected_checkboxs.map(function () {
-	        	if( $(this).attr('data_is_all_sale') == 1 )
-	        	{
-	        		is_tip_notice = 1;	
-	        	}
-	            return $(this).val()
-	        }).get();
-	        
-	        if(is_tip_notice  == 1)
-	        {
-	        	layer.confirm('分配售卖团中的商品中有部分商品开启了“<span style="color:red;">所有团长可售</span>”,请确认是否已经取消了“所有团长可售”,未取消的情况下部分商品分配设置可能无效!', function(index){
-	        		$.post("<?php echo U('goods/ajax_batchheads');?>",{'goodsids':goodsids,'head_id_arr': head_id_arr,'is_cancle_allhead':is_cancle_allhead2,'is_clear_old':is_clear_old}, function (ret) {
-	    	            if (ret.status == 1) {
-	    	                $('#batchheads').hide();
-	    	               layer.msg('分配成功', {
-	    					  time: 1000
-	    					}, function(){
-	    					  window.location.reload();
-	    					}); 
-	    					
-	    	                return
-	    	            } else {
-	    	                layer.msg('修改失败');
-	    	            }
-	    	        }, 'json');
-	        	});
-	        }else{
-	        	
-	        	$.post("<?php echo U('goods/ajax_batchheads');?>",{'goodsids':goodsids,'head_id_arr': head_id_arr,'is_cancle_allhead':is_cancle_allhead2,'is_clear_old':is_clear_old}, function (ret) {
-		            if (ret.status == 1) {
-		                $('#batchheads').hide();
-		               layer.msg('分配成功', {
-						  time: 1000
-						}, function(){
-						  window.location.reload();
-						}); 
-						
-		                return
-		            } else {
-		                layer.msg('修改失败');
-		            }
-		        }, 'json');
-	        }
-	        
-			
-		}else{
-			layer.msg('请选择团长');
-		}
-    })
-	//确认
-	var cates2 = 0;
-	$("body").delegate("#cates2","click",function(){
-	
-		cates2 =  $(this).val() ;
-	})
-	
-	var group_heads2 = 'default';
-	$("body").delegate("#group_heads","click",function(){
-		group_heads2 =  $(this).val() ;
-	})
-   
-
-   $("body").delegate(".cancle","click",function(){
-		layer.closeAll();
-	})
-   
-	
-   
-	$("body").delegate(".modal-group-head","click",function(){
-	
-		var group_heads=$('#group_heads').val();
-		if(group_heads2 != 'default')
-		{
-			group_heads = group_heads2;
-		}
-		var is_tip_notice = 0;
-        var selected_checkboxs = $('.table-responsive tbody tr td:first-child [type="checkbox"]:checked');
-        var goodsids = selected_checkboxs.map(function () {
-			if( $(this).attr('data_is_all_sale') == 1 )
-			{
-				is_tip_notice = 1;
-			}
-            return $(this).val()
-        }).get();
-		
-		if(goodsids.length <=0 )
-		{
-			layer.msg('请先选择商品');
-			return false;
-		}
-		
-		
-		var is_clear_old = 0;
-		
-		$('.is_cancle_old2').each(function(){
-			if( $(this).is(':checked') )
-			{
-				is_clear_old = 1;
-			}
-		})
-		
-		var is_cancle_allhead = 0;
-		
-		$('.is_cancle_allhead2').each(function(){
-			if( $(this).is(':checked') )
-			{
-				is_cancle_allhead = 1;
-			}
-		})
-		
-        var iscover=$('input[name="iscover"]:checked').val();
-        if(is_tip_notice == 1){
-			layer.confirm('分配售卖团长分组中的商品中有部分商品开启了“<span style="color:red;">所有团长可售</span>”,请确认是否已经取消了“所有团长可售”,未取消的情况下部分商品分配设置可能无效!', function(index){
-				$.post("<?php echo U('goods/ajax_batchcates_headgroup');?>",{'goodsids':goodsids,'groupid': group_heads,'is_cancle_allhead':is_cancle_allhead,'is_clear_old' : is_clear_old }, function (ret) {
-					if (ret.status == 1) {
-
-						layer.msg('分配成功', {
-							time: 1000
-						}, function(){
-							window.location.reload();
-						});
-
-						return
-					} else {
-						layer.msg('分配失败');
-					}
-				}, 'json');
-			});
-		}else{
-			$.post("<?php echo U('goods/ajax_batchcates_headgroup');?>",{'goodsids':goodsids,'groupid': group_heads,'is_cancle_allhead':is_cancle_allhead,'is_clear_old' : is_clear_old }, function (ret) {
-				if (ret.status == 1) {
-
-					layer.msg('分配成功', {
-						time: 1000
-					}, function(){
-						window.location.reload();
-					});
-
-					return
-				} else {
-					layer.msg('分配失败');
-				}
-			}, 'json');
-		}
-    })
-	
-	$('.layui-table-sort').click(function(){
-		$(this).attr('lay-sort','asc');
-	})
-	
-	$("body").delegate(".modal-fenlei","click",function(){
-	
-		var cates=$('#cates2').val();
-		if(cates2 != 0)
-		{
-			cates = cates2;
-		}
-		
-		
-        var selected_checkboxs = $('.table-responsive tbody tr td:first-child [type="checkbox"]:checked');
-        var goodsids = selected_checkboxs.map(function () {
-            return $(this).val()
-        }).get();
-		//id="cates"
-        var iscover=$('input[name="iscover"]:checked').val();
-        $.post("<?php echo U('goods/ajax_batchcates');?>",{'goodsids':goodsids,'cates': cates,'iscover':iscover}, function (ret) {
-            if (ret.status == 1) {
-                $('#batchcates').hide();
-				
-				layer.msg('修改成功', {
-				  time: 1000
-				}, function(){
-				  window.location.reload();
-				});   
-       
-                return
-            } else {
-                layer.msg('修改失败');
-            }
-        }, 'json');
-    })
-	//----
-
-    //显示时间设置
-    $('#batchtime,#batchtime2').click(function () {
-        
-		var offs_lf = ( $(window).width() -720 )/2;
-		var offs_ht = ( $(window).height() -290 )/2;
-		
-		$('#batch_time .modal-dialog').css('top',offs_ht+'px');
-		$('#batch_time .modal-dialog').css('margin-top','0px');
-		
-		$('#batch_time .modal-dialog').css('left',offs_lf+'px');
-		$('#batch_time .modal-dialog').css('margin-left','0px');
-		
-        $('#batch_time').show();
-    })
-
-    $('.modal-time').click(function () {
-        var selected_checkboxs = $('.table-responsive tbody tr td:first-child [type="checkbox"]:checked');
-        var goodsids = selected_checkboxs.map(function () {
-            return $(this).val()
-        }).get();
-
-        var begin_time=$('#batch_time input[name="setsametime[start]"]').val();
-        var end_time=$('#batch_time input[name="setsametime[end]"]').val();
-        $.post("<?php echo U('goods/ajax_batchtime');?>",{'goodsids':goodsids,'begin_time': begin_time,'end_time':end_time}, function (ret) {
-            if (ret.status == 1) {
-                $('#batch_time').hide();
-                layer.msg('设置成功');
-                window.location.reload();
-                return
-            } else {
-                layer.msg('设置失败');
-            }
-        }, 'json');
-    })
-	
-	$(document).on("click", '[data-toggle="ajaxEdit"]', function(e) {
-		var obj = $(this),
-			url = obj.data('href') || obj.attr('href'),
-			data = obj.data('set') || {},
-			html = $.trim(obj.text()),
-			required = obj.data('required') || true,
-			edit = obj.data('edit') || 'input';
-		var oldval = $.trim($(this).text());
-		e.preventDefault();
-		submit = function() {
-			e.preventDefault();
-			var val = $.trim(input.val());
-			if (required) {
-				if (val == '') {
-					 layer.msg(tip.lang.empty);
-					return
-				}
-			}
-			if (val == html) {
-				input.remove(), obj.html(val).show();
-				return
-			}
-			if (url) {
-				$.post(url, {
-					value: val
-				}, function(ret) {
-					ret = eval("(" + ret + ")");
-					if (ret.status == 1) {
-						obj.html(val).show()
-						input.remove();
-						location.reload();
-					}else if(ret.status == 3 ){
-						layer.msg('输入错误,请输入正确的数字', {icon: 2,time: 2000 }, function(){
-							location.reload();
-						}); 
-						 
-					} else {
-						 layer.msg(ret.result.message, ret.result.url)
-						 input.remove();
-						 location.reload();
-					}
-				}).fail(function() {
-					input.remove(),  layer.msg(tip.lang.exception)
-				})
-			} else {
-				input.remove();
-				obj.html(val).show()
-			}
-			obj.trigger('valueChange', [val, oldval])
-		}, obj.hide().html('<i class="fa fa-spinner fa-spin"></i>');
-		var input = $('<input type="text" class="form-control input-sm" style="width: 80%;display: inline;" />');
-		if (edit == 'textarea') {
-			input = $('<textarea type="text" class="form-control" style="resize:none" rows=3 ></textarea>')
-		}
-		obj.after(input);
-		input.val(html).select().blur(function() {
-			submit(input)
-		}).keypress(function(e) {
-			if (e.which == 13) {
-				submit(input)
-			}
-		})
-	})
-</script>
-</body>

+ 0 - 465
Runtime/Cache/Seller/d850cab4fec596ceee6fc743b577be20.php

@@ -1,465 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-	window.sysinfo = {
-	<?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-	
-	<?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-	
-	'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-	
-	'siteroot': '<?php echo ($_W['siteroot']); ?>',
-			'siteurl': '<?php echo ($_W['siteurl']); ?>',
-			'attachurl': '<?php echo ($_W['attachurl']); ?>',
-			'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-			'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-			'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-	'cookie' : {'pre': ''},
-	'account' : <?php echo json_encode($_W['account']);?>,
-	};
-</script>
-
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-<link href="/static/css/snailfish.css" rel="stylesheet">
-<style>
-    tbody tr td{
-        position: relative;
-    }
-    tbody tr  .icow-weibiaoti--{
-        visibility: hidden;
-        display: inline-block;
-        color: #fff;
-        height:18px;
-        width:18px;
-        background: #e0e0e0;
-        text-align: center;
-        line-height: 18px;
-        vertical-align: middle;
-    }
-    tbody tr:hover .icow-weibiaoti--{
-        visibility: visible;
-    }
-    tbody tr  .icow-weibiaoti--.hidden{
-        visibility: hidden !important;
-    }
-    .full .icow-weibiaoti--{
-        margin-left:10px;
-    }
-    .full>span{
-        display: -webkit-box;
-        display: -webkit-flex;
-        display: -ms-flexbox;
-        display: flex;
-        vertical-align: middle;
-        align-items: center;
-    }
-    tbody tr .label{
-        margin: 5px 0;
-    }
-    .goods_attribute a{
-        cursor: pointer;
-    }
-    .newgoodsflag{
-        width: 22px;height: 16px;
-        background-color: #ff0000;
-        color: #fff;
-        text-align: center;
-        position: absolute;
-        bottom: 70px;
-        left: 57px;
-        font-size: 12px;
-    }
-	.a{cursor: pointer;}
-</style>
-</head>
-<body layadmin-themealias="default">
-
-<table id="demo" lay-filter="test"></table>
-
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">团长等级</span></div>
-		<div class="layui-card-body" style="padding:15px;">
-			
-			<form action="" class="layui-form" lay-filter="example" method="post" >
-       
-				<div class="row">
-					<div class="col-md-12">
-						<div class="page-table-header">
-							<span class="pull-right"> 
-								<a  href="javascript:;" data-href="<?php echo U('communityhead/addlevel' , array('ok' => 1));?>" class="layui-btn layui-btn-sm ajaxModal"><i class="fa fa-plus"></i> 添加新等级</a>
-								
-							</span>
-							
-						</div>
-						<table class="table table-responsive" lay-even lay-skin="line" lay-size="lg">
-							<thead>
-								 <tr>
-									<th style='width:160px;'>等级名称</th>
-									
-									<?php if(!empty($community_money_type) && $community_money_type ==1){ ?>
-									 <th>团长提成金额</th>
-									<?php }else{ ?>
-								    <th>团长提成比例</th>
-									<?php } ?>
-								   
-									<th style="display:none;">升级条件</th>
-									<th style="width: 265px;">操作</th>
-								</tr>
-							</thead>
-							<tbody>
-								<?php foreach( $list as $row ){ ?>
-								<tr <?php if( $row['id']=='default'){ ?>style='background:#f2f2f2'<?php } ?>>
-									<td><?php echo ($row['levelname']); if( $row['id']=='default'){ ?>【默认等级】<?php } ?></td>
-									
-									<?php if(!empty($community_money_type) && $community_money_type ==1){ ?>
-									<td><?php echo round((float)$row['commission'],2);?>元</td>
-									<?php }else{ ?>
-									<td><?php echo round((float)$row['commission'],2);?>%</td>
-									<?php } ?>
-									
-									<td style="display:none;">	
-										<?php if( $row['id']!='default'){ ?>
-											<?php if( $row['ordermoney']>0){ ?>分销订单金额满 <?php echo ($row['ordermoney']); ?> 元 <?php  }else{ ?>不自动升级<?php } ?>
-										<?php  }else{ ?>
-										默认等级
-										<?php } ?>
-									</td>
-									<td>
-										<a  class='layui-btn layui-btn-xs ajaxModal' href="javascript:;" data-href="<?php echo U('communityhead/editlevel', array('id' => $row['id']));?>"  >
-											<i class="layui-icon layui-icon-edit"></i>编辑
-										</a>
-										<?php if( $row['id']!='default'){ ?>
-											<a  class='layui-btn layui-btn-xs deldom'  href="javascript:;" data-href="<?php echo U('communityhead/deletelevel', array('id' => $row['id']));?>" data-confirm='<p >删除等级可能会对已设置的商品独立团长提成比例产生影响,确认删除?</p><br /><p style="color:red;">该等级涉及的所有团长都会变成默认等级</p>'>
-												<i class="layui-icon">&#xe640;</i>删除
-											</a>
-										<?php } ?>
-									</td>
-								</tr>
-								<?php } ?>
-							</tbody>
-							<tfoot>
-							
-							</tfoot>
-						</table>
-					</div>
-				</div>
-				
-			</form>
-		</div>
-	</div>
-</div>
-
-
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  
-  
-	$('.deldom').click(function(){
-		var s_url = $(this).attr('data-href');
-		layer.confirm($(this).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						success:function(info){
-						
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-	})
-	
-	$('.btn-operation').click(function(){
-		var ids_arr = [];
-		var obj = $(this);
-		var s_toggle = $(this).attr('data-toggle');
-		var s_url = $(this).attr('data-href');
-		
-		
-		$("input[name=item_checkbox]").each(function() {
-			
-			if( $(this).prop('checked') )
-			{
-				ids_arr.push( $(this).val() );
-			}
-		})
-		if(ids_arr.length < 1)
-		{
-			layer.msg('请选择要操作的内容');
-		}else{
-			var can_sub = true;
-			if( s_toggle == 'batch-remove' )
-			{
-				can_sub = false;
-				
-				layer.confirm($(obj).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						data:{ids:ids_arr},
-						success:function(info){
-						
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-			}else{
-				$.ajax({
-					url:s_url,
-					type:'post',
-					dataType:'json',
-					data:{ids:ids_arr},
-					success:function(info){
-					
-						if(info.status == 0)
-						{
-							layer.msg(info.result.message,{icon: 1,time: 2000});
-						}else if(info.status == 1){
-							var go_url = location.href;
-							if( info.result.hasOwnProperty("url") )
-							{
-								go_url = info.result.url;
-							}
-							
-							layer.msg('操作成功',{time: 1000,
-								end:function(){
-									location.href = info.result.url;
-								}
-							}); 
-						}
-					}
-				})
-			}
-		}
-	})
-  
-	form.on('switch(statewsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var s_value = 1;
-	  if(data.elem.checked)
-	  {
-		s_value = 1;
-	  }else{
-		s_value = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{value:s_value},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	});  
-	form.on('checkbox(checkboxall)', function(data){
-	  
-	  if(data.elem.checked)
-	  {
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", true);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", true);
-		});
-		
-	  }else{
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", false);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", false);
-		});
-	  }
-	  
-	  form.render('checkbox');
-	});
-  
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-})
-
-
-</script>  
-
-<script>
-var ajax_url = "";
-$(function(){
-
-	$(".ajaxModal").click(function () {
-        var s_url = $(this).attr('data-href');
-		ajax_url = s_url;
-       $.ajax({
-				url:s_url,
-				type:"get",
-				success:function(shtml){
-					$('#ajaxModal').html(shtml);
-					$("#ajaxModal").modal();
-				}	
-		})
-    });
-	$(document).delegate(".modal-footer .btn-primary","click",function(){
-		var s_data = $('#ajaxModal form').serialize();
-		$.ajax({
-			url:ajax_url,
-			type:'post',
-			dataType:'json',
-			data:s_data,
-			success:function(info){
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-		return false;
-	})
-	
-	
-})
-</script>
-<div id="ajaxModal" class="modal fade" style="display: none;">
-
-</div>
-
-</body>

+ 0 - 3908
Runtime/Cache/Seller/da4eb38191866c0b274728e66acb29de.php

@@ -1,3908 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-	window.sysinfo = {
-	<?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-	
-	<?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-	
-	'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-	
-	'siteroot': '<?php echo ($_W['siteroot']); ?>',
-			'siteurl': '<?php echo ($_W['siteurl']); ?>',
-			'attachurl': '<?php echo ($_W['attachurl']); ?>',
-			'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-			'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-			'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-	'cookie' : {'pre': ''},
-	'account' : <?php echo json_encode($_W['account']);?>,
-	};
-</script>
-		
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-<link href="/static/css/snailfish.css" rel="stylesheet">
-   
-<script type="text/javascript" src="/static/js/dist/area/cascade.js"></script>
-<script type="text/javascript" src="/static/js/dist/select2/select2.min.js"></script>
-
-<link rel="stylesheet" href="/static/js/dist/select2/select2-bootstrap.css">
-<link rel="stylesheet" href="/static/js/dist/select2/select2.css">
-
-
-<script type="text/javascript" src="/web/resource/js/lib/moment.js"></script>
-<link rel="stylesheet" href="/web/resource/components/datetimepicker/jquery.datetimepicker.css">
-<link rel="stylesheet" href="/web/resource/components/daterangepicker/daterangepicker.css">
-<style type='text/css'>
-    .tabs-container .layui-form-item {overflow: hidden;}
-    .tabs-container .tabs-left > .nav-tabs {}
-    .tab-goods .nav li {float:left;}
-    .spec_item_thumb {position: relative; width: 30px; height: 20px; padding: 0; border-left: none;}
-    .spec_item_thumb i {position: absolute; top: -5px; right: -5px;}
-	.input-group .spec_item_thumb{padding:0px;}
-	
-    .multi-img-details, .multi-audio-details {margin-top:.5em;max-width: 700px; padding:0; }
-    .multi-audio-details .multi-audio-item {width:155px; height: 40px; position:relative; float: left; margin-right: 5px;}
-	.region-goods-details {
-		background: #f8f8f8;
-		margin-bottom: 10px;
-		padding: 0 10px;
-	}
-	.region-goods-left{
-		text-align: center;
-		font-weight: bold;
-		color: #333;
-		font-size: 14px;
-		padding: 20px 0;
-	}
-	.region-goods-right{
-		border-left: 3px solid #fff;
-		padding: 10px 10px;
-	}
-	.input-group .input-group-btn .btn:hover{background-color:#5bc0de}
-	.layui-form-select{display:none;}
-	.daterangepicker select.ampmselect, .daterangepicker select.hourselect, .daterangepicker select.minuteselect {
-		width: auto!important;
-	}
-.input-group .input-group-addon{}
-.fa-arrows{display:none;}
-.spec_item_thumb img{min-height:20px;}
-.choose_room_title{position: absolute;top: 0px;left: -90px;font-size: 14px;}
-</style>
-
-</head>
-<body layadmin-themealias="default">
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text"><?php if( !empty($item['id'])){ ?>编辑<?php  }else{ ?>添加<?php } ?>商品 <small><?php if( !empty($item['id'])){ ?>修改【<span class="text-info"><?php echo ($item['goodsname']); ?></span>】<?php } ?></small></span></div>
-		<div class="layui-card-body" style="padding:15px;">
-			<form action="" method="post" class="layui-form" lay-filter="component-layui-form-item" enctype="multipart/form-data" >
-	
-				<input type="hidden" name="goods_id" id="goods_id" value="<?php echo ($id); ?>"/>
-				<input type="hidden" name="head_id_arr" id="head_id_arr" value="<?php echo ($head_id_arr); ?>"/>
-
-				<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
-				  <ul class="layui-tab-title">
-					<li  <?php if( empty($_GPC['tab']) || $_GPC['tab']=='basic'){ ?>class="layui-this"<?php } ?>>基本信息</li>
-					<li  <?php if( $_GPC['tab']=='option'){ ?>class="layui-this"<?php } ?> >规格库存</li>
-					<li <?php if( $_GPC['tab']=='des'){ ?>class="layui-this"<?php } ?> >商品详情</li>
-					
-					<?php $commiss_level = D('Home/Front')->get_config_by_name('commiss_level'); ?>
-					
-					<li <?php if( $_GPC['tab']=='community_head_level'){ ?>class="layui-this"<?php } ?> >提成/分销/等级</li>
-					
-					<?php if( !empty($is_open_goods_relative_goods) && $is_open_goods_relative_goods == 1 ){ ?>
-					<li <?php if( $_GPC['tab']=='goods_relative_goods'){ ?>class="layui-this"<?php } ?> >推荐商品</li>
-					<?php } ?>
-					<?php if (!defined('ROLE')) { ?>
-					<?php if($isopen_localtown_delivery == 1){ ?>
-					<li <?php if( $_GPC['tab']=='goods_distribution'){ ?>class="layui-this"<?php } ?> >同城配送</li>
-					<?php $open_goods_distribution = 1 ?>
-					<?php } ?>
-					  <?php } ?>
-
-					  <?php if (defined('ROLE') && ROLE == 'agenter' ){ ?>
-							<?php if($isopen_localtown_delivery == 1 && $supply_is_open_localtown_distribution == 1){ ?>
-							 <li <?php if( $_GPC['tab']=='goods_distribution'){ ?>class="layui-this"<?php } ?> >同城配送</li>
-							 <?php $open_goods_distribution = 1 ?>
-					  		<?php }?>
-					  <?php }?>
-					  <li <?php if( $_GPC['tab']=='hexiao'){ ?>class="layui-this"<?php } ?> >到店核销</li>
-				  </ul>
-				  <div class="layui-tab-content" >
-					
-					<div class="layui-tab-item   <?php if( empty($_GPC['tab']) || $_GPC['tab']=='basic'){ ?>layui-show<?php } ?>" >
-						<!---- 基本信息begin --->
-						<div class="region-goods-details layui-row">
-							
-							<div class="layui-form-item">
-								<div class="layui-form-item" style="padding-top:10px;">
-									<label class="layui-form-label must">商品名称<label style="color:red;font-size:16px;font-weight:900">*</label></label>
-								  
-									<div class="layui-input-block"  style="padding-right:0;" >
-										<input type="text" name="goodsname" id="goodsname" class="form-control" value="<?php echo ($item['goodsname']); ?>" data-rule-required="true" />
-									</div>
-									
-								</div>
-								<div class="layui-form-item">
-									<label class="layui-form-label">商品分类</label>
-									<div class="layui-input-block">
-										<select id="cates"  multiple="multiple"  name='cates[]'  class="form-control select2"  >
-											<?php foreach( $category as $c ){ ?>
-											<option value="<?php echo ($c['id']); ?>" <?php if( is_array($item['cates']) && in_array($c['id'],$item['cates'])){ ?>selected<?php } ?> ><?php echo ($c['name']); ?></option>
-											<?php } ?>
-										</select>
-										
-									</div>
-								</div>
-								<div class="layui-form-item">
-									<label class="layui-form-label">商品简介</label>
-									<div class="layui-input-block">
-										<textarea  name="subtitle" id="subtitle" rows="5"  class="form-control" data-parent=".subtitle" maxlength="100" data-rule-maxlength="100"><?php echo ($item['subtitle']); ?></textarea>
-										<div class="layui-form-mid layui-word-aux">商品名称下方的副标题,标题长度请控制在100字以内</div>
-									</div>
-								</div>
-
-								
-								
-								<div class="layui-form-item">
-								   <label class="layui-form-label">默认商品预达简介</label>
-									<div class="layui-input-block ">
-										<input type="checkbox" lay-skin="primary" name="is_show_arrive" class="form-control valid" <?php if( empty($item) || $item['is_show_arrive'] ==1 || !isset($item['is_show_arrive']) ){ ?>checked<?php } ?> value="1" title="展示预达时间" />
-										<br/>
-										<div class="layui-form-mid layui-word-aux">“商品预达简介”为商品名称下方的“预计送达时间”。例如:"现在下单 预计(12点前下单,预计当天送达)可自提" 默认开启,关闭后不进行显示。</div>
-									</div>
-								</div>
-								<div class="layui-form-item">
-									<label class="layui-form-label">商品自定义预达简介</label>
-									<div class="layui-input-block">
-										<label class="radio-inline"><input type="radio" name="diy_arrive_switch" value="0" <?php if( !isset($item['diy_arrive_switch']) || $item['diy_arrive_switch'] == 0 ){ ?>checked="true"<?php } ?> title="关闭" /> </label>
-										<label class="radio-inline"><input type="radio" name="diy_arrive_switch" value="1" <?php if( isset($item['diy_arrive_switch']) && $item['diy_arrive_switch'] == 1 ){ ?>checked="true"<?php } ?> title="开启" /> </label>
-										<div class="layui-form-mid layui-word-aux">“商品自定义预达简介”为商品名称下方“预计送达时间”,配合“商品预达简介”使用默认关闭状态,在“商品预达简介”描述不精确的情况下建议使用此项,如果使用此项建议关闭“商品预达简介”。</div>
-									</div>
-								</div>
-								<div class="layui-form-item">
-									<label class="layui-form-label"></label>
-									<div class="layui-input-block">
-										<textarea  name="diy_arrive_details" id="diy_arrive_details" rows="3"  class="form-control" maxlength="35" data-rule-maxlength="35"><?php echo ($item['diy_arrive_details']); ?></textarea>
-										<div class="layui-form-mid layui-word-aux">文字的长度请控制在35字以内</div>
-									</div>
-								</div>
-
-								
-								<div class="layui-form-item">
-									<label class="layui-form-label">商品简短标题</label>
-									<div class="layui-input-block">
-										<input type="text" name="print_sub_title" id="print_sub_title" class="form-control" value="<?php echo ($item['print_sub_title']); ?>" />
-										<div class="layui-form-mid layui-word-aux">小票打印机使用,请控制字数,未填写默认截取商品标题(无须打印的可以不填写)</div>
-									</div>
-								</div>
-								
-								<div class="layui-form-item">
-									<label class="layui-form-label must">商品视频</label>
-									<div class="layui-input-block gimgs">
-											<?php echo tpl_form_field_video('video',$item['video'] );;?>
-										<span class="layui-form-mid layui-word-aux image-block">
-											请输入视频链接地址或者选择上传视频(支持抖音视频地址)
-										</span>
-									</div>
-								</div>
-								
-								<div class="layui-form-item">
-									<label class="layui-form-label must">首页商品(大图)</label>
-									<div class="layui-input-block gimgs">
-										<?php echo tpl_form_field_image2('big_img',$item['big_img']);?>
-										<span class="layui-form-mid layui-word-aux image-block">此图为首页商品大图模式封面图,最佳尺寸:710*400</span>
-									</div>
-								</div>
-							
-								<div class="layui-form-item">
-									<label class="layui-form-label must">商品图片<label style="color:red;font-size:16px;font-weight:900">*</label></label>
-									<div class="layui-input-block gimgs" id="gimgs_mult">
-										<?php echo tpl_form_field_multi_image3('thumbs',$item['piclist']);?>
-										
-										<span class="layui-form-mid layui-word-aux image-block">商品详情页主图(轮播图),第一张为商品列表调用图,<span style="color: red;">图片类型必须为jpg或者png24,不支持png8</span>,建议为正方型,尺寸建议宽度为640,并保持图片大小一致,可拖拽改变图片顺序</span>
-										
-									</div>
-								</div>
-								
-								
-								<div class="layui-form-item">
-									<label class="layui-form-label">分享标题</label>
-									<div class="layui-input-block">
-										<input type="text" name="share_title" class="form-control" value="<?php echo ($item['share_title']); ?>" />
-										<div class="layui-form-mid layui-word-aux"></div>
-									</div>
-								</div>
-								
-								<div class="layui-form-item">
-									<label class="layui-form-label ">分享图片</label>
-									<div class="layui-input-block gimgs">
-										<?php echo tpl_form_field_image2('goods_share_image',$item['goods_share_image']);?>
-										<span class="layui-form-mid layui-word-aux image-block">此图为商品详情页分享图片(比例为长宽比5:4)</span>
-									</div>
-								</div>
-
-								<div class="layui-form-item">
-									<label class="layui-form-label">起售数量</label>
-									<div class="layui-input-block">
-										<div style="float: left;height: 35px;line-height:35px">商品至少&nbsp;&nbsp;</div>
-										<input style="width: 35px; height: 35px; border: 2px white; float: left;" type="button" value="-" onclick="reduction(this)"/>
-										<input type="text" name="goods_start_count" class="layui-input goods_start_count" value="<?php if( isset($item['goods_start_count']) && !empty($item['goods_start_count'])){echo $item['goods_start_count'];}else{echo '1';} ?>" maxlength="10" style="width: 100px;float: left;" onchange="validationNumber(this, 0)"/>
-										<input style="width: 35px; height: 35px; border: 2px white;float: left;" type="button" value="+" onclick="add(this)"/>
-										<div style="float: left;height: 35px;line-height:35px">&nbsp;&nbsp;件起售</div>
-										<br/>
-										<div style="clear:both;"></div>
-										<span class="layui-form-mid layui-word-aux image-block">起售数量超出商品库存时,买家无法购买该商品</span>
-									</div>
-								</div>
-
-								<?php if($is_updown){ ?>
-								<div class="layui-form-item">
-									<label class="layui-form-label">商品状态</label>
-									<div class="layui-input-block">
-										<label class="radio-inline"><input type="radio" name="grounding" value="1" <?php if( !isset($item['grounding']) || $item['grounding'] == 1){ ?>checked="true"<?php } ?> title="上架" /> </label>
-										<label class="radio-inline"><input type="radio" name="grounding" value="0" <?php if( isset($item['grounding']) && $item['grounding'] == 0){ ?>checked="true"<?php } ?> title="下架" /> </label>
-									</div>
-								</div>
-								<?php } ?>
-								<?php if($is_index){ ?>
-								<div class="layui-form-item">
-									<label class="layui-form-label">首页推荐</label>
-									<div class="layui-input-block">
-										<label class="radio-inline"><input type="radio" name="is_index_show" value="1" <?php if( !isset($item['is_index_show']) || $item['is_index_show'] == 1){ ?>checked="true"<?php } ?> title="是" /> </label>
-										<label class="radio-inline"><input type="radio" name="is_index_show" value="0" <?php if( isset($item['is_index_show']) && $item['is_index_show'] == 0){ ?>checked="true"<?php } ?> title="否" /> </label>
-									</div>
-								</div>
-								<?php } ?>
-								<div class="layui-form-item" style="display:none;">
-									<label class="layui-form-label">分享描述</label>
-									<div class="layui-input-block">
-										<input type="text" name="share_description" class="form-control" value="<?php echo ($item['share_description']); ?>" />
-										<div class="layui-form-mid layui-word-aux">公众号才有的,小程序没有这个描述</div>
-									</div>
-								</div>
-								<div class="layui-form-item price" >
-									<label class="layui-form-label">售价<label style="color:red;font-size:16px;font-weight:900">*</label></label>
-									<div class="layui-input-block">
-
-										<div class="input-group">
-											<input type="text" name="price" id="price" class="form-control" value="<?php echo ($item['price']); ?>" <?php if($item['hasoption']!=1){ ?> <?php } ?> />
-											<span class="input-group-addon">元&nbsp;</span>
-											<span class="input-group-addon">原价(市场价、划线价)</span>
-											<input type="text" name="productprice" id="productprice" class="form-control"  value="<?php echo ($item['productprice']); ?>"   />
-											<span class="input-group-addon">元&nbsp;</span>
-											<span class="input-group-addon"> 成本价</span>
-											<input type="text" name="costprice" id="costpriceprice" class="form-control" value="<?php echo ($item['costprice']); ?>"  placeholder=""/>
-											<span class="input-group-addon">元&nbsp;</span>
-										</div>
-										<span class='layui-form-mid layui-word-aux' style="display:none;">如未启用商品规格,请填写商品价格</span>
-										
-									</div>
-								</div>
-								<?php if( !empty($is_open_vipcard_buy) && $is_open_vipcard_buy == 1 ){ ?>
-								<div class="layui-form-item" >
-									<label class="layui-form-label">付费会员专享价</label>
-									<div class="col-sm-10 col-xs-12" style="width: 600px;">
-										<div class="radio-inline">
-											<input type="checkbox"  lay-skin="primary" lay-filter="is_take_vipcard" name="is_take_vipcard" <?php if( isset($item['is_take_vipcard']) && $item['is_take_vipcard'] ==1 ){ ?> checked <?php } ?> value="1" />
-											<div class="input-group card_price_txt" style="width:500px;float: right; <?php if( isset($item['is_take_vipcard']) && $item['is_take_vipcard'] ==1 ){ }else{?>display: none;<?php } ?>">
-												<span class="input-group-addon">商品付费会员价</span>
-												<input type="text" name="card_price" id="card_price" style="width: 360px;" class="form-control" value="<?php echo ($item['card_price']); ?>" placeholder="请填写会员价"/>
-												<span class="input-group-addon" style="width: auto;">元&nbsp;</span>
-											</div>
-											<div style="clear:both;"></div>
-											<span class="layui-form-mid layui-word-aux">开启后,付费会员下单享专属价格</span>
-										</div>
-									</div>
-								</div>
-								<?php } ?>
-								
-								<?php if($is_vir_count){ ?>
-								<div class="layui-form-item" >
-									<label class="layui-form-label">已出售数</label>
-									<div class="layui-input-block">
-										<div class="input-group">
-											<input type="text" name="sales" id="sales" class="form-control" value="<?php echo ($item['sales']); ?>" />
-											<span class="input-group-addon">备注:前台销量=虚拟销量+实际销量</span>
-										</div>
-									</div>
-								</div>
-								<?php } ?>
-								<div class="layui-form-item" >
-									<label class="layui-form-label">提货时间</label>
-									<div class="col-sm-10 col-xs-12" id="radPickupDateTip"> 
-										<?php $item['pick_up_type'] = isset($item['pick_up_type']) ? $item['pick_up_type'] : 1; ?>
-										<label class="radio-inline"><input type="radio"  name="pick_up_type" <?php if( !isset($item['pick_up_type']) || $item['pick_up_type'] ==0 ){ ?> checked <?php } ?> value="0" title="当日达" /><span class="fake-radio"></span></label>
-										<label  class="radio-inline"><input type="radio"  name="pick_up_type" <?php if( isset($item['pick_up_type']) && $item['pick_up_type'] ==1 ){ ?> checked <?php } ?> value="1" title="次日达" /><span class="fake-radio"></span></label>
-										<label  class="radio-inline"><input type="radio"  name="pick_up_type" <?php if( isset($item['pick_up_type']) && $item['pick_up_type'] ==2 ){ ?> checked <?php } ?> value="2" title="隔日达" /><span class="fake-radio"></span></label>
-										<label  class="radio-inline"><input type="radio"  name="pick_up_type" <?php if( isset($item['pick_up_type']) && $item['pick_up_type'] ==3 ){ ?> checked <?php } ?> value="3" title="自定义" /><span class="fake-radio"></span></label>
-										
-										<input class="form-control " id="txtPickupDateTip" name="pick_up_modify" style="vertical-align: sub; <?php if( isset($item['pick_up_type']) && $item['pick_up_type'] ==3){ ?>display:inline-block;<?php  }else{ ?>display: none;<?php } ?>width: 120px;" type="text" value="<?php echo ($item['pick_up_modify']); ?>">
-										
-									  
-										<div style="clear:both;"></div>
-										<span class="layui-form-mid layui-word-aux">系统会根据当前日期自动生成具体提货时间,或直接显示自定义内容</span>
-									</div>
-								</div>
-								
-								<div class="layui-form-item" style="display:none;">
-									<label class="layui-form-label"></label>
-									<div class="layui-input-block">
-										<label class="checkbox-inline"><input type="checkbox" name="showsales" value="1" <?php if( $item['showsales'] == 1){ ?>checked="true"<?php } ?>   /> 显示销量</label>
-										<span class="layui-form-mid layui-word-aux"></span>
-									</div>
-								</div>
-								<div class="layui-form-item" style="display:none;">
-									<label class="layui-form-label">标签</label>
-									<div class="layui-input-block">
-										<label class="checkbox-inline"><input type="checkbox" name="quality" value="1" <?php if( !empty($item['quality'])){ ?>checked="true"<?php } ?>   /> 正品保证</label>
-										<label class="checkbox-inline"><input type="checkbox" name="seven" value="1" <?php if( !empty($item['seven'])){ ?>checked="true"<?php } ?>   /> 7天无理由退换</label>
-										<label class="checkbox-inline"><input type="checkbox" name="repair" value="1" <?php if( !empty($item['repair'])){ ?>checked="true"<?php } ?>   /> 保修</label>
-									</div>
-								</div>
-								
-								
-								<div class="layui-form-item">
-									<label class="layui-form-label">自定义标签</label>
-									
-									<div class="layui-input-block">
-										<div class="input-group " style="margin: 0;">
-											<input type="text" disabled value="<?php echo ($item['label']['id']); ?>" class="form-control valid" name="labelname" placeholder="" id="label_id">
-											<span class="input-group-btn">
-												<span data-input="#label_id" id="chose_label_id"  class="btn btn-default">选择标签</span>
-											</span>
-										</div>
-										<?php if( $item['label']){ ?>
-										<div class="input-group " style="margin: 0;">
-											<div class="layadmin-text-center choose_user">
-												
-												<div class="" style=""><?php echo ($item['label']['tagname']); ?></div>
-												<button type="button" class="layui-btn layui-btn-sm" onclick="cancle_bind(this,'label_id')"><i class="layui-icon">&#xe640;</i></button>
-											</div>
-										</div>
-										<?php } ?>
-									</div>
-								</div>
-								<?php if($is_open_only_express == 1){ ?>
-								<div class="layui-form-item" >
-									<label class="layui-form-label">仅快递</label>
-									<div class="col-sm-10 col-xs-12" > 
-										<input type="checkbox"  lay-skin="primary" lay-filter="is_only_express" id="is_only_express"  name="is_only_express" <?php if(isset($item['is_only_express']) && $item['is_only_express'] ==1 ){ ?> checked <?php } ?> value="1" />
-										<div style="clear:both;"></div>
-										<span class="layui-form-mid layui-word-aux">勾选后该商品会在购物车中显示快递配送,所有仅快递的商品单独结算,订单提交页只有快递配送方式<br />
-										<font color="red">勾选后,此商品为仅快递商品。会自动取消同城配送和到店核销的勾选</font>
-										</span>
-
-										<!--
-										<span class="layui-form-mid layui-word-aux">开启仅快递后,该商品只会快递商品一起下单<br/>
-											<font color="red">用户开启仅快递的时候,该商品只能快递配送。</font><br/>
-											<font color="red">其他配送服务失效。</font><br/>
-											<font color="red">购物车中,只能和快递商品一起结算。</font><br/>
-										</span>-->
-									</div>
-									
-								</div>
-								<?php } ?>
-								
-
-								<div class="layui-form-item dispatch_info">
-									<label class="layui-form-label">运费设置</label>
-									<div class="layui-input-block" style='padding-left:0'>
-										
-										<div class="input-group">
-											<span class='input-group-addon' style='border:none;padding:0px;'><label class="radio-inline" style='margin-top:-7px;' ><input type="radio" name="dispatchtype" value="0" <?php if( empty($item['dispatchtype'])){ ?>checked="true"<?php } ?> title="运费模板"  /> </label></span>
-											<select class="form-control tpl-category-parent select2" id="dispatchid" name="dispatchid">
-												
-												<?php foreach( $dispatch_data as $dispatch_item ){ ?>
-												<option value="<?php echo ($dispatch_item['id']); ?>" <?php if( $item['dispatchid'] == $dispatch_item['id']){ ?>selected="true"<?php } ?>><?php echo ($dispatch_item['name']); ?></option>
-												<?php } ?>
-											</select>
-										</div>
-										
-									</div>
-								</div>
-								<div class="layui-form-item dispatch_info">
-									<label class="layui-form-label"></label>
-									<div class="layui-input-block" style='padding-left:0'>
-										<div class="input-group">
-											<span class='input-group-addon' style='border:none;padding:0px;'><label class="radio-inline"  style='margin-top:-7px;' >
-											<input type="radio"name="dispatchtype" value="1" <?php if( $item['dispatchtype'] == 1){ ?>checked="true"<?php } ?> title="统一邮费"  /> </label></span>
-											<input type="text" name="dispatchprice" id="dispatchprice" class="form-control" value="<?php echo ($item['dispatchprice']); ?>" />
-											<span class="input-group-addon">元</span>
-										</div>
-
-									</div>
-								</div>
-								
-								<?php  $is_show_fullre = true; if (defined('ROLE') && ROLE == 'agenter' ) { $supper_info = get_agent_logininfo(); if($supper_info['type'] == 1) { $is_show_fullre = false; } } ?>
-								<?php if( $is_show_fullre && !empty($is_open_fullreduction) && $is_open_fullreduction == 1){ ?>
-								
-								<div class="layui-form-item" >
-									<label class="layui-form-label">满减活动</label>
-									<div class="col-sm-10 col-xs-12"> 
-										<label class="radio-inline"><input type="radio"  name="is_take_fullreduction" <?php if( !isset($item['is_take_fullreduction']) || $item['is_take_fullreduction'] ==1 ){ ?> checked <?php } ?> value="1" title="参与" /><span class="fake-radio"></span></label>
-										<label  class="radio-inline"><input type="radio"  name="is_take_fullreduction" <?php if( isset($item['is_take_fullreduction']) && $item['is_take_fullreduction'] ==0 ){ ?> checked <?php } ?> value="0" title="不参与" /><span class="fake-radio"></span></label>
-										<div style="color:red;margin-left: 25px;">独立供应商不参与平台满减活动</div>
-									</div>
-								</div>
-								<?php } ?>
-								
-								<?php if($open_buy_send_score == 1){ ?>
-									<?php if($supply_can_goods_sendscore == 1){ ?>
-									<div class="layui-form-item" >
-										<label class="layui-form-label">下单送积分</label>
-										<div class="col-sm-10 col-xs-12" id="send_score_div"> 
-											
-											<input type="checkbox" lay-filter="is_modify_sendscore" lay-skin="primary"  name="is_modify_sendscore" <?php if(isset($item['is_modify_sendscore']) && $item['is_modify_sendscore'] ==1){ ?> checked <?php } ?> value="1"  />
-												
-											<input class="form-control " id="send_score_divTip" name="send_socre" style="vertical-align: sub; <?php if(isset($item['is_modify_sendscore']) && $item['is_modify_sendscore'] ==1){ ?>display:inline;<?php }else{ ?>display: none;<?php } ?>width: 120px;" type="text" value="<?php echo ($item['send_socre']); ?>" >
-											
-											<div  id="send_score_divTip2" style=" display: inline; <?php if(isset($item['is_modify_sendscore']) && $item['is_modify_sendscore'] ==1){ ?>display:inline;<?php }else{ ?>display: none;<?php } ?>">积分</div>
-
-											
-											<div style="clear:both;"></div>
-											<div style="color:#999">赠送数量 = 商品数量 * 下单送积分数量(未开启,则使用系统全局设置)</div>
-											<div style="color:#999">订单结算,才送积分。订单结算时间,请看订单——订单设置——售后期设置</div>
-										</div>
-									</div>
-									<?php } ?>
-								<?php } ?>
-								
-								<?php if($index_sort_method == 1){ ?>
-								<div class="layui-form-item" >
-									<label class="layui-form-label">首页排序</label>
-									<div class="layui-input-block">
-										<div class="input-group">
-											<input type="text" name="index_sort" id="index_sort" class="form-control" value="<?php echo ($item['index_sort']); ?>" />
-											<span class="input-group-addon">备注:排序越大显示越靠前</span>
-										</div>
-									</div>
-								</div>
-								<?php } ?>
-								
-							</div>
-							
-							
-						</div>
-
-
-
-
-						<div class="region-goods-details ">
-							
-							<div class="layui-form-item">
-								<div class="layui-form-item">
-									<label class="layui-form-label">团购时间</label>
-									<div class="layui-input-block">
-										<?php echo tpl_form_field_daterange('time', array('starttime'=>date('Y-m-d H:i', $item['begin_time']),'endtime'=>date('Y-m-d H:i', $item['end_time'])),true);;?>
-									</div>
-								</div>
-								
-							</div>
-						</div>
-
-						<div class="region-goods-details ">
-							<div class="layui-form-item">
-								<div class="layui-form-item">
-									<label class="layui-form-label">每天限购</label>
-									<div class="layui-input-block">
-										<input type="text" name="oneday_limit_count" class="form-control " value="<?php echo ($item['oneday_limit_count']); ?>" />
-
-										<div class="layui-form-mid layui-word-aux">用户每天提交订单最多可购买数,默认为0表示不限制</div>
-									</div>
-								</div>
-
-							</div>
-						</div>
-
-						<div class="region-goods-details ">
-							<div class="layui-form-item">
-
-								<div class="layui-form-item">
-									<label class="layui-form-label">单次限购</label>
-									<div class="layui-input-block">
-										
-										<input type="text" name="one_limit_count" class="form-control " value="<?php echo ($item['one_limit_count']); ?>" />
-										
-										<div class="layui-form-mid layui-word-aux">用户单次提交订单最多可购买数,默认为0表示不限制</div>
-									</div>
-								</div>
-								<div class="layui-form-item">
-									<label class="layui-form-label">历史限购</label>
-									<div class="layui-input-block">
-										
-										<input type="text" name="total_limit_count" class="form-control" value="<?php echo ($item['total_limit_count']); ?>" />
-										
-										<div class="layui-form-mid layui-word-aux">用户历史累积最多可购买数,默认为0表示不限制</div>
-									</div>
-								</div>
-							</div>
-						</div>
-						<div class="region-goods-details ">
-
-							<div class="region-goods-right col-sm-10">
-							<!--
-								<?php if( empty($community_head_level) || count($community_head_level) ==1 || $is_head_takegoods ==0 ){ ?>
-								
-								<div class="layui-form-item">
-								<label class="layui-form-label"></label>
-										<div class="layui-col-sm-10 ">
-											<input type="checkbox" id="is_community_head_commission" lay-skin="primary" value="1" name="is_community_head_commission" lay-filter="is_community_head_commission" <?php if( $item['is_community_head_commission']==1){ ?>checked<?php } ?> title="商品启用独立团长提成" />
-											<br />
-											<div class="layui-form-mid layui-word-aux" style="margin-left: 155px;" >勾选使用 商品独立团长提成 计算佣金,不勾选则使用 后台——“团长设置”中团长提成比例 计算佣金</div>	
-										</div>
-										
-								</div>
-								<div id="head_commission_div2" <?php if( empty($item['is_community_head_commission'])){ ?>style="display:none"<?php } ?> >
-								
-									<div class="layui-form-item">
-
-									   <label class="layui-form-label">商品独立团长提成</label>
-
-									   <?php if( !empty($community_money_type) && $community_money_type ==1 ){ ?>
-										<div class="layui-col-sm-10 ">
-											<div class="input-group">
-												<input type="text" name="community_head_commission" id="community_head_commission" class="form-control valid" value="<?php if(empty($item)){ echo ($communityhead_commission); }else{ echo ($item['community_head_commission']); } ?>" />
-												<span class="input-group-addon">元 </span>
-											</div>
-											<div class="layui-form-mid layui-word-aux">预计团长可得佣金¥<font ><?php if(isset($item['community_head_commission'])){ echo round( $item['community_head_commission'] ,2) ; }else{ ?>0.00<?php } ?></font></div>	
-										</div>
-										<?php }else{ ?>
-										<div class="layui-col-sm-10 ">
-											<div class="input-group">
-												<input type="text" name="community_head_commission" id="community_head_commission" class="form-control valid" value="<?php if( empty($item)){ echo ($communityhead_commission); }else{ echo ($item['community_head_commission']); } ?>" />
-												<span class="input-group-addon">% </span>
-											</div>
-											<div class="layui-form-mid layui-word-aux">预计团长可得佣金¥<font id="precommiss_head_money_tip"><?php if( isset($item['community_head_commission'])){ echo round( ($item['community_head_commission']*$item['price'])/100 ,2); }else{ ?>0.00<?php } ?></font>,将根据商品最终的成交价格来计算佣金</div>	
-										</div>
-										<?php } ?>
-										
-										
-									</div>
-								</div>
-								
-								<?php } ?>  -->
-								<!--<div class="layui-form-item">
-								   <label class="layui-form-label">所有团长可销售</label>
-									<div class="layui-input-block ">
-										<input type="checkbox" lay-skin="primary" name="is_all_sale" class="form-control valid" <?php if( empty($item) || $item['is_all_sale'] ==1 || !isset($item['is_all_sale'])){ ?>checked<?php } ?> value="1" />
-											
-									</div>
-								</div>-->
-								<?php if($supply_can_distribution_sale == 1){ ?>
-								<div class="layui-form-item">
-									<label class="layui-form-label">售卖团长</label>
-									<div class="layui-input-block">
-										<label class="radio-inline"><input type="radio" class="radio_sale" name="is_all_sale" value="1" <?php if( !isset($item['is_all_sale']) || $item['is_all_sale'] == 1){ ?>checked="true"<?php } ?> title="所有团长可售" /> </label>
-										<label class="radio-inline"><input type="radio" class="radio_sale" name="is_all_sale" value="0" <?php if( isset($item['is_all_sale']) && $item['is_all_sale'] == 0){ ?>checked="true"<?php } ?> title="部分团长可售" /> </label>
-									</div>
-									<div class="layui-form-mid layui-word-aux" style="margin-left:15px;">选择所有团长可售,部分团长可售失效</div>
-								</div>
-								<?php } ?>
-								
-								<?php if($is_newbuy){ ?>
-								<div class="layui-form-item">
-								   <label class="layui-form-label">新人专享</label>
-									<div class="layui-input-block ">
-										<input type="checkbox" id="xinrenckbox" lay-filter="xinrenckbox" lay-skin="primary" name="is_new_buy" class="form-control valid" <?php if( !empty($item) && $item['is_new_buy'] ==1 ){ ?>checked<?php } ?> value="1" />
-									</div>
-									<div class="layui-form-mid layui-word-aux" style="margin-left:15px;">未付款过的用户。勾选后,只在首页新人专区显示</div>
-								</div>
-								<?php } ?>
-								
-								
-								<?php if( $seckill_is_open == 1 ){ ?>
-								<div class="layui-form-item">
-								   <label class="layui-form-label">整点秒杀</label>
-									<div class="layui-input-block ">
-										<input type="checkbox" id="is_seckill" lay-filter="is_seckill" lay-skin="primary" name="is_seckill" class="form-control valid" <?php if( !empty($item) && $item['is_seckill'] ==1 ){ ?>checked<?php } ?> value="1" />
-									</div>
-									<div class="layui-form-mid layui-word-aux" style="margin-left:15px;">
-									勾选后,商品团购时间设置整点,后台——营销——整点秒杀勾选这个整点,系统会自动调用显示到“整点秒杀”方块以及该页面中。该整点开始前设置好这些,才会调用
-									</div>
-								</div>
-								<?php } ?>
-								
-								
-								
-								<?php if($is_goodsspike){ ?>
-								<div class="layui-form-item">
-								   <label class="layui-form-label">限时秒杀</label>
-									<div class="layui-input-block ">
-										<input type="checkbox" id="xianshickbox" lay-filter="xianshickbox" lay-skin="primary" name="is_spike_buy" class="form-control valid" <?php if(!empty($item) && $item['is_spike_buy'] ==1){ ?>checked<?php } ?> value="1" />
-									</div>
-									<div class="layui-form-mid layui-word-aux" style="margin-left:15px;">
-										勾选后,只在首页限时秒杀显示
-									</div>
-								</div>
-								<?php } ?>
-								
-								
-								<div class="layui-form-item">
-								   <label class="layui-form-label">限制普通会员下单</label>
-									<div class="layui-input-block ">
-										<input type="checkbox"  lay-skin="primary" name="is_limit_levelunbuy" class="form-control valid" <?php if( !empty($item) && $item['is_limit_levelunbuy'] ==1 ){ ?>checked<?php } ?> value="1" />
-									</div>
-									<div class="layui-form-mid layui-word-aux" style="margin-left:15px;">
-										勾选后,默认等级会员不能购买此商品
-									</div>
-								</div>
-								
-								<div class="layui-form-item">
-								   <label class="layui-form-label">付费会员专享</label>
-									<div class="layui-input-block ">
-										<input type="checkbox"  lay-skin="primary" name="is_limit_vipmember_buy" class="form-control valid" <?php if( !empty($item) && $item['is_limit_vipmember_buy'] ==1 ){ ?>checked<?php } ?> value="1" />
-									</div>
-									<div class="layui-form-mid layui-word-aux" style="margin-left:15px;">
-										勾选后,非vip会员不能购买此商品
-									</div>
-								</div>
-								
-							</div>
-						</div>
-
-						<?php if( !defined('ROLE') ){ ?>		
-						<div class="region-goods-details ">
-							
-							<div class="layui-form-item">
-							   <label class="layui-form-label">选择供应商</label>
-							   
-								<div class="layui-input-block">
-									<div class="input-group " style="margin: 0;">
-										<input type="text" disabled value="<?php echo ($item['supply_id']); ?>" class="form-control valid" name="supply_id" placeholder="" id="member_id">
-										<span class="input-group-btn">
-											<span data-input="#member_id" id="chose_member_id"  class="btn btn-default">选择供应商</span>
-										</span>
-									</div>
-									<?php if( $item['supply_info']){ ?>
-									<div class="input-group " style="margin: 0;">
-										<div class="layadmin-text-center choose_user">
-											<img style="" src="<?php echo tomedia($item['supply_info']['logo']);?>">
-											<div class="layadmin-maillist-img" style=""><?php echo ($item['supply_info']['shopname']); ?></div>
-											<button type="button" class="layui-btn layui-btn-sm" onclick="cancle_bind(this,'member_id')"><i class="layui-icon">&#xe640;</i></button>
-										</div>
-									</div>
-									<?php } ?>
-								</div>
-					
-								
-							</div>
-								
-							
-						</div>	    
-						<?php } ?>    
-						<script language="javascript">
-							function validationNumber(e, num) {
-								var regu = /^[\-0-9]+\.?[0-9]*$/;
-								if (e.value != "") {
-									if (!regu.test(e.value)) {
-										e.value = 1;
-										e.focus();
-									} else {
-										if (num == 0) {
-											if (e.value.indexOf('.') > -1) {
-												e.value = e.value.substring(0, e.value.length - e.value.split('.')[1].length - 1);
-												e.focus();
-											}
-										}
-										if (e.value.indexOf('.') > -1) {
-											if (e.value.split('.')[1].length > num) {
-												e.value = e.value.substring(0, e.value.length - e.value.split('.')[1].length - 1);
-												e.focus();
-											}
-										}
-										if(parseFloat(e.value) < 1){
-											e.value = 1;
-											e.focus();
-										}
-									}
-								}
-							}
-
-							function reduction(obj){
-								var goods_start_count = $.trim($('.goods_start_count').val());
-								if(goods_start_count == ''){
-									$('.goods_start_count').val(1);
-								}else{
-									var count = parseInt(goods_start_count)-1;
-									if(count < 1){
-										$('.goods_start_count').val(1);
-									}else{
-										$('.goods_start_count').val(count);
-									}
-								}
-							}
-
-							function add(obj){
-								var goods_start_count = $.trim($('.goods_start_count').val());
-								if(goods_start_count == ''){
-									$('.goods_start_count').val(1);
-								}else{
-									var count = parseInt(goods_start_count)+1;
-									$('.goods_start_count').val(count);
-								}
-							}
-
-							$(function () {
-
-								$('#price').blur(function(){
-									var price = parseFloat( $("#price").val() );
-
-									  var community_head_commission = parseFloat( $("#community_head_commission").val() );
-									  if(price > 0 && community_head_commission >0)
-									  {
-											$('#precommiss_head_money_tip').html( ( (price * community_head_commission) /100 ).toFixed(2) );
-									  }else{
-										$('#precommiss_head_money_tip').html('0.00');
-									  }
-								})
-								
-								$("#community_head_commission").blur(function(){
-								  var price = parseFloat( $("#price").val() );
-
-								  var community_head_commission = parseFloat( $(this).val() );
-								  if(price > 0 && community_head_commission >0)
-								  {
-										$('#precommiss_head_money_tip').html( ( (price * community_head_commission) /100 ).toFixed(2) );
-								  }else{
-									$('#precommiss_head_money_tip').html('0.00');
-								  }
-								  
-								});
-								
-								$('#radPickupDateTip input[type=radio]').click(function(){
-									var s_val = $(this).val();
-									if(s_val == 3)
-									{
-										$('#txtPickupDateTip').css('display','inline-block');
-									}else{
-										$('#txtPickupDateTip').css('display', 'none');
-									}
-								 })
-								$("input[name=isstatustime]").off('click').on('click',function () {
-									if($(this).val()==1){
-										$("#shelves").show()
-									}else{
-										$("#shelves").hide();
-									}
-								})
-							})
-						</script>
-						<!--- 基本信息 end -->
-					</div>
-					<div class="layui-tab-item  <?php if( $_GPC['tab']=='option'){ ?>layui-show<?php } ?>" >
-						<!--规格begin-->
-						
-						<div class="region-goods-details ">
-							<div class="region-goods-left col-sm-2">规格库存</div>
-							<div class="region-goods-right col-sm-10">
-								<div class="layui-form-item">
-									<label class="layui-form-label">商品编码</label>
-									<div class="layui-input-block">
-										<input type="text" name="codes" class="form-control" value="<?php echo ($item['codes']); ?>" />
-										<div class="help-block">商品编码 用部分商家用于统计</div>
-									</div>
-								</div>
-								
-								<div class="layui-form-item">
-									<label class="layui-form-label">重量</label>
-									<div class="layui-input-block">
-										<div class="input-group fixsingle-input-group">
-											<input type="text" name="weight" id="weight" <?php if( $item['hasoption']){ ?>readonly<?php } ?> class="form-control hasoption" value="<?php echo ($item['weight']); ?>"/>
-											<span class="input-group-addon">克</span>
-										</div>
-									</div>
-								</div>
-
-								<div class="layui-form-item">
-									<label class="layui-form-label">库存<label style="color:red;font-size:16px;font-weight:900">*</label></label>
-									<div class="layui-input-block">
-										<input type="text" name="total" id="total" class="form-control hasoption" lay-verify="" value="<?php echo ($item['total']); ?>"  style="width:150px;display: inline;margin-right: 20px;" <?php if( $item['hasoption']){ ?>readonly<?php } ?>/>
-										<span class="help-block">商品的剩余数量, 如启用多规格,则此处设置无效.</span>
-									</div>
-								</div>
-
-								
-							</div>
-
-						</div>
-
-
-
-
-						<div class="region-goods-details ">
-							<div class="region-goods-left  col-sm-2">
-								规格
-							</div>
-							<div class="region-goods-right  col-sm-10">
-								<div class="layui-form-item">
-									<div class="layui-row" style=''>
-									
-										
-										
-											<input type="checkbox" lay-skin="primary" title="启用商品规格" lay-filter="hasoption" value="1" id="hasoption" name="hasoption" <?php if( $item['hasoption']==1){ ?>checked<?php } ?> />
-									
-										<span class="help-block">启用商品规格后,商品的价格及库存以商品规格为准,库存设置为0则会到”已售罄“中,手机也不会显示</span>
-
-										
-									</div>
-								</div>
-
-								<div id='tboption' style="padding-left:15px;<?php if( $item['hasoption']!=1){ ?>display:none<?php } ?>" >
-									<div class="alert alert-info" style="display:none;">
-										1. 拖动规格可调整规格显示顺序, 更改规格及规格项后请点击下方的【刷新规格项目表】来更新数据。<br/>
-										2. 每一种规格代表不同型号,例如颜色为一种规格,尺寸为一种规格,如果设置多规格,手机用户必须每一种规格都选择一个规格项,才能添加购物车或购买。
-									</div>
-									<div id='specs'>
-										<?php foreach( $item['allspecs'] as $spec ){ ?>
-										<!--spec-->
-										 <div class='spec_item spec_class_<?php echo ($cur_cate_id); ?>' id="spec_<?php echo ($spec['id']); ?>" >
-											 <div style='border:1px solid #e7eaec;padding:10px;margin-bottom: 10px;' >
-												<input name="spec_id[]" type="hidden" class="form-control spec_id" value="<?php echo ($spec['id']); ?>"/>
-												<div class="form-group">
-													<div class="col-sm-12">
-														<div class='input-group'>
-															<input name="spec_title[<?php echo ($spec['id']); ?>]" type="text" class="form-control  spec_title" value="<?php echo ($spec['title']); ?>" placeholder="规格名称 (比如: 颜色)"/>
-															<div class='input-group-btn'>
-																<a href="javascript:;" id="add-specitem-<?php echo ($spec['id']); ?>" specid='<?php echo ($spec['id']); ?>' class='btn btn-info add-specitem' onclick="addSpecItem('<?php echo ($spec['id']); ?>')"><i class="fa fa-plus"></i> 添加规格项</a>
-																<a href="javascript:void(0);" class='btn btn-danger' onclick="removeSpec('<?php echo ($spec['id']); ?>')"><i class="fa fa-remove"></i></a>
-															</div>
-														</div>
-													</div>
-												</div>
-												<div class="form-group">
-													<div class="col-md-12">
-														<div id='spec_item_<?php echo ($spec['id']); ?>' class='spec_item_items'>
-														<?php foreach( $spec['items'] as $specitem ){ ?>
-															 <!--spec_item begin-->
-															<div class="spec_item_item" style="float:left;margin:5px;width:250px; position: relative">
-																<input type="hidden" class="form-control spec_item_show" name="spec_item_show_<?php echo ($spec['id']); ?>[]" value="<?php echo ($specitem['show']); ?>" />
-																<input type="hidden" class="form-control spec_item_id" name="spec_item_id_<?php echo ($spec['id']); ?>[]" value="<?php echo ($specitem['id']); ?>" />
-																
-																<div class="input-group">
-																	<span class="input-group-addon">
-																		<input type="checkbox" lay-skin="primary" <?php if( $specitem['id']>0){ ?>checked<?php } ?> value="1" onclick='showItem(this)'>
-																	</span>
-																	<input type="text" class="form-control spec_item_title" onblur="refreshOptions()" name="spec_item_title_<?php echo ($spec['id']); ?>[]" VALUE="<?php echo ($specitem['title']); ?>" />
-																	
-																	<span class="input-group-addon spec_item_thumb <?php if( !empty($specitem['thumb'])){ ?>has_thumb<?php } ?>">
-																				   <input type='hidden'  name="spec_item_thumb_<?php echo ($spec['id']); ?>[]" value="<?php echo ($specitem['thumb']); ?>"
-																					/>
-																			<img onclick="selectSpecItemImage(this)"  
-																				 src="<?php if( empty($specitem['thumb'])){ }else{ echo resize($specitem['thumb'],100); } ?>" style='width:100%;'
-																				 <?php if( !empty($specitem['thumb'])){ ?>
-																						data-toggle='popover'
-																						data-html ='true'
-																						data-placement='top'
-																						data-trigger ='hover'
-																						data-content="<img src='<?php echo tomedia($specitem['thumb']);?>' style='width:100px;height:100px;' />"
-																				  <?php } ?>
-																				 >
-																			<i class="fa fa-times-circle" <?php if( empty($specitem['thumb'])){ ?>style="display:none"<?php } ?>></i> 
-																	</span>
-																	
-																	<span class="input-group-addon">
-																		<a href="javascript:;" onclick="removeSpecItem(this)" title='删除'><i class="fa fa-times"></i></a>
-																		<a href="javascript:;" class="fa fa-arrows" title="拖动调整显示顺序" ></a>
-																	</span>
-																</div>
-															  
-																			
-															</div>
-															 <!--spec_item end-->
-														<?php } ?>
-														</div>
-													</div>
-												</div>
-										   </div> 
-										</div>
-
-										<!--end spec-->
-										<?php } ?>
-									</div>
-									
-									<table class="table">
-										<tr>
-											<td>
-											<div class="layui-form-item">
-												<label class="col-sm-2 control-label">选择已有规格</label>
-												<div class="col-sm-8 col-xs-12">
-													<select id="cates2"   name='options[]' class="form-control select2" style='width:605px;' multiple='' >
-														<?php foreach( $spec_list as $c ){ ?>
-														<option value="<?php echo ($c['id']); ?>" data-names="<?php echo ($c['value_str']); ?>"><?php echo ($c['name']); ?></option>
-														<?php } ?>
-													</select>
-													
-												</div>
-											</div>
-											<td>
-										</tr>
-										<tr>
-											<td>
-												<h4>
-													<a href="javascript:;" class='btn btn-primary' id='add-spec' onclick="addSpec()" style="margin-top:10px;margin-bottom:10px;" title="新建规格"><i class='fa fa-plus'></i> 新建规格</a>
-													<a style="display:none;" href="javascript:;" onclick="refreshOptions();" title="刷新规格项目表" class="btn btn-primary"><i class="fa fa-refresh"></i> 刷新规格项目表</a>
-												</h4>
-											</td>
-										</tr>
-										<tr style="display: none;" >
-											<td>
-												<div class="alert alert-danger">警告:规格数据有变动,请重新点击上方 [刷新规格项目表] 按钮!</div>
-											</td>
-										</tr>
-									</table>
-								
-									<div class="alert alert-info wholesalewarning"  style="display:none;">
-									
-									</div>
-								<div id="options" style="padding:0;"><?php echo ($item['html']); ?></div>
-							</div>
-
-							
-							</div>
-						</div>
-						<input type="hidden" name="optionArray" value=''>
-						<input type="hidden" name="isdiscountDiscountsArray" value=''>
-						<input type="hidden" name="discountArray" value=''>
-						<input type="hidden" name="commissionArray" value=''>
-						
-
-						<!--规格end-->
-					</div>
-					
-					
-					<div class="layui-tab-item <?php if( $_GPC['tab']=='des'){ ?>layui-show<?php } ?>"  > 
-						<div class="region-goods-details row">
-							<div class="region-goods-left col-sm-2">商品详情</div>
-							<div class=" region-goods-right col-sm-10">
-								<div class="" >
-								  
-									<?php echo tpl_ueditor('content',htmlspecialchars_decode($item['content']),array('height'=>'300'));?>
-									
-								</div>
-							</div>
-						</div>
-
-
-					</div>
-					
-				
-					
-					<!---团长分销begin --->
-					<div class="layui-tab-item <?php if( $_GPC['tab']=='community_head_level'){ ?>layui-show<?php } ?>" > 
-						
-						
-						
-						<div class="region-goods-details row">
-							<div class="region-goods-left col-sm-2">团长提成</div>
-							<div class="region-goods-right col-sm-10">
-							
-							<?php if( !empty($community_head_level) && count($community_head_level) > 1 && $is_head_takegoods == 1 ) { ?>
-								<div class="form-group">
-									<label class="col-sm-2 control-label">独立规则</label>
-									<div class="col-sm-9 col-xs-12">
-										
-											<input type="checkbox" id="is_modify_head_commission" lay-skin="primary" value="1" name="is_modify_head_commission" lay-filter="is_modify_head_commission" <?php if( $item['is_modify_head_commission']==1){ ?>checked<?php } ?> title="启用独立团长提成" />
-										
-										<span class="help-block">默认使用团长等级提成设置,启用独立团长提成设置,此商品拥有独自的团长提成比例,不受团长等级比例及默认设置限制,团长提成 = 订单有效金额 * 设置比例</span>
-									</div>
-								</div>
-								<div id="head_commission_div" <?php if( empty($item['is_modify_head_commission'])){ ?>style="display:none"<?php } ?> >
-									<?php foreach($community_head_level as $head_level){ ?>
-									
-									<div class="form-group">
-										<label class="col-sm-2 control-label"><?php echo $head_level['levelname']; ?></label>
-										<div class="col-sm-4 col-xs-12">
-											<div class="input-group">
-												<input type="text" name="head_level<?php echo $head_level['id']; ?>"  class="form-control" value="<?php echo $item['head_level'.$head_level['id']]; ?>" />
-												<?php if( !empty($community_money_type) && $community_money_type ==1 ){ ?>
-												<div class="input-group-addon">元 </div>
-												<?php }else{ ?>
-												<div class="input-group-addon">%</div>
-												<?php } ?>
-											</div>
-										</div>
-									</div>
-									<?php } ?>
-								</div>
-								<?php } ?>
-								
-								
-								<?php if( empty($community_head_level) || count($community_head_level) ==1 || $is_head_takegoods ==0 ){ ?>
-								
-								<div class="form-group">
-										<label class="col-sm-2 control-label">独立规则</label>
-										<div class="col-sm-9 col-xs-12">
-											<input type="checkbox" id="is_community_head_commission" lay-skin="primary" value="1" name="is_community_head_commission" lay-filter="is_community_head_commission" <?php if( $item['is_community_head_commission']==1){ ?>checked<?php } ?> title="商品启用独立团长提成" />
-											<br />
-											<span class="help-block">勾选后此处优先生效,不勾选则使用 后台——“团长设置”中团长提成比例 计算佣金</span>	
-										</div>	
-								</div>								
-								
-								<div id="head_commission_div2" <?php if( empty($item['is_community_head_commission'])){ ?>style="display:none"<?php } ?> >
-								
-									<div class="form-group">
-
-									   <label class="col-sm-2 control-label">商品独立团长提成</label>
-
-									   <?php if( !empty($community_money_type) && $community_money_type ==1 ){ ?>
-										<div class="col-sm-4 col-xs-12">
-											<div class="input-group">
-												<input type="text" name="community_head_commission" id="community_head_commission" class="form-control valid" value="<?php if(empty($item)){ echo ($communityhead_commission); }else{ echo ($item['community_head_commission']); } ?>" />
-												<span class="input-group-addon">元 </span>
-											</div>
-											<div class="layui-form-mid layui-word-aux">预计团长可得佣金¥<font ><?php if(isset($item['community_head_commission'])){ echo round( $item['community_head_commission'] ,2) ; }else{ ?>0.00<?php } ?></font></div>	
-										</div>
-										<?php }else{ ?>
-										<div class="col-sm-4 col-xs-12">
-											<div class="input-group">
-												<input type="text" name="community_head_commission" id="community_head_commission" class="form-control valid" value="<?php if( empty($item)){ echo ($communityhead_commission); }else{ echo ($item['community_head_commission']); } ?>" />
-												<span class="input-group-addon">% </span>
-											</div>
-											<div class="layui-form-mid layui-word-aux">预计团长可得佣金¥<font id="precommiss_head_money_tip"><?php if( isset($item['community_head_commission'])){ echo round( ($item['community_head_commission']*$item['price'])/100 ,2); }else{ ?>0.00<?php } ?></font>,将根据商品最终的成交价格来计算佣金</div>	
-										</div>
-										<?php } ?>
-										
-										
-									</div>
-								</div>
-						
-								<?php } ?>
-								
-							</div>
-						</div>
-							
-					
-							
-							
-							<?php if($commiss_level > 0){ ?>
-							<div class="region-goods-details row">					
-								<div class="region-goods-left col-sm-2">会员分销</div>
-								<div class="region-goods-right col-sm-10">
-								
-									<div class="form-group">
-										<label class="col-sm-2 control-label">是否参与分销</label>
-										<div class="col-sm-9 col-xs-12">
-											
-												<input type="radio"  value="0" name="nocommission" <?php if($item['nocommission']==0){ ?>checked<?php } ?> title="参与分销" /> 
-											
-												<input type="radio"  value="1" name="nocommission" <?php if($item['nocommission']==1){ ?>checked<?php } ?> title="不参与分销" /> 
-											
-												<span class="help-block">如果不参与分销,则不产生分销佣金</span>
-										</div>
-									</div>
-
-									<div class="form-group">
-										<label class="col-sm-2 control-label">独立规则</label>
-										<div class="col-sm-9 col-xs-12">
-										   
-											<input type="checkbox" lay-filter="hascommission" lay-skin="primary" id="hascommission"  value="1" name="hascommission" <?php if($item['hascommission']==1){ ?>checked<?php } ?> title="启用独立佣金比例" />
-											
-											<span class="help-block">启用独立佣金设置,此商品拥有独自的佣金比例,不受分销商等级比例及默认设置限制</span>
-										   
-										</div>
-									</div>
-									<div style="clear:both;"></div>
-									<div id="commission_div" <?php if(empty($item['hascommission'])){ ?>style="display:none"<?php } ?> >
-
-
-										<div id="commission_0"  <?php if($commission_type!=0){ ?> style="display:none;" <?php } ?>>
-										<div class='alert alert-danger'>
-											如果比例为空,则使用固定规则,如果都为空则无分销佣金,都填写则以比例优先
-										</div>
-										
-										<?php if($set['commiss_level']>=1){ ?>
-										<div class="form-group">
-											<label class="col-sm-2 control-label">一级分销</label>
-											<div class="col-sm-4 col-xs-12">
-											   
-												<div class="input-group">
-													<input type="text" name="commission1_rate" id="commission1_rate" class="form-control" value="<?php echo ($item['commission1_rate']); ?>" />
-													<div class="input-group-addon">% 固定</div>
-													<input type="text" name="commission1_pay" id="commission1_pay" class="form-control" value="<?php echo ($item['commission1_pay']); ?>" />
-													<div class="input-group-addon">元</div>
-												</div>
-												
-											</div>
-										</div>
-										<?php } ?>
-										<?php if($set['commiss_level']>=2){ ?>
-										
-										<div class="form-group">
-											<label class="col-sm-2 control-label">二级分销</label>
-											<div class="col-sm-4 col-xs-12">
-												
-												<div class="input-group">
-													<input type="text" name="commission2_rate" id="commission2_rate" class="form-control" value="<?php echo ($item['commission2_rate']); ?>" />
-													<div class="input-group-addon">% 固定</div>
-													<input type="text" name="commission2_pay" id="commission2_pay" class="form-control" value="<?php echo ($item['commission2_pay']); ?>" />
-													<div class="input-group-addon">元</div>
-												</div>
-												
-											</div>
-										</div>
-										<?php } ?>
-										<?php if($set['commiss_level']>=3){ ?>
-										<div class="form-group">
-											<label class="col-sm-2 control-label">三级分销</label>
-											<div class="col-sm-4 col-xs-12">
-												<div class="input-group">
-													<input type="text" name="commission3_rate" id="commission3_rate" class="form-control" value="<?php echo ($item['commission3_rate']); ?>" />
-													<div class="input-group-addon">% 固定</div>
-													<input type="text" name="commission3_pay" id="commission3_pay" class="form-control" value="<?php echo ($item['commission3_pay']); ?>" />
-													<div class="input-group-addon">元</div>
-												</div>
-											</div>
-										</div>
-										<?php } ?>
-									</div>
-									
-								</div>
-								</div>
-								
-							</div>
-							<?php } ?>
-						
-							
-							
-							<div class="region-goods-details row">					
-								<div class="region-goods-left col-sm-2">会员等级折扣</div>
-								<div class="region-goods-right col-sm-10">
-								
-									<div class="form-group">
-										<label class="col-sm-2 control-label">是否参与会员折扣</label>
-										<div class="col-sm-9 col-xs-12">
-											
-												<input type="radio"  value="1" name="is_mb_level_buy" <?php if(!isset($item['is_mb_level_buy']) || $item['is_mb_level_buy']==1){ ?>checked<?php } ?> title="参与" /> 
-											
-												<input type="radio"  value="0" name="is_mb_level_buy" <?php if($item['is_mb_level_buy']==0){ ?>checked<?php } ?> title="不参与" /> 
-											
-												<span class="help-block">如果不参与会员折扣,则不打折</span>
-											
-										</div>
-									</div>
-
-									<div class="form-group">
-										<label class="col-sm-2 control-label">独立规则</label>
-										<div class="col-sm-9 col-xs-12">
-											<input type="checkbox" lay-filter="has_mb_level_buy" lay-skin="primary" id="has_mb_level_buy"  value="1" name="has_mb_level_buy" <?php if($item['has_mb_level_buy']==1){ ?>checked<?php } ?> title="启用独立折扣比例" />
-											<span class="help-block">启用独立折扣设置,此商品拥有独立的会员等级折扣比例,不受会员等级折扣设置限制</span>
-										</div>
-									</div>
-
-									<div style="clear:both;"></div>
-									<div id="mb_level_div" <?php if(empty($item['has_mb_level_buy'])){ ?>style="display:none"<?php } ?> >
-										<div id="mb_level_tip">
-											<div class='alert alert-danger'>
-												请填写1-99的<span style="color:red">整数</span>,100不打折。例如:80,打八折,该会员对应等级会员价=商品现价*80%
-												<?php if( empty($member_level_ist) ){ ?>
-													<br>
-												<span style="color:red">暂无会员等级,请前往会员--》会员等级 添加会员等级</span>
-												<?php } ?>
-											</div>
-										</div>
-										<?php foreach($member_level_ist as $k=>$v){?>
-										<div class="form-group">
-											<label class="col-sm-2 control-label"><?php echo $v['levelname']?></label>
-											<div class="col-sm-4 col-xs-4">
-												<div class="input-group">
-													<input type="hidden" name="level_id[]" class="form-control" value="<?php echo $v['id']?>" />
-													<input type="text" name="discount[]" class="form-control" value="<?php echo $mb_level_discount_list[$v['id']];?>" />
-													<div class="input-group-addon">% </div>
-												</div>
-											</div>
-										</div>
-										<?php }?>
-									</div>
-								</div>
-							</div>
-							
-							
-					
-					<!--团长分销end--->
-					
-					
-					
-				  </div>
-				 
-					
-				  <?php if( !empty($is_open_goods_relative_goods) && $is_open_goods_relative_goods == 1 ){ ?>
-				  <div class="layui-tab-item <?php if( $_GPC['tab']=='goods_relative_goods'){ ?>layui-show<?php } ?>"  > 
-						<div class="region-goods-details row">
-							<div class="region-goods-left col-sm-2">推荐商品</div>
-							<div class=" region-goods-right col-sm-10">
-								<div class="input-group " style="margin: 0;">
-									<input type="text" disabled value="" class="form-control valid" name="" placeholder="" id="agent_id">
-									<span class="input-group-btn">
-										<span data-input="#agent_id" id="chose_agent_id2"  class="btn btn-default">选择商品</span>
-									</span>
-								</div>
-								<?php if(!empty($limit_goods)){ ?>
-								<?php foreach( $limit_goods as $goods ){ ?>
-								<div class="input-group mult_choose_goodsid" data-gid="<?php echo ($goods['gid']); ?>" style="border-radius: 0;float: left;margin: 10px;margin-left:0px;width: 22%;">	
-									<div class="layadmin-text-center choose_user">		
-										<img style="" src="<?php echo ($goods['image']); ?>">		
-										<div class="layadmin-maillist-img" style=""><?php echo ($goods['goodsname']); ?></div>		
-										<button type="button" class="layui-btn layui-btn-sm" onclick="cancle_bind(this)">
-											<i class="layui-icon"></i>
-										</button>	
-									</div>
-								</div>
-								<?php }} ?>
-							</div>
-						</div>
-					</div>
-					<?php } ?>
-					
-					<?php if( $open_goods_distribution == 1 ) { ?>
-					<div class="layui-tab-item <?php if( $_GPC['tab']=='goods_distribution'){ ?>layui-show<?php } ?>"  > 
-						<div class="region-goods-details row">
-							<div class="region-goods-left col-sm-2">同城配送</div>
-							<div class=" region-goods-right col-sm-10">
-								
-								<div class="form-group">
-									<label class="col-sm-2 control-label">同城配送</label>
-									<div class="col-sm-4 col-xs-12 col-md-10">
-										
-										<div class="input-group">
-											<input type="checkbox"  lay-skin="primary" id="is_only_distribution"  name="is_only_distribution" lay-filter="is_only_distribution" <?php if(isset($item['is_only_distribution']) && $item['is_only_distribution'] ==1 ){ ?> checked <?php } ?> value="1" />
-										</div>
-
-										<span style="color:#999!important;">勾选后该商品会在购物车中显示同城配送,所有同城配送的商品单独结算,订单提交只有同城配送方式</span><br />
-										<span style="color:red">勾选后,此商品为同城配送商品。会自动取消仅快递和到店核销的勾选</span>
-
-									</div>
-								</div>
-								<div class="form-group">
-									<label class="col-sm-2 control-label">包装费</label>
-									<div class="col-sm-4 col-xs-12">
-										<div class="input-group">
-											<input type="text" name="packing_free" id="packing_free" class="form-control" value="<?php if( !isset($item['packing_free']) ){ ?>0<?php }else{ echo ($item['packing_free']); } ?>" />
-											<div class="input-group-addon">元</div>
-										</div>
-										<span style="color:#999!important;">零元表示没有包装费这一项</span>
-									</div>
-								</div>
-										
-							</div>
-						</div>
-					</div>
-					<?php } ?>
-
-					<div class="layui-tab-item <?php if( $_GPC['tab']=='hexiao'){ ?>layui-show<?php } ?>"  >
-						<div class="region-goods-details row">
-							<div class="region-goods-left col-sm-2">到店核销</div>
-							<div class="region-goods-right col-sm-10">
-								<?php if(empty($is_exist_salesroom)){ ?>
-									<div class="form-group" style="margin: 20px;">
-										<div class="col-sm-12 col-xs-12 col-md-12">
-											<span style="color:red;">“到店核销”功能需要与门店信息配合使用,您暂无设置门店信息,请先<a href="<?php echo U('salesroom/index');?>" style="color:#428bca;">去添加</a>门店信息然后再进行到店核销设置</span>
-										</div>
-									</div>
-
-								<?php }else{ ?>
-								<div class="form-group">
-									<label class="col-sm-2 control-label">到店核销</label>
-									<div class="col-sm-4 col-xs-12 col-md-10">
-										<div class="input-group">
-											<input type="checkbox"  lay-skin="primary"  name="is_only_hexiao" id="is_only_hexiao" lay-filter="is_only_hexiao" <?php if(isset($item['is_only_hexiao']) && $item['is_only_hexiao'] ==1 ){ ?> checked <?php } ?> value="1" />
-										</div>
-										<span style="color:#999!important;">勾选后该商品会在购物车中显示核销商品,所有核销商品单独结算,订单提交只有到店核销方式</span><br />
-										<span style="color:red">勾选后,此商品为到店核销商品。会自动取消仅快递和同城配送的勾选</span>
-									</div>
-								</div>
-								<div class="form-group">
-									<label class="col-sm-2 control-label">核销方式</label>
-									<div class="col-sm-9 col-xs-12">
-										<input type="radio"  value="0" name="hexiao_type" lay-filter="hexiao_type"  <?php if(!isset($item['hexiao_type']) || $item['hexiao_type'] == 0){ ?>checked<?php } ?> title="订单核销" />
-										<input type="radio"  value="1" name="hexiao_type" lay-filter="hexiao_type"  <?php if(isset($item['hexiao_type']) && $item['hexiao_type'] == 1){ ?>checked<?php } ?> title="自定义核销次数" />
-										<span class="help-block" style="font-size: 12px;<?php if(!isset($item['hexiao_type']) || $item['hexiao_type'] == 0){ ?>display:block;<?php }else{ ?>display:none;<?php } ?>" id="hexiao_type_0">核销一次后即过期</span>
-										<span class="help-block" style="font-size: 12px;margin-left:120px;<?php if(isset($item['hexiao_type']) && $item['hexiao_type'] == 1){ ?>display:block;<?php }else{ ?>display:none;<?php } ?>" id="hexiao_type_1">设置的单个到店核销次数核销</span>
-									</div>
-								</div>
-								<div class="form-group" id="hx_goods_time" style="<?php if(isset($item['hexiao_type']) && $item['hexiao_type'] == 1){ ?>display:block;<?php }else{ ?>display:none;<?php } ?>">
-									<label class="col-sm-2 control-label"></label>
-									<div class="col-sm-9 col-xs-12">
-										<div class="col-sm-9 col-xs-12">
-											<label class="col-sm-2 control-label">单个到店核销次数</label>
-											<div class="col-sm-9 col-xs-12">
-												<input type="text" name="hx_one_goods_time" id="hx_one_goods_time" class="form-control" value="<?php echo ($item['hx_one_goods_time']); ?>" style="width: 500px;"/>
-												<span class="help-block" style="font-size: 12px;">单个到店核销次数,不填或填写0及以下为默认不限次数,核销员 “全部核销”  为一次核销完成,管理员订单 “确认使用” 为一次核销完成</span>
-											</div>
-										</div>
-									</div>
-								</div>
-								<div class="form-group">
-									<label class="col-sm-2 control-label">核销有效期</label>
-									<div class="col-sm-9 col-xs-12">
-										<input type="radio"  value="0" name="hx_expire_type" lay-filter="hx_expire_type"  <?php if(!isset($item['hx_expire_type']) || $item['hx_expire_type'] == 0){ ?>checked<?php } ?> title="购买后有效期" />
-										<input type="radio"  value="1" name="hx_expire_type" lay-filter="hx_expire_type"  <?php if(isset($item['hx_expire_type']) && $item['hx_expire_type'] == 1){ ?>checked<?php } ?> title="指定过期时间" />
-									</div>
-								</div>
-								<div class="form-group" id="hx_expire_type_0" style="<?php if(!isset($item['hx_expire_type']) || $item['hx_expire_type'] == 0){ ?>display:block;<?php }else{ ?>display:none;<?php } ?>">
-									<label class="col-sm-2 control-label"></label>
-									<div class="col-sm-9 col-xs-12">
-										<div class="col-sm-9 col-xs-12">
-											<label class="col-sm-2 control-label">有效天数</label>
-											<div class="col-sm-9 col-xs-12">
-												<input type="text" name="hx_expire_day" id="hx_expire_day" class="form-control" value="<?php echo ($item['hx_expire_day']); ?>" style="width: 300px;display: inline-block;"/><span style="margin:5px;">天</span>
-												<span class="help-block" style="font-size: 12px;">自购买之日起多少天内有效,不写默认90天</span>
-											</div>
-										</div>
-									</div>
-								</div>
-								<div class="form-group" id="hx_expire_type_1" style="<?php if(isset($item['hx_expire_type']) && $item['hx_expire_type'] == 1){ ?>display:block;<?php }else{ ?>display:none;<?php } ?>">
-									<label class="col-sm-2 control-label"></label>
-									<div class="col-sm-9 col-xs-12">
-										<div class="col-sm-9 col-xs-12">
-											<label class="col-sm-2 control-label">过期时间</label>
-											<div class="col-sm-9 col-xs-12">
-												<input type="text" name="hx_expire_end_time" id="hx_expire_end_time" class="form-control" value="<?php echo ($item['hx_expire_end_time']); ?>" lay-filter="hx_expire_end_time" placeholder="yyyy-MM-dd HH:mm:ss" style="width: 300px;"/>
-												<span class="help-block" style="font-size: 12px;">在指定过期时间之前才能核销</span>
-											</div>
-											<label class="col-sm-2 control-label"></label>
-											<div class="col-sm-9 col-xs-12 input-group fixsingle-input-group" style="padding-left: 15px;">
-												<div class="input-group-addon"><input type="checkbox"  lay-skin="primary"  name="hx_auto_off" id="hx_auto_off" lay-filter="hx_auto_off" <?php if(!isset($item['hx_auto_off']) || $item['hx_auto_off'] == 1){ ?>checked<?php } ?> value="1" />自动下架商品,提前</div>
-												<input class="form-control" name="hx_auto_off_time" id="hx_auto_off_time" type="text" placeholder="" value="<?php if(!isset($item['hx_auto_off'])){?>6<?php }else{ echo $item['hx_auto_off_time'];} ?>">
-												<div class="input-group-addon">小时</div>
-											</div>
-											<label class="col-sm-2 control-label" style="margin-right: 15px;"></label>
-											<span class="layui-form-mid layui-word-aux" style="font-size: 12px;">在指定过期时间前多少个小时自动下架,防止已过期商品还可以购买;没勾选,到期自动下架。 </span>
-										</div>
-									</div>
-								</div>
-								<div class="form-group">
-									<label class="col-sm-2 control-label">指定门店</label>
-									<div class="col-sm-9 col-xs-12">
-										<input type="radio"  value="0" name="hx_assign_salesroom" lay-filter="hx_assign_salesroom"  <?php if(!isset($item['hx_assign_salesroom']) || $item['hx_assign_salesroom'] == 0){ ?>checked<?php } ?> title="所有门店" />
-										<input type="radio"  value="1" name="hx_assign_salesroom" lay-filter="hx_assign_salesroom"  <?php if(isset($item['hx_assign_salesroom']) && $item['hx_assign_salesroom'] == 1){ ?>checked<?php } ?> title="指定门店" />
-									</div>
-								</div>
-								<div class="form-group" id="hx_assign_salesroom_1" style="<?php if(isset($item['hx_assign_salesroom']) && $item['hx_assign_salesroom'] == 1){ ?>display:block;<?php }else{ ?>display:none;<?php } ?>">
-									<label class="col-sm-2 control-label"></label>
-									<div class="col-sm-9 col-xs-12">
-										<div class="input-group " style="margin: 0;">
-											<input type="text" disabled value="" class="form-control valid" placeholder="" id="salesroom_id">
-											<span class="input-group-btn">
-												<span data-input="#hexiao_salesroom_list" id="chose_salesroom_id"  class="btn btn-default">选择门店</span>
-											</span>
-										</div>
-										<span class="help-block" style="font-size: 12px;">门店下方所有核销人员都可以核销该商品,也可以单独指定门店的核销人员进行核销。</span>
-									</div>
-								</div>
-								<div class="form-group" id="hx_salesroom_list" style="<?php if(isset($item['hx_assign_salesroom']) && $item['hx_assign_salesroom'] == 1){ ?>display:block;<?php }else{ ?>display:none;<?php } ?>">
-									<label class="col-sm-2 control-label"></label>
-									<div class="col-sm-9 col-xs-12">
-										<?php if(isset($item['salesroom_list']) && count($item['salesroom_list']) > 0){ $i = 1;?>
-										<?php foreach($item['salesroom_list'] as $rk=>$rv){?>
-										<div class="input-group mult_choose_room_list" style="width:100%">
-											<div class="input-group mult_choose_roomid" data-roomid="<?php echo $rv['salesroom_id']; ?>" style="border-radius: 0;margin: 10px;margin-left:0px;">
-												<div class="choose_room_title">指定门店<?php echo $i;$i++;?></div>
-												<div class="layadmin-text-center choose_user">
-													<img style="" src="<?php echo tomedia($rv['room_logo']);?>">
-													<div class="layadmin-maillist-img" style=""><?php echo $rv['room_name']; ?></div>
-													<button type="button" class="layui-btn layui-btn-sm" onclick="cancle_room_bind(this)">
-														<i class="layui-icon"></i>
-													</button>
-												</div>
-											</div>
-											<div class="input-group" style="margin-top: 10px;">
-												<input type="checkbox" class="is_hx_member" lay-filter="is_hx_member" lay-skin="primary" name="is_hx_member" value="1" title="是否指定核销人员" <?php if(isset($rv['is_hx_member']) && $rv['is_hx_member'] == 1){ ?>checked<?php } ?>>
-												<div class="layui-unselect layui-form-checkbox" lay-skin="primary">
-													<span>是否指定核销人员</span>
-													<i class="layui-icon layui-icon-ok"></i>
-												</div>
-											</div>
-
-											<div class="input-group selectHxMember" style="margin-top: 10px;<?php if(empty($rv['smember_list'])){ ?>display:none;<?php } ?>">
-												<input type="text" disabled="" value="" class="form-control valid" name="smember_id" placeholder="">
-												<span class="input-group-btn">
-													<span data-input="#hexiao_smember_list_<?php echo $rv['salesroom_id']; ?>" class="btn btn-default chose_smember_id">选择核销人员</span>
-												</span>
-											</div>
-
-											<div class="form-group hx_smember_list" id="hx_smember_list" style="<?php if(empty($rv['smember_list'])){ ?>display:none;<?php } ?>">
-												<div class="col-sm-12 col-xs-12">
-													<div id="hexiao_smember_list_<?php echo $rv['salesroom_id']; ?>"></div>
-													<?php if(isset($rv['smember_list']) && count($rv['smember_list']) > 0){?>
-													<?php foreach($rv['smember_list'] as $mk=>$mv){?>
-													<div class="input-group mult_choose_smemberid" data-smemberid="<?php echo $mv['smember_id']; ?>" style="border-radius: 0;float: left;margin: 10px;margin-left:0px;">
-														<div class="layadmin-text-center choose_user">
-															<img src="<?php echo $mv['avatar']; ?>" style="padding1px;border:1px solid #ccc">
-															<div class="layadmin-maillist-img" style=""><?php echo $mv['username']; ?></div>
-															<button type="button" class="layui-btn layui-btn-sm" onclick="cancle_bind(this)">
-																<i class="layui-icon"></i>
-															</button>
-														</div>
-													</div>
-													<?php } ?>
-													<?php } ?>
-												</div>
-											</div>
-										</div>
-										<?php } ?>
-										<?php } ?>
-										<div id="hexiao_salesroom_list"></div>
-									</div>
-								</div>
-								<?php } ?>
-								<!--
-								<div class="form-group">
-									<label class="col-sm-2 control-label"></label>
-									<div class="col-sm-9 col-xs-12">
-										<input type="button" value="测试按钮" class="btn btn-primary hexiao_btn"  />
-									</div>
-								</div>-->
-
-							</div>
-						</div>
-					</div>
-				</div> 
-				
-				<script>
-					$(function(){
-						$(".select2").select2({
-							 placeholder:'请选择',
-							 allowClear:true
-						})
-					})
-				</script>
-				<div class="layui-form-item">
-					<label class="layui-form-label"> </label>
-					<div class="layui-input-block">
-						<input type="submit" value="提交" lay-submit lay-filter="formDemo" class="btn btn-primary"  />
-						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-						<a class="btn btn-default" style='margin-left:10px;' href="<?php echo U('goods/index' , array( 'ok' => 1));?>">返回列表</a>
-						
-					</div>
-				</div>
-			</form>
-		</div>
-</div>
-</div>
-
-
-<div id="batchheads" style="z-index: 999;display: none;position: fixed;top: 0;left: 0;right: 0;bottom: 0;background: rgba(0,0,0,0.5)" class="form-horizontal form-validate batchcates"  enctype="multipart/form-data">
-	<div class="modal-dialog" style="position: absolute;margin-top: -300px">
-		<div class="modal-content">
-			<div class="modal-header" style="padding:5px;">
-				<button data-dismiss="modal" class="close" type="button">×</button>
-				<h4 class="modal-title">选取团长</h4>
-			</div>
-			<div class="modal-body" style="height:600px">
-				<div class="form-group">
-					<label class="col-sm-2 control-label">社区位置</label>
-					<div class="col-sm-10 col-xs-12">
-						<p>
-							<select id="sel-provance" name="province_id" onChange="selectCity();" class="select form-control" style="width:160px;display:inline;">
-								<option value="" selected="true">省/直辖市</option>
-							</select>
-							<select id="sel-city" name="city_id" onChange="selectcounty(0)" class="select form-control" style="width:160px;display:inline;">
-								<option value="" selected="true">请选择</option>
-							</select>
-							<select id="sel-area" name="area_id" onChange="selectstreet(0)" class="select form-control" style="width:160px;display:inline;">
-								<option value="" selected="true">请选择</option>
-							</select>
-							<select id="sel-street" name="country_id" class="select form-control" style="width:160px;display:inline;">
-								<option value="" selected="true">请选择</option>
-							</select>
-						</p>
-					</div>
-				</div>
-				<div class="form-group">
-					<label class="col-sm-2 control-label">团长名称</label>
-					<div class="col-sm-10 col-xs-12">
-						<div class="input-group">
-							<input type="text" class="form-control" name="keyword" id="supply_id_input" placeholder="团长名称/团长手机号/社区地址">
-			            	<span class="input-group-btn">
-			            		<button type="button" class="btn btn-default" onclick="search_heads()">搜索</button>
-			            	</span>
-						</div>
-					</div>
-				</div>
-
-				<div class="form-group">
-					<div class="col-sm-1 control-label">
-
-					</div>
-					<div class="col-sm-10 col-xs-12">
-						<div class="page-table-header">
-							<input type="checkbox" class="check_heads_all">
-							<div class="btn-group">
-								全选/反选
-							</div>
-
-							<br/>
-							<label><input type="checkbox" class="is_cancle_old" id="is_cancle_old" style="vertical-align: text-bottom;">
-								<div class="btn-group" style="color:#666;">
-									同时取消以前所有分配
-								</div>
-							</label>
-							&nbsp;&nbsp;&nbsp;&nbsp;
-
-							<label><input type="checkbox" class="is_cancle_allhead" id="is_cancle_allhead" style="vertical-align: text-bottom;">
-								<div class="btn-group" style="color:#666;">
-									同时取消商品 “所有团长可售”
-								</div>
-							</label>
-
-
-						</div>
-					</div>
-				</div>
-
-				<div class="row">
-					<label class="col-sm-1 control-label"></label>
-					<div class="col-sm-11 col-xs-12">
-						<div class="content" style="padding-top:5px;" data-name="supply_id">
-							<div style="max-height:410px;overflow:auto;" id="batchheads_content">
-
-							</div>
-							<div class="" id="batchheads_page">
-
-							</div>
-						</div>
-					</div>
-				</div>
-
-
-			</div>
-			<div class="modal-footer">
-				<button class="btn btn-primary model_heads">确认</button>
-				<button class="btn btn-default" >取消</button>
-			</div>
-		</div>
-	</div>
-</div>
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script type="text/javascript" src="/static/js/jquery-migrate-1.1.1.js"></script>
-<script src="/static/js/jquery-ui.min.js"></script>
-<style>
-.multi-img-details{width:100%;}
-</style>
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-var cur_open_div;
-var form;
-
-layui.use(['jquery', 'layer','form', 'laydate'], function(){
-  $ = layui.$;
-	form = layui.form;
-	laydate = layui.laydate;
-	laydate.render({
-		elem: '#hx_expire_end_time'
-		,type: 'datetime'
-		,min: '<?php echo date("Y-m-d H:i:s"); ?>'
-	});
-  
-	form.on('radio(linktype)', function(data){
-		if (data.value == 2) {
-			$('#typeGroup').show();
-		} else {
-			$('#typeGroup').hide();
-		}
-	});  
-	
-	form.on('checkbox(is_modify_sendscore)', function(data){
-		console.log(data.elem.checked)
-	  if (data.elem.checked) {
-			console.log(12);
-			$("#send_score_divTip").css('display','inline');
-			$("#send_score_divTip2").css('display','inline');
-		} else {
-			console.log(33);
-			$("#send_score_divTip").hide();
-			$("#send_score_divTip2").hide();
-		}
-		form.render('checkbox');
-	});
-	
-	form.on('checkbox(xinrenckbox)', function(data){
-	  if (data.elem.checked) {
-			$("#xianshickbox").removeAttr("checked");
-		} else {
-			
-		}
-		form.render('checkbox');
-	});
-	
-	form.on('checkbox(xianshickbox)', function(data){
-		if (data.elem.checked) {
-			$("#xinrenckbox").removeAttr("checked");
-		} else {
-			
-		}
-		form.render('checkbox');
-	});
-	
-	form.on('checkbox(hascommission)', function(data){
-		
-		if (data.elem.checked) {
-			$('#commission_div').show();
-		} else {
-			$('#commission_div').hide();
-		}
-	})
-	//hascommission
-
-	form.on('checkbox(has_mb_level_buy)', function(data){
-
-		if (data.elem.checked) {
-			$('#mb_level_div').show();
-		} else {
-			$('#mb_level_div').hide();
-		}
-	})
-
-	form.on('checkbox(is_hx_member)', function(data){
-
-		if (data.elem.checked) {
-			$(this).parent().parent().find('.selectHxMember').show();
-			$(this).parent().parent().find('.hx_smember_list').show();
-		} else {
-			$(this).parent().parent().find('.selectHxMember').hide();
-			$(this).parent().parent().find('.hx_smember_list').hide();
-		}
-	})
-
-	form.on('radio(hexiao_type)', function(data){
-		if (data.elem.value == 1) {
-			$('#hexiao_type_0').hide();
-			$('#hexiao_type_1').show();
-			$('#hx_goods_time').show();
-		} else {
-			$('#hexiao_type_0').show();
-			$('#hexiao_type_1').hide();
-			$('#hx_goods_time').hide();
-		}
-	})
-	form.on('radio(hx_expire_type)', function(data){
-		if (data.elem.value == 1) {
-			$('#hx_expire_type_0').hide();
-			$('#hx_expire_type_1').show();
-		} else {
-			$('#hx_expire_type_0').show();
-			$('#hx_expire_type_1').hide();
-		}
-	})
-	form.on('radio(hx_assign_salesroom)', function(data){
-		if (data.elem.value == 1) {
-			$('#hx_assign_salesroom_1').show();
-			$('#hx_salesroom_list').show();
-		} else {
-			$('#hx_assign_salesroom_1').hide();
-			$('#hx_salesroom_list').hide();
-		}
-	})
-	//同城配送
-	form.on('checkbox(is_only_distribution)', function (data) {
-		if (data.elem.checked) {
-			$("#is_only_hexiao").removeAttr("checked");
-			$("#is_only_express").removeAttr("checked");
-		}
-		form.render('checkbox');
-	});
-	//仅快递
-	form.on('checkbox(is_only_express)', function (data) {
-		if (data.elem.checked) {
-			$("#is_only_distribution").removeAttr("checked");
-			$("#is_only_hexiao").removeAttr("checked");
-		}
-		form.render('checkbox');
-	});
-	//核销
-	form.on('checkbox(is_only_hexiao)', function (data) {
-		if (data.elem.checked) {
-			$("#is_only_distribution").removeAttr("checked");
-			$("#is_only_express").removeAttr("checked");
-		}
-		form.render('checkbox');
-	});
-
-	$('#chose_salesroom_id').click(function(){
-		var supply_id = $('input[name="supply_id"]').val();
-		cur_open_div = $(this).attr('data-input');
-		$.post("<?php echo U('salesroom/query', array('template' => 'mult_goods'));?>", {supply_id:supply_id}, function(shtml){
-			layer.open({
-				type: 1,
-				area: '930px',
-				content: shtml //注意,如果str是object,那么需要字符拼接。
-			});
-		});
-	})
-	$('.chose_smember_id').live('click',function(){
-		var room_id = $(this).parent().parent().parent().find('.mult_choose_roomid').attr('data-roomid');
-        cur_open_div = $(this).attr('data-input');
-        var post_url = "<?php echo U('salesroom_member/query', array('template' => 'mult_goods'));?>";
-        $.post(post_url, {room_id:room_id}, function(shtml){
-            layer.open({
-                type: 1,
-                area: '930px',
-                content: shtml //注意,如果str是object,那么需要字符拼接。
-            });
-        });
-	})
-	
-	/**
-	<?php if($delivery_type_express == 2){?>
-	form.on('checkbox(is_only_express111)', function(data){
-		if (data.elem.checked) {
-			$('#is_only_express').removeAttr("checked");
-			layer.msg("启用仅快递配送模式,请在物流设置开启快递配送方式!",{icon: 2,time: 3000});
-		}
-		form.render('checkbox');
-	})
-	<?php } ?>
-	**/
-									
-	$('#chose_label_id').click(function(){
-		cur_open_div = $(this).attr('data-input');
-		$.post("<?php echo U('goods/labelquery', array('ok' => 1));?>", {}, function(shtml){
-		 layer.open({
-			type: 1,
-			area: '930px',
-			content: shtml //注意,如果str是object,那么需要字符拼接。
-		  });
-		});
-	})
-	
-	$('#chose_member_id').click(function(){
-		cur_open_div = $(this).attr('data-input');
-		$.post("<?php echo U('supply/zhenquery', array('ok' => 1));?>", {}, function(shtml){
-		 layer.open({
-			type: 1,
-			area: '930px',
-			content: shtml //注意,如果str是object,那么需要字符拼接。
-		  });
-		});
-	})
-	$('#chose_agent_id').click(function(){
-		cur_open_div = $(this).attr('data-input');
-		$.post("<?php echo U('communityhead/query_head_user', array('ok' => 1));?>", {}, function(shtml){
-		 layer.open({
-			type: 1,
-			area: '930px',
-			content: shtml //注意,如果str是object,那么需要字符拼接。
-		  });
-		});
-	})
-	$('#chose_link').click(function(){
-		cur_open_div = $(this).attr('data-input');
-		$.post("<?php echo U('util.selecturl', array('ok' => 1));?>", {}, function(shtml){
-		 layer.open({
-			type: 1,
-			area: '930px',
-			content: shtml //注意,如果str是object,那么需要字符拼接。
-		  });
-		});
-	})
-	
-	$('.layui-tab-title li').click(function(){
-		form.render('radio');
-		form.render('checkbox');
-	})
-		
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	var loadingIndex = layer.load();
-
-	  $('input').blur(function () {
-		  $(this).css('border','#e7e7eb 1px solid');
-	  })
-
-	  var goodsname = $.trim($('#goodsname').val());
-	  if(goodsname == ''){
-		  layer.msg('商品名称必须填写',{icon: 1,time: 2000});
-		  $('#goodsname').focus();
-		  $('#goodsname').css('border','red 2px solid');
-		  layer.close(loadingIndex);
-		  return false;
-	  }
-
-	  var price = $.trim($('#price').val());
-	  if(price == ''){
-		  layer.msg('售价必须填写',{icon: 1,time: 2000});
-		  $('#price').focus();
-		  $('#price').css('border','red 2px solid');
-		  layer.close(loadingIndex);
-		  return false;
-	  }
-
-	  var productprice = $.trim($('#productprice').val());
-	  if(productprice == ''){
-		  layer.msg('原价必须填写',{icon: 1,time: 2000});
-		  $('#productprice').focus();
-		  $('#productprice').css('border','red 2px solid');
-		  layer.close(loadingIndex);
-		  return false;
-	  }
-
-	  
-
-
-
-	  if($('#hasoption').get(0).checked == false){
-		  console.log(222);
-		  var total =$('#total').val();
-		  if(total == ''){
-			  layer.msg('库存必须填写',{icon: 1,time: 2000});
-			  $('#total').focus();
-			  $('#total').css('border','red 2px solid');
-			  layer.close(loadingIndex);
-			  return false;
-		  }
-	  }
-
-
-
-
-
-
-
-	  var goods_start_count = $.trim($('input[name="goods_start_count"]').val());
-	  var r = /^\+?[1-9][0-9]*$/;  //正整数
-	  if(r.test(goods_start_count)){
-		  var oneday_limit_count = $.trim($('input[name="oneday_limit_count"]').val());
-		  if(parseInt(oneday_limit_count) > 0){
-			  if(parseInt(goods_start_count) > parseInt(oneday_limit_count)){
-				  layer.msg('起购数量必须小于每天限购',{icon: 1,time: 2000});
-				  $('input[name="goods_start_count"]').focus();
-				  layer.close(loadingIndex);
-				  return false;
-			  }
-		  }
-		  var one_limit_count = $.trim($('input[name="one_limit_count"]').val());
-		  if(parseInt(one_limit_count) > 0){
-			  if(parseInt(goods_start_count) > parseInt(one_limit_count)){
-				  layer.msg('起购数量必须小于单次限购',{icon: 1,time: 2000});
-				  $('input[name="goods_start_count"]').focus();
-				  layer.close(loadingIndex);
-				  return false;
-			  }
-		  }
-		  var total_limit_count = $.trim($('input[name="total_limit_count"]').val());
-		  if(parseInt(total_limit_count) > 0){
-			  if(parseInt(goods_start_count) > parseInt(total_limit_count)){
-				  layer.msg('起购数量必须小于历史限购',{icon: 1,time: 2000});
-				  $('input[name="goods_start_count"]').focus();
-				  layer.close(loadingIndex);
-				  return false;
-			  }
-		  }
-	  }
-	  //判断付费会员价
-	  var is_take_vipcard = $('input[name="is_take_vipcard"]').prop('checked');
-	  if(is_take_vipcard){
-		  var card_price = $.trim($('#card_price').val());
-		  var price = $.trim($('#price').val());
-		  var fix_amountTest=/^(([1-9]\d*)|\d)(\.\d{1,2})?$/;
-		  if(card_price == '' || fix_amountTest.test(card_price)==false){
-			  layer.msg('请填写正确的商品付费会员专享价');
-			  layer.close(loadingIndex);
-			  return false;
-		  }
-		  if(price == '' || fix_amountTest.test(price)==false){
-			  layer.msg('请填写正确的商品价格售价');
-			  layer.close(loadingIndex);
-			  return false;
-		  }
-		  if(parseFloat(card_price) > parseFloat(price)){
-			  layer.msg('付费会员专享价不能大于售价');
-			  layer.close(loadingIndex);
-			  return false;
-		  }
-		  var check_cardprice = true;
-		  var check_market_price = true;
-		  var check_card_market = true;
-		  $('.option_cardprice').each(function(){
-			  var cardprice = $.trim($(this).val());
-			  var marketprice = $.trim($(this).parent().parent().find('.option_marketprice').val());
-			  if(cardprice == '' || fix_amountTest.test(cardprice) == false || parseFloat(cardprice) < 0.01){
-				  check_cardprice = false;
-			  }
-			  if(marketprice == '' || fix_amountTest.test(marketprice) == false || parseFloat(marketprice) < 0.01){
-				  check_market_price = false;
-			  }
-			  if(parseFloat(cardprice) > parseFloat(marketprice)){
-				  check_card_market = false;
-			  }
-		  })
-		  if(!check_cardprice){
-			  layer.msg('多规格付费会员专享价不能为空且最低0.01元');
-			  layer.close(loadingIndex);
-			  return false;
-		  }
-		  if(!check_market_price){
-			  layer.msg('多规格商品售价不能为空且最低0.01元');
-			  layer.close(loadingIndex);
-			  return false;
-		  }
-		  if(!check_card_market){
-			  layer.msg('多规格付费会员专享价不能大于售价');
-			  layer.close(loadingIndex);
-			  return false;
-		  }
-
-	  }
-
-	var s_cates = $('#cates').val();
-	var cate_mult = [];
-	for(var i in s_cates)
-	{
-		cate_mult.push(s_cates[i]);
-	}
-	data.field.cate_mult = cate_mult;
-	
-	<?php if( !empty($is_open_goods_relative_goods) && $is_open_goods_relative_goods == 1 ){ ?>
-	var gd_ar = [];
-	var gd_str = '';
-	$('.mult_choose_goodsid').each(function(){
-		gd_ar.push( $(this).attr('data-gid') );
-	})
-	gd_str = gd_ar.join(',');
-	
-	data.field.limit_goods_list = gd_str;
-	<?php } ?>
-	
-	var is_mult_option = $('input[name=hasoption]').is(':checked');
-
-
-	if( is_mult_option )
-	{
-		var spec_item_all_count = 0;
-		var spec_item_all = false;
-		$('.spec_item').each(function(){
-			spec_item_all_count++;
-		});
-		if(spec_item_all || spec_item_all_count == 0)
-		{
-			layer.msg('请填写商品的规格名称');
-			layer.close(loadingIndex);
-			return false;
-		}
-		var is_spec_break = false;
-		$('.spec_item').each(function(){
-			spec_item_all_count++;
-			//检测商品规格是否配置
-			var spec_val;
-			var spec_item_val;
-			var is_spec = false;
-			var is_spec_item = false;
-			var spec_count = 0;
-			var spec_item_count = 0;
-			
-			$(this).find('.spec_title').each(function(){
-				spec_val = $(this).val();
-				spec_count++;
-				if( spec_val == '' )
-				{
-					is_spec = true;
-				}
-
-				if(is_spec || spec_count == 0)
-				{
-					is_spec_break = true;
-					layer.msg('请填写商品的规格名称',{icon:2});
-					$(this).focus();
-					$(this).css('border','2px solid #FF0000');
-					layer.close(loadingIndex);
-					return false;
-				}
-			})
-			$(this).find('.spec_item_title').each(function(){
-				spec_item_val = $(this).val();
-
-				spec_item_count++;
-				if( spec_item_val == '' )
-				{
-					is_spec_item = true;
-				}
-				if(is_spec_item || spec_item_count == 0){
-					is_spec_break = true;
-					$(this).focus();
-					$(this).css('border','2px solid #FF0000');
-					//$('.hasoption').focus();
-					layer.msg('请填写商品的具体规格值',{icon:2});
-					layer.close(loadingIndex);
-					return false;
-				}
-
-
-
-			})
-
-
-		})
-		if(is_spec_break){
-			layer.close(loadingIndex);
-			return false;
-		}
-
-		var t_val;
-		var is_pos = false;
-		var s_total = 0;
-		var is_break = false;
-		$('.option_stock').each(function(){
-			 t_val = $(this).val();
-			 if(!(/(^[1-9]\d*$)/.test(t_val)) && t_val != 0){
-				layer.msg('多规格商品库存输入错误,请输入正确的数字!',{icon:2});
-				$(this).focus();
-				$(this).css('border','red 2px solid');
-				layer.close(loadingIndex);
-				is_break = true;
-				return false;
-			}
-			 
-			 if( t_val == '' )
-			 {
-				 is_pos = true;
-
-			 }
-			if(is_pos)
-			{
-				layer.msg('多规格商品库存未填写',{icon:2});
-				$(this).focus();
-				$(this).css('border','red 2px solid');
-				console.log(888);
-				layer.close(loadingIndex);
-				is_break = true;
-				return false;
-
-
-
-			}
-
-
-			 s_total += parseInt( t_val );
-		})
-
-
-		if(is_break){
-			return false;
-		}
-
-		
-		var t_val2;
-		var is_pos2 = false;
-		$('.option_marketprice').each(function(){
-			 t_val2 = $(this).val();
-			 if( t_val2 == '' )
-			 {
-				is_pos2 = true;
-			 }
-			console.log(is_pos2);
-			if(is_pos2)
-			{
-				layer.msg('多规格商品价格未填写',{icon:2});
-				$(this).focus();
-				$(this).css('border','red 2px solid');
-				layer.close(loadingIndex);
-				is_break = true;
-				return false;
-			}
-
-		})
-		if(is_break){
-			return false;
-		}
-
-
-		var t_val3;
-		var is_pos3 = false;
-		$('.option_productprice').each(function(){
-			t_val3 = $(this).val();
-			if( t_val3 == '' )
-			{
-				is_pos3 = true;
-			}
-		})
-
-		if(is_pos3)
-		{
-			layer.msg('多规格商品原价未填写',{icon:2});
-			layer.close(loadingIndex);
-			return false;
-		}
-
-		if( s_total > 100000 || s_total< 0 )
-		{
-			layer.msg('商品库存值的取值范围是1~100000',{icon:2});
-			layer.close(loadingIndex); 
-			return false;
-		}
-		
-		if(!(/(^[1-9]\d*$)/.test(s_total)) && s_total != 0){
-			layer.msg('多规格商品库存输入错误,请输入正确的数字!',{icon:2});
-			layer.close(loadingIndex); 
-			return false;
-		}
-		
-	}else{
-		var g_total = $('#total').val();
-		
-		if( g_total > 100000 || g_total< 0 )
-		{
-			layer.msg('商品库存值的取值范围是1~100000',{icon:2});
-			layer.close(loadingIndex); 
-			return false;
-		}
-		
-		if(!(/(^[1-9]\d*$)/.test(g_total)) && g_total != 0){
-			layer.msg('商品库存输入错误,请输入正确的数字!',{icon:2});
-			layer.close(loadingIndex); 
-			return false;
-		}
-		
-	}
-/**
-	  var supply_id = $('input[name=supply_id]').val();
-	  var is_only_distribution = $('input[name=is_only_distribution]').is(':checked');
-	  if(supply_id != '' && supply_id > 0){
-		  if(is_only_distribution){
-			  layer.msg('独立供应商不能开启同城配送');
-			  layer.close(loadingIndex);
-			  return false;
-		  }
-	  }**/
-	  //商品核销
-	  var is_only_hexiao = $('input[name=is_only_hexiao]').is(':checked');
-	  if(is_only_hexiao){
-		  var hx_expire_type = $('input:radio[name="hx_expire_type"]:checked').val();
-		  if(hx_expire_type == 1){
-			  if($.trim($('#hx_expire_end_time').val()) == ''){
-				  layer.msg('指定过期时间不能为空');
-				  layer.close(loadingIndex);
-				  return false;
-			  }
-		  }
-
-		  var goods_room = [];
-		  var goods_room_smember = {};
-		  var goods_is_hx_member = {};
-		  var goods_room_ids = "";
-		  $('#hx_salesroom_list').find('.mult_choose_room_list').each(function(){
-			  var goods_room_sid = [];
-			  var room_id = $(this).find('.mult_choose_roomid').attr('data-roomid');
-			  $(this).find('.mult_choose_smemberid').each(function(){
-				  var smember_id = $(this).attr('data-smemberid');
-				  goods_room_sid.push(smember_id);
-			  });
-			  goods_room_smember[room_id] = goods_room_sid.join(',');
-			  goods_room.push(room_id);
-
-			  $(this).find('.is_hx_member').each(function(){
-				  if($(this).is(':checked')){
-					  goods_is_hx_member[room_id] = 1;
-				  }else{
-					  goods_is_hx_member[room_id] = 0;
-				  }
-			  });
-		  });
-
-		  goods_room_ids = goods_room.join(',');
-		  data.field.goods_room_ids = goods_room_ids;
-		  data.field.goods_room_smember = goods_room_smember;
-		  data.field.goods_is_hx_member = goods_is_hx_member;
-		  var hx_assign_salesroom = $('input:radio[name="hx_assign_salesroom"]:checked').val();
-		  if(hx_assign_salesroom == 1){
-			if(goods_room_ids == ''){
-				layer.msg('请选择指定门店');
-				layer.close(loadingIndex);
-				return false;
-			}
-		  }
-	  }
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-				layer.close(loadingIndex); 
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-  
-  
-  form.on('checkbox(hasoption)', function(data){
-									
-		if(data.elem.checked)
-		{
-			$('#goodssn').attr('readonly',true);
-			$('#productsn').attr('readonly',true);
-			$('#weight').attr('readonly',true);
-			$('#total').attr('readonly',true);
-
-			$("#tboption").show();
-			$("#tbdiscount").show();
-			$("#isdiscount_discounts").show();
-			$("#isdiscount_discounts_default").hide();
-			$("#commission").show();
-			$("#commission_default").hide();
-			$("#discounts_type1").show().parent().show();
-			refreshOptions();
-		}else{
-			$('#weight').removeAttr('readonly');
-			$('#total').removeAttr('readonly');
-			$("#tboption").hide();
-			refreshOptions();
-
-			$("#isdiscount_discounts").hide();
-			var isdiscount_discounts = $("#isdiscount_discounts").html();
-			$("#isdiscount_discounts").html('');
-			
-			$("#isdiscount_discounts").html(isdiscount_discounts);
-			
-
-			$("#tbdiscount").hide();
-			$("#isdiscount_discounts_default").show();
-
-			$("#commission_default").show();
-
-			$('#goodssn').removeAttr('readonly');
-			$('#productsn').removeAttr('readonly');
-
-			$("#discounts_type1").hide().parent().hide();
-			$("#discounts_type0").click();	
-			$(this).prop("checked", false);
-		}
-		
-		form.render('checkbox');
-	});	
-	
-	$('#chose_agent_id2').click(function(){
-		cur_open_div = $(this).attr('data-input');
-		$.post("<?php echo U('goods/query_normal', array('template' => 'mult', 'unselect_goodsid' => $id));?>", {}, function(shtml){
-		 layer.open({
-			type: 1,
-			area: '930px',
-			content: shtml //注意,如果str是object,那么需要字符拼接。
-		  });
-		});
-	})
-	
-	
-	form.on('checkbox(is_modify_head_commission)', function(data){
-    
-		if(data.elem.checked)
-		{
-			$("#head_commission_div").show();
-		}else{
-			$("#head_commission_div").hide();	
-		}
-		
-		form.render('checkbox');
-	});
-	
-	
-	form.on('checkbox(is_community_head_commission)', function(data){
-    
-		if(data.elem.checked)
-		{
-			$("#head_commission_div2").show();
-		}else{
-			$("#head_commission_div2").hide();	
-		}
-		
-		form.render('checkbox');
-	});
-	
-
-	form.on('checkbox(is_take_vipcard)', function(data){
-		if(data.elem.checked)
-		{
-			$(".card_price_txt").show();
-		}else{
-			$(".card_price_txt").hide();
-		}
-
-		form.render('checkbox');
-		refreshOptions();
-	});
-	  
-})
-
-
-function cancle_bind(obj,sdiv)
-{
-	$('#'+sdiv).val('');
-	$(obj).parent().parent().remove();
-
-}
-function cancle_room_bind(obj){
-	$(obj).parent().parent().parent().remove();
-}
-</script> 
-
-
-<script>
-    $(function () {
-        // 拖拽时开始滚动的间距
-        var scrollingSensitivity = 20
-        // 拖拽时滚动速度
-        let scrollingSpeed = 20
-        // 拖拽前的父级节点
-        let dragBeforeParentNode = null
-        // 初始化拖拽函数
-        $('.multi-img-details').sortable({
-            // 自适应placeholder的大小
-            forceHelperSize: true,
-            // 拖拽时的鼠标形状
-            cursor: '-webkit-grabbing',
-            // 拖拽的父级节点(该节点一定要注意,配置错误会导致当前屏幕外的元素没法自动滚动拖拽,两列之间拖拽的滚动也会出问题)
-            appendTo: '.layui-form-item',
-            // 拖拽时的倾斜度
-            rotate: '5deg',
-            // 延迟时间(毫秒),避免和click同时操作时出现的冲突
-            delay: 0,
-            // 以clone方式拖拽
-            helper: 'clone',
-            // 拖拽到边框出现滚动的间距,
-            scrollSensitivity: scrollingSensitivity,
-            // 应用于拖拽空白区域的样式
-            placeholder: 'portlet-placeholder ui-state-highlight',
-            // 允许拖拽预留空白区域
-            forcePlaceholderSize: false,
-            // 多个列表之间的拖拽的dom元素
-            connectWith: '.multi-img-details',
-            // 鼠标到区域则填充
-            tolerance: "pointer",
-            // 可以拖拽的项
-            items: '.multi-item',
-            // 填充动画
-            revert: 0,
-            // 拖拽结束函数
-            stop: (e, ui) => {
-                // 当前拽入的元素
-                let item = $(ui.item)
-                // 当前拽入元素的下标
-                let index = item.index()
-                let kid = ''
-                // xxxx 这里面可以操作数据更新
-            },
-            // 开始拖拽时的函数
-            start: (e, ui) => {
-                // 拖拽前的父级节点
-                dragBeforeParentNode = ui.item[0].parentNode
-                // 让placeholder和源高度一致
-                ui.helper.addClass('item').width(110)
-                // xxxx  这里可以记录一些拖拽前的元素属性
-            },
-            // 处理两列滚动条问题
-            sort: function (event, ui) {
-                var scrollContainer = ui.placeholder[0].parentNode
-                // 设置拽入的列表的滚动位置
-                var overflowOffset = $(scrollContainer).offset()
-                if ((overflowOffset.top + scrollContainer.offsetHeight) - event.pageY <
-                    scrollingSensitivity) {
-                    scrollContainer.scrollTop = scrollContainer.scrollTop + scrollingSpeed
-                } else if (event.pageY - overflowOffset.top < scrollingSensitivity) {
-                    scrollContainer.scrollTop = scrollContainer.scrollTop - scrollingSpeed
-                }
-            }
-        }).disableSelection()
-    })
-</script>
-
-
-
-<script language="javascript">
-						var chose_cate = -1;
-						var chose_cate_id_arr = [];
-							$(function(){
-								
-								$('#cates2').on('change',function(){
-									var s_length = $("#cates2 option:selected").length -1;
-									var options_name = $("#cates2 option:selected:eq("+s_length+")").text();
-									var options_str =  $("#cates2 option:selected:eq("+s_length+")").attr('data-names');
-									
-									if(s_length > chose_cate)
-									{
-										chose_cate++;
-										var cur_cate_id = '';
-										$("#cates2 option:selected").each(function(){
-											var tmp_cate_id = parseInt($(this).val());
-											if( $.inArray( tmp_cate_id, chose_cate_id_arr ) == -1)
-											{
-												chose_cate_id_arr.push( parseInt(tmp_cate_id) );
-												cur_cate_id = tmp_cate_id;
-											}
-										})
-										addSpecList(options_name,options_str,cur_cate_id);
-									}else{
-										chose_cate--;
-										var new_chose_cate_id_arr = [];
-										if(chose_cate_id_arr.length == 1)
-										{
-											$('.spec_class_'+chose_cate_id_arr[0]).remove();
-										}
-										
-										$("#cates2 option:selected").each(function(){
-											var tmp_cate_id = parseInt( $(this).val() );
-											if( $.inArray( tmp_cate_id, chose_cate_id_arr ) != -1)
-											{
-												new_chose_cate_id_arr.push( parseInt(tmp_cate_id) );
-												chose_cate_id_arr.splice($.inArray( tmp_cate_id, chose_cate_id_arr ), 1);
-											}
-										})
-										if(chose_cate_id_arr.length == 1)
-										{
-											$('.spec_class_'+chose_cate_id_arr[0]).remove();
-										}
-										
-										chose_cate_id_arr = new_chose_cate_id_arr;
-										refreshOptions();
-									}
-									
-									
-								})
-								$(document).on('input propertychange change', '#specs input', function () {
-									
-									window.optionchanged = true;
-									$('#optiontip').show();
-								});
-								
-								$(document).on('input propertychange change', '#specs input', function () {
-								
-									window.optionchanged = true;
-									$('#optiontip').show();
-								});
-
-
-								$(".spec_item_thumb").find('i').click(function(){
-									var group  =$(this).parent();
-									group.find('img').attr('src',"{SNAILFISH_LOCAL}static/images/nopic100.jpg");
-									group.find(':hidden').val('');
-									$(this).hide();
-									group.find('img').popover('destroy');
-								});
-
-								
-									
-								
-							});
-							function selectSpecItemImage(obj){
-								util.image('',function(val){
-									$(obj).attr('src',val.url).popover({
-										trigger: 'hover',
-										html: true,
-										container: $(document.body),
-										content: "<img src='" + val.url  + "' style='width:100px;height:100px;' />",
-										placement: 'top'
-									});
-
-									var group  =$(obj).parent();
-
-									group.find(':hidden').val(val.attachment), group.find('i').show().unbind('click').click(function(){
-										$(obj).attr('src',"{SNAILFISH_LOCAL}static/images/nopic100.jpg");
-										group.find(':hidden').val('');
-										group.find('i').hide();
-										$(obj).popover('destroy');
-									});
-								});
-							}
-							function addSpecList(options_name,spec_str, cur_cate_id)
-							{
-							
-								var len = $(".spec_item").length;
-								$("#add-spec").html("正在处理...").attr("disabled", "true").toggleClass("btn-primary");
-								var url = "<?php echo U('goods/mult_tpl',array('tpl'=>'spec'));?>";
-								$.ajax({
-									"url": url,
-									type:'post',
-									data:{options_name:options_name,spec_str:spec_str,cur_cate_id:cur_cate_id},
-									success:function(data){
-										$("#add-spec").html('<i class="fa fa-plus"></i> 新建规格').removeAttr("disabled").toggleClass("btn-primary"); ;
-										$('#specs').append(data);
-										var len = $(".add-specitem").length -1;
-										$(".add-specitem:eq(" +len+ ")").focus();
-										refreshOptions();
-									}
-								});
-							}
-							
-							function addSpec(){
-								var len = $(".spec_item").length;
-								$("#add-spec").html("正在处理...").attr("disabled", "true").toggleClass("btn-primary");
-								var url = "<?php echo U('goods/tpl',array('tpl'=>'spec'));?>";
-								$.ajax({
-									"url": url,
-									success:function(data){
-										$("#add-spec").html('<i class="fa fa-plus"></i> 新建规格').removeAttr("disabled").toggleClass("btn-primary"); ;
-										$('#specs').append(data);
-										var len = $(".add-specitem").length -1;
-										$(".add-specitem:eq(" +len+ ")").focus();
-										refreshOptions();
-									}
-								});
-							}
-							function removeSpec(specid){
-								if (confirm('确认要删除此规格?')){
-									$("#spec_" + specid).remove();
-									refreshOptions();
-								}
-							}
-							function addSpecItem(specid){
-									 $("#add-specitem-" + specid).html("正在处理...").attr("disabled", "true");
-								var url = "<?php echo U('goods/tpl',array('tpl'=>'specitem'));?>" + "&specid=" + specid;
-								$.ajax({
-									"url": url,
-									success:function(data){
-										$("#add-specitem-" + specid).html('<i class="fa fa-plus"></i> 添加规格项').removeAttr("disabled");
-										$('#spec_item_' + specid).append(data);
-										var len = $("#spec_" + specid + " .spec_item_title").length -1;
-										$("#spec_" + specid + " .spec_item_title:eq(" +len+ ")").focus();
-										refreshOptions
-																								if(type==3 && virtual==0){
-																											$(".choosetemp").show();
-																								 }
-									}
-								});
-							}
-							function removeSpecItem(obj){
-								$(obj).closest('.spec_item_item').remove();
-								refreshOptions();
-							}
-
-							function refreshOptions(){
-								// 刷新后重置
-								window.optionchanged = false;
-								$('#optiontip').hide();
-
-
-						 var html = '<table class="table table-bordered table-condensed"><thead><tr class="active">';
-							var specs = [];
-								 if($('.spec_item').length<=0){
-									 $("#options").html('');
-									 $("#discount").html('');
-									 $("#isdiscount_discounts").html('');
-									 $("#commission").html('');
-									
-									 return;
-								 }
-							$(".spec_item").each(function(i){
-								var _this = $(this);
-
-								var spec = {
-									id: _this.find(".spec_id").val(),
-									title: _this.find(".spec_title").val()
-								};
-
-								var items = [];
-								_this.find(".spec_item_item").each(function(){
-									var __this = $(this);
-									var item = {
-										id: __this.find(".spec_item_id").val(),
-										title: __this.find(".spec_item_title").val(),
-																								virtual: __this.find(".spec_item_virtual").val(),
-										show:__this.find(".spec_item_show").get(0).checked?"1":"0"
-									}
-									items.push(item);
-								});
-								spec.items = items;
-								specs.push(spec);
-							});
-							specs.sort(function(x,y){
-								if (x.items.length > y.items.length){
-									return 1;
-								}
-								if (x.items.length < y.items.length) {
-									return -1;
-								}
-							});
-
-							var len = specs.length;
-							var newlen = 1;
-							var h = new Array(len);
-							var rowspans = new Array(len);
-							for(var i=0;i<len;i++){
-								html+="<th>" + specs[i].title + "</th>";
-								var itemlen = specs[i].items.length;
-								if(itemlen<=0) { itemlen = 1 };
-								newlen*=itemlen;
-
-								h[i] = new Array(newlen);
-								for(var j=0;j<newlen;j++){
-									h[i][j] = new Array();
-								}
-								var l = specs[i].items.length;
-								rowspans[i] = 1;
-								for(j=i+1;j<len;j++){
-									rowspans[i]*= specs[j].items.length;
-								}
-							}
-							var is_take_vipcard = $('input[name="is_take_vipcard"]').prop('checked');
-							html += '<th><div class=""><div style="padding-bottom:10px;text-align:center;">库存<label style="color:red;font-size:16px;font-weight:900">*</label></div><div class="input-group"><input type="text" class="form-control  input-sm option_stock_all" VALUE=""/><span class="input-group-addon"><a href="javascript:;" class="fa fa-angle-double-down" title="批量设置" onclick="setCol(\'option_stock\');"></a></span></div></div></th>';
-							
-
-							
-							html += '<th class="type-4"><div class=""><div style="padding-bottom:10px;text-align:center;">售价<label style="color:red;font-size:16px;font-weight:900">*</label></div><div class="input-group"><input type="text" class="form-control  input-sm option_marketprice_all"VALUE=""/><span class="input-group-addon"><a href="javascript:;" class="fa fa-angle-double-down" title="批量设置" onclick="setCol(\'option_marketprice\');"></a></span></div></div></th>';
-							html+='<th class="type-4"><div class=""><div style="padding-bottom:10px;text-align:center;">原价<label style="color:red;font-size:16px;font-weight:900">*</label></div><div class="input-group"><input type="text" class="form-control  input-sm option_productprice_all"VALUE=""/><span class="input-group-addon"><a href="javascript:;" class="fa fa-angle-double-down" title="批量设置" onclick="setCol(\'option_productprice\');"></a></span></div></div></th>';
-
-							<?php if( !empty($is_open_vipcard_buy) && $is_open_vipcard_buy == 1){ ?>
-									html += '<th class="type-4 cardprice_title"><div class=""><div style="padding-bottom:10px;text-align:center;">付费会员专享价</div><div class="input-group"><input type="text" class="form-control  input-sm option_cardprice_all"VALUE=""/><span class="input-group-addon"><a href="javascript:;" class="fa fa-angle-double-down" title="批量设置" onclick="setCol(\'option_cardprice\');"></a></span></div></div></th>';
-							<?php } ?>
-
-							html+='<th class="type-4"><div class=""><div style="padding-bottom:10px;text-align:center;">成本价</div><div class="input-group"><input type="text" class="form-control  input-sm option_costprice_all"VALUE=""/><span class="input-group-addon"><a href="javascript:;" class="fa fa-angle-double-down" title="批量设置" onclick="setCol(\'option_costprice\');"></a></span></div></div></th>';
-							html+='<th><div class=""><div style="padding-bottom:10px;text-align:center;">编码</div><div class="input-group"><input type="text" class="form-control  input-sm option_goodssn_all"VALUE=""/><span class="input-group-addon"><a href="javascript:;" class="fa fa-angle-double-down" title="批量设置" onclick="setCol(\'option_goodssn\');"></a></span></div></div></th>';
-							
-							html+='<th><div class=""><div style="padding-bottom:10px;text-align:center;">重量(克)</div><div class="input-group"><input type="text" class="form-control  input-sm option_weight_all"VALUE=""/><span class="input-group-addon"><a href="javascript:;" class="fa fa-angle-double-down" title="批量设置" onclick="setCol(\'option_weight\');"></a></span></div></div></th>';
-							html+='</tr></thead>';
-
-							for(var m=0;m<len;m++){
-								var k = 0,kid = 0,n=0;
-								for(var j=0;j<newlen;j++){
-									var rowspan = rowspans[m];
-									if( j % rowspan==0){
-										h[m][j]={title: specs[m].items[kid].title, virtual: specs[m].items[kid].virtual,html: "<td class='full' rowspan='" +rowspan + "'>"+ specs[m].items[kid].title+"</td>\r\n",id: specs[m].items[kid].id};
-									}
-									else{
-									
-											h[m][j]={title:specs[m].items[kid].title,virtual: specs[m].items[kid].virtual, html: "",id: specs[m].items[kid].id};
-									}	
-									n++;
-									if(n==rowspan){
-									kid++; if(kid>specs[m].items.length-1) { kid=0; }
-									n=0;
-									}
-								}
-							}
-
-							var hh = "";
-							for(var i=0;i<newlen;i++){
-								hh+="<tr>";
-								var ids = [];
-								var titles = [];
-								var virtuals = [];
-								/*for(var j=0;j<len;j++){
-									hh+=h[j][i].html;
-									ids.push( h[j][i].id);
-									titles.push( h[j][i].title);
-												   virtuals.push( h[j][i].virtual);
-								}*/
-								for(var j=len-1;j >= 0;j--){
-									hh+=h[j][i].html;
-									ids.push( h[j][i].id);
-									titles.push( h[j][i].title);
-									virtuals.push( h[j][i].virtual);
-								}
-								ids =ids.join('_');
-								titles= titles.join('+');
-
-								var val ={ id : "",title:titles, stock : "",presell : "",costprice : "",productprice : "",<?php if( !empty($is_open_vipcard_buy) && $is_open_vipcard_buy == 1 ){ ?>cardprice:"",<?php } ?>marketprice : "",weight:"",productsn:"",goodssn:"",virtual:virtuals };
-
-								if( $(".option_id_" + ids).length>0){
-									val ={
-										id : $(".option_id_" + ids+":eq(0)").val(),
-										title: titles,
-										stock : $(".option_stock_" + ids+":eq(0)").val(),
-										presell : $(".option_presell_" + ids+":eq(0)").val(),
-										costprice : $(".option_costprice_" + ids+":eq(0)").val(),
-										<?php if( !empty($is_open_vipcard_buy) && $is_open_vipcard_buy == 1){ ?>
-										cardprice : $(".option_cardprice_" + ids+":eq(0)").val(),
-										cardprice_hi : $(".option_cardprice_hi_" + ids+":eq(0)").val(),
-										<?php } ?>
-										productprice : $(".option_productprice_" + ids+":eq(0)").val(),
-										marketprice : $(".option_marketprice_" + ids +":eq(0)").val(),
-															goodssn : $(".option_goodssn_" + ids +":eq(0)").val(),
-															productsn : $(".option_productsn_" + ids +":eq(0)").val(),
-										weight : $(".option_weight_" + ids+":eq(0)").val(),
-														  virtual : virtuals
-									}
-								}
-
-								hh += '<td>'
-							
-								hh += '<input name="option_stock_' + ids +'" type="text" class="form-control option_stock option_stock_' + ids +'" value="' +(val.stock=='undefined'?'':val.stock )+'"/></td>';
-							
-								hh += '<input name="option_id_' + ids+'" type="hidden" class="form-control option_id option_id_' + ids +'" value="' +(val.id=='undefined'?'':val.id )+'"/>';
-								hh += '<input name="option_ids[]" type="hidden" class="form-control option_ids option_ids_' + ids +'" value="' + ids +'"/>';
-								hh += '<input name="option_title_' + ids +'" type="hidden" class="form-control option_title option_title_' + ids +'" value="' +(val.title=='undefined'?'':val.title )+'"/></td>';
-								hh += '<input name="option_virtual_' + ids +'" type="hidden" class="form-control option_virtual option_virtual_' + ids +'" value="' +(val.virtual=='undefined'?'':val.virtual )+'"/></td>';
-								hh += '<input name="option_cardprice_hi_' + ids +'" type="hidden" class="form-control option_virtual option_cardprice_hi_' + ids +'" value="' +(val.cardprice=='undefined'?'':val.cardprice )+'"/></td>';
-								hh += '</td>';
-								//hh += '<td class="type-4"><input data-name="option_presell_' + ids+'" type="text" class="form-control option_presell option_presell_' + ids +'" value="' +(val.presell=='undefined'?'':val.presell )+'"/></td>';
-								hh += '<td class="type-4"><input name="option_marketprice_' + ids+'" type="text" class="form-control option_marketprice option_marketprice_' + ids +'" value="' +(val.marketprice=='undefined'?'':val.marketprice )+'"/></td>';
-								hh += '<td class="type-4"><input name="option_productprice_' + ids+'" type="text" class="form-control option_productprice option_productprice_' + ids +'" " value="' +(val.productprice=='undefined'?'':val.productprice )+'"/></td>';
-								<?php if( !empty($is_open_vipcard_buy) && $is_open_vipcard_buy == 1){ ?>
-										if(typeof(val.cardprice) == "undefined" || val.cardprice == 'undefined' || val.cardprice == null){
-											val.cardprice = "";
-										}
-										if(val.cardprice == ""){
-											if(typeof(val.cardprice_hi) == "undefined" || val.cardprice_hi == 'undefined' || val.cardprice_hi == null){
-												val.cardprice = "";
-											}else{
-												val.cardprice = val.cardprice_hi;
-											}
-										}
-										console.log(val.cardprice+'=='+val.cardprice_hi);
-										hh += '<td class="type-4 cardprice_td"><input name="option_cardprice_' + ids + '" type="text" class="form-control option_cardprice option_cardprice_' + ids + '" " value="' + (val.cardprice=='undefined' ? '' : val.cardprice ) + '"/></td>';
-								<?php } ?>
-								hh += '<td class="type-4"><input name="option_costprice_' +ids+'" type="text" class="form-control option_costprice option_costprice_' + ids +'" " value="' +(val.costprice=='undefined'?'':val.costprice )+'"/></td>';
-								hh += '<td><input name="option_goodssn_' +ids+'" type="text" class="form-control option_goodssn option_goodssn_' + ids +'" " value="' +(val.goodssn=='undefined'?'':val.goodssn )+'"/></td>';
-								//hh += '<td><input data-name="option_productsn_' +ids+'" type="text" class="form-control option_productsn option_productsn_' + ids +'" " value="' +(val.productsn=='undefined'?'':val.productsn )+'"/></td>';
-								hh += '<td><input name="option_weight_' + ids +'" type="text" class="form-control option_weight option_weight_' + ids +'" " value="' +(val.weight=='undefined'?'':val.weight )+'"/></td>';
-								hh += "</tr>";
-							}
-							html+=hh;
-							html+="</table>";
-							$("#options").html(html);
-								refreshDiscount();
-								refreshIsDiscount();
-
-								if(window.type=='4'){
-									$('.type-4').hide();
-								}else{
-									$('.type-4').show();
-								}
-
-								if(is_take_vipcard) {
-									$('.cardprice_td').show();
-									$('.cardprice_title').show();
-								}else{
-									$('.cardprice_td').hide();
-									$('.cardprice_title').hide();
-								}
-						}
-
-							function refreshDiscount() {
-								var html = '<table class="table table-bordered table-condensed"><thead><tr class="active">';
-								var specs = [];
-
-								$(".spec_item").each(function (i) {
-									var _this = $(this);
-
-									var spec = {
-										id: _this.find(".spec_id").val(),
-										title: _this.find(".spec_title").val()
-									};
-
-									var items = [];
-									_this.find(".spec_item_item").each(function () {
-										var __this = $(this);
-										var item = {
-											id: __this.find(".spec_item_id").val(),
-											title: __this.find(".spec_item_title").val(),
-											virtual: __this.find(".spec_item_virtual").val(),
-											show: __this.find(".spec_item_show").get(0).checked ? "1" : "0"
-										}
-										items.push(item);
-									});
-									spec.items = items;
-									specs.push(spec);
-								});
-								specs.sort(function (x, y) {
-									if (x.items.length > y.items.length) {
-										return 1;
-									}
-									if (x.items.length < y.items.length) {
-										return -1;
-									}
-								});
-
-								var len = specs.length;
-								var newlen = 1;
-								var h = new Array(len);
-								var rowspans = new Array(len);
-								for (var i = 0; i < len; i++) {
-									html += "<th>" + specs[i].title + "</th>";
-									var itemlen = specs[i].items.length;
-									if (itemlen <= 0) {
-										itemlen = 1
-									}
-									;
-									newlen *= itemlen;
-
-									h[i] = new Array(newlen);
-									for (var j = 0; j < newlen; j++) {
-										h[i][j] = new Array();
-									}
-									var l = specs[i].items.length;
-									rowspans[i] = 1;
-									for (j = i + 1; j < len; j++) {
-										rowspans[i] *= specs[j].items.length;
-									}
-								}
-
-								<?php foreach( $levels as $level ){ ?>
-								<?php if( $level['key']=='default'){ ?>
-								html += '<th><div class=""><div style="padding-bottom:10px;text-align:center;"><?php echo ($level['levelname']); ?></div><div class="input-group"><input type="text" class="form-control  input-sm discount_<?php echo ($level["key"]); ?>_all"VALUE=""/><span class="input-group-addon"><a href="javascript:;" class="fa fa-angle-double-down" title="批量设置" onclick="setCol(\'discount_<?php echo ($level["key"]); ?>\');"></a></span></div></div></th>';
-								<?php  }else{ ?>
-								html += '<th><div class=""><div style="padding-bottom:10px;text-align:center;"><?php echo ($level['levelname']); ?></div><div class="input-group"><input type="text" class="form-control  input-sm discount_level<?php echo ($level['id']); ?>_all"VALUE=""/><span class="input-group-addon"><a href="javascript:;" class="fa fa-angle-double-down" title="批量设置" onclick="setCol(\'discount_level<?php echo ($level['id']); ?>\');"></a></span></div></div></th>';
-								<?php } ?>
-								<?php } ?>
-								html += '</tr></thead>';
-
-								for (var m = 0; m < len; m++) {
-									var k = 0, kid = 0, n = 0;
-									for (var j = 0; j < newlen; j++) {
-										var rowspan = rowspans[m];
-										if (j % rowspan == 0) {
-											h[m][j] = {
-												title: specs[m].items[kid].title,
-												virtual: specs[m].items[kid].virtual,
-												html: "<td class='full' rowspan='" + rowspan + "'>" + specs[m].items[kid].title + "</td>\r\n",
-												id: specs[m].items[kid].id
-											};
-										}
-										else {
-											h[m][j] = {
-												title: specs[m].items[kid].title,
-												virtual: specs[m].items[kid].virtual,
-												html: "",
-												id: specs[m].items[kid].id
-											};
-										}
-										n++;
-										if (n == rowspan) {
-											kid++;
-											if (kid > specs[m].items.length - 1) {
-												kid = 0;
-											}
-											n = 0;
-										}
-									}
-								}
-
-								var hh = "";
-								for (var i = 0; i < newlen; i++) {
-									hh += "<tr>";
-									var ids = [];
-									var titles = [];
-									var virtuals = [];
-									for (var j = 0; j < len; j++) {
-										hh += h[j][i].html;
-										ids.push(h[j][i].id);
-										titles.push(h[j][i].title);
-										virtuals.push(h[j][i].virtual);
-									}
-									ids = ids.join('_');
-									titles = titles.join('+');
-									var val = {
-										id: "",
-										title: titles,
-										<?php foreach( $levels as $level ){ ?>
-										<?php if( $level['key']=='default'){ ?>
-										level<?php echo ($level['key']); ?>: '',
-										<?php  }else{ ?>
-										level<?php echo ($level['id']); ?>: '',
-										<?php } ?>
-										<?php } ?>
-										costprice: "",
-										presell: "",
-										productprice: "",
-										<?php if( !empty($is_open_vipcard_buy) && $is_open_vipcard_buy == 1){ ?>
-										cardprice: "",
-										<?php } ?>
-										marketprice: "",
-										weight: "",
-										productsn: "",
-										goodssn: "",
-										virtual: virtuals
-									};
-
-									var val ={ id : "",title:titles,<?php foreach( $levels as $level ){ if( $level['key']=='default'){ ?> level<?php echo ($level['key']); ?>: '',<?php  }else{ ?> level<?php echo ($level['id']); ?>: '',<?php } } ?>costprice : "",productprice : "",marketprice : "",weight:"",productsn:"",goodssn:"",virtual:virtuals };
-									if ($(".discount_id_" + ids).length > 0) {
-										val = {
-											id: $(".discount_id_" + ids + ":eq(0)").val(),
-											title: titles,
-											<?php foreach( $levels as $level ){ ?>
-										<?php if( $level['key']=='default'){ ?>
-											level<?php echo ($level['key']); ?>: $(".discount_<?php echo ($level['key']); ?>_" + ids + ":eq(0)").val(),
-										<?php  }else{ ?>
-											level<?php echo ($level['id']); ?>: $(".discount_level<?php echo ($level['id']); ?>_" + ids + ":eq(0)").val(),
-										<?php } ?>
-											<?php } ?>
-											costprice: $(".discount_costprice_" + ids + ":eq(0)").val(),
-											presell: $(".discount_presell_" + ids + ":eq(0)").val(),
-											productprice: $(".discount_productprice_" + ids + ":eq(0)").val(),
-											<?php if( !empty($is_open_vipcard_buy) && $is_open_vipcard_buy == 1){ ?>
-											cardprice: $(".discount_cardprice_" + ids + ":eq(0)").val(),
-											<?php } ?>
-											marketprice: $(".discount_marketprice_" + ids + ":eq(0)").val(),
-											presell: $(".discount_presell_" + ids + ":eq(0)").val(),
-											goodssn: $(".discount_goodssn_" + ids + ":eq(0)").val(),
-											productsn: $(".discount_productsn_" + ids + ":eq(0)").val(),
-											weight: $(".discount_weight_" + ids + ":eq(0)").val(),
-											virtual: virtuals
-										}
-									}
-
-									<?php foreach( $levels as $level ){ ?>
-									hh += '<td>'
-									<?php if( $level['key']=='default'){ ?>
-									hh += '<input data-name="discount_level_<?php echo ($level['key']); ?>_' + ids +'"type="text" class="form-control discount_<?php echo ($level['key']); ?> discount_<?php echo ($level['key']); ?>_' + ids +'" value="' +(val.level<?php echo ($level['key']); ?>=='undefined'?'':val.level<?php echo ($level['key']); ?> )+'"/>';
-									<?php  }else{ ?>
-									hh += '<input data-name="discount_level_<?php echo ($level['id']); ?>_' + ids +'"type="text" class="form-control discount_level<?php echo ($level['id']); ?> discount_level<?php echo ($level['id']); ?>_' + ids +'" value="' +(val.level<?php echo ($level['id']); ?>=='undefined'?'':val.level<?php echo ($level['id']); ?> )+'"/>';
-									<?php } ?>
-									hh += '</td>';
-									<?php } ?>
-									hh += '<input data-name="discount_id_' + ids+'"type="hidden" class="form-control discount_id discount_id_' + ids +'" value="' +(val.id=='undefined'?'':val.id )+'"/>';
-									hh += '<input data-name="discount_ids"type="hidden" class="form-control discount_ids discount_ids_' + ids +'" value="' + ids +'"/>';
-									hh += '<input data-name="discount_title_' + ids +'"type="hidden" class="form-control discount_title discount_title_' + ids +'" value="' +(val.title=='undefined'?'':val.title )+'"/></td>';
-									hh += '<input data-name="discount_virtual_' + ids +'"type="hidden" class="form-control discount_virtual discount_virtual_' + ids +'" value="' +(val.virtual=='undefined'?'':val.virtual )+'"/></td>';
-									hh += "</tr>";
-								}
-								html += hh;
-								html += "</table>";
-								$("#discount").html(html);
-							}
-
-							function refreshIsDiscount() {
-								var html = '<table class="table table-bordered table-condensed"><thead><tr class="active">';
-								var specs = [];
-
-								$(".spec_item").each(function (i) {
-									var _this = $(this);
-
-									var spec = {
-										id: _this.find(".spec_id").val(),
-										title: _this.find(".spec_title").val()
-									};
-
-									var items = [];
-									_this.find(".spec_item_item").each(function () {
-										var __this = $(this);
-										var item = {
-											id: __this.find(".spec_item_id").val(),
-											title: __this.find(".spec_item_title").val(),
-											virtual: __this.find(".spec_item_virtual").val(),
-											show: __this.find(".spec_item_show").get(0).checked ? "1" : "0"
-										}
-										items.push(item);
-									});
-									spec.items = items;
-									specs.push(spec);
-								});
-								specs.sort(function (x, y) {
-									if (x.items.length > y.items.length) {
-										return 1;
-									}
-									if (x.items.length < y.items.length) {
-										return -1;
-									}
-								});
-
-								var len = specs.length;
-								var newlen = 1;
-								var h = new Array(len);
-								var rowspans = new Array(len);
-								for (var i = 0; i < len; i++) {
-									html += "<th>" + specs[i].title + "</th>";
-									var itemlen = specs[i].items.length;
-									if (itemlen <= 0) {
-										itemlen = 1
-									}
-									;
-									newlen *= itemlen;
-
-									h[i] = new Array(newlen);
-									for (var j = 0; j < newlen; j++) {
-										h[i][j] = new Array();
-									}
-									var l = specs[i].items.length;
-									rowspans[i] = 1;
-									for (j = i + 1; j < len; j++) {
-										rowspans[i] *= specs[j].items.length;
-									}
-								}
-
-								<?php foreach( $levels as $level ){ ?>
-								<?php if( $level['key']=='default'){ ?>
-								html += '<th><div class=""><div style="padding-bottom:10px;text-align:center;"><?php echo ($level['levelname']); ?></div><div class="input-group"><input type="text" class="form-control  input-sm isdiscount_discounts_<?php echo ($level['key']); ?>_all"VALUE=""/><span class="input-group-addon"><a href="javascript:;" class="fa fa-angle-double-down" title="批量设置" onclick="setCol(\'isdiscount_discounts_<?php echo ($level['key']); ?>\');"></a></span></div></div></th>';
-								<?php  }else{ ?>
-								html += '<th><div class=""><div style="padding-bottom:10px;text-align:center;"><?php echo ($level['levelname']); ?></div><div class="input-group"><input type="text" class="form-control  input-sm isdiscount_discounts_level<?php echo ($level['id']); ?>_all"VALUE=""/><span class="input-group-addon"><a href="javascript:;" class="fa fa-angle-double-down" title="批量设置" onclick="setCol(\'isdiscount_discounts_level<?php echo ($level['id']); ?>\');"></a></span></div></div></th>';
-								<?php } ?>
-								<?php } ?>
-								html += '</tr></thead>';
-
-								for (var m = 0; m < len; m++) {
-									var k = 0, kid = 0, n = 0;
-									for (var j = 0; j < newlen; j++) {
-										var rowspan = rowspans[m];
-										if (j % rowspan == 0) {
-											h[m][j] = {
-												title: specs[m].items[kid].title,
-												virtual: specs[m].items[kid].virtual,
-												html: "<td class='full' rowspan='" + rowspan + "'>" + specs[m].items[kid].title + "</td>\r\n",
-												id: specs[m].items[kid].id
-											};
-										}
-										else {
-											h[m][j] = {
-												title: specs[m].items[kid].title,
-												virtual: specs[m].items[kid].virtual,
-												html: "",
-												id: specs[m].items[kid].id
-											};
-										}
-										n++;
-										if (n == rowspan) {
-											kid++;
-											if (kid > specs[m].items.length - 1) {
-												kid = 0;
-											}
-											n = 0;
-										}
-									}
-								}
-
-								var hh = "";
-								for (var i = 0; i < newlen; i++) {
-									hh += "<tr>";
-									var ids = [];
-									var titles = [];
-									var virtuals = [];
-									for (var j = 0; j < len; j++) {
-										hh += h[j][i].html;
-										ids.push(h[j][i].id);
-										titles.push(h[j][i].title);
-										virtuals.push(h[j][i].virtual);
-									}
-									ids = ids.join('_');
-									titles = titles.join('+');
-									var val = {
-										id: "",
-										title: titles,
-									<?php foreach( $levels as $level ){ ?>
-									<?php if( $level['key']=='default'){ ?>
-									level<?php echo ($level['key']); ?>: '',
-									<?php  }else{ ?>
-									level<?php echo ($level['if']); ?>: '',
-									<?php } ?>
-									<?php } ?>
-									costprice: "",
-											presell: "",
-											productprice: "",
-											marketprice: "",
-											weight: "",
-											productsn: "",
-											goodssn: "",
-											virtual: virtuals
-								};
-
-									var val ={ id : "",title:titles,<?php foreach( $levels as $level ){ if( $level['key']=='default'){ ?> level<?php echo ($level['key']); ?>: '',<?php  }else{ ?> level<?php echo ($level['id']); ?>: '',<?php } } ?>costprice : "",productprice : "",marketprice : "",weight:"",productsn:"",goodssn:"",virtual:virtuals };
-									if ($(".isdiscount_discounts_id_" + ids).length > 0) {
-										val = {
-											id: $(".isdiscount_discounts_id_" + ids + ":eq(0)").val(),
-											title: titles,
-										<?php foreach( $levels as $level ){ ?>
-										<?php if( $level['key']=='default'){ ?>
-										level<?php echo ($level['key']); ?>: $(".isdiscount_discounts_<?php echo ($level['key']); ?>_" + ids + ":eq(0)").val(),
-										<?php  }else{ ?>
-										level<?php echo ($level['id']); ?>: $(".isdiscount_discounts_level<?php echo ($level['id']); ?>_" + ids + ":eq(0)").val(),
-										<?php } ?>
-										<?php } ?>
-										costprice: $(".isdiscount_discounts_costprice_" + ids + ":eq(0)").val(),
-												productprice: $(".isdiscount_discounts_productprice_" + ids + ":eq(0)").val(),
-												marketprice: $(".isdiscount_discounts_marketprice_" + ids + ":eq(0)").val(),
-												presell: $(".isdiscount_discounts_presell_" + ids + ":eq(0)").val(),
-												goodssn: $(".isdiscount_discounts_goodssn_" + ids + ":eq(0)").val(),
-												productsn: $(".isdiscount_discounts_productsn_" + ids + ":eq(0)").val(),
-												weight: $(".isdiscount_discounts_weight_" + ids + ":eq(0)").val(),
-												virtual: virtuals
-									}
-									}
-
-									<?php foreach( $levels as $level ){ ?>
-									hh += '<td>'
-									<?php if( $level['key']=='default'){ ?>
-									hh += '<input data-name="isdiscount_discounts_level_<?php echo ($level['key']); ?>_' + ids +'"type="text" class="form-control isdiscount_discounts_<?php echo ($level['key']); ?> isdiscount_discounts_<?php echo ($level['key']); ?>_' + ids +'" value="' +(val.level<?php echo ($level['key']); ?>=='undefined'?'':val.level<?php echo ($level['key']); ?> )+'"/>';
-									<?php  }else{ ?>
-									hh += '<input data-name="isdiscount_discounts_level_<?php echo ($level['id']); ?>_' + ids +'"type="text" class="form-control isdiscount_discounts_level<?php echo ($level['id']); ?> isdiscount_discounts_level<?php echo ($level['id']); ?>_' + ids +'" value="' +(val.level<?php echo ($level['id']); ?>=='undefined'?'':val.level<?php echo ($level['id']); ?> )+'"/>';
-									<?php } ?>
-									hh += '</td>';
-									<?php } ?>
-									hh += '<input data-name="isdiscount_discounts_id_' + ids+'"type="hidden" class="form-control isdiscount_discounts_id isdiscount_discounts_id_' + ids +'" value="' +(val.id=='undefined'?'':val.id )+'"/>';
-									hh += '<input data-name="isdiscount_discounts_ids"type="hidden" class="form-control isdiscount_discounts_ids isdiscount_discounts_ids_' + ids +'" value="' + ids +'"/>';
-									hh += '<input data-name="isdiscount_discounts_title_' + ids +'"type="hidden" class="form-control isdiscount_discounts_title isdiscount_discounts_title_' + ids +'" value="' +(val.title=='undefined'?'':val.title )+'"/></td>';
-									hh += '<input data-name="isdiscount_discounts_virtual_' + ids +'"type="hidden" class="form-control isdiscount_discounts_virtual isdiscount_discounts_virtual_' + ids +'" value="' +(val.virtual=='undefined'?'':val.virtual )+'"/></td>';
-									hh += "</tr>";
-								}
-								html += hh;
-								html += "</table>";
-								$("#isdiscount_discounts").html(html);
-							}
-
-							function refreshCommission() {
-								var commission_level = <?php echo json_encode($commission_level);?>;
-								var html = '<table class="table table-bordered table-condensed"><thead><tr class="active">';
-								var specs = [];
-
-								$(".spec_item").each(function (i) {
-									var _this = $(this);
-
-									var spec = {
-										id: _this.find(".spec_id").val(),
-										title: _this.find(".spec_title").val()
-									};
-
-									var items = [];
-									_this.find(".spec_item_item").each(function () {
-										var __this = $(this);
-										var item = {
-											id: __this.find(".spec_item_id").val(),
-											title: __this.find(".spec_item_title").val(),
-											virtual: __this.find(".spec_item_virtual").val(),
-											show: __this.find(".spec_item_show").get(0).checked ? "1" : "0"
-										}
-										items.push(item);
-									});
-									spec.items = items;
-									specs.push(spec);
-								});
-								specs.sort(function (x, y) {
-									if (x.items.length > y.items.length) {
-										return 1;
-									}
-									if (x.items.length < y.items.length) {
-										return -1;
-									}
-								});
-
-								var len = specs.length;
-								var newlen = 1;
-								var h = new Array(len);
-								var rowspans = new Array(len);
-								for (var i = 0; i < len; i++) {
-									html += "<th>" + specs[i].title + "</th>";
-									var itemlen = specs[i].items.length;
-									if (itemlen <= 0) {
-										itemlen = 1
-									}
-									;
-									newlen *= itemlen;
-
-									h[i] = new Array(newlen);
-									for (var j = 0; j < newlen; j++) {
-										h[i][j] = new Array();
-									}
-									var l = specs[i].items.length;
-									rowspans[i] = 1;
-									for (j = i + 1; j < len; j++) {
-										rowspans[i] *= specs[j].items.length;
-									}
-								}
-
-								$.each(commission_level,function (key,level) {
-									html += '<th><div class=""><div style="padding-bottom:10px;text-align:center;">'+level.levelname+'</div></div></th>';
-								})
-								html += '</tr></thead>';
-
-								for (var m = 0; m < len; m++) {
-									var k = 0, kid = 0, n = 0;
-									for (var j = 0; j < newlen; j++) {
-										var rowspan = rowspans[m];
-										if (j % rowspan == 0) {
-											h[m][j] = {
-												title: specs[m].items[kid].title,
-												virtual: specs[m].items[kid].virtual,
-												html: "<td class='full' rowspan='" + rowspan + "'>" + specs[m].items[kid].title + "</td>\r\n",
-												id: specs[m].items[kid].id
-											};
-										}
-										else {
-											h[m][j] = {
-												title: specs[m].items[kid].title,
-												virtual: specs[m].items[kid].virtual,
-												html: "",
-												id: specs[m].items[kid].id
-											};
-										}
-										n++;
-										if (n == rowspan) {
-											kid++;
-											if (kid > specs[m].items.length - 1) {
-												kid = 0;
-											}
-											n = 0;
-										}
-									}
-								}
-								var hh = "";
-								for (var i = 0; i < newlen; i++) {
-									hh += "<tr>";
-									var ids = [];
-									var titles = [];
-									var virtuals = [];
-									for (var j = 0; j < len; j++) {
-										hh += h[j][i].html;
-										ids.push(h[j][i].id);
-										titles.push(h[j][i].title);
-										virtuals.push(h[j][i].virtual);
-									}
-									ids = ids.join('_');
-									titles = titles.join('+');
-
-									var val = {
-										id: "",
-										title: titles,
-									<?php foreach( $commission_level as $level ){ ?>
-									<?php if( $level["key"] == "default"){ ?>
-									level<?php echo ($level['key']); ?>: '',
-									<?php  }else{ ?>
-									level<?php echo ($level['id']); ?>: '',
-									<?php } ?>
-									<?php } ?>
-									costprice: "",
-											presell: "",
-											productprice: "",
-											marketprice: "",
-											weight: "",
-											productsn: "",
-											goodssn: "",
-											virtual: virtuals
-								};
-
-									var val ={ id : "",title:titles,<?php foreach( $commission_level as $level ){ ?> <?php if( $level["key"] == "default"){ ?>level<?php echo ($level['key']); ?>: '',<?php  }else{ ?>level<?php echo ($level['id']); ?>: '',<?php } } ?>costprice : "",productprice : "",marketprice : "",weight:"",productsn:"",goodssn:"",virtual:virtuals };
-									<?php foreach( $commission_level as $level ){ ?>
-									<?php if( $level["key"] == "default"){ ?>
-									var level<?php echo ($level['key']); ?> = new Array(3);
-									$(".commission_<?php echo ($level['key']); ?>_"+ ids).each(function(index,val){
-										level<?php echo ($level['key']); ?>[index] = val;
-									})
-									<?php  }else{ ?>
-									var level<?php echo ($level['id']); ?> = new Array(3);
-									$(".commission_level<?php echo ($level['id']); ?>_"+ ids).each(function(index,val){
-										level<?php echo ($level['id']); ?>[index] = val;
-									})
-									<?php } ?>
-									<?php } ?>
-									if ($(".commission_id_" + ids).length > 0) {
-										val = {
-											id: $(".commission_id_" + ids + ":eq(0)").val(),
-											title: titles,
-											costprice: $(".commission_costprice_" + ids + ":eq(0)").val(),
-											presell: $(".commission_presell_" + ids + ":eq(0)").val(),
-												productprice: $(".commission_productprice_" + ids + ":eq(0)").val(),
-												marketprice: $(".commission_marketprice_" + ids + ":eq(0)").val(),
-												goodssn: $(".commission_goodssn_" + ids + ":eq(0)").val(),
-												productsn: $(".commission_productsn_" + ids + ":eq(0)").val(),
-												weight: $(".commission_weight_" + ids + ":eq(0)").val(),
-												virtual: virtuals
-										}
-									}
-									<?php foreach( $commission_level as $level ){ ?>
-									hh += '<td>';
-									var level_temp = <?php if( $level['key'] == 'default'){ ?>level<?php echo ($level['key']); }else{ ?>level<?php echo ($level['id']); } ?>;
-									if (len >= i && typeof (level_temp) != 'undefined')
-									{
-										if('<?php echo ($level['key']); ?>' == 'default')
-										{
-											for (var li = 0; li<<?php echo ($shopset_level); ?>;li++)
-											{
-												if (typeof (level_temp[li])!= "undefined")
-												{
-													hh += '<input data-name="commission_level_<?php echo ($level['key']); ?>_' +ids+ '"  type="text" class="form-control commission_<?php echo ($level['key']); ?> commission_<?php echo ($level['key']); ?>_' +ids+ '" value="' +$(level_temp[li]).val()+ '" style="display:inline;width: '+96/parseInt(<?php echo ($shopset_level); ?>)+'%;"/> ';
-												}
-												else
-												{
-													hh += '<input data-name="commission_level_<?php echo ($level['key']); ?>_' +ids+ '"  type="text" class="form-control commission_<?php echo ($level['key']); ?> commission_<?php echo ($level['key']); ?>_' +ids+ '" value="" style="display:inline;width: '+96/parseInt(<?php echo ($shopset_level); ?>)+'%;"/> ';
-												}
-											}
-										}
-										else
-										{
-											for (var li = 0; li<<?php echo ($shopset_level); ?>;li++)
-											{
-												if (typeof (level_temp[li])!= "undefined")
-												{
-													hh += '<input data-name="commission_level_<?php echo ($level['id']); ?>_' +ids+ '"  type="text" class="form-control commission_level<?php echo ($level['id']); ?> commission_level<?php echo ($level['id']); ?>_' +ids+ '" value="' +$(level_temp[li]).val()+ '" style="display:inline;width: '+96/parseInt(<?php echo ($shopset_level); ?>)+'%;"/> ';
-												}
-												else
-												{
-													hh += '<input data-name="commission_level_<?php echo ($level['id']); ?>_' +ids+ '"  type="text" class="form-control commission_level<?php echo ($level['id']); ?> commission_level<?php echo ($level['id']); ?>_' +ids+ '" value="" style="display:inline;width: '+96/parseInt(<?php echo ($shopset_level); ?>)+'%;"/> ';
-												}
-											}
-										}
-									}
-									else
-									{
-										if('<?php echo ($level['key']); ?>' == 'default')
-										{
-											for (var li = 0; li<<?php echo ($shopset_level); ?>;li++)
-											{
-												if (typeof (level_temp[li])!= "undefined")
-												{
-													hh += '<input data-name="commission_level_<?php echo ($level['key']); ?>_' +ids+ '"  type="text" class="form-control commission_<?php echo ($level['key']); ?> commission_<?php echo ($level['key']); ?>_' +ids+ '" value="' +$(level_temp[li]).val()+ '" style="display:inline;width: '+96/parseInt(<?php echo ($shopset_level); ?>)+'%;"/> ';
-												}
-												else
-												{
-													hh += '<input data-name="commission_level_<?php echo ($level['key']); ?>_' +ids+ '"  type="text" class="form-control commission_<?php echo ($level['key']); ?> commission_<?php echo ($level['key']); ?>_' +ids+ '" value="" style="display:inline;width: '+96/parseInt(<?php echo ($shopset_level); ?>)+'%;"/> ';
-												}
-											}
-										}
-										else
-										{
-											for (var li = 0; li<<?php echo ($shopset_level); ?>;li++)
-											{
-												if (typeof (level_temp[li])!= "undefined")
-												{
-													hh += '<input data-name="commission_level_<?php echo ($level['id']); ?>_' +ids+ '"  type="text" class="form-control commission_level<?php echo ($level['id']); ?> commission_level<?php echo ($level['id']); ?>_' +ids+ '" value="' +$(level_temp[li]).val()+ '" style="display:inline;width: '+96/parseInt(<?php echo ($shopset_level); ?>)+'%;"/> ';
-												}
-												else
-												{
-													hh += '<input data-name="commission_level_<?php echo ($level['id']); ?>_' +ids+ '"  type="text" class="form-control commission_level<?php echo ($level['id']); ?> commission_level<?php echo ($level['id']); ?>_' +ids+ '" value="" style="display:inline;width: '+96/parseInt(<?php echo ($shopset_level); ?>)+'%;"/> ';
-												}
-											}
-										}
-									}
-									hh += '</td>';
-									<?php } ?>
-									hh += '<input data-name="commission_id_' + ids+'"type="hidden" class="form-control commission_id commission_id_' + ids +'" value="' +(val.id=='undefined'?'':val.id )+'"/>';
-									hh += '<input data-name="commission_ids"type="hidden" class="form-control commission_ids commission_ids_' + ids +'" value="' + ids +'"/>';
-									hh += '<input data-name="commission_title_' + ids +'"type="hidden" class="form-control commission_title commission_title_' + ids +'" value="' +(val.title=='undefined'?'':val.title )+'"/></td>';
-									hh += '<input data-name="commission_virtual_' + ids +'"type="hidden" class="form-control commission_virtual commission_virtual_' + ids +'" value="' +(val.virtual=='undefined'?'':val.virtual )+'"/></td>';
-									hh += "</tr>";
-								}
-								html += hh;
-								html += "</table>";
-								$("#commission").html(html);
-							}
-
-						function setCol(cls){
-							$("."+cls).val( $("."+cls+"_all").val());
-						}
-						function showItem(obj){
-							var show = $(obj).get(0).checked?"1":"0";
-							$(obj).parents('.spec_item_item').find('.spec_item_show:eq(0)').val(show);
-						}
-						function nofind(){
-							var img=event.srcElement;
-							img.src="./resource/image/module-nopic-small.jpg";
-							img.onerror=null;
-						}
-
-							function choosetemp(id){
-							$('#modal-module-chooestemp').modal();
-							$('#modal-module-chooestemp').data("temp",id);
-						}
-						function addtemp(){
-							var id = $('#modal-module-chooestemp').data("temp");
-							var temp_id = $('#modal-module-chooestemp').find("select").val();
-							var temp_name = $('#modal-module-chooestemp option[value='+temp_id+']').text();
-							//alert(temp_id+":"+temp_name);
-							$("#temp_name_"+id).val(temp_name);
-							$("#temp_id_"+id).val(temp_id);
-							$('#modal-module-chooestemp .close').click();
-							refreshOptions()
-						}
-
-						function setinterval(type)
-						{
-							var intervalfloor =$('#intervalfloor').val();
-							if(intervalfloor=="")
-							{
-								intervalfloor=0;
-							}
-							intervalfloor = parseInt(intervalfloor);
-
-							if(type=='plus')
-							{
-								if(intervalfloor==3)
-								{
-									tip.msgbox.err("最多添加三个区间价格");
-									return;
-								}
-								intervalfloor=intervalfloor+1;
-							}
-							else if(type=='minus')
-							{
-								if(intervalfloor==0)
-								{
-									tip.msgbox.err("请最少添加一个区间价格");
-									return;
-								}
-								intervalfloor=intervalfloor-1;
-							}else
-							{
-								return;
-							}
-
-							if(intervalfloor<1)
-							{
-
-								$('#interval1').hide();
-								$('#intervalnum1').val("");
-								$('#intervalprice1').val("");
-							}else
-							{
-								$('#interval1').show();
-							}
-
-							if(intervalfloor<2)
-							{
-
-								$('#interval2').hide();
-								$('#intervalnum2').val("");
-								$('#intervalprice2').val("");
-							}else
-							{
-								$('#interval2').show();
-							}
-
-							if(intervalfloor<3)
-							{
-
-								$('#interval3').hide();
-								$('#intervalnum3').val("");
-								$('#intervalprice3').val("");
-							}else
-							{
-								$('#interval3').show();
-							}
-
-
-							$('#intervalfloor').val(intervalfloor);
-
-						}
-
-
-						</script>
-						<script language="javascript">
-							$(function() {
-								
-								
-									
-								
-							})
-						</script>
-
-
-<script>
-	var heads_page = 1;
-
-	$("body").delegate("#batchheads_page .pagination a","click",function(){
-		heads_page = $(this).attr('page');
-		search_heads_do();
-	})
-	function search_heads()
-	{
-		heads_page = 1;
-		search_heads_do();
-	}
-	function search_heads_do()
-	{
-		var province_name = $('#sel-provance').val();
-		var city_name = $('#sel-city').val();
-		var area_name = $('#sel-area').val();
-		var country_name = $('#sel-street').val();
-		var keyword = $('#supply_id_input').val();
-
-		$.post("<?php echo U('communityhead/query_head');?>",{page:heads_page,'province_name':province_name,'city_name': city_name,'area_name':area_name,'country_name':country_name,'keyword':keyword},
-				function (ret) {
-					if (ret.status == 1) {
-						$('#batchheads_content').html(ret.html);
-						$('#batchheads_page').html(ret.page_html);
-						return
-					} else {
-						layer.msg('修改失败');
-					}
-				}, 'json');
-	}
-	//显示批量分类
-	$('#batchcatesbut').click(function () {
-		//  var index = layer.load(1);
-		var index = layer.open({
-			type: 1,
-			area: '500px',
-			title: '选取分类'
-			,content: $('#batchcates_html').html(),
-			yes: function(index, layero){
-				//do something
-				layer.close(index); //如果设定了yes回调,需进行手工关闭
-			}
-		});
-	})
-
-	$('#batch_head_group').click(function () {
-		//  var index = layer.load(1);
-		var index = layer.open({
-			type: 1,
-			area: '500px',
-			title: '选取团长分组'
-			,content: $('#batchcates_headgroup_html').html(),
-			yes: function(index, layero){
-				//do something
-				layer.close(index); //如果设定了yes回调,需进行手工关闭
-			}
-		});
-	})
-
-	$('#batch_head_group2').click(function () {
-		//  var index = layer.load(1);
-		var index = layer.open({
-			type: 1,
-			area: '500px',
-			title: '选取团长分组'
-			,content: $('#batchcates_headgroup_html').html(),
-			yes: function(index, layero){
-				//do something
-				layer.close(index); //如果设定了yes回调,需进行手工关闭
-			}
-		});
-	})
-
-
-	$('.check_heads_all').click(function(){
-		//head_id
-		if($(this).is(':checked')){
-			$('.head_id').prop('checked',true);
-		}else{
-			$('.head_id').prop('checked',false);
-		}
-	})
-	$(".radio_sale").click(function(){
-		var checkedvalue = $("input[name='is_all_sale']:checked").val();
-		if(checkedvalue == 1){
-
-		}else{
-			cascdeInit("1","1","","","","");
-			search_heads_do();
-
-
-			var offs_lf = ( $(window).width() -720 )/2;
-			var offs_ht = ( $(window).height() -690 )/2;
-
-
-			$('#batchheads .modal-dialog').css('top',offs_ht+'px');
-			$('#batchheads .modal-dialog').css('margin-top','0px');
-
-			$('#batchheads .modal-dialog').css('left',offs_lf+'px');
-			$('#batchheads .modal-dialog').css('margin-left','0px');
-
-			$('#batchheads').show();
-		}
-
-	})
-
-
-
-	$('#batchcatesbut2').click(function () {
-		var index = layer.open({
-			type: 1,
-			area: '500px',
-			title: '选取分类'
-			,content: $('#batchcates_html').html(),
-			yes: function(index, layero){
-				//do something
-				layer.close(index); //如果设定了yes回调,需进行手工关闭
-			}
-		});
-	})
-
-	//关闭批量分类
-	$('.modal-header .close').click(function () {
-		$('#batchcates').hide();
-		$('#batchheads').hide();
-		$('#batch_time').hide();
-	})
-
-	// 取消批量分类
-	$('.modal-footer .btn.btn-default').click(function () {
-		$('#batchcates').hide();
-		$('#batchheads').hide();
-		$('#batch_time').hide();
-	})
-	$('.model_heads').click(function(){
-		var head_id_arr = [];
-		$('.head_id').each(function(){
-			if($(this).is(':checked')) {
-				head_id_arr.push( $(this).val() )
-			}
-		})
-
-		//modal-group-head
-		var is_clear_old = 0;
-
-		if( $('#is_cancle_old').is(':checked') )
-		{
-			is_clear_old = 1;
-		}
-
-		var is_cancle_allhead2 = 0;
-
-		if( $('#is_cancle_allhead').is(':checked') )
-		{
-			is_cancle_allhead2 = 1;
-		}
-		is_cancle_allhead2 = 1;
-		//is_cancle_allhead2
-
-
-		if(head_id_arr.length > 0)
-		{
-			var goodsids = [];
-			var goods_id = $('#goods_id').val();
-			goodsids.push(goods_id);
-			if(goods_id != '')
-			{
-				$.post("<?php echo U('goods/ajax_batchheads');?>",{'goodsids':goodsids,'head_id_arr': head_id_arr,'is_cancle_allhead':is_cancle_allhead2,'is_clear_old':is_clear_old}, function (ret) {
-					if (ret.status == 1) {
-						$('#batchheads').hide();
-						layer.msg('分配成功', {
-							time: 1000
-						}, function(){
-							window.location.reload();
-						});
-
-						return
-					} else {
-						layer.msg('修改失败');
-					}
-				}, 'json');
-			}else{
-				$('#head_id_arr').val(head_id_arr);
-				$('#batchheads').hide();
-				layer.msg('团长选择成功', {
-					time: 1000
-				});
-			}
-		}else{
-			layer.msg('请选择团长');
-		}
-	})
-	//确认
-	var cates2 = 0;
-	$("body").delegate("#cates2","click",function(){
-
-		cates2 =  $(this).val() ;
-	})
-
-	var group_heads2 = 'default';
-	$("body").delegate("#group_heads","click",function(){
-		group_heads2 =  $(this).val() ;
-	})
-
-
-	$("body").delegate(".cancle","click",function(){
-		layer.closeAll();
-	})
-
-
-
-	$("body").delegate(".modal-group-head","click",function(){
-
-		var group_heads=$('#group_heads').val();
-		if(group_heads2 != 'default')
-		{
-			group_heads = group_heads2;
-		}
-
-		var selected_checkboxs = $('.table-responsive tbody tr td:first-child [type="checkbox"]:checked');
-		var goodsids = selected_checkboxs.map(function () {
-			return $(this).val()
-		}).get();
-
-		if(goodsids.length <=0 )
-		{
-			layer.msg('请先选择商品');
-			return false;
-		}
-
-
-		var is_clear_old = 0;
-
-		$('.is_cancle_old2').each(function(){
-			if( $(this).is(':checked') )
-			{
-				is_clear_old = 1;
-			}
-		})
-
-		var is_cancle_allhead = 0;
-
-		$('.is_cancle_allhead2').each(function(){
-			if( $(this).is(':checked') )
-			{
-				is_cancle_allhead = 1;
-			}
-		})
-
-		var iscover=$('input[name="iscover"]:checked').val();
-		$.post("<?php echo U('goods/ajax_batchcates_headgroup');?>",{'goodsids':goodsids,'groupid': group_heads,'is_cancle_allhead':is_cancle_allhead,'is_clear_old' : is_clear_old }, function (ret) {
-			if (ret.status == 1) {
-
-				layer.msg('分配成功', {
-					time: 1000
-				}, function(){
-					window.location.reload();
-				});
-
-				return
-			} else {
-				layer.msg('分配失败');
-			}
-		}, 'json');
-	})
-
-	$('.layui-table-sort').click(function(){
-		$(this).attr('lay-sort','asc');
-	})
-
-	$("body").delegate(".modal-fenlei","click",function(){
-
-		var cates=$('#cates2').val();
-		if(cates2 != 0)
-		{
-			cates = cates2;
-		}
-
-
-		var selected_checkboxs = $('.table-responsive tbody tr td:first-child [type="checkbox"]:checked');
-		var goodsids = selected_checkboxs.map(function () {
-			return $(this).val()
-		}).get();
-		//id="cates"
-		var iscover=$('input[name="iscover"]:checked').val();
-		$.post("<?php echo U('goods/ajax_batchcates');?>",{'goodsids':goodsids,'cates': cates,'iscover':iscover}, function (ret) {
-			if (ret.status == 1) {
-				$('#batchcates').hide();
-
-				layer.msg('修改成功', {
-					time: 1000
-				}, function(){
-					window.location.reload();
-				});
-
-				return
-			} else {
-				layer.msg('修改失败');
-			}
-		}, 'json');
-	})
-	//----
-
-	//显示时间设置
-	$('#batchtime,#batchtime2').click(function () {
-
-		var offs_lf = ( $(window).width() -720 )/2;
-		var offs_ht = ( $(window).height() -290 )/2;
-
-		$('#batch_time .modal-dialog').css('top',offs_ht+'px');
-		$('#batch_time .modal-dialog').css('margin-top','0px');
-
-		$('#batch_time .modal-dialog').css('left',offs_lf+'px');
-		$('#batch_time .modal-dialog').css('margin-left','0px');
-
-		$('#batch_time').show();
-	})
-
-	$('.modal-time').click(function () {
-		var selected_checkboxs = $('.table-responsive tbody tr td:first-child [type="checkbox"]:checked');
-		var goodsids = selected_checkboxs.map(function () {
-			return $(this).val()
-		}).get();
-
-		var begin_time=$('#batch_time input[name="setsametime[start]"]').val();
-		var end_time=$('#batch_time input[name="setsametime[end]"]').val();
-		$.post("<?php echo U('goods/ajax_batchtime');?>",{'goodsids':goodsids,'begin_time': begin_time,'end_time':end_time}, function (ret) {
-			if (ret.status == 1) {
-				$('#batch_time').hide();
-				layer.msg('设置成功');
-				window.location.reload();
-				return
-			} else {
-				layer.msg('设置失败');
-			}
-		}, 'json');
-	})
-
-	$(document).on("click", '[data-toggle="ajaxEdit"]', function(e) {
-		var obj = $(this),
-				url = obj.data('href') || obj.attr('href'),
-				data = obj.data('set') || {},
-				html = $.trim(obj.text()),
-				required = obj.data('required') || true,
-				edit = obj.data('edit') || 'input';
-		var oldval = $.trim($(this).text());
-		e.preventDefault();
-		submit = function() {
-			e.preventDefault();
-			var val = $.trim(input.val());
-			if (required) {
-				if (val == '') {
-					layer.msg(tip.lang.empty);
-					return
-				}
-			}
-			if (val == html) {
-				input.remove(), obj.html(val).show();
-				return
-			}
-			if (url) {
-				$.post(url, {
-					value: val
-				}, function(ret) {
-					ret = eval("(" + ret + ")");
-					if (ret.status == 1) {
-						obj.html(val).show()
-					} else {
-						layer.msg(ret.result.message, ret.result.url)
-					}
-					input.remove()
-				}).fail(function() {
-					input.remove(),  layer.msg(tip.lang.exception)
-				})
-			} else {
-				input.remove();
-				obj.html(val).show()
-			}
-			obj.trigger('valueChange', [val, oldval])
-		}, obj.hide().html('<i class="fa fa-spinner fa-spin"></i>');
-		var input = $('<input type="text" class="form-control input-sm" style="width: 80%;display: inline;" />');
-		if (edit == 'textarea') {
-			input = $('<textarea type="text" class="form-control" style="resize:none" rows=3 ></textarea>')
-		}
-		obj.after(input);
-		input.val(html).select().blur(function() {
-			submit(input)
-		}).keypress(function(e) {
-			if (e.which == 13) {
-				submit(input)
-			}
-		})
-	})
-</script>
-</body>

+ 0 - 350
Runtime/Cache/Seller/dc9eb484d8e3fbf236c9c0d182ef3856.php

@@ -1,350 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-    <!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-    <!--[if lt IE 9]>
-      <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-      <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-    <![endif]-->  
-
-    <link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-    <link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-    <script type="text/javascript">
-        window.sysinfo = {
-            <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-            <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-            <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-            <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-            'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-            'siteroot': '<?php echo ($_W['siteroot']); ?>',
-            'siteurl': '<?php echo ($_W['siteurl']); ?>',
-            'attachurl': '<?php echo ($_W['attachurl']); ?>',
-            'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-            'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-            'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-            'cookie' : {'pre': ''},
-            'account' : <?php echo json_encode($_W['account']);?>,
-        };
-    </script>
-            
-    <script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-    <script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-    <script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-    <script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-    <script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-    <script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-    <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-    <link href="/static/css/snailfish.css" rel="stylesheet">
-	
-</head>
-<body layadmin-themealias="default">
-
-    <div class="layui-fluid">
-        <div class="layui-card">
-            <div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">
-			
-			<?php if( !empty($item['id']) ){ ?>编辑<?php }else{ ?>添加<?php } ?>角色 <small><?php if(!empty($item['id'])){ ?>修改【<?php echo ($item['rolename']); ?>】<?php } ?></small>
-			
-			</span></div>
-            <div class="layui-card-body" style="padding:15px;">
-                <form action="" method="post" class="layui-form" lay-filter="component-layui-form-item" enctype="multipart/form-data" >
-                    
-					
-					<input type="hidden" name="id" value="<?php echo ($item['id']); ?>" />
-					<div class="layui-form-item">
-						<label class="layui-form-label must">角色</label>
-						<div class="layui-input-block">
-							<input type="text" name="rolename" class="form-control" value="<?php echo ($item['rolename']); ?>" data-rule-required="true" />
-						</div>
-					</div>
-					<div class="layui-form-item">
-						<label class="layui-form-label">状态</label>
-						<div class="layui-input-block">
-							<label class='radio-inline'>
-								<input type='radio' name='status' value=1' <?php if($item['status']==1){ ?>checked<?php } ?> title="启用" /> 
-							</label>
-							<label class='radio-inline'> 
-								<input type='radio' name='status' value=0' <?php if($item['status']==0){ ?>checked<?php } ?> title="禁用" /> 
-							</label>
-							<span class="help-block">如果禁用,则当前角色的操作员全部会禁止使用</span>
-						</div>
-					</div>
-				   <!-- perm begin -->
-				   <div class="layui-form-item">
-
-						 <label class="layui-form-label">可用权限</label>
-
-									<div class="layui-input-block">
-										<div id="accordion" class="panel-group">
-										<div class='panel panel-default' >
-										<?php $i = 0; ?>
-										<?php foreach($perms['parent'] as $key => $value){ ?>
-											<div class='panel-heading' style='background:#f8f8f8' >
-												<a class="btn btn-link btn-sm pull-right" data-toggle="collapse"  data-parent="#accordion" href="#collapse<?php echo ($key); ?>"><i class='fa fa-angle-down'></i> 展开</a>
-												<label class='checkbox-inline'>
-
-														 <input type='checkbox' lay-ignore  id="perm_<?php echo ($key); ?>" name='perms[]' value='<?php echo ($key); ?>' class='perm-all' data-group='<?php echo ($key); ?>'
-																<?php if(in_array($key,$role_perms) || in_array($key,$user_perms)){ ?> checked<?php } ?>
-																<?php if(in_array($key,$role_perms) && $action=='perm.user'){ ?> disabled<?php } ?>
-																/ title=""> <?php echo ($value['text']); ?>
-
-												</label>
-											</div>
-											<div id="collapse<?php echo ($key); ?>" class="panel-collapse <?php if($i == 0){ ?>in<?php }else{ ?>collapse<?php } ?>">
-											<div class='panel-body perm-group'>
-												
-												<?php if( count($perms['parent'][$key]) >=1 ){ ?>
-												<span>
-												<?php foreach($perms['parent'][$key] as $ke => $val){ ?>
-												
-												
-												<?php if($ke != 'text'){ ?>
-													 <label class='checkbox-inline'>
-														 <input type='checkbox' lay-ignore   name='perms[]'  value='<?php echo ($key); ?>.<?php echo ($ke); ?>' class='perm-item'
-																data-group='<?php echo ($key); ?>' data-parent='text'
-																<?php if(in_array($key.".".$ke,$role_perms) || in_array($key.".".$ke,$user_perms)){ ?> checked<?php } ?>
-														 <?php if(in_array($key.".".$ke,$role_perms) && $action=='perm.user'){ ?> disabled<?php } ?> title=""/>  <?php echo str_replace("-log", "", $val); ?>
-													 </label>
-												<?php }else{ ?>	 
-													 <label class='checkbox-inline'>
-														 <input type='checkbox' lay-ignore   name='perms[]'  value='<?php echo ($key); ?>' class='perm-all-item'
-																data-group='<?php echo ($key); ?>' data-parent='text'
-																<?php if(in_array($key,$role_perms) || in_array($key,$user_perms)){ ?> checked<?php } ?>
-														 <?php if(in_array($key,$role_perms) && $action=='perm.user'){ ?> disabled<?php } ?> title=""/><?php echo str_replace("-log", "", $val); ?>  
-													 </label>
-												<?php } ?>
-												</span>
-												<br>
-												<?php } ?>
-												<?php } ?>
-												
-												<?php foreach($perms['son'][$key] as $ke => $val){ ?>
-												
-												<?php if( count($val) >=1 ){ ?>
-												<span>
-													
-													<?php foreach($val as $k => $v){ ?>
-													
-													<?php if($k != 'text'){ ?>
-														 <label class='checkbox-inline'>
-															 <input type='checkbox' lay-ignore   name='perms[]'  value='<?php echo ($key); ?>.<?php echo ($ke); ?>.<?php echo ($k); ?>' class='perm-item'
-																	data-group='<?php echo ($key); ?>' data-parent='<?php echo ($ke); ?>' data-son="<?php echo ($k); ?>"
-																	<?php if( in_array($key.".".$ke.".".$k,$role_perms) || in_array($key.".".$ke.".".$k,$user_perms) ){ ?> checked<?php } ?>
-															 <?php if(in_array($key.".".$ke.".".$k,$role_perms) && $action=='perm.user'){ ?> disabled<?php } ?> title=""/><?php echo str_replace("-log", "", $v); ?>  
-														 </label>
-													<?php }else{ ?>
-														 <label class='checkbox-inline'>
-															 <input type='checkbox' lay-ignore   name='perms[]'  value='<?php echo ($key); ?>.<?php echo ($ke); ?>' class='perm-all-item'
-																	data-group='<?php echo ($key); ?>' data-parent='<?php echo ($ke); ?>' data-son="<?php echo ($k); ?>"
-																	<?php if( in_array($key.".".$ke,$role_perms) || in_array($key.".".$ke,$user_perms) ){ ?> checked<?php } ?>
-															 <?php if(in_array($key.".".$ke,$role_perms) && $action=='perm.user'){ ?> disabled<?php } ?> title=""/> <?php echo str_replace("-log", "", $v); ?> 
-														 </label>
-													<?php } ?>
-													<?php } ?>
-													</span>
-												<br>
-												<?php } ?>
-												<?php } ?>
-
-												
-												<?php foreach($perms['grandson'][$key] as $ke => $val){ ?>
-												
-												<?php foreach($val as $k => $v){ ?>
-											
-												<?php if( count($v) >1 ){ ?>
-												 <span>
-												 <?php foreach($v as $kk => $vv){ ?>
-												
-												<?php if($kk != 'text'){ ?>
-														 <label class='checkbox-inline'>
-															 <input type='checkbox' lay-ignore   name='perms[]'  value='<?php echo ($key); ?>.<?php echo ($ke); ?>.<?php echo ($k); ?>.<?php echo ($kk); ?>' class='perm-item'
-																	data-group='<?php echo ($key); ?>' data-parent='<?php echo ($ke); ?>' data-son="<?php echo ($k); ?>" data-grandson="<?php echo ($kk); ?>"
-																	<?php if(in_array($key.".".$ke.".".$k.".".$kk,$role_perms) || in_array($key.".".$ke.".".$k.".".$kk,$user_perms)){ ?> checked<?php } ?>
-															 <?php if(in_array($key.".".$ke.".".$k.".".$kk,$role_perms) && $action =='perm.user'){ ?> disabled<?php } ?> title=""/><?php echo str_replace("-log", "", $vv); ?>  
-														 </label>
-												<?php }else{ ?>
-														 <label class='checkbox-inline'>
-															 <input type='checkbox' lay-ignore   name='perms[]'  value='<?php echo ($key); ?>.<?php echo ($ke); ?>.<?php echo ($k); ?>' class='perm-all-item'
-																	data-group='<?php echo ($key); ?>' data-parent='<?php echo ($ke); ?>' data-son="<?php echo ($k); ?>" data-grandson="<?php echo ($kk); ?>"
-																	<?php if( in_array($key.".".$ke.".".$k,$role_perms) || in_array($key.".".$ke.".".$k,$user_perms) ){ ?> checked<?php } ?>
-															 <?php if(in_array($key.".".$ke.".".$k,$role_perms) && $action=='perm.user'){ ?> disabled<?php } ?> title=""/><?php echo str_replace("-log", "", $vv); ?>  
-														 </label>
-												<?php } ?>
-												<?php } ?>
-												 </span>
-												<br>
-												<?php } ?>
-												<?php } ?>
-												<?php } ?>
-											</div>
-									 </div>
-										   <?php $i++; ?>
-										<?php } ?>
-										</div>
-									</div>
-								</div>
-				</div>
-					
-                    <div class="layui-form-item">
-                        <label class="layui-form-label"> </label>
-                        <div class="layui-input-block">
-                            <input type="submit" value="提交" lay-submit lay-filter="formDemo" class="btn btn-primary"  />
-                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-                        </div>
-                    </div>
-                </form>
-            </div>
-        </div>
-    </div>
-
-    <script src="/layuiadmin/layui/layui.js"></script>
-    <script>
-        layui.config({
-            base: '/layuiadmin/' //静态资源所在路径
-        }).extend({
-            index: 'lib/index' //主入口模块
-        }).use('index');
-    </script>
-    <script>
-    var layer = layui.layer;
-    var $;
-    var cur_open_div;
-    layui.use(['jquery', 'layer','form'], function(){ 
-      $ = layui.$;
-      var form = layui.form;
-      
-        form.on('radio(linktype)', function(data){
-            if (data.value == 2) {
-                $('#typeGroup').show();
-            } else {
-                $('#typeGroup').hide();
-            }
-        });  
-
-        
-        $('#chose_link').click(function(){
-            cur_open_div = $(this).attr('data-input');
-            $.post("<?php echo U('util.selecturl', array('ok' => 1));?>", {}, function(shtml){
-             layer.open({
-                type: 1,
-                area: '930px',
-                content: shtml //注意,如果str是object,那么需要字符拼接。
-              });
-            });
-        })
-
-        form.verify({
-          title: [
-            /^[\S]{1,}$/,'标题不能为空'
-          ] 
-        });
-            
-        //监听提交
-        form.on('submit(formDemo)', function(data){
-            $.ajax({
-                url: data.form.action,
-                type: data.form.method,
-                data: data.field,
-                dataType:'json',
-                success: function (info) {
-                  
-                    if(info.status == 0)
-                    {
-                        layer.msg(info.result.message,{icon: 1,time: 2000});
-                    }else if(info.status == 1){
-                        var go_url = location.href;
-                        if( info.result.hasOwnProperty("url") )
-                        {
-                            go_url = info.result.url;
-                        }
-                        
-                        layer.msg('操作成功',{time: 1000,
-                            end:function(){
-                                location.href = info.result.url;
-                            }
-                        }); 
-                    }
-                }
-            });
-            return false;
-        });
-    })
-    </script> 
-	<script language="javascript">
-		$(function () {
-			$('.perm-all').click(function () {
-				var checked = $(this).get(0).checked;
-				var group = $(this).data('group');
-				$(".perm-item[data-group='" + group + "'],.perm-all-item[data-group='" + group + "']").each(function () {
-					$(this).get(0).checked = checked;
-				})
-			})
-			$('.perm-all-item').click(function () {
-				var checked = $(this).get(0).checked;
-				var group = $(this).data('group');
-				var parent = $(this).data('parent');
-				var son = $(this).data('son');
-				var grandson = $(this).data('grandson');
-				$(this).parents("span").find(".perm-item").each(function () {
-					$(this).get(0).checked = checked;
-				});
-				group_check(this);
-
-			});
-			$('.perm-item').click(function () {
-				var group = $(this).data('group');
-				var parent = $(this).data('parent');
-				var son = $(this).data('son');
-				var grandson = $(this).data('grandson');
-				var check = false;
-				$(this).closest('span').find(".perm-item").each(function () {
-					if ($(this).get(0).checked) {
-						check = true;
-						return false;
-					}
-				});
-				var allitem = $(this).parents("span").find(".perm-all-item");
-				if (allitem.length == 1) {
-					allitem.get(0).checked = check;
-				}
-				group_check(this);
-
-			});
-
-			$(".panel-body").find("span").each(function (index, item) {
-				if ($(this).find("label").length != 1) {
-					$($(this).find("label").get(0)).wrap("<div class='col-sm-2' style='white-space:nowrap;'></div>");
-					$($(this).find("label").not($(this).find("label").get(0))).wrapAll("<div class='col-sm-10'></div>");
-				}
-				else {
-					$($(this).find("label").get(0)).wrap("<div class='col-sm-12'></div>");
-				}
-			});
-
-		});
-
-		function group_check(obj) {
-			var check = false;
-			$(obj).parents('.perm-group').find(":checkbox").each(function (index, item) {
-				if (item.checked) {
-					check = true;
-				}
-			});
-			var group = $(obj).eq(0).data('group');
-			$(".perm-all[data-group=" + group + "]").get(0).checked = check;
-		}
-	</script>
-
-</body>
-</html>

+ 0 - 224
Runtime/Cache/Seller/dec0611a4ba00ea190c42d94ea795ad0.php

@@ -1,224 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-            window.sysinfo = {
-            <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-			
-            <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-			
-            'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-			
-            'siteroot': '<?php echo ($_W['siteroot']); ?>',
-                    'siteurl': '<?php echo ($_W['siteurl']); ?>',
-                    'attachurl': '<?php echo ($_W['attachurl']); ?>',
-                    'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-                    'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-                    'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-            'cookie' : {'pre': ''},
-            'account' : <?php echo json_encode($_W['account']);?>,
-            };
-        </script>
-		
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-	<script type="text/javascript" src="./resource/components/colpick/colpick.js"></script>
-  <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-   <link href="/static/css/snailfish.css" rel="stylesheet">
-	<link href="./resource/components/colpick/colpick.css" rel="stylesheet">
-</head>
-<body layadmin-themealias="default">
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">公告设置</span></div>
-		<div class="layui-card-body" style="padding:15px;">
-			<form action="" method="post" class="layui-form" lay-filter="component-layui-form-item" enctype="multipart/form-data" >
-		
-				<div class="layui-form-item" >
-					<label class="layui-form-label">小喇叭</label>
-					<div class="layui-input-block">
-						<?php echo tpl_form_field_image2('parameter[index_notice_horn_image]', $data['index_notice_horn_image']);?>
-						<span class='layui-form-mid'>图片尺寸为:40*28。</span>
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label">字体颜色</label>
-					<div class="layui-input-block">
-						<div class="" style="margin:0px;">
-							<div class="layui-input-inline" style="width: 120px;">
-							  <input type="text" name="parameter[index_notice_font_color]" value="<?php echo ($data['index_notice_font_color']); ?>" placeholder="请选择颜色" class="layui-input" id="test-colorpicker-form-input4">
-							</div>
-							<div class="layui-inline" style="left: -11px;">
-							  <div id="minicolors4">
-								  <div class="layui-unselect layui-colorpicker"><span><span class="layui-colorpicker-trigger-span" lay-type="" style="background: <?php echo ($data['index_notice_font_color']); ?>"><i class="layui-icon layui-colorpicker-trigger-i layui-icon-down"></i></span></span></div>
-							  </div>
-							</div>
-						  </div>
-						<span class='layui-form-mid'>默认#ff5344</span>
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label">背景颜色</label>
-					<div class="layui-input-block">
-						<div class="" style="margin:0px;">
-							<div class="layui-input-inline" style="width: 120px;">
-							  <input type="text" name="parameter[index_notice_background_color]" value="<?php echo ($data['index_notice_background_color']); ?>" placeholder="请选择颜色" class="layui-input" id="test-colorpicker-form-input5">
-							</div>
-							<div class="layui-inline" style="left: -11px;">
-							  <div id="minicolors5">
-								  <div class="layui-unselect layui-colorpicker"><span><span class="layui-colorpicker-trigger-span" lay-type="" style="background: <?php echo ($data['index_notice_background_color']); ?>"><i class="layui-icon layui-colorpicker-trigger-i layui-icon-down"></i></span></span></div>
-							  </div>
-							</div>
-						  </div>
-						<span class='layui-form-mid'>默认#fff9f4</span>
-					</div>
-				</div>
-				
-				
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label"> </label>
-					<div class="layui-input-block">
-						<input type="submit" value="提交" lay-submit lay-filter="formDemo" class="btn btn-primary"  />
-						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-						<!-- <a class="btn btn-default" style='margin-left:10px;' href="<?php echo U('configindex/navigat',array('ok'=>'1'));?>">返回列表</a>-->
-						
-					</div>
-				</div>
-			</form>
-		</div>
-</div>
-</div>
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-
-	var index_notice_font_color = '<?php echo ($data["index_notice_font_color"]); ?>';
-	$('#minicolors4').colpick({
-		submit:true,
-		color: index_notice_font_color,
-		onSubmit: function(color,color2){
-			$('#test-colorpicker-form-input4').val('#'+color2);
-			$('#minicolors4').find('.layui-colorpicker-trigger-span').css('background','#'+color2);
-			$('.colpick_full').hide();
-		}
-	});
-
-	var index_notice_background_color = '<?php echo ($data["index_notice_background_color"]); ?>';
-	$('#minicolors5').colpick({
-		submit:true,
-		color: index_notice_background_color,
-		onSubmit: function(color,color2){
-			$('#test-colorpicker-form-input5').val('#'+color2);
-			$('#minicolors5').find('.layui-colorpicker-trigger-span').css('background','#'+color2);
-			$('.colpick_full').hide();
-		}
-	});
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-var cur_open_div;
-
-layui.use(['jquery', 'layer','form','colorpicker'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  
-  var colorpicker = layui.colorpicker;
- 
-    /*var index_notice_font_color = '<?php echo ($data["index_notice_font_color"]); ?>';
-    colorpicker.render({
-      elem: '#minicolors4'
-      ,color: index_notice_font_color ? index_notice_font_color : '#ff5344'
-      ,done: function(color){
-        $('#test-colorpicker-form-input4').val(color);
-      }
-    });
-
-    var index_notice_background_color = '<?php echo ($data["index_notice_background_color"]); ?>';
-    colorpicker.render({
-      elem: '#minicolors5'
-      ,color: index_notice_background_color ? index_notice_background_color : '#fff9f4'
-      ,done: function(color){
-        $('#test-colorpicker-form-input5').val(color);
-      }
-    });*/
-  
-	
-		
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						var backurl = "<?php echo U('Configindex/noticesetting',array('ok'=>'1'));?>";
-						location.href = backurl;
-						// location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-})
-
-
-
-</script>  
-</body>

+ 0 - 684
Runtime/Cache/Seller/dffe4a6bfa5bb357052b50b8228100cf.php

@@ -1,684 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
-  <!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-  <!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-  <![endif]-->
-
-  <link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-  <link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-  <script type="text/javascript">
-      window.sysinfo = {
-        <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-        <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-        <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-        <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-        'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-        'siteroot': '<?php echo ($_W['siteroot']); ?>',
-        'siteurl': '<?php echo ($_W['siteurl']); ?>',
-        'attachurl': '<?php echo ($_W['attachurl']); ?>',
-        'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-        'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-        'module': {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-        'cookie': {'pre': ''},
-        'account': <?php echo json_encode($_W['account']);?>,
-      };
-  </script>
-        
-  <script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-  <script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-  <script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-  <script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-  <script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-  <script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-  <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-  <link href="/static/css/snailfish.css" rel="stylesheet">
-</head>
-<body layadmin-themealias="default">
-
-<div class="layui-fluid">
-    <div class="layui-card">
-        <div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">供应商列表</span></div>
-        <div class="layui-card-body" style="padding:15px;">
-        <div class="page-content">
-            <form action="" method="get" class="form-horizontal form-search layui-form" role="form">
-        		<input type="hidden" name="c" value="supply" />
-                <input type="hidden" name="a" value="index" />
-                <div class="layui-form-item">
-                    <!-- <span class="layui-input-inline" style="width:280px;">
-                        <?php echo tpl_form_field_daterange('time', array('sm'=>true, 'placeholder'=>'成为供应商时间'),true);;?>
-                    </span> -->
-    				<div class="layui-input-inline">
-    					<select name='comsiss_state' class="layui-input layui-unselect" style="width:80px;"  >
-    						<option value=''>状态</option>
-    						<option value='0' <?php if( $comsiss_state=='0'){ ?>selected<?php } ?>>未审核</option>
-    						<option value='1' <?php if( $comsiss_state=='1'){ ?>selected<?php } ?>>已审核</option>
-    					</select>
-    				</div>
-                    <div class="layui-input-inline" style="width:280px;">
-    				    <input type="text" class="layui-input" name="keyword" value="<?php echo ($keyword); ?>" placeholder="店铺姓名/手机号/供应商名称"/>
-                    </div>
-    				<div class="layui-input-inline layui-btn-group">
-    					<button class="layui-btn layui-btn-sm layui-btn-normal" type="submit"> 搜索</button>
-    					<button type="submit" name="export" value="1" class="layui-btn layui-btn-sm ">导出</button>
-    				</div>
-                </div>
-            </form>
-            <form action="" class="layui-form" lay-filter="example" method="post" >
-                <div class="row">
-                    <div class="col-md-12">
-                        <div class="page-table-header">
-                            <!-- <input type='checkbox' name="checkall" lay-skin="primary" lay-filter="checkboxall" /> --> 
-        					<span class="pull-right">
-        						<a href="<?php echo U('supply/addsupply', array('ok' => 1));?>" class="layui-btn layui-btn-sm"><i class="fa fa-plus"></i> 添加供应商</a>
-        					</span>
-                            <div class="btn-group">	
-        						<a class='btn btn-default btn-sm btn-op btn-operation'  data-toggle='batch' data-href="<?php echo U('supply/agent_check',array('state'=>1,'ok' => 1));?>"  data-confirm='确认要审核通过?'>
-        							<i class="icow icow-shenhetongguo"></i>审核通过
-        						</a>
-        						<a class='btn btn-default btn-sm btn-op btn-operation'  data-toggle='batch' data-href="<?php echo U('supply/agent_check',array('state'=>0,'ok' => 1));?>" data-confirm='确认要取消审核?'>
-        							<i class="icow icow-yiquxiao"></i>取消审核</a>
-        						<a style="display:none;" class="btn btn-default btn-sm btn-op btn-operation" type="button" data-toggle='batch-remove' data-confirm="确认要删除?" data-href="<?php echo U('supply/deletehead');?>">
-        							<i class='icow icow-shanchu1'></i> 删除
-        						</a>
-        					</div>
-                        </div>
-                        <table class="layui-table" lay-skin="line" lay-size="lg">
-                            <thead class="navbar-inner">
-                                <tr>
-            						<th style="width:25px;">
-                                        <input type='checkbox' name="checkall" lay-skin="primary" lay-filter="checkboxall" />
-                                    </th>
-            						<th style="width:60px;">ID</th>
-            						<th style="width:160px;">供应商类型</th>
-                                    <th style="width:200px;">供应商名称</th>
-                                    <th style="width:150px;">供应商标志</th>
-                                    <th style="width:140px;">供应商联系人</th>
-                                    <th style="width:120px;">联系方式</th>
-            						<th style='width:120px;'>商品数量</th>
-                                    <th style="width:150px">申请时间</br>审核时间</th>
-            						<th style='width:135px;'>状态</th>
-									<?php if($supply_is_open_mobilemanage == 1){ ?>
-									<th style='width:150px;'>手机端管理</th>
-									<?php } ?>
-                                    <th style="text-align: center;">操作</th>
-                                </tr>
-                            </thead>
-                            <tbody>
-        					<?php foreach( $list as $row ){ ?>
-        						<tr>
-                                    <td style="position: relative; ">
-                                        <input type='checkbox' value="<?php echo ($row['id']); ?>" name="item_checkbox" lay-skin="primary"/>
-        							</td>
-        							<td>
-        								<?php echo ($row['id']); ?>
-        							</td>
-        							<td>
-        								<?php if($row['type'] == 1){ ?>
-        								<span class="text-primary">独立供应商</span>
-        								<?php }else{ ?>
-        								平台供应商
-        								<?php } ?>
-        							</td>
-                                     <td> 
-        							<?php echo ($row['shopname']); ?>
-                                    </td>
-                                    <td style="cursor: pointer;" >
-        								<img src="<?php echo tomedia($row['logo']);?>" style="width:80px;" />
-        							</td>
-                                    <td> 
-        							<?php echo ($row['name']); ?>
-                                    </td>
-                                    <td> 
-        							<?php echo ($row['mobile']); ?>
-                                    </td>
-                                    <td> 
-        							<?php echo ($row['goods_count']); ?>
-                                    </td>
-        							<td><?php echo date("Y-m-d",$row['addtime']);?> <?php echo date("H:i:s",$row['addtime']);?>
-                                    <br/>
-        							<?php if( !empty($row['apptime'])){ ?>
-        								<?php echo date("Y-m-d",$row['apptime']);?> <?php echo date("H:i:s",$row['apptime']);?>
-        							<?php } ?>
-        							</td>
-        							
-									<td>
-
-										<?php if( $row['state'] == 0 ){ ?>
-											
-												<a class='op layui-btn layui-btn-xs'  data-toggle="ajaxModal" href="javascript:;" data-href="<?php echo U('supply/agent_check_first', array('id' => $row['id'],'type'=>$row['type'] ));?>"
-												   data-href2="<?php echo U('supply/agent_check_first', array('id' => $row['id'] ));?>">
-
-													<i class="icow icow-yibiaoji" style="color: #999;display: inline-block;vertical-align: middle" title="点击审核,选择供应商类型" ></i>
-													&nbsp;通&nbsp;过&nbsp;
-
-												</a><br/>
-											
-											
-											<input type="checkbox" name="" lay-filter="statewsitchunable" data-href="<?php echo U('supply/agent_check', array('id'=>$row['id']));?>" <?php if($row['state']==1){ ?>checked<?php } ?> lay-skin="switch" lay-text="已拒绝|拒绝">
-											
-										<?php }else if( $row['state'] == 1 ){ ?>
-											<input type="checkbox" name="" lay-filter="statewsitch" data-href="<?php echo U('supply/agent_check', array('id'=>$row['id']));?>" <?php if($row['state']==1){ ?>checked<?php } ?> lay-skin="switch" lay-text="启用|禁用">
-										
-										<?php }else if( $row['state'] == 2 ){ ?>
-												<p style="color: red;">已拒绝</p>
-											<a  data-toggle="ajaxModal" href="javascript:;" data-href="<?php echo U('supply/agent_check_first', array('id' => $row['id']));?>" >
-												<p style="color: blue;">重新审核</p>
-											</a>
-										<?php }else if( $row['state'] == 3 ){ ?>
-											<input type="checkbox" name="" lay-filter="statewsitch" data-href="<?php echo U('supply/agent_check', array('id'=>$row['id']));?>" <?php if($row['state']==1){ ?>checked<?php } ?> lay-skin="switch" lay-text="启用|禁用">	
-										<?php } ?>
-        							</td>
-									
-									<?php if($supply_is_open_mobilemanage == 1){ ?>
-									<td>
-										<?php if( $row['type'] == 1 ){ ?>
-
-											<?php if( $row['state'] == 1 ){ ?>
-												<input type="checkbox" name="" lay-filter="wsitchmobilemanage" data-href="<?php echo U('supply/agent_mobilemanage', array('id'=>$row['id']));?>" <?php if($row['is_open_mobilemanage']==1){ ?>checked<?php } ?> lay-skin="switch" lay-text="开启|关闭">
-											<?php }else{?>
-												<input type="checkbox" name="" lay-filter="wsitchmobilemanage" disabled="true" lay-skin="switch" lay-text="开启|关闭">
-											<?php } ?>
-											
-										<?php }else{ ?>
-											平台供应商无手机端管理
-										<?php } ?>
-									</td>
-									<?php } ?>
-        							<td style="overflow:visible;text-align: center;">
-                                        
-                                            <a class="layui-btn layui-btn-xs" href="<?php echo U('supply/addsupply',array('id'=>$row['id'], 'ok'=>1));;?>">
-                                                <i class="layui-icon layui-icon-edit"></i>编辑
-                                            </a>
-											<?php if( $row['state'] == 0 && $row['goods_count'] <= 0 ){ ?>
-        									
-											 <a class='layui-btn layui-btn-xs deldom' href="javascript:;" data-href="<?php echo U('supply/deletesupply',array('id' => $row['id']) );?>" data-confirm='确认要删除吗?'>
-											  <i class="layui-icon">&#xe640;</i>删除
-											</a>
-											<?php } ?>
-                                        
-                                    </td>
-									
-                                </tr>
-        					<?php } ?>
-                            </tbody>
-                            <tfoot>
-                                <tr>
-                                    <td colspan="5">
-                                        <input type='checkbox' name="checkall" lay-skin="primary" lay-filter="checkboxall" /> 
-            							<div class="btn-group">
-            								<a class='btn btn-default btn-sm btn-op btn-operation'  data-toggle='batch' data-href="<?php echo U('supply/agent_check',array('state'=>1));?>"  data-confirm='确认要审核通过?'>
-            									<i class="icow icow-shenhetongguo"></i>审核通过
-            								</a>
-            								<a class='btn btn-default btn-sm btn-op btn-operation'  data-toggle='batch' data-href="<?php echo U('supply/agent_check',array('state'=>0));?>" data-confirm='确认要取消审核?'>
-            									<i class="icow icow-yiquxiao"></i>取消审核</a>
-            								<a style="display:none;" class="btn btn-default btn-sm btn-op btn-operation" type="button" data-toggle='batch-remove' data-confirm="确认要删除?" data-href="<?php echo U('communityhead/deletehead');?>">
-            									<i class='icow icow-shanchu1'></i> 删除
-            								</a>
-            							</div>
-                                    </td>
-                                    <td colspan="<?php if($supply_is_open_mobilemanage == 1){ ?>7<?php }else{ ?>6<?php } ?>" style="text-align: right">
-                                        <?php echo ($pager); ?>
-                                    </td>
-                                </tr>
-                            </tfoot>
-                        </table>
-                    </div>
-                </div>
-            </form>
-        </div>
-
-    </div>
-</div>
-    
-<div id="ajaxModal" class="modal fade" style="display: none;">
-
-</div>
-
-
-<script language="javascript">
-    
-    require(['bootstrap'], function () {
-        $("[rel=pop]").popover({
-            trigger: 'manual',
-            placement: 'right',
-            title: $(this).data('title'),
-            html: 'true',
-            content: $(this).data('content'),
-            animation: false
-        }).on("mouseenter", function () {
-            var _this = this;
-            $(this).popover("show");
-            $(this).siblings(".popover").on("mouseleave", function () {
-                $(_this).popover('hide');
-            });
-        }).on("mouseleave", function () {
-            var _this = this;
-            setTimeout(function () {
-                if (!$(".popover:hover").length) {
-                    $(_this).popover("hide")
-                }
-            }, 100);
-        });
-    });
-   
-
-   $("[data-toggle='ajaxModal']").click(function () {
-        var s_url = $(this).attr('data-href');
-		ajax_url = s_url;
-	   var s_url2 = $(this).attr('data-href2');
-	   ajax_url2 = s_url2;
-		console.log(23);
-       $.ajax({
-				url:s_url,
-				type:"get",
-				success:function(shtml){
-					$('#ajaxModal').html(shtml);
-					$("#ajaxModal").modal();
-				}	
-		})
-    });
-
-	$(document).delegate(".modal-footer .btn-primary","click",function(){
-		var s_data = $('#ajaxModal form').serialize();
-		$.ajax({
-			url:ajax_url,
-			type:'post',
-			dataType:'json',
-			data:s_data,
-			success:function(info){
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-		return false;
-	})
-	
-   
-   
-    $("[data-toggle='batch-group'], [data-toggle='batch-level']").click(function () {
-        var toggle = $(this).data('toggle');
-        $("#modal-change .modal-title").text(toggle=='batch-group'?"批量修改分组":"批量修改会员等级");
-        $("#modal-change").find("."+toggle).show().siblings().hide();
-        $("#modal-change-btn").attr('data-toggle', toggle=='batch-group'?'group':'level');
-        $("#modal-change").modal();
-    });
-    $("#modal-change-btn").click(function () {
-        var _this = $(this);
-        if(_this.attr('stop')){
-            return;
-        }
-        var toggle = $(this).data('toggle');
-        var ids = [];
-        $(".checkone").each(function () {
-            var checked = $(this).is(":checked");
-            var id = $(this).val();
-            if(checked && id){
-                ids.push(id);
-            }
-        });
-        if(ids.length<1){
-            tip.msgbox.suc("请选择要批量操作的会员");
-            return;
-        }
-        var option = $("#modal-change .batch-"+toggle+" option:selected");
-        level = '';
-        if (toggle=='group'){
-            for(i=0;i<option.length;i++){
-                if (level == ''){
-                    level += $(option[i]).val();
-                }else{
-                    level += ','+$(option[i]).val();
-                }
-            }
-        }else{
-            var level = option.val();
-        }
-
-        var levelname = option.text();
-        tip.confirm("确定要将选中会员移动到 "+levelname+" 吗?", function () {
-            _this.attr('stop', 1).text("操作中...");
-            $.post(biz.url('user/changelevel'),{
-                level: level,
-                ids: ids,
-                toggle: toggle
-            }, function (ret) {
-                $("#modal-change").modal('hide');
-                if(ret.status==1){
-                    tip.msgbox.suc("操作成功");
-                    setTimeout(function () {
-                        location.reload();
-                    },1000);
-                }else{
-                    tip.msgbox.err(ret.result.message);
-                }
-            }, 'json')
-        });
-    });
-</script>
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-    layui.config({
-        base: '/layuiadmin/' //静态资源所在路径
-    }).extend({
-        index: 'lib/index' //主入口模块
-    }).use('index');
-</script>
-
-<script>
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-    $ = layui.$;
-    var form = layui.form;
-  
-    $('.deldom').click(function(){
-        var s_url = $(this).attr('data-href');
-        layer.confirm($(this).attr('data-confirm'), function(index){
-                     $.ajax({
-                        url:s_url,
-                        type:'post',
-                        dataType:'json',
-                        success:function(info){
-                        
-                            if(info.status == 0)
-                            {
-                                layer.msg(info.result.message,{icon: 1,time: 2000});
-                            }else if(info.status == 1){
-                                var go_url = location.href;
-                                if( info.result.hasOwnProperty("url") )
-                                {
-                                    go_url = info.result.url;
-                                }
-                                
-                                layer.msg('操作成功',{time: 1000,
-                                    end:function(){
-                                        location.href = info.result.url;
-                                    }
-                                }); 
-                            }
-                        }
-                    })
-                }); 
-    })
-    
-    $('.btn-operation').click(function(){
-        var ids_arr = [];
-        var obj = $(this);
-        var s_toggle = $(this).attr('data-toggle');
-        var s_url = $(this).attr('data-href');
-        
-        
-        $("input[name=item_checkbox]").each(function() {
-            
-            if( $(this).prop('checked') )
-            {
-                ids_arr.push( $(this).val() );
-            }
-        })
-        if(ids_arr.length < 1)
-        {
-            layer.msg('请选择要操作的内容');
-        }else{
-            var can_sub = true;
-            if( s_toggle == 'batch-remove' )
-            {
-                can_sub = false;
-                
-                layer.confirm($(obj).attr('data-confirm'), function(index){
-                     $.ajax({
-                        url:s_url,
-                        type:'post',
-                        dataType:'json',
-                        data:{ids:ids_arr},
-                        success:function(info){
-                        
-                            if(info.status == 0)
-                            {
-                                layer.msg(info.result.message,{icon: 1,time: 2000});
-                            }else if(info.status == 1){
-                                var go_url = location.href;
-                                if( info.result.hasOwnProperty("url") )
-                                {
-                                    go_url = info.result.url;
-                                }
-                                
-                                layer.msg('操作成功',{time: 1000,
-                                    end:function(){
-                                        location.href = info.result.url;
-                                    }
-                                }); 
-                            }
-                        }
-                    })
-                }); 
-            }else{
-                $.ajax({
-                    url:s_url,
-                    type:'post',
-                    dataType:'json',
-                    data:{ids:ids_arr},
-                    success:function(info){
-                    
-                        if(info.status == 0)
-                        {
-                            layer.msg(info.result.message,{icon: 1,time: 2000});
-                        }else if(info.status == 1){
-                            var go_url = location.href;
-                            if( info.result.hasOwnProperty("url") )
-                            {
-                                go_url = info.result.url;
-                            }
-                            
-                            layer.msg('操作成功',{time: 1000,
-                                end:function(){
-                                    location.href = info.result.url;
-                                }
-                            }); 
-                        }
-                    }
-                })
-            }
-        }
-    })
-  
-  
-  
-  form.on('switch(wsitchmobilemanage)', function(data){
-      
-      var s_url = $(this).attr('data-href')
-      
-      var s_value = 1;
-      if(data.elem.checked)
-      {
-        s_value = 1;
-      }else{
-        s_value = 0;
-      }
-      
-      
-      $.ajax({
-            url:s_url,
-            type:'post',
-            dataType:'json',
-            data:{is_open_mobilemanage:s_value},
-            success:function(info){
-            
-                if(info.status == 0)
-                {
-                    layer.msg(info.result.message,{icon: 1,time: 2000});
-                }else if(info.status == 1){
-                    var go_url = location.href;
-                    if( info.result.hasOwnProperty("url") )
-                    {
-                        go_url = info.result.url;
-                    }
-                    
-                    layer.msg('操作成功',{time: 1000,
-                        end:function(){
-                            location.href = info.result.url;
-                        }
-                    }); 
-                }
-            }
-        })
-    });
-	
-  form.on('switch(statewsitchunable)', function(data){
-      
-      var s_url = $(this).attr('data-href')
-      
-      var s_value = 2;
-      
-      
-      $.ajax({
-            url:s_url,
-            type:'post',
-            dataType:'json',
-            data:{state:s_value},
-            success:function(info){
-            
-                if(info.status == 0)
-                {
-                    layer.msg(info.result.message,{icon: 1,time: 2000});
-                }else if(info.status == 1){
-                    var go_url = location.href;
-                    if( info.result.hasOwnProperty("url") )
-                    {
-                        go_url = info.result.url;
-                    }
-                    
-                    layer.msg('操作成功',{time: 1000,
-                        end:function(){
-                            location.href = info.result.url;
-                        }
-                    }); 
-                }
-            }
-        })
-    });  
-	
-	
-    form.on('switch(statewsitch)', function(data){
-      
-      var s_url = $(this).attr('data-href')
-      
-      var s_value = 1;
-      if(data.elem.checked)
-      {
-        s_value = 1;
-      }else{
-        s_value = 3;
-      }
-      
-      $.ajax({
-            url:s_url,
-            type:'post',
-            dataType:'json',
-            data:{state:s_value},
-            success:function(info){
-            
-                if(info.status == 3)
-                {
-                    layer.msg(info.result.message,{icon: 1,time: 2000});
-                }else if(info.status == 1){
-                    var go_url = location.href;
-                    if( info.result.hasOwnProperty("url") )
-                    {
-                        go_url = info.result.url;
-                    }
-                    
-                    layer.msg('操作成功',{time: 1000,
-                        end:function(){
-                            location.href = info.result.url;
-                        }
-                    }); 
-                }
-            }
-        })
-    });  
-    form.on('checkbox(checkboxall)', function(data){
-      if(data.elem.checked)
-      {
-        $("input[name=item_checkbox]").each(function() {
-            $(this).prop("checked", true);
-        });
-        $("input[name=checkall]").each(function() {
-            $(this).prop("checked", true);
-        });
-        
-      }else{
-        $("input[name=item_checkbox]").each(function() {
-            $(this).prop("checked", false);
-        });
-        $("input[name=checkall]").each(function() {
-            $(this).prop("checked", false);
-        });
-      }
-      
-      form.render('checkbox');
-    });
-  
-    //监听提交
-    form.on('submit(formDemo)', function(data){
-        $.ajax({
-            url: data.form.action,
-            type: data.form.method,
-            data: data.field,
-            dataType:'json',
-            success: function (info) {
-              
-                if(info.status == 0)
-                {
-                    layer.msg(info.result.message,{icon: 1,time: 2000});
-                }else if(info.status == 1){
-                    var go_url = location.href;
-                    if( info.result.hasOwnProperty("url") )
-                    {
-                        go_url = info.result.url;
-                    }
-                    
-                    layer.msg('操作成功',{time: 1000,
-                        end:function(){
-                            location.href = info.result.url;
-                        }
-                    }); 
-                }
-            }
-        });
-        return false;
-    });
-})
-
-</script>  
-</body>
-</html>

+ 0 - 241
Runtime/Cache/Seller/e6460db6c725f2eb096ccc6768a43d8f.php

@@ -1,241 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-            window.sysinfo = {
-            <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-			
-            <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-			
-            'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-			
-            'siteroot': '<?php echo ($_W['siteroot']); ?>',
-                    'siteurl': '<?php echo ($_W['siteurl']); ?>',
-                    'attachurl': '<?php echo ($_W['attachurl']); ?>',
-                    'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-                    'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-                    'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-            'cookie' : {'pre': ''},
-            'account' : <?php echo json_encode($_W['account']);?>,
-            };
-        </script>
-		
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-  <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-   <link href="/static/css/snailfish.css" rel="stylesheet">
-</head>
-<body layadmin-themealias="default">
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:
-		<span class="line-text"><?php if( !empty($item['id'])){ ?>编辑<?php  }else{ ?>添加<?php } ?>标签 <small><?php if( !empty($item['id'])){ ?>修改【<?php echo ($item['label']); ?>】<?php } ?></span></div>
-		<div class="layui-card-body" style="padding:15px;">
-			<form action="" method="post" class="layui-form" lay-filter="component-layui-form-item" enctype="multipart/form-data" >
-		
-				<input type="hidden" name="data[id]" value="<?php echo ($item['id']); ?>" />
-				<input type="hidden" name="data[tagcontent_1]" value="<?php echo ($item['tagcontent']); ?>" />
-				<input type="hidden" name="data[type_1]" value="<?php echo ($item['type']); ?>" />
-				<div class="layui-form-item">
-					<label class="layui-form-label">标签名称</label>
-					<div class="layui-input-block">
-						<input type="text" name="data[tagname]" class="form-control" value="<?php echo ($item['tagname']); ?>" data-rule-required="true" />
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label">标签类型</label>
-					<div class="layui-input-block">
-						<label class="radio-inline">
-							<input type="radio" name='data[type]' value="0" <?php if( empty($item['type']) || $item['type']==0){ ?>checked<?php } ?> title="文字" /> 
-						</label>
-						<label class="radio-inline">
-							<input type="radio" name='data[type]' value="1" <?php if( !empty($item['type']) && $item['type']==1){ ?>checked<?php } ?> title="图片" /> 
-						</label>
-					</div>
-				</div>
-				<div class="layui-form-item" id="typeGroup0" <?php if( !empty($item['type']) && $item['type']==1){ ?>style="display: none;"<?php } ?>>
-					<label class="layui-form-label ">标签内容</label>
-					<div class="layui-input-block">
-						<input type="text" name="data[tagcontent]" maxlength="4" class="form-control" value="<?php echo ($item['tagcontent']); ?>" data-rule-required="true" />
-					</div>
-				</div>
-				<div class="layui-form-item" id="typeGroup1" <?php if( empty($item['type']) || $item['type']==0){ ?>style="display: none;"<?php } ?>>
-					<label class="layui-form-label ">标签图片</label>
-					<div class="layui-input-block">
-						<?php echo tpl_form_field_image2('data[tagimg]', $item['tagcontent']);?>
-						<span class='help-block'>尺寸:54*62</span>
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label">排序</label>
-					<div class="layui-input-block">
-						<input type="text" name="data[sort_order]" class="form-control" value="<?php if( empty($item)){ ?>0<?php  }else{ echo ($item['sort_order']); } ?>" />
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label">是否启用</label>
-					<div class="layui-input-block" id="param-items">
-						<label class="radio-inline">
-							<input type="radio" name='data[state]' value="1" <?php if( empty($item['state']) || $item['state']==1){ ?>checked<?php } ?> title="是" /> 
-						</label>
-						<label class="radio-inline">
-							<input type="radio" name='data[state]' value="0" <?php if( !empty($item['state']) && $item['state'] == 0){ ?>checked<?php } ?> title="否" /> 
-						</label>
-					</div>
-				</div>
-		
-				<div class="layui-form-item">
-					<label class="layui-form-label"> </label>
-					<div class="layui-input-block">
-						<input type="submit" value="提交" lay-submit lay-filter="formDemo" class="btn btn-primary"  />
-						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-						<a class="btn btn-default" style='margin-left:10px;' href="<?php echo U('goods/goodstag',array('ok'=>'1'));?>">返回列表</a>
-						
-					</div>
-				</div>
-			</form>
-		</div>
-</div>
-</div>
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-var cur_open_div;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  
-	form.on('radio(linktype)', function(data){
-		if (data.value == 2) {
-			$('#typeGroup').show();
-		} else {
-			$('#typeGroup').hide();
-		}
-	});  
-
-	
-	$('#chose_link').click(function(){
-		cur_open_div = $(this).attr('data-input');
-		$.post("<?php echo U('util.selecturl', array('ok' => 1));?>", {}, function(shtml){
-		 layer.open({
-			type: 1,
-			area: '930px',
-			content: shtml //注意,如果str是object,那么需要字符拼接。
-		  });
-		});
-	})
-		
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	 var tagname = $.trim($('input[name="data[tagname]"]').val());
-	 var type = $("input[name='data[type]']:checked").val();
-	 var tagcontent = $.trim($('input[name="data[tagcontent]"]').val());
-	 if(tagname == ''){
-		layer.msg("标签名称不能为空",{icon: 2,time: 2000});
-		return false;
-	 }
-	 if(type == 0 && tagcontent == ''){
-		layer.msg("标签内容不能为空",{icon: 2,time: 2000});
-		return false;
-	 }
-	 
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-})
-
-$(document).ready(function() {
-	var type = $('input[name="data[type_1]"]').val();
-	var tagcontent = $('input[name="data[tagcontent_1]"]').val();
-	$('input[name="data[tagimg]"]').attr("readonly",true);
-	$('input[type=radio][name="data[type]"]').click(function() {
-		if (this.value == 0) {
-			$('#typeGroup0').show();
-			$('#typeGroup1').hide();
-			if(type == 1){
-				$('input[name="data[tagcontent]"]').val('');
-			}else{
-				$('input[name="data[tagcontent]"]').val(tagcontent);
-			}
-		} else {
-			$('#typeGroup1').show();
-			$('#typeGroup0').hide();
-			if(type == 0){
-				$('input[name="data[tagcontent]"]').val('');
-				$('input[name="data[tagimg]"]').val('');
-			}else{
-				$('input[name="data[tagcontent]"]').val(tagcontent);
-			}
-		}
-	});
-});
-
-</script>  
-</body>

+ 0 - 476
Runtime/Cache/Seller/e6e3bb9a93fd97722e66832c3549276f.php

@@ -1,476 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-	window.sysinfo = {
-	<?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-	
-	<?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-	
-	'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-	
-	'siteroot': '<?php echo ($_W['siteroot']); ?>',
-			'siteurl': '<?php echo ($_W['siteurl']); ?>',
-			'attachurl': '<?php echo ($_W['attachurl']); ?>',
-			'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-			'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-			'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-	'cookie' : {'pre': ''},
-	'account' : <?php echo json_encode($_W['account']);?>,
-	};
-</script>
-
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-<link href="/static/css/snailfish.css" rel="stylesheet">
-<style>
-    tbody tr td{
-        position: relative;
-    }
-    tbody tr  .icow-weibiaoti--{
-        visibility: hidden;
-        display: inline-block;
-        color: #fff;
-        height:18px;
-        width:18px;
-        background: #e0e0e0;
-        text-align: center;
-        line-height: 18px;
-        vertical-align: middle;
-    }
-    tbody tr:hover .icow-weibiaoti--{
-        visibility: visible;
-    }
-    tbody tr  .icow-weibiaoti--.hidden{
-        visibility: hidden !important;
-    }
-    .full .icow-weibiaoti--{
-        margin-left:10px;
-    }
-    .full>span{
-        display: -webkit-box;
-        display: -webkit-flex;
-        display: -ms-flexbox;
-        display: flex;
-        vertical-align: middle;
-        align-items: center;
-    }
-    tbody tr .label{
-        margin: 5px 0;
-    }
-    .goods_attribute a{
-        cursor: pointer;
-    }
-    .newgoodsflag{
-        width: 22px;height: 16px;
-        background-color: #ff0000;
-        color: #fff;
-        text-align: center;
-        position: absolute;
-        bottom: 70px;
-        left: 57px;
-        font-size: 12px;
-    }
-	.a{cursor: pointer;}
-</style>
-</head>
-<body layadmin-themealias="default">
-
-<table id="demo" lay-filter="test"></table>
-
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">幻灯片管理</span></div>
-		<div class="layui-card-body" style="padding:15px;">
-			<form action="" method="get" class="form-horizontal form-search layui-form" role="form">
-				<input type="hidden" name="c" value="configindex" />
-				<input type="hidden" name="a" value="slider" />
-				<input type="hidden" name="type" value="<?php echo ($type); ?>" />
-				
-				<div class="layui-form-item">
-				  <div class="layui-inline">
-					<div class="layui-input-inline" >
-						<select name="enabled" class='layui-input layui-unselect' data-placeholder="状态">
-							<option value="-1" <?php if( empty($_GPC['cate'])){ ?>selected<?php } ?> >状态</option>
-							<option value="1" <?php if( $_GPC['enabled']==1){ ?>selected<?php } ?> >显示</option>
-							<option value="0" <?php if( $_GPC['enabled']==0){ ?>selected<?php } ?> >隐藏</option>
-						</select>
-					</div>
-					<div class="layui-input-inline">
-					  <input type="text" class="layui-input" name='keyword' value="<?php echo ($_GPC['keyword']); ?>" placeholder="输入关键词然后回车">  
-					</div>
-					<div class="layui-input-inline">
-						<button class="layui-btn layui-btn-sm"  type="submit"> 搜索</button>
-					</div>
-				  </div>
-				</div>
-				
-			</form>
-			<form action="" class="layui-form" lay-filter="example" method="post" >
-       
-				<div class="row">
-					<div class="col-md-12">
-						<div class="page-table-header">
-							
-							<span class="pull-right"> 
-								<a href="<?php echo U('configindex/addslider', array('ok' => 1));?>" class="layui-btn layui-btn-sm"><i class="fa fa-plus"></i> 添加幻灯片</a>
-							</span>
-							<div class="btn-group">
-								<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch' data-href="<?php echo U('configindex/changeslider',array('type'=>'enabled','value'=>1));?>">
-									 显示
-								</button>
-								<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch'  data-href="<?php echo U('configindex/changeslider',array('type'=>'enabled','value'=>0));?>">
-									 隐藏
-								</button>
-								<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch-remove' data-confirm="确认要删除吗?" data-href="<?php echo U('config/configindex/delete');?>">
-									 删除
-								</button>
-							</div>
-						</div>
-						<table class="table table-responsive" lay-even lay-skin="line" lay-size="lg">
-							<thead>
-							 <tr>
-								<th style="width:25px;">
-									<input type='checkbox' name="checkall" lay-skin="primary" lay-filter="checkboxall"  />
-								</th>
-								<th style="width:80px;text-align:center;">ID</th>
-								<th style="">幻灯片名称</th>
-								
-								<th style="width: 100px;">图片</th>
-								
-								<th style="">链接</th>
-								<th style="width: 100px;">状态</th>
-								<th style="width:80px;">排序</th>
-								
-								<th style="">操作</th>
-							</tr>
-							</thead>
-							<tbody>
-							<?php foreach( $list as $item ){ ?>
-							<tr>
-							<td>
-								<input type='checkbox' name="item_checkbox" lay-skin="primary" value="<?php echo ($item['id']); ?>"/>
-							</td>
-							<td>
-								<?php echo ($item['id']); ?>
-							</td>
-							<td>
-								<?php echo ($item['advname']); ?>
-							</td>
-							<td>
-								<a href="<?php echo U('configindex/addslider', array('id' => $item['id']));?>">
-									<img src="<?php echo resize($item['thumb'], 100,100 );?>" style="width:72px;padding:1px;border:1px solid #efefef;margin: 7px 0" onerror="this.src='/static/images/nopic.png'" />
-								</a>
-							</td>
-							<td>
-								<?php echo ($item['link']); ?>
-							</td>
-							<td>
-								<input type="checkbox" name="" lay-filter="statewsitch" data-href="<?php echo U('configindex/changeslider',array('type'=>'enabled','id'=>$item['id']));?>" <?php if( $item['enabled']==1){ ?>checked<?php  }else{ } ?> lay-skin="switch" lay-text="显示|隐藏">
-							</td>
-							<td>
-								<a href='javascript:;' data-toggle='ajaxEdit' data-href="<?php echo U('configindex/changeslider',array('id'=>$item['id'],'type'=>'displayorder'));?>" ><?php echo ($item['displayorder']); ?></a>
-							</td>
-								<td  style="overflow:visible;position:relative">
-								
-									<a  class='layui-btn layui-btn-xs' href="<?php echo U('configindex/addslider', array('id' => $item['id'], 'ok' => 1));?>"  >
-										<i class="layui-icon layui-icon-edit"></i>编辑
-									</a>
-									<a  class='layui-btn layui-btn-xs deldom' href="javascript:;" data-href="<?php echo U('configindex/delete',array('id' => $item['id']));?>" data-confirm='确认要删除吗?'>
-										<i class="layui-icon">&#xe640;</i>删除
-									</a>
-								</td>
-							</tr>
-							<?php } ?>
-							</tbody>
-							<tfoot>
-							<tr>
-								<td colspan="5">
-									<div class="page-table-header">
-										<input type="checkbox" name="checkall" lay-skin="primary" lay-filter="checkboxall">
-										<div class="btn-group">
-											<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch' data-href="<?php echo U('configindex/changeslider',array('type'=>'enabled','value'=>1));?>">
-												 显示
-											</button>
-											<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch'  data-href="<?php echo U('configindex/changeslider',array('type'=>'enabled','value'=>0));?>">
-												 隐藏
-											</button>
-											<button class="btn btn-default btn-sm  btn-operation"   type="button" data-toggle='batch-remove' data-confirm="确认要删除吗?" data-href="<?php echo U('configindex/delete');?>">
-												 删除
-											</button>
-										</div>
-									</div>
-								</td>
-								<td colspan="3" style="text-align: right">
-									<?php echo ($pager); ?>
-								</td>
-							</tr>
-							</tfoot>
-						</table>
-					</div>
-				</div>
-				
-			</form>
-		</div>
-	</div>
-</div>
-
-
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  
-  
-	$('.deldom').click(function(){
-		var s_url = $(this).attr('data-href');
-		layer.confirm($(this).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						success:function(info){
-						
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-	})
-	
-	$('.btn-operation').click(function(){
-		var ids_arr = [];
-		var obj = $(this);
-		var s_toggle = $(this).attr('data-toggle');
-		var s_url = $(this).attr('data-href');
-		
-		
-		$("input[name=item_checkbox]").each(function() {
-			
-			if( $(this).prop('checked') )
-			{
-				ids_arr.push( $(this).val() );
-			}
-		})
-		if(ids_arr.length < 1)
-		{
-			layer.msg('请选择要操作的内容');
-		}else{
-			var can_sub = true;
-			if( s_toggle == 'batch-remove' )
-			{
-				can_sub = false;
-				
-				layer.confirm($(obj).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						data:{ids:ids_arr},
-						success:function(info){
-						
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-			}else{
-				$.ajax({
-					url:s_url,
-					type:'post',
-					dataType:'json',
-					data:{ids:ids_arr},
-					success:function(info){
-					
-						if(info.status == 0)
-						{
-							layer.msg(info.result.message,{icon: 1,time: 2000});
-						}else if(info.status == 1){
-							var go_url = location.href;
-							if( info.result.hasOwnProperty("url") )
-							{
-								go_url = info.result.url;
-							}
-							
-							layer.msg('操作成功',{time: 1000,
-								end:function(){
-									location.href = info.result.url;
-								}
-							}); 
-						}
-					}
-				})
-			}
-		}
-	})
-  
-	form.on('switch(statewsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var s_value = 1;
-	  if(data.elem.checked)
-	  {
-		s_value = 1;
-	  }else{
-		s_value = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{value:s_value},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	});  
-	form.on('checkbox(checkboxall)', function(data){
-	  
-	  if(data.elem.checked)
-	  {
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", true);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", true);
-		});
-		
-	  }else{
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", false);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", false);
-		});
-	  }
-	  
-	  form.render('checkbox');
-	});
-  
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-})
-
-
-
-</script>  
-</body>

+ 0 - 440
Runtime/Cache/Seller/e77066148f19aa4e9ebaa215936c1470.php

@@ -1,440 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-	window.sysinfo = {
-	<?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-	
-	<?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-	
-	'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-	
-	'siteroot': '<?php echo ($_W['siteroot']); ?>',
-			'siteurl': '<?php echo ($_W['siteurl']); ?>',
-			'attachurl': '<?php echo ($_W['attachurl']); ?>',
-			'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-			'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-			'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-	'cookie' : {'pre': ''},
-	'account' : <?php echo json_encode($_W['account']);?>,
-	};
-</script>
-
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-<link href="/static/css/snailfish.css" rel="stylesheet">
-<style>
-    tbody tr td{
-        position: relative;
-    }
-    tbody tr  .icow-weibiaoti--{
-        visibility: hidden;
-        display: inline-block;
-        color: #fff;
-        height:18px;
-        width:18px;
-        background: #e0e0e0;
-        text-align: center;
-        line-height: 18px;
-        vertical-align: middle;
-    }
-    tbody tr:hover .icow-weibiaoti--{
-        visibility: visible;
-    }
-    tbody tr  .icow-weibiaoti--.hidden{
-        visibility: hidden !important;
-    }
-    .full .icow-weibiaoti--{
-        margin-left:10px;
-    }
-    .full>span{
-        display: -webkit-box;
-        display: -webkit-flex;
-        display: -ms-flexbox;
-        display: flex;
-        vertical-align: middle;
-        align-items: center;
-    }
-    tbody tr .label{
-        margin: 5px 0;
-    }
-    .goods_attribute a{
-        cursor: pointer;
-    }
-    .newgoodsflag{
-        width: 22px;height: 16px;
-        background-color: #ff0000;
-        color: #fff;
-        text-align: center;
-        position: absolute;
-        bottom: 70px;
-        left: 57px;
-        font-size: 12px;
-    }
-	.a{cursor: pointer;}
-</style>
-</head>
-<body layadmin-themealias="default">
-
-<table id="demo" lay-filter="test"></table>
-
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">电子面单列表(快递鸟)</span></div>
-		<div class="layui-card-body" style="padding:15px;">
-			<form action="" method="get" class="form-horizontal form-search layui-form" role="form">
-				<input type="hidden" name="c" value="logistics" />
-				<input type="hidden" name="a" value="index" />
-				
-				<div class="layui-form-item">
-				  <div class="layui-inline">
-					<div class="layui-input-inline">
-					  <input type="text" class="layui-input" name='keyword' value="<?php echo ($gpc['keyword']); ?>" placeholder="快递名称">
-					</div>
-					<div class="layui-input-inline">
-						<button class="layui-btn layui-btn-sm"  type="submit"> 搜索</button>
-					</div>
-				  </div>
-				</div>
-			</form>
-			<form action="" class="layui-form" lay-filter="example" method="post" >
-       
-				<div class="row">
-					<div class="col-md-12">
-						<div class="page-table-header">
-							<input type='checkbox' name="checkall" lay-skin="primary" lay-filter="checkboxall"  />
-							
-							<span class="pull-right"> 
-								<a href="<?php echo U('logistics/add_kdniao', array('ok' => 1));?>" class="layui-btn layui-btn-sm"><i class="fa fa-plus"></i> 添加快递</a>
-							</span>
-							<div class="btn-group">
-								<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch-remove' data-confirm="确认要删除吗?" data-href="<?php echo U('logistics/delete_kdniao');?>">
-									 删除
-								</button>
-							</div>
-						</div>
-						<table class="table table-responsive" lay-even lay-skin="line" lay-size="lg">
-							<thead>
-							 <tr>
-								<th style="width:25px;"></th>
-								<th>ID</th>
-								<th>快递名称</th>
-								<th>网点名称</th>
-								<th>网点编码</th>
-								<th>发件人信息</th>
-								<th style="width:165px;text-align: center;">操作</th>
-							</tr>
-							</thead>
-							<tbody>
-							<?php foreach( $label as $row ){ ?>
-							<tr>
-								<td>
-									<input type='checkbox' name="item_checkbox" lay-skin="primary" value="<?php echo ($row['id']); ?>"/>
-								</td>
-								<td><?php echo ($row['id']); ?></td>
-								<td>
-									<?php echo ($row['express_name']); ?>
-								</td>
-								<td>
-									<?php echo ($row['send_site']); ?>
-								</td>
-								<td>
-									<?php echo ($row['send_staff']); ?>
-								</td>
-								<td>
-									<p>发件人:<?php echo ($row['sender_name']); ?></p>
-									<p>发件人电话:<?php echo ($row['sender_tel']); ?></p>
-									<p>地址:<?php echo ($row['sender_province_name']); echo ($row['sender_city_name']); echo ($row['sender_area_name']); echo ($row['sender_address']); ?></p>
-								</td>
-								<td style="text-align: center;">
-									<a  class='layui-btn layui-btn-xs' href="<?php echo U('logistics/edit_kdniao', array('id' => $row['id'], 'ok' => 1));?>"  >
-										<i class="layui-icon">&#xe608;</i>编辑
-									</a>
-									<a  class='layui-btn layui-btn-xs deldom' href="javascript:;" data-href="<?php echo U('logistics/delete_kdniao', array('id' => $row['id']));?>" data-confirm='确认要删除此快递吗?'>
-										<i class="layui-icon">&#xe640;</i>删除
-									</a>
-								</td>
-							</tr>
-							<?php } ?>
-					
-							</tbody>
-							<tfoot>
-							<tr>
-								<td colspan="2">
-									<div class="page-table-header">
-										<input type="checkbox" name="checkall" lay-skin="primary" lay-filter="checkboxall">
-										<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch-remove' data-confirm="确认要删除吗?" data-href="<?php echo U('logistics/delete_kdniao');?>">
-											 删除
-										</button>
-									</div>
-								</td>
-								<td colspan="5" style="text-align: right">
-									<?php echo ($pager); ?>
-								</td>
-							</tr>
-							</tfoot>
-						</table>
-					</div>
-				</div>
-				
-			</form>
-		</div>
-	</div>
-</div>
-
-
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  
-  
-	$('.deldom').click(function(){
-		var s_url = $(this).attr('data-href');
-		layer.confirm($(this).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						success:function(info){
-						
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-	})
-	
-	$('.btn-operation').click(function(){
-		var ids_arr = [];
-		var obj = $(this);
-		var s_toggle = $(this).attr('data-toggle');
-		var s_url = $(this).attr('data-href');
-
-		$("input[name=item_checkbox]").each(function() {
-			
-			if( $(this).prop('checked') )
-			{
-				ids_arr.push( $(this).val() );
-			}
-		})
-		if(ids_arr.length < 1)
-		{
-			layer.msg('请选择要操作的内容');
-		}else{
-			var can_sub = true;
-			if( s_toggle == 'batch-remove' )
-			{
-				can_sub = false;
-				
-				layer.confirm($(obj).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						data:{ids:ids_arr},
-						success:function(info){
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-			}else{
-				$.ajax({
-					url:s_url,
-					type:'post',
-					dataType:'json',
-					data:{ids:ids_arr},
-					success:function(info){
-					
-						if(info.status == 0)
-						{
-							layer.msg(info.result.message,{icon: 1,time: 2000});
-						}else if(info.status == 1){
-							var go_url = location.href;
-							if( info.result.hasOwnProperty("url") )
-							{
-								go_url = info.result.url;
-							}
-							
-							layer.msg('操作成功',{time: 1000,
-								end:function(){
-									location.href = info.result.url;
-								}
-							}); 
-						}
-					}
-				})
-			}
-		}
-	})
-  
-	form.on('switch(statewsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var s_value = 1;
-	  if(data.elem.checked)
-	  {
-		s_value = 1;
-	  }else{
-		s_value = 0;
-	  }
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{status:s_value},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	});  
-	form.on('checkbox(checkboxall)', function(data){
-	  
-	  if(data.elem.checked)
-	  {
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", true);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", true);
-		});
-		
-	  }else{
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", false);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", false);
-		});
-	  }
-	  
-	  form.render('checkbox');
-	});
-  
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-})
-
-
-
-</script>  
-</body>

+ 0 - 440
Runtime/Cache/Seller/ed24800b2cffb39849ddafdd463a8a94.php

@@ -1,440 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-	window.sysinfo = {
-	<?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-	
-	<?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-	
-	'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-	
-	'siteroot': '<?php echo ($_W['siteroot']); ?>',
-			'siteurl': '<?php echo ($_W['siteurl']); ?>',
-			'attachurl': '<?php echo ($_W['attachurl']); ?>',
-			'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-			'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-			'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-	'cookie' : {'pre': ''},
-	'account' : <?php echo json_encode($_W['account']);?>,
-	};
-</script>
-
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-<link href="/static/css/snailfish.css" rel="stylesheet">
-<style>
-    tbody tr td{
-        position: relative;
-    }
-    tbody tr  .icow-weibiaoti--{
-        visibility: hidden;
-        display: inline-block;
-        color: #fff;
-        height:18px;
-        width:18px;
-        background: #e0e0e0;
-        text-align: center;
-        line-height: 18px;
-        vertical-align: middle;
-    }
-    tbody tr:hover .icow-weibiaoti--{
-        visibility: visible;
-    }
-    tbody tr  .icow-weibiaoti--.hidden{
-        visibility: hidden !important;
-    }
-    .full .icow-weibiaoti--{
-        margin-left:10px;
-    }
-    .full>span{
-        display: -webkit-box;
-        display: -webkit-flex;
-        display: -ms-flexbox;
-        display: flex;
-        vertical-align: middle;
-        align-items: center;
-    }
-    tbody tr .label{
-        margin: 5px 0;
-    }
-    .goods_attribute a{
-        cursor: pointer;
-    }
-    .newgoodsflag{
-        width: 22px;height: 16px;
-        background-color: #ff0000;
-        color: #fff;
-        text-align: center;
-        position: absolute;
-        bottom: 70px;
-        left: 57px;
-        font-size: 12px;
-    }
-	.a{cursor: pointer;}
-</style>
-</head>
-<body layadmin-themealias="default">
-
-<table id="demo" lay-filter="test"></table>
-
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text"><?php echo ($code_info['code_name']); ?>-线下兑换码列表</span></div>
-		<div class="layui-card-body" style="padding:15px;">
-			<form action="" method="get" class="form-horizontal form-search layui-form" role="form">
-				<input type="hidden" name="c" value="virtualcard" />
-				<input type="hidden" name="a" value="exchangeofflinerecord" />
-				<input type="hidden" name="code_id" value="<?php echo ($code_id); ?>" />
-				<div class="layui-form-item">
-				  <div class="layui-inline">
-					<div class="layui-input-inline">
-					  <input type="text" class="layui-input" name='keyword' value="<?php echo ($_GPC['keyword']); ?>" placeholder="输入兑换码然后回车">
-					</div>
-					<div class="layui-input-inline">
-						<button class="layui-btn layui-btn-sm"  type="submit"> 搜索</button>
-					</div>
-				  </div>
-				</div>
-				
-			</form>
-			<form action="" class="layui-form" lay-filter="example" method="post" >
-       
-				<div class="row">
-					<div class="col-md-12">
-						<div class="page-table-header">
-							<span class="pull-right"> 
-
-							</span>
-							<div class="btn-group">
-								<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch-remove' data-confirm="确认要删除吗?" data-href="<?php echo U('virtualcard/deleteofflineusercode');?>">
-									 删除
-								</button>
-							</div>
-						</div>
-						<table class="table table-responsive" lay-even lay-skin="line" lay-size="lg">
-							<thead>
-							 <tr>
-								<th style="width:25px;">
-									<input type='checkbox' name="checkall" lay-skin="primary" lay-filter="checkboxall"  />
-								</th>
-								<th style="">ID</th>
-								<th style="">兑换码CODE</th>
-								<th style="">使用人</th>
-								<th style="">使用时间</th>
-								<th style="">操作</th>
-							</tr>
-							</thead>
-							<tbody>
-							<?php foreach( $list as $item ){ ?>
-							<tr>
-							<td>
-								<input type='checkbox' name="item_checkbox" lay-skin="primary" value="<?php echo ($item['id']); ?>"/>
-							</td>
-							<td>
-								<?php echo ($item['id']); ?>
-							</td>
-							<td>
-								<?php echo ($item['code']); ?>
-							</td>
-							<td>
-								<?php echo ($item['user_name']); ?>
-							</td>
-							<td>
-								<?php echo ($item['usedtime']); ?>
-							</td>
-
-								<td  style="overflow:visible;position:relative">
-									<a  class='layui-btn layui-btn-xs deldom' href="javascript:;" data-href="<?php echo U('virtualcard/deleteofflineusercode',array('id' => $item['id']));?>" data-confirm='确认要删除吗?'>
-										<i class="layui-icon">&#xe640;</i>删除
-									</a>
-								</td>
-							</tr>
-							<?php } ?>
-							</tbody>
-							<tfoot>
-							<tr>
-								<td colspan="5">
-									<div class="page-table-header">
-										<input type="checkbox" name="checkall" lay-skin="primary" lay-filter="checkboxall">
-										<div class="btn-group">
-
-											<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch-remove' data-confirm="确认要删除吗?" data-href="<?php echo U('virtualcard/deleteofflineusercode');?>">
-												删除
-											</button>
-										</div>
-									</div>
-								</td>
-								<td colspan="3" style="text-align: right">
-									<?php echo ($pager); ?>
-								</td>
-							</tr>
-							</tfoot>
-						</table>
-					</div>
-				</div>
-				
-			</form>
-		</div>
-	</div>
-</div>
-
-
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  
-  
-	$('.deldom').click(function(){
-		var s_url = $(this).attr('data-href');
-		layer.confirm($(this).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						success:function(info){
-						
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-	})
-	
-	$('.btn-operation').click(function(){
-		var ids_arr = [];
-		var obj = $(this);
-		var s_toggle = $(this).attr('data-toggle');
-		var s_url = $(this).attr('data-href');
-		
-		
-		$("input[name=item_checkbox]").each(function() {
-			
-			if( $(this).prop('checked') )
-			{
-				ids_arr.push( $(this).val() );
-			}
-		})
-		if(ids_arr.length < 1)
-		{
-			layer.msg('请选择要操作的内容');
-		}else{
-			var can_sub = true;
-			if( s_toggle == 'batch-remove' )
-			{
-				can_sub = false;
-				
-				layer.confirm($(obj).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						data:{ids:ids_arr},
-						success:function(info){
-						
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-			}else{
-				$.ajax({
-					url:s_url,
-					type:'post',
-					dataType:'json',
-					data:{ids:ids_arr},
-					success:function(info){
-					
-						if(info.status == 0)
-						{
-							layer.msg(info.result.message,{icon: 1,time: 2000});
-						}else if(info.status == 1){
-							var go_url = location.href;
-							if( info.result.hasOwnProperty("url") )
-							{
-								go_url = info.result.url;
-							}
-							
-							layer.msg('操作成功',{time: 1000,
-								end:function(){
-									location.href = info.result.url;
-								}
-							}); 
-						}
-					}
-				})
-			}
-		}
-	})
-  
-	form.on('switch(statewsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var s_value = 1;
-	  if(data.elem.checked)
-	  {
-		s_value = 1;
-	  }else{
-		s_value = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{value:s_value},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	});  
-	form.on('checkbox(checkboxall)', function(data){
-	  
-	  if(data.elem.checked)
-	  {
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", true);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", true);
-		});
-		
-	  }else{
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", false);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", false);
-		});
-	  }
-	  
-	  form.render('checkbox');
-	});
-  
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-})
-
-
-
-</script>  
-</body>

+ 0 - 144
Runtime/Cache/Seller/edfcc1d6dcd25cf974f04f0659a15b53.php

@@ -1,144 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-	<meta charset="utf-8">
-	<?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-	<title><?php echo $shoname; ?></title>
-	<link rel="shortcut icon" href="" />
-	<meta name="renderer" content="webkit">
-	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-	<link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
-	<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-	<!--[if lt IE 9]>
-	  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-	  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-	<![endif]-->
-	<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-	<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-	<script type="text/javascript">
-        window.sysinfo = {
-        <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-		
-        <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-		
-        <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-		
-        <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-		
-        'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-		
-        'siteroot': '<?php echo ($_W['siteroot']); ?>',
-                'siteurl': '<?php echo ($_W['siteurl']); ?>',
-                'attachurl': '<?php echo ($_W['attachurl']); ?>',
-                'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-                'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-                'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-        'cookie' : {'pre': ''},
-        'account' : <?php echo json_encode($_W['account']);?>,
-        };
-    </script>
-	<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-	<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-	<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-	<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-	<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-	<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-	<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-	<link href="/static/css/snailfish.css" rel="stylesheet">
-</head>
-<body layadmin-themealias="default">
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">小程序直播设置</span></div>
-		<div class="layui-card-body" style="padding:15px;">
-			<form action="" method="post" class="layui-form" lay-filter="component-layui-form-item" enctype="multipart/form-data" >
-				<div class="layui-form-item">
-					<label class="layui-form-label">直播列表导航名称</label>
-					<div class="layui-input-block">
-						<input type="text" name="parameter[live_nav_name]" class="layui-input" value="<?php echo ($data['live_nav_name']); ?>" />
-						<span class='layui-form-mid'>直播列表顶部导航名称,默认为空</span>
-					</div>
-				</div>
-				<div class="layui-form-item">
-					<label class="layui-form-label">直播列表分享标题</label>
-					<div class="layui-input-block">
-						<input type="text" name="parameter[live_share_title]" class="layui-input" value="<?php echo ($data['live_share_title']); ?>" />
-						<span class='layui-form-mid'>默认为空</span>
-					</div>
-				</div>
-				<div class="layui-form-item" >
-					<label class="layui-form-label">直播列表分享图片</label>
-					<div class="layui-input-block">
-						<?php echo tpl_form_field_image2('parameter[live_share_image]', $data['live_share_image']);?>
-						<span class='layui-form-mid'>支持PNG及JPG,显示图片长宽比是 5:4。</span>
-					</div>
-				</div>
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label"></label>
-					<div class="layui-input-block">
-						<input type="submit" lay-submit lay-filter="formDemo"  value="提交" class="btn btn-primary"  />
-					</div>
-				</div>
-			</form>
-		</div>
-	</div>
-</div>
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer','form','colorpicker'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
- 
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-})
-
-
-
-</script>  
-</body>

+ 0 - 946
Runtime/Cache/Seller/f1419e1db6f46364ff9c2b016888c97d.php

@@ -1,946 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-	window.sysinfo = {
-	<?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-	
-	<?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-	
-	<?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-	
-	'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-	
-	'siteroot': '<?php echo ($_W['siteroot']); ?>',
-			'siteurl': '<?php echo ($_W['siteurl']); ?>',
-			'attachurl': '<?php echo ($_W['attachurl']); ?>',
-			'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-			'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-			'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-	'cookie' : {'pre': ''},
-	'account' : <?php echo json_encode($_W['account']);?>,
-	};
-</script>
-
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-<link href="/static/css/snailfish.css" rel="stylesheet">
-<style>
-    tbody tr td{
-        position: relative;
-    }
-    tbody tr  .icow-weibiaoti--{
-        visibility: hidden;
-        display: inline-block;
-        color: #fff;
-        height:18px;
-        width:18px;
-        background: #e0e0e0;
-        text-align: center;
-        line-height: 18px;
-        vertical-align: middle;
-    }
-    tbody tr:hover .icow-weibiaoti--{
-        visibility: visible;
-    }
-    tbody tr  .icow-weibiaoti--.hidden{
-        visibility: hidden !important;
-    }
-    .full .icow-weibiaoti--{
-        margin-left:10px;
-    }
-    .full>span{
-        display: -webkit-box;
-        display: -webkit-flex;
-        display: -ms-flexbox;
-        display: flex;
-        vertical-align: middle;
-        align-items: center;
-    }
-    tbody tr .label{
-        margin: 5px 0;
-    }
-    .goods_attribute a{
-        cursor: pointer;
-    }
-    .newgoodsflag{
-        width: 22px;height: 16px;
-        background-color: #ff0000;
-        color: #fff;
-        text-align: center;
-        position: absolute;
-        bottom: 70px;
-        left: 57px;
-        font-size: 12px;
-    }
-	.a{cursor: pointer;}
-	.img-40 {
-		width: 40px;
-		height: 40px;
-	}
-	.daterangepicker select.ampmselect, .daterangepicker select.hourselect, .daterangepicker select.minuteselect{
-		width:auto!important;
-	}
-</style>
-</head>
-<body layadmin-themealias="default">
-
-<table id="demo" lay-filter="test"></table>
-
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">团长列表</span></div>
-		<div class="layui-card-body" style="padding:15px;">
-			<form action="" method="get" class="form-horizontal form-search layui-form" role="form">
-				<input type="hidden" name="c" value="communityhead" />
-				<input type="hidden" name="a" value="index" />
-				
-				<input type="hidden" name="type" value="<?php echo ($type); ?>" />
-				
-				<div class="layui-form-item">
-				  <div class="layui-inline">
-				  
-					
-					<div class="layui-input-inline" >
-						<select name='comsiss_state' class='layui-input layui-unselect' style="width:80px;"  >
-							<option value=''>状态</option>
-							<option value='0' <?php if( $comsiss_state=='0'){ ?>selected<?php } ?>>未审核</option>
-							<option value='1' <?php if( $comsiss_state=='1'){ ?>selected<?php } ?>>已审核</option>
-							<option value='2' <?php if( $comsiss_state=='2'){ ?>selected<?php } ?>>拒绝通过</option>
-						</select>
-					</div>
-					<div class="layui-input-inline" >
-						<input type="text" class="layui-input"  name="keyword" value="<?php echo ($keyword); ?>" placeholder="会员昵称/团长姓名/手机号/小区名称"/>
-				
-					</div>
-					<div class="layui-input-inline">
-						<select name="level_id" class="layui-input layui-unselect">
-							<option value="">团长等级</option>
-							<?php foreach( $community_head_level as $level ){ ?>
-							<option value="<?php echo ($level['id']); ?>" <?php if( $level_id == $level['id']){ ?>selected<?php } ?>><?php echo ($level['levelname']); ?></option>
-							<?php } ?>
-						</select>
-					</div>
-					
-					<div class="layui-input-inline">
-						<select name="group_id" class="layui-input layui-unselect">
-							<option value="">团长分组</option>
-							
-							<?php foreach($group_list as $group){ ?>
-							<option value="<?php echo ($group['id']); ?>" <?php if( $group_id == $group['id'] ){ ?>selected<?php } ?>><?php echo ($group['groupname']); ?></option>
-							<?php } ?>
-						</select>
-					</div>
-					
-					<div class="layui-input-inline">
-						<button class="layui-btn layui-btn-sm" type="submit"> 搜索</button>
-						<button type="submit" name="export" value="1" class="btn btn-success ">导出</button>
-					</div>
-				  </div>
-				</div>
-			</form>
-			<form action="" class="layui-form" lay-filter="example" method="post" >
-       
-	   
-				
-				
-				<div class="row">
-					<div class="col-md-12">
-					
-						<div class="page-table-header">
-							<input type='checkbox' name="checkall" lay-skin="primary" lay-filter="checkboxall"  />
-							<span class="pull-right"> 
-								<a href="<?php echo U('communityhead/addhead', array('ok' => 1));?>" class="layui-btn layui-btn-sm"><i class="fa fa-plus"></i> 添加团长</a>
-							</span>
-							<div class="btn-group">
-								<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch' data-href="<?php echo U('communityhead/agent_check',array('state'=>1));?>"  data-confirm='确认要审核通过?'>
-									 审核通过
-								</button>
-								<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch'  data-href="<?php echo U('communityhead/agent_check',array('state'=>2));?>" data-confirm='确认要拒绝通过?'>
-									 拒绝通过
-								</button>
-								<button class="btn btn-default btn-sm " type="button" data-toggle="batch-group" data-href="<?php echo U('communityhead/changelevel', array('toggle' => 'group'));?>" > <i class="icow icow-fenzuqunfa"></i>修改分组</button>
-								<a class="btn btn-default btn-sm btn-op" data-toggle="batch-level" > 修改等级</a>
-							</div>
-						</div>
-						<table class="table table-responsive" lay-even lay-skin="line" lay-size="lg">
-							<thead>
-							 <tr>
-								<th style="width:25px;"></th>
-								<th style="width:60px;">ID</th>
-								<th style="min-width:50px;">小区名称</th>
-								<th style="width: 200px;">团长</th>
-								<th style="width: 100px;">上级团长<BR/>直推下级数量</th>
-								<?php if($open_danhead_model == 1){ ?>
-								<th style="">默认团长</th>
-								<?php } ?>
-								<th style="">商品数量</th>
-								<th style='width:150px;'>佣金情况</th>
-								<th style='width:100px;'>提货地址</th>
-								<th style="">申请时间</br>审核时间</th>
-								<th style='width:100px;'>是否休息</th>
-								<th style='width:120px;'>状态</th>
-								<th style="width: 300px;text-align: center;">操作</th>
-							</tr>
-							</thead>
-							<tbody>
-							<?php foreach( $list as $row ){ ?>
-							<tr>
-								<td style="position: relative; ">
-									<input type='checkbox' name="item_checkbox" class="checkone" lay-skin="primary" value="<?php echo ($row['id']); ?>"/>
-								</td>
-								<td>
-									<?php echo ($row['id']); ?>
-								</td>
-								<td> 
-								<?php echo ($row['community_name']); ?><br/>
-								<a href="javascript:void(0)" class="tg_community" community_id="<?php echo ($row['id']); ?>" style="color:#428bca;">推广二维码</a>
-								</td>
-								<td style="overflow: visible">
-									<div style="display: flex">
-									   <img class="img-40" src="<?php echo ($row['avatar']); ?>" style='border-radius:50%;border:1px solid #efefef;' />
-									   <span style="display: flex;flex-direction: column;justify-content: center;align-items: flex-start;padding-left: 5px">
-										   <span class="nickname">
-											   姓名:<?php echo ($row['head_name']); ?>
-											   <br/>
-											   昵称:<?php echo ($row['username']); ?>
-											   <br/>当前团员数量: <span class="text-primary"><?php echo ($row['member_count']); ?></span>
-											   
-											   <br/>
-												<span class="text-warning">等级:<?php echo ($level_id_to_name[$row['level_id']]); ?></span>
-												
-												<br/>
-												<?php if(empty($row['groupname'])){ ?><span class="text-warning">默认分组<?php }else{ echo ($row['groupname']); ?></span><?php } ?>
-										   </span>
-										   
-									   </span>
-									</div>
-								</td>
-								<td> 
-								
-								<?php if( !empty($row['agent_name']) ){ ?>
-								   	<?php echo ($row['agent_name']); ?>
-								<?php }else{ ?>
-							   		暂无上级
-								<?php } ?>
-								<br/>
-								直推团长:<?php echo ($row['agent_count']); ?>
-								<br/>
-								电话:<?php echo ($row['head_mobile']); ?>
-								</td>
-								<?php if($open_danhead_model == 1){ ?>
-								<td> 
-									<input type="checkbox" name="" lay-filter="defaultsitch" data-href="<?php echo U('communityhead/default_check',array('id'=>$row['id']));?>" <?php if( $row['is_default']==1 ){ ?>checked<?php } ?> lay-skin="switch" lay-text="是|否">
-								</td>
-								<?php } ?>
-								<td> 
-								<?php echo ($row['goods_count']); ?>
-								</td>
-								<td>
-									 待确认:<span class="text-warning"><?php echo ($row['commission_info']['pre_total_money']); ?></span><br/>
-									 可提现:<span class="text-warning"><?php echo empty($row['commission_info']['money']) ? 0: $row['commission_info']['money']; ?></span><br/>
-									 已打款:<span class="text-warning"><?php echo empty($row['commission_info']['getmoney']) ?0:$row['commission_info']['getmoney']; ?></span><br/>
-									 提现中:<span class="text-warning"><?php echo empty($row['commission_info']['dongmoney']) ? 0:$row['commission_info']['dongmoney']; ?></span><br/>
-									 总收入:<span class="text-danger"><?php echo empty($row['commission_info']['commission_total']) ? 0:$row['commission_info']['commission_total']; ?></span><br/>
-								</td>
-								
-								<td style="white-space:normal;">
-									<?php echo ($row['province_name']); echo ($row['city_name']); echo ($row['area_name']); echo ($row['country_name']); echo ($row['address']); ?>
-								</td>
-								<td><?php echo date("Y-m-d",$row['addtime']);?><br/><?php echo date("H:i:s",$row['addtime']);?>
-								<br/>
-								<?php if( !empty($row['apptime'])){ ?>
-									<?php echo date("Y-m-d",$row['apptime']);?><br/><?php echo date("H:i:s",$row['apptime']);?>
-								<?php } ?>
-								</td>
-
-								<td>
-									<input type="checkbox" name="" lay-filter="restwsitch" data-href="<?php echo U('communityhead/rest_check',array('id'=>$row['id']));?>" <?php if( $row['rest']==1){ ?>checked<?php  }else{ } ?> lay-skin="switch" lay-text="是|否">
-								
-								</td>
-								<td>
-									<!--
-									<?php if( $row[state] ==2){ ?>
-										已拒绝
-									<?php  }else{ ?>
-									<input type="checkbox" name="" lay-filter="statewsitch" data-href="<?php echo U('communityhead/agent_check',array('id'=>$row['id']));?>" <?php if( $row['state']==1){ ?>checked<?php  }else{ } ?> lay-skin="switch" lay-text="已审核|未审核">
-								
-									<?php } ?>
-									-->
-									
-									
-									<?php if( $row['state'] == 0 ){ ?>	
-												<a class='op layui-btn layui-btn-xs'  data-toggle="ajaxModal" href="javascript:;" data-href="<?php echo U('communityhead/agent_check_first', array('id' => $row['id']));?>" >
-													
-													<i class="icow icow-yibiaoji" style="color: #999;display: inline-block;vertical-align: middle" title="点击审核,选择供应商类型" ></i>
-													&nbsp;通&nbsp;过&nbsp;
-
-												</a><br/>
-
-											<input type="checkbox" name="" lay-filter="statewsitchunable" data-href="<?php echo U('communityhead/agent_check', array('id'=>$row['id']));?>" <?php if($row['state']==1){ ?>checked<?php } ?> lay-skin="switch" lay-text="已拒绝|拒绝">
-											
-										<?php }else if( $row['state'] == 1 ){ ?>
-											<!--<p style="color: red; display:inline;padding-right: 15px;" >审核已通过</p>-->
-
-											
-											<input type="checkbox" name="" lay-filter="enablewsitch" data-href="<?php echo U('communityhead/enable_check',array('id'=>$row['id']));?>" <?php if( $row['enable']==1){ ?>checked<?php  }else{ } ?> lay-skin="switch" lay-text="已启用|已禁用">
-										
-										<?php }else if( $row['state'] == 2 ){ ?>
-												<p style="color: red;">已拒绝</p>
-											<a  data-toggle="ajaxModal" href="javascript:;" data-href="<?php echo U('communityhead/agent_check_first', array('id' => $row['id']));?>" >
-												<p style="color: blue;">重新审核</p>
-											</a>
-										<?php } ?>
-								
-									
-								</td>
-								
-								<td style="overflow:visible;text-align: center;">
-									<div class="btn-group">
-										
-										
-										<a class="layui-btn layui-btn-xs" href="<?php echo U('communityhead/addhead',array('id' => $row['id'] , 'ok' => 1));;?>" title="">
-											<i class="layui-icon layui-icon-edit"></i>编辑
-										</a>
-										
-										<?php if( ($row['state'] == 0 || $row['state'] == 2) && $row['head_goods_count'] == 0 && $row['head_order_count'] == 0 ){ ?>	
-										
-											 <a class='layui-btn layui-btn-xs deldom' href="javascript:;" data-href="<?php echo U('communityhead/deletehead',array('id' => $row['id']) );?>" data-confirm='确认要删除吗?'>
-											  <i class="layui-icon">&#xe640;</i>删除
-											</a>
-										
-										<?php } ?>
-										
-										<a class="layui-btn layui-btn-xs" href="<?php echo U('communityhead/distributionorder',array('headid' => $row['id']));;?>"  target='_blank'>
-											推广订单
-										</a>
-										<a class="layui-btn layui-btn-xs" href="<?php echo U('communityhead/communityorder',array('head_id' => $row['id']));;?>"  target='_blank'>
-											收益明细
-										</a>
-										<a class="layui-btn layui-btn-xs" href="<?php echo U('communityhead/goodslist',array('head_id' => $row['id'] , 'ok' => 1));;?>"  target='_blank'>
-											查看在售商品
-										</a>
-										<a class="layui-btn layui-btn-xs" href="<?php echo U('communityhead/lookcommunitymember',array('id' => $row['id'] , 'ok' => 1));;?>">
-											 查看核销人员
-										</a>
-										
-										
-								
-									</div>
-								</td>
-							</tr>
-						<?php } ?>
-							</tbody>
-							<tfoot>
-							<tr>
-								<td colspan="5">
-									<div class="page-table-header">
-										<input type="checkbox" name="checkall" lay-skin="primary" lay-filter="checkboxall">
-										<div class="btn-group">
-											<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch' data-href="<?php echo U('communityhead/agent_check',array('state'=>1));?>"  data-confirm='确认要审核通过?'>
-												 审核通过
-											</button>
-											<button class="btn btn-default btn-sm  btn-operation"  type="button" data-toggle='batch'  data-href="<?php echo U('communityhead/agent_check',array('state'=>2));?>" data-confirm='确认要拒绝通过?'>
-												 拒绝通过
-											</button>
-											<button class="btn btn-default btn-sm " type="button" data-toggle="batch-group" data-href="<?php echo U('communityhead/changelevel', array('toggle' => 'group'));?>" > <i class="icow icow-fenzuqunfa"></i>修改分组</button>
-								
-											<a class="btn btn-default btn-sm btn-op btn-operation" data-toggle="batch-level" disabled="disabled"><i class="icow icow-cengjiguanli"></i> 修改等级</a>
-										</div>
-									</div>
-								</td>
-								<td colspan="8" style="text-align: right">
-									<?php echo ($pager); ?>
-								</td>
-							</tr>
-							</tfoot>
-						</table>
-					</div>
-				</div>
-				
-			</form>
-		</div>
-	</div>
-</div>
-
-<div id="ajaxModal" class="modal fade" style="display: none;">
-
-</div>
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  
-  
-	$('.deldom').click(function(){
-		var s_url = $(this).attr('data-href');
-		layer.confirm($(this).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						success:function(info){
-						
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-	})
-	
-	$('.btn-operation').click(function(){
-		var ids_arr = [];
-		var obj = $(this);
-		var s_toggle = $(this).attr('data-toggle');
-		var s_url = $(this).attr('data-href');
-		
-		
-		$("input[name=item_checkbox]").each(function() {
-			
-			if( $(this).prop('checked') )
-			{
-				ids_arr.push( $(this).val() );
-			}
-		})
-		if(ids_arr.length < 1)
-		{
-			layer.msg('请选择要操作的内容');
-		}else{
-			var can_sub = true;
-			if( s_toggle == 'batch-remove' )
-			{
-				can_sub = false;
-				
-				layer.confirm($(obj).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						data:{ids:ids_arr},
-						success:function(info){
-						
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-			}else{
-				$.ajax({
-					url:s_url,
-					type:'post',
-					dataType:'json',
-					data:{ids:ids_arr},
-					success:function(info){
-					
-						if(info.status == 0)
-						{
-							layer.msg(info.result.message,{icon: 1,time: 2000});
-						}else if(info.status == 1){
-							var go_url = location.href;
-							if( info.result.hasOwnProperty("url") )
-							{
-								go_url = info.result.url;
-							}
-							
-							layer.msg('操作成功',{time: 1000,
-								end:function(){
-									location.href = info.result.url;
-								}
-							}); 
-						}
-					}
-				})
-			}
-		}
-	})
-
- 
-	
-	form.on('switch(restwsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var rest = 1;
-	  if(data.elem.checked)
-	  {
-		rest = 1;
-	  }else{
-		rest = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{rest:rest},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	}); 
-	form.on('switch(enablewsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var enable = 1;
-	  if(data.elem.checked)
-	  {
-		enable = 1;
-	  }else{
-		enable = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{enable:enable},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	}); 
-	
-	
-	form.on('switch(defaultsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var rest = 1;
-	  if(data.elem.checked)
-	  {
-		rest = 1;
-	  }else{
-		rest = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{value:rest},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	}); 
-	
-	form.on('switch(statewsitchunable)', function(data){
-      
-      var s_url = $(this).attr('data-href')
-      
-      var s_value = 2;
-      
-      
-      $.ajax({
-            url:s_url,
-            type:'post',
-            dataType:'json',
-            data:{state:s_value},
-            success:function(info){
-            
-                if(info.status == 0)
-                {
-                    layer.msg(info.result.message,{icon: 1,time: 2000});
-                }else if(info.status == 1){
-                    var go_url = location.href;
-                    if( info.result.hasOwnProperty("url") )
-                    {
-                        go_url = info.result.url;
-                    }
-                    
-                    layer.msg('操作成功',{time: 1000,
-                        end:function(){
-                            location.href = info.result.url;
-                        }
-                    }); 
-                }
-            }
-        })
-    });
-	
-	form.on('switch(statewsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var state = 1;
-	  if(data.elem.checked)
-	  {
-		state = 1;
-	  }else{
-		state = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{state:state},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	});  
-	form.on('checkbox(checkboxall)', function(data){
-	  
-	  if(data.elem.checked)
-	  {
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", true);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", true);
-		});
-		
-	  }else{
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", false);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", false);
-		});
-	  }
-	  
-	  form.render('checkbox');
-	});
-  
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-})
-
-</script>  
-
-
-<div id="modal-change"  class="modal fade form-horizontal" tabindex="-1">
-    <div class="modal-dialog">
-        <div class="modal-content">
-            <div class="modal-header">
-                <button data-dismiss="modal" class="close" type="button">×</button>
-                <h4 class="modal-title"><?php if( !empty($group['id'])){ ?>编辑<?php  }else{ ?>添加<?php } ?>标签组</h4>
-            </div>
-            <div class="modal-body">
-
-                <div class="form-group batch-level" style="display: none;">
-                    <label class="col-sm-2 control-label must">团长等级</label>
-                    <div class="col-sm-9 col-xs-12">
-                        <select name="batch-level" class="form-control">
-                            <?php foreach( $community_head_level as $level ){ ?>
-                                <option value="<?php echo ($level['id']); ?>"><?php echo ($level['levelname']); ?></option>
-                            <?php } ?>
-                        </select>
-                    </div>
-                </div>		
-                <div class="form-group batch-group" style="display: none;">
-                    <label class="col-sm-2 control-label must">团长分组</label>
-                    <div class="col-sm-9 col-xs-12">
-                        <select name="batch-group[]" class="form-control select2" placeholder="会员会被加入指定的分组中"  style="position:absolute;">
-							<option value="0">默认分组</option>
-                            <?php foreach( $group_list as $group ){ ?>
-                                <option value="<?php echo ($group['id']); ?>"><?php echo ($group['groupname']); ?></option>
-                            <?php } ?>
-                        </select>
-                    </div>
-                </div>
-            </div>
-            <div class="modal-footer">
-                <button class="btn btn-primary" type="submit" id="modal-change-btn">提交</button>
-                <button data-dismiss="modal" class="btn btn-default" type="button">取消</button>
-            </div>
-        </div>
-    </div>
-</div>
-<script language="javascript">
-    
-    $("[data-toggle='batch-group'], [data-toggle='batch-level']").click(function () {
-        var toggle = $(this).data('toggle');
-        $("#modal-change .modal-title").text(toggle=='batch-group'?"批量修改分组":"批量修改会员等级");
-        $("#modal-change").find("."+toggle).show().siblings().hide();
-        $("#modal-change-btn").attr('data-toggle', toggle=='batch-group'?'group':'level');
-        $("#modal-change").modal();
-    });
-    $("#modal-change-btn").click(function () {
-        var _this = $(this);
-        if(_this.attr('stop')){
-            return;
-        }
-        var toggle = $(this).data('toggle');
-        var ids = [];
-        $(".checkone").each(function () {
-            var checked = $(this).is(":checked");
-            var id = $(this).val();
-            if(checked && id){
-                ids.push(id);
-            }
-        });
-        if(ids.length<1){
-            alert("请选择要批量操作的团长");
-            return;
-        }
-        var option = $("#modal-change .batch-"+toggle+" option:selected");
-        level = '';
-        if (toggle=='group'){
-            for(i=0;i<option.length;i++){
-                if (level == ''){
-                    level += $(option[i]).val();
-                }else{
-                    level += ','+$(option[i]).val();
-                }
-            }
-        }else{
-            var level = option.val();
-        }
-
-        var levelname = option.text();
-		if(  confirm("确定要将选中团长移动到 "+levelname+" 吗?") )
-		{
-			 _this.attr('stop', 1).text("操作中...");
-			 
-			 $.ajax({
-				url:"<?php echo U('communityhead/changelevel');?>",
-				type:"post",
-				dataType:'json',
-				data:{
-					level: level,
-					ids: ids,
-					toggle: toggle
-					},
-				success:function(ret){
-					$("#modal-change").modal('hide');
-					if(ret.status==1){
-						alert("操作成功");
-						setTimeout(function () {
-							location.reload();
-						},1000);
-					}else{
-						alert(ret.result.message);
-					}
-					
-					
-				}	
-			 })
-		}
-       
-    });
-
-	$('.tg_community').click(function(){
-		var community_id = $(this).attr("community_id");
-		layer.closeAll();
-		layer.open({
-			type: 2,
-			title: false,
-			closeBtn: 1,
-			scrollbar: false,
-			area: ['200px', '200px'],
-			shadeClose: true,
-			content: "<?php echo U('communityhead/community_qrcode');?>/community_id/"+community_id
-		});
-	});
-	
-   $("[data-toggle='ajaxModal']").click(function () {
-        var s_url = $(this).attr('data-href');
-		ajax_url = s_url;
-		console.log(23);
-       $.ajax({
-				url:s_url,
-				type:"get",
-				success:function(shtml){
-					$('#ajaxModal').html(shtml);
-					$("#ajaxModal").modal();
-				}	
-		})
-    });
-	
-	$(document).delegate(".modal-footer .btn-primary","click",function(){
-		var s_data = $('#ajaxModal form').serialize();
-		$.ajax({
-			url:ajax_url,
-			type:'post',
-			dataType:'json',
-			data:s_data,
-			success:function(info){
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-		return false;
-	})
-	
-</script>
-</body>

+ 0 - 1434
Runtime/Cache/Seller/f4d6d9be205d97b94c3eacaa75cdc6f7.php

@@ -1,1434 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-  <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
-  <link href="/static/css/snailfish.css?v=2.0.0" rel="stylesheet">
- <style>
-    .tab-content>.tab-pane {margin-top: 10px;}
-    .tab-content>.tab-pane>.fui-list-group {border-bottom: 0;}
-	.userNum, .goodsNum, .orderNum {
-		height: 4.5rem;
-		width: 4.5rem;
-		margin: 0 auto;
-		cursor: pointer;
-		color:#000;
-	}
-	.nav {
-		display: -webkit-box;
-		display: -webkit-flex;
-		display: -ms-flexbox;
-		display: flex;
-		padding-left: 0;
-		margin-bottom: 0;
-		list-style: none;
-	}
-	.panel-1 .nav-left {
-		height: 4.8rem;
-		line-height: 4.8rem;
-		margin-left: 0.2rem;
-	}
-	.panel-1 .nav-left span{ 
-		font-size:14px;
-	}
-	.nav select {
-		width: 50%;
-		margin: 1rem 1rem;
-		
-	}
-	.panel-1 {
-		height: 13rem;
-	}
-	.panel {
-		padding: 0 1rem;
-		background: #fff;
-	}
-	.no-border{border:none;}
-	
-	.table, .table * {margin: 0 auto; padding: 0;}   
-	.table {display: table;  border-collapse: collapse;}   
-	.table-tr {display: table-row; color:#FFF;}    
-	.table-td {display: table-cell; height: 30px; text-align: center;vertical-align: middle;} 
-	
-</style>
-
-<style>
-    .flex-items {
-        display: flex;
-    }
-
-        .flex-items .flex-item {
-            flex: 1;
-        }
-
-    .todayboxs {
-        margin: 24px 0;
-    }
-
-        .todayboxs .flex-item {
-            background-color: #fff;
-            width: 100%;
-            height: 104px;
-             padding: 10px;
-            display: flex;
-            align-items: center;
-             margin-right: 10px;
-            color: #333;
-            box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.05);
-        }
-
-            .todayboxs .flex-item:last-child {
-                margin-right: 0;
-            }
-
-        .todayboxs .icon {
-            width: 56px;
-            margin-right: 16px;
-        }
-
-        .todayboxs .num {
-            font-size: 24px;
-        }
-
-        .todayboxs .title {
-			display:inline;
-            color: #747474;
-        }
-
-    .row-panel {
-        margin-bottom: 24px;
-        display: flex;
-    }
-
-        .row-panel .row-panel-7 {
-            width: 50%;
-            flex-shrink: 1;
-        }
-
-        .row-panel .row-panel-5 {
-            width: 50%;
-            margin-left: 24px;
-            flex-shrink: 0;
-        }
-
-    .mypanel {
-        position: relative;
-        background-color: #fff;
-        padding: 0 20px;
-        box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.05);
-    }
-
-        .mypanel .mypanel-heading {
-            font-size: 15px;
-            font-weight: 600;
-            border-bottom: 1px solid #f0f0f0;
-            height: 48px;
-            line-height: 48px;
-        }
-
-    .tasks .flex-item {
-        height: 75px;
-        display: flex;
-        align-items: center;
-        justify-content: space-between;
-        margin-right: 20px;
-        border-bottom: 1px solid #f0f0f0;
-        color: #747474;
-    }
-
-        .tasks .flex-item:last-child {
-            margin-right: 0;
-        }
-
-    .tasks .num {
-        font-size: 15px;
-        color: #9e9e9e;
-        font-weight: 600;
-    }
-
-        .tasks .num.hasnum {
-            color: #436be6;
-        }
-
-    .chat-box {
-        width: 100%;
-        height: 192px;
-    }
-
-    .tasks-panel .tasks:last-child .flex-item {
-        border-bottom: none;
-    }
-
-    .quick-panel .mypanel-body, .total-panel .mypanel-body {
-        padding: 20px 0;
-    }
-
-    .quick-nav .flex-item, .total-mes .flex-item {
-        display: flex;
-        align-items: center;
-        justify-content: center;
-        flex-direction: column;
-        height: 68px;
-        margin-bottom: 20px;
-        margin-right: 20px;
-        color: #747474;
-    }
-
-    .total-mes .flex-item {
-        margin-bottom: 20px;
-        height: 68px;
-    }
-
-        .quick-nav .flex-item:last-child, .total-mes .flex-item:last-child {
-            margin-right: 0;
-        }
-
-    .total-mes .num {
-        height: 48px;
-        line-height: 48px;
-        font-size: 15px;
-        color: #333;
-        font-weight: 600;
-    }
-
-    .quick-nav .flex-item:hover {
-        color: #436be6;
-    }
-
-    .quick-nav .iconfont {
-        height: 48px;
-        line-height: 48px;
-        font-size: 24px;
-        display: block;
-        transition: all 0.3s;
-    }
-
-    .quick-nav .flex-item:hover i {
-        font-size: 48px;
-    }
-</style>
-</head>
-<body layadmin-themealias="default">
-  <div class="layui-row">
-	<div class="layui-row layui-col-space15">
-		<div class="flex-items todayboxs">
-				<?php if (!defined('ROLE') || ROLE != 'agenter' ) {?>
-				<?php if(D('Seller/Menu')->check_seller_perm('user/index')){ ?>
-				<a class="flex-item" href="<?php echo U('user/index'); ?>">
-					<img class="icon" src="/static/images/Block-1.png">
-					<div class="text">
-						<div class="num today_member_count"></div>
-						<div class="title">今日新增会员</div>
-					</div>
-				</a>
-				<?php } ?>
-				<?php } ?>
-				
-				<?php if(D('Seller/Menu')->check_seller_perm('order/index')){ ?>
-				<a class="flex-item" href="<?php echo U('order/index'); ?>">
-					<img class="icon" src="/static/images/Block-3.png">
-					<div class="text">
-					<div class="num today_pay_order_count"></div>
-					<div class="title">今日付款订单</div>
-					<span onmouseover="overShow1()" onmouseout="outHide1()" style="display:inline;border-radius: 50%; height: 15px;width:15px; display: inline-block; border-style: solid; border-color: #8a8a8a; border-width:1px; font-size:11px"><span style="padding-left: 4px;font-weight:bold;color:#8a8a8a;">?</span></span>
-					<div id="showDiv" style="position: absolute; background-color: #8a8a8a;  height:65px;width:220px;display:none;border-radius:20px;text-align:center;"></div>
-					</div>
-				</a>
-				<?php } ?>
-				
-				<?php if(D('Seller/Menu')->check_seller_perm('order/index')){ ?>
-				<a class="flex-item" href="<?php echo U('order/index'); ?>"> 
-					<img class="icon" src="/static/images/Block-2.png">
-					<div class="text">
-					<div class="num today_pay_money"></div>
-					<div class="title">今日付款金额</div>
-					<span onmouseover="overShow2()" onmouseout="outHide2()"style="display:inline;border-radius: 50%; height: 15px;width:15px; display: inline-block; border-style: solid; border-color: #8a8a8a; border-width:1px;font-size:11px" ><span style="padding-left: 4px;font-weight:bold;color:#8a8a8a;">?</span></span>
-					<div id="showDiv2" style="position: absolute; background-color: #8a8a8a; height:65px;width:320px;display:none;border-radius:20px;text-align:center;"></div>
-					</div>
-				</a>
-				<?php } ?>
-				
-				
-				<?php if (!defined('ROLE') || ROLE != 'agenter' ) {?>
-				<a class="flex-item" href="<?php echo U('communityhead/distribulist'); ?>"> 
-					<img class="icon" src="/static/images/Block-6.png">
-					<div class="text">
-						<div class="num total_tixian_money"></div>
-						<div class="title">团长提现中金额</div>
-					</div>
-				</a>
-				  
-				<a class="flex-item" title="团长总佣金=待结算佣金+已结算佣金" href="<?php echo U('communityhead/distribulist'); ?>"> 
-					<img class="icon" src="/static/images/Block-7.png">
-					<div class="text">
-						<div class="num total_commiss_money"></div>
-						<div class="title">团长总佣金</div>
-						<span onmouseover="overShow3()" onmouseout="outHide3()"style="display:inline;border-radius: 50%; height: 15px;width:15px; display: inline-block; border-style: solid; border-color: #8a8a8a; border-width:1px;font-size:11px" ><span style="padding-left: 4px;font-weight:bold;color:#8a8a8a;">?</span></span>
-						<div id="showDiv3" style="position: absolute; background-color: #8a8a8a; height:35px;width:320px;display:none;border-radius:20px;text-align:center;"></div>
-					</div>
-				</a>
-				<?php } ?>
-				
-				<a class="flex-item" href="<?php echo U('order/index'); ?>"> 
-					<img class="icon" src="/static/images/Block-5.png">
-					<div class="text">
-						<div class="num total_order_money"></div>
-						<div class="title">订单金额</div>
-						<span onmouseover="overShow4()" onmouseout="outHide4()"style="display:inline;border-radius: 50%; height: 15px;width:15px; display: inline-block; border-style: solid; border-color: #8a8a8a; border-width:1px;font-size:11px" ><span style="padding-left: 4px;font-weight:bold;color:#8a8a8a;">?</span></span>
-						<div id="showDiv4" style="position: absolute; right: 5px;background-color: #8a8a8a; height:35px;width:320px;display:none;border-radius:20px;text-align:center;"></div>
-					</div>
-				</a>
-				
-		</div> 
-		
-		<div class="row-panel">
-			<div class="row-panel-7">
-				<div class="mypanel tasks-panel">
-					<div class="mypanel-heading">待处理事务</div>
-					<div class="mypanel-body">
-						<div class="flex-items tasks">
-							<?php if (!defined('ROLE') || ROLE != 'agenter' ) {?>
-							<?php if(D('Seller/Menu')->check_seller_perm('goods/index')){ ?>
-							<div class="flex-item">
-								<div>商品库存报警</div>
-								<a class="num hasnum goods_stock_notice_count" href="<?php echo U('goods/index', array('type' => 'stock_notice')); ?>"></a>
-							</div>
-							<?php } ?>
-							<?php } ?>
-							
-							<?php if(D('Seller/Menu')->check_seller_perm('order/index')){ ?>
-							<div class="flex-item"> 
-								<div>待付款订单</div>
-								<a class="num wait_pay_order_count" href="<?php echo U('order/index', array('order_status_id' => 3)); ?>"></a>
-							</div>
-							<?php } ?>
-							
-							<?php if(D('Seller/Menu')->check_seller_perm('order/index')){ ?>
-							<div class="flex-item">
-								<div>备货中订单
-									<span onmouseover="overShowWait()" onmouseout="outHideWait()"style="display:inline;border-radius: 50%; height: 15px;width:15px; display: inline-block; border-style: solid; border-color: #8a8a8a; border-width:1px;font-size:11px" ><span style="padding-left: 4px;font-weight:bold;color:#8a8a8a;">?</span></span>
-									<div id="showDivWait" style="position: absolute; background-color: #8a8a8a; height:35px;width:320px;display:none;border-radius:20px;text-align:center;z-index:1000;"></div>
-								</div>
-
-								<a class="num hasnum wait_order_count" href="<?php echo U('order/index', array('order_status_id' => 1)); ?>"></a>
-							</div>
-							<?php } ?>
-						</div>
-						<?php if (!defined('ROLE') || ROLE != 'agenter' ) {?>
-						
-							<div class="flex-items tasks">
-								<?php if(D('Seller/Menu')->check_seller_perm('order/index')){ ?>
-								<div class="flex-item">
-									<div>待处理退款</div>
-									<a class="num hasnum after_sale_order_count" href="<?php echo U('order/orderaftersales'); ?>"></a>
-								</div> 
-								<?php } ?>
-								<?php if(D('Seller/Menu')->check_seller_perm('order/index')){ ?>
-								<div class="flex-item">
-									<div>待评价订单</div>
-									<a class="num wai_comment_order_count" href="<?php echo U('order/index', array('order_status_id' => 6)); ?>"></a>
-								</div>
-								<?php } ?>
-								<?php if(D('Seller/Menu')->check_seller_perm('order/index')){ ?>
-								<div class="flex-item">
-									<div>待审核评价</div>
-									<a class="num hasnum wait_shen_order_comment_count" href="<?php echo U('order/ordercomment'); ?>"></a>
-								</div>
-								<?php } ?>
-							</div>
-							<div class="flex-items tasks">
-								<?php if(D('Seller/Menu')->check_seller_perm('goods/index')){ ?>
-								<div class="flex-item">
-									<div>仓库中商品</div>
-									<a class="num hasnum stock_goods_count" href="<?php echo U('goods/index', array('type' => 'warehouse')); ?>"></a>
-								</div> 
-								<?php } ?>
-								<?php if(D('Seller/Menu')->check_seller_perm('order/index')){ ?>
-								<div class="flex-item">
-									<div>待处理退货</div> 
-									<a class="num after_sale_order_count" href="<?php echo U('order/orderaftersales'); ?>"></a>
-								</div>
-								<?php } ?>
-								<?php if(D('Seller/Menu')->check_seller_perm('communityhead/index')){ ?>
-								<div class="flex-item">
-									<div>团长提现</div>
-									<a class="num tixian_count" href="<?php echo U('communityhead/distribulist'); ?>">0</a>
-								</div>
-								<?php } ?>
-							</div>
-						<?php  }else{ ?>
-							<div class="flex-items tasks">
-								<div class="flex-item">
-									<div>待处理退款</div>
-									<a class="num hasnum after_sale_order_count" href="<?php echo U('order/orderaftersales'); ?>"></a>
-								</div> 
-								
-								<div class="flex-item">
-									<div>待处理退货</div> 
-									<a class="num after_sale_order_count" href="<?php echo U('order/orderaftersales'); ?>"></a>
-								</div>
-								
-							</div>
-						<?php } ?>
-						
-					</div>
-				</div>
-			</div>
-			<div class="row-panel-5">
-				<div class="mypanel">
-					<div class="mypanel-heading">交易统计</div>
-					<div class="mypanel-body">
-						<div class="ibox-loading" id="echarts-line-chart-loading"></div>
-						<div class="chat-box" id="main"  style="-webkit-tap-highlight-color: transparent; user-select: none; position: relative;height: 225px;">
-							<div class="layui-carousel layadmin-carousel layadmin-dataview" data-anim="fade" lay-filter="LAY-index-normline">
-							  <div carousel-item id="LAY-index-normline">
-								<div><i class="layui-icon layui-icon-loading1 layadmin-loading"></i></div>
-							  </div>
-							</div>
-						</div>
-					</div>
-				</div>
-			</div>
-		</div>
-		<div class="row-panel">
-        <div class="row-panel-7">
-            <div class="mypanel total-panel">
-                <div class="mypanel-heading">商城信息统计</div>
-                <div class="mypanel-body">
-					<?php if (!defined('ROLE') || ROLE != 'agenter' ) {?>
-					<div class="flex-items total-mes">
-                        <div class="flex-item">
-                            <div class="num member_count"></div>
-                            <div>会员总数</div>
-                        </div>
-                        <div class="flex-item">
-                            <div class="num goods_count"></div>
-                            <div>商品总数</div>
-                        </div>
-                        <div class="flex-item">
-                            <div class="num community_head_count"></div>
-                            <div>团长总数</div>
-                        </div>
-                    </div>
-                    <div class="flex-items total-mes">
-                        <div class="flex-item">
-                            <div class="num seven_order_count"></div>
-                            <div>近七天订单数</div>
-                        </div>
-                        <div class="flex-item">
-                            <div class="num seven_pay_money"></div>
-                            <div>近7天销售额(元)</div>
-                        </div>
-                        <div class="flex-item">
-                            <div class="num seven_refund_money"></div>
-                            <div>近7天退款金额(元)</div>
-                        </div>
-                    </div>
-					<?php  }else{ ?>
-					<div class="flex-items total-mes">
-                        <div class="flex-item">
-                            <div class="num seven_order_count"></div>
-                            <div>近七天订单数</div>
-                        </div>
-                        <div class="flex-item">
-                            <div class="num seven_pay_money"></div>
-                            <div>近7天销售额(元)</div>
-                        </div>
-						<div class="flex-item">
-                            <div class="num seven_refund_money"></div>
-                            <div>近7天退款金额(元)</div>
-                        </div>
-                        <div class="flex-item">
-                            <div class="num goods_count"></div>
-                            <div>商品总数</div>
-                        </div>
-                       
-                    </div>
-                   
-					<?php } ?>
-                    
-                </div>
-            </div>
-        </div>
-        <div class="row-panel-5">
-            <div class="mypanel quick-panel">
-                <div class="mypanel-heading">快捷入口</div>
-                <div class="mypanel-body">
-					
-				
-					<?php if (!defined('ROLE') || ROLE != 'agenter' ) {?>
-					<div class="flex-items quick-nav">
-						<?php if(D('Seller/Menu')->check_seller_perm('goods/index')){ ?>
-                        <a href="<?php echo U('goods/addgoods'); ?>" class="flex-item">
-                            <i class="iconfont icon-p"></i> 
-                            <div>发布商品</div>
-                        </a>
-						<?php } ?>
-						
-						<?php if(D('Seller/Menu')->check_seller_perm('order/index')){ ?>
-                        <a href="<?php echo U('order/index'); ?>" class="flex-item">
-                            <i class="iconfont icon--clipboard"></i>
-                            <div>订单列表</div>
-                        </a>
-						<?php } ?>
-						
-						<?php if(D('Seller/Menu')->check_seller_perm('user/index')){ ?>
-                        <a href="<?php echo U('user/index'); ?>" class="flex-item">
-                            <i class="iconfont icon--users"></i>
-                            <div>会员管理</div> 
-                        </a>
-						<?php } ?>
-						
-						<?php if(D('Seller/Menu')->check_seller_perm('communityhead/index')){ ?>
-                        <a href="<?php echo U('communityhead/index'); ?>" class="flex-item">
-                            <i class="iconfont icon--tree"></i>
-                            <div>团长管理</div>
-                        </a>
-						<?php } ?>
-						
-						<?php if(D('Seller/Menu')->check_seller_perm('supply/index')){ ?>
-                        <a href="<?php echo U('supply/index'); ?>" class="flex-item">
-                            <i class="iconfont icon--truck"></i> 
-                            <div>供应商管理</div>
-                        </a>
-						<?php } ?>
-                    </div>
-                    <div class="flex-items quick-nav">
-						<?php if(D('Seller/Menu')->check_seller_perm('communityhead/distribulist')){ ?>
-                        <a href="<?php echo U('communityhead/distribulist'); ?>" class="flex-item">
-                            <i class="iconfont icon-p5"></i>
-                            <div>提现申请</div>
-                        </a>
-						<?php } ?>
-						<?php if(D('Seller/Menu')->check_seller_perm('communityhead/distributionpostal')){ ?>
-                        <a href="<?php echo U('communityhead/distributionpostal'); ?>" class="flex-item">
-                            <i class="iconfont icon--coin-yen"></i>
-                            <div>提现设置</div>
-                        </a>
-						<?php } ?>
-						<?php if(D('Seller/Menu')->check_seller_perm('configindex/slider')){ ?>
-                        <a href="<?php echo U('configindex/slider'); ?>" class="flex-item">
-                            <i class="iconfont icon-p6"></i>
-                            <div>幻灯片管理</div> 
-                        </a>
-						
-						<?php } ?>
-						<?php if(D('Seller/Menu')->check_seller_perm('order/orderaftersales')){ ?>
-                        <a href="<?php echo U('order/orderaftersales'); ?>" class="flex-item">
-                            <i class="iconfont icon--stats-bars1"></i>
-                            <div>售后处理</div>
-                        </a>
-						<?php } ?>
-						<?php if(D('Seller/Menu')->check_seller_perm('config/index')){ ?>
-                        <a href="<?php echo U('config/index'); ?>" class="flex-item">
-                            <i class="iconfont icon-p7"></i>
-                            <div>站点设置</div>
-                        </a>
-						<?php } ?>
-                    </div>
-					<?php  }else{ ?>
-					<div class="flex-items quick-nav">
-                        <a href="<?php echo U('goods/addgoods'); ?>" class="flex-item">
-                            <i class="iconfont icon-p"></i> 
-                            <div>发布商品</div>
-                        </a>
-                        <a href="<?php echo U('order/index'); ?>" class="flex-item">
-                            <i class="iconfont icon--clipboard"></i>
-                            <div>订单列表</div>
-                        </a>
-                        <a href="<?php echo U('order/orderaftersales'); ?>" class="flex-item">
-                            <i class="iconfont icon--stats-bars1"></i>
-                            <div>售后处理</div>
-                        </a>
-                    </div>
-					<?php } ?>
-                    
-                </div>
-            </div>
-        </div>
-    </div>
-		<?php if (!defined('ROLE') || ROLE != 'agenter' ) {?>
-		<div class="row-panel">
-			<div class="row-panel-7">
-				<div class="mypanel total-panel">
-					<div class="mypanel-heading">最近7天会员增长情况</div>
-					<div class="mypanel-body">
-						<div id="echat_member_incr" style="height:460px;"></div>
-					</div>
-				</div>
-			</div>
-			<div class="row-panel-5">
-				<div class="mypanel total-panel">
-					<div class="mypanel-heading">最近7天团长增长情况</div>
-					<div class="mypanel-body">
-						<div id="echat_head_incr" style="height:460px;"></div>
-					</div>
-				</div>
-			</div>
-		</div>
-		
-		<div class="row-panel">
-			<div class="row-panel-7">
-				<div class="mypanel total-panel">
-					<div class="mypanel-heading">本月团长销售排行</div>
-					<div class="mypanel-body">
-						<div id="echat_month_head_sales" style="height:460px;"></div>
-					</div>
-				</div>
-			</div>
-			<div class="row-panel-5">
-				<div class="mypanel total-panel">
-					<div class="mypanel-heading">上月团长销售排行</div>
-					<div class="mypanel-body">
-						<div id="echat_lastmonth_head_sales" style="height:460px;"></div>
-					</div>
-				</div>
-			</div>
-		</div>
-		
-		<div class="row-panel">
-			<div class="row-panel-7">
-				<div class="mypanel total-panel">
-					<div class="mypanel-heading">本月商品销售排行</div>
-					<div class="mypanel-body">
-						<div id="echat_month_goods_sales" style="height:460px;"></div>
-					</div>
-				</div>
-			</div>
-			<div class="row-panel-5">
-				<div class="mypanel total-panel">
-					<div class="mypanel-heading">上月商品销售排行</div>
-					<div class="mypanel-body">
-						<div id="echat_lastmonth_goods_sales" style="height:460px;"></div>
-					</div>
-				</div>
-			</div>
-		</div>
-	
-		<?php } ?>
-	</div>
-  </div>
-
-<script src="/layuiadmin/layui/layui.js"></script>
-<script src="/layuiadmin/lib/extend/echarts.min.js"></script>
-
-<script src="/static/js/roll/jquery-1.11.0.min.js" type="text/javascript"></script>
-<script src="/static/js/roll/jquery.waypoints.min.js"></script>
-<script type="text/javascript" src="/static/js/roll/jquery.countup.min.js"></script>
-
-
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
- function overShow1() {
-  var showDiv = document.getElementById('showDiv');
-  //showDiv.style.left = event.clientX;
-  //showDiv.style.top = event.clientY;
-  showDiv.style.display = 'block';
-  showDiv.innerHTML = '<div style="color:#FFF;margin-top:10px;">支付成功订单数:'+ <?php echo ($today_success_order_count); ?> +' </div><div style="color:#FFF;margin-top:10px;">支付取消订单数:'+ <?php echo ($today_cancel_order_count); ?> +'</div>';
- }
- 
- function outHide1() {
-  var showDiv = document.getElementById('showDiv');
-  showDiv.style.display = 'none';
-  showDiv.innerHTML = '';
- }
-</script>
-
-<script>
- function overShow2() {
-  var showDiv = document.getElementById('showDiv2');
-  //showDiv.style.left = event.clientX;
-  //showDiv.style.top = event.clientY;
-  showDiv.style.display = 'block';
-  showDiv.innerHTML = '<div class="table"><div class="table-tr"><div class="table-td">余额付款:</div> <div class="table-td">¥'+ <?php echo ($yuer_pay_money); ?>+'</div>&nbsp&nbsp&nbsp&nbsp <div class="table-td">在线付款:</div><div class="table-td">¥'+ <?php echo ($online_pay_money); ?>+'</div></div><div class="table-tr"><div class="table-td">积分抵现:</div><div class="table-td">¥'+ <?php echo ($score_for_money); ?>+'</div>&nbsp&nbsp&nbsp&nbsp<div class="table-td">使用积分:</div><div class="table-td">'+ <?php echo ($sum_score); ?>+'积分</div></div>';
- }
- 
- function outHide2() {
-  var showDiv = document.getElementById('showDiv2');
-  showDiv.style.display = 'none';
-  showDiv.innerHTML = '';
- }
-
- function overShow3() {
-	 var showDiv = document.getElementById('showDiv3');
-	 //showDiv.style.left = event.clientX;
-	 //showDiv.style.top = event.clientY;
-	 showDiv.style.display = 'block';
-	 showDiv.innerHTML = '<div class="table"><div class="table-tr"><div class="table-td">统计金额不包含退款金额和已取消订单金额</div></div></div>';
- }
-
- function outHide3() {
-	 var showDiv = document.getElementById('showDiv3');
-	 showDiv.style.display = 'none';
-	 showDiv.innerHTML = '';
- }
-
- function overShow4() {
-	 var showDiv = document.getElementById('showDiv4');
-	 //showDiv.style.left = event.clientX;
-	 //showDiv.style.top = event.clientY;
-	 showDiv.style.display = 'block';
-	 showDiv.innerHTML = '<div class="table"><div class="table-tr"><div class="table-td">统计金额不包含退款金额和已取消订单金额</div></div></div>';
- }
-
- function outHide4() {
-	 var showDiv = document.getElementById('showDiv4');
-	 showDiv.style.display = 'none';
-	 showDiv.innerHTML = '';
- }
-
- function overShowWait() {
-	 var showDiv = document.getElementById('showDivWait');
-	 //showDiv.style.left = event.clientX;
-	 //showDiv.style.top = event.clientY;
-	 showDiv.style.display = 'block';
-	 showDiv.innerHTML = '<div class="table"><div class="table-tr"><div class="table-td">备货中订单包含普通订单,拼团订单和积分兑换订单</div></div></div>';
- }
-
- function outHideWait() {
-	 var showDiv = document.getElementById('showDivWait');
-	 showDiv.style.display = 'none';
-	 showDiv.innerHTML = '';
- }
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-
-var  cur_type = 'normal';
-
-layui.use(['jquery', 'layer'], function(){ 
-  $ = layui.$;
-  load_data();
-  //后面就跟你平时使用jQuery一样
-  loadEchartsLine();
-  
-   
-  load_echat_member_incr();
-  load_echat_head_incr();
-  load_echat_month_head_sales();
-  load_echat_lastmonth_head_sales();
-  load_echat_month_goods_sales();
-  load_echat_lastmonth_goods_sales();
-  
-});
-
-function load_echat_member_incr()
-{
-	var hasLineChart = $("#echat_member_incr").length>0;
-	if(hasLineChart){
-		var lineChart = echarts.init(document.getElementById("echat_member_incr"));
-	}
-	window.onresize = function () {
-		if(hasLineChart) {
-			lineChart.resize();
-		}
-	};
-	
-	$.ajax({
-		type: "GET",
-		url: "<?php echo U('statistics/load_echat_member_incr');?>",
-		dataType: "json",
-		success: function (data) {
-			if(data.code == 0)
-			{
-			
-			//echo json_encode( array('code' => 0, 'date_arr' => $date_arr, 'member_count' => $member_count_arr ) );
-		//die();
-		
-		
-				var option = null;
-				option = {
-					color: ['#009688'],
-					tooltip : {
-						trigger: 'axis',
-						axisPointer : {            // 坐标轴指示器,坐标轴触发有效
-							type : 'shadow'        // 默认为直线,可选为:'line' | 'shadow'
-						}
-					},
-					grid: {
-						left: '3%',
-						right: '4%',
-						bottom: '3%',
-						containLabel: true
-					},
-					xAxis : [
-						{
-							type : 'category',
-							data : data.date_arr,
-							axisTick: {
-								alignWithLabel: true
-							}
-						}
-					],
-					yAxis : [
-						{
-							type : 'value'
-						}
-					],
-					series : [
-						{
-							name:'会员增长',
-							type:'bar',
-							label: {
-								normal: {
-									show: true,
-									position: 'top'
-								}
-							},
-							barWidth: '60%',
-							itemStyle: {
-								normal: {
-									
-									// 定制显示(按顺序)
-									color: function(params) { 
-										var colorList = ['#58b4ff','#f6bf00','#f3550e','#51c284','#7ebbd8', '#dbdd7c','#ee9992']; 
-										return colorList[params.dataIndex] 
-									}
-								},
-							},
-							data:data.member_count
-						}
-					]
-				};
-
-				
-				if (option && typeof option === "object") {
-					lineChart.setOption(option, true);
-				}
-			}
-		}
-	})
-	
-	
-}
-
-function load_echat_head_incr()
-{
-	var hasLineChart = $("#echat_head_incr").length>0;
-	if(hasLineChart){
-		var lineChart = echarts.init(document.getElementById("echat_head_incr"));
-	}
-	window.onresize = function () {
-		if(hasLineChart) {
-			lineChart.resize();
-		}
-	};
-	
-	$.ajax({
-		type: "GET",
-		url: "<?php echo U('statistics/load_echat_head_incr');?>",
-		dataType: "json",
-		success: function (data) {
-			if(data.code == 0)
-			{
-			
-			//echo json_encode( array('code' => 0, 'date_arr' => $date_arr, 'member_count' => $member_count_arr ) );
-		//die();
-		
-		
-				var option = null;
-				option = {
-					color: ['#009688'],
-					tooltip : {
-						trigger: 'axis',
-						axisPointer : {            // 坐标轴指示器,坐标轴触发有效
-							type : 'shadow'        // 默认为直线,可选为:'line' | 'shadow'
-						}
-					},
-					grid: {
-						left: '3%',
-						right: '4%',
-						bottom: '3%',
-						containLabel: true
-					},
-					xAxis : [
-						{
-							type : 'category',
-							data : data.date_arr,
-							axisTick: {
-								alignWithLabel: true
-							}
-						}
-					],
-					yAxis : [
-						{
-							type : 'value'
-						}
-					],
-					series : [
-						{
-							name:'团长增长',
-							type:'bar',
-							label: {
-								normal: {
-									show: true,
-									position: 'top'
-								}
-							},
-							barWidth: '60%',
-							itemStyle: {
-								normal: {
-									
-									// 定制显示(按顺序)
-									color: function(params) { 
-										var colorList = ['#58b4ff','#f6bf00','#f3550e','#51c284','#7ebbd8', '#dbdd7c','#ee9992']; 
-										return colorList[params.dataIndex] 
-									}
-								},
-							},
-							data:data.member_count
-						}
-					]
-				};
-
-				
-				if (option && typeof option === "object") {
-					lineChart.setOption(option, true);
-				}
-			}
-		}
-	})
-}
-
-function load_echat_month_head_sales()
-{
-	var hasLineChart = $("#echat_month_head_sales").length>0;
-	if(hasLineChart){
-		var lineChart = echarts.init(document.getElementById("echat_month_head_sales"));
-	}
-	window.onresize = function () {
-		if(hasLineChart) {
-			lineChart.resize();
-		}
-	};
-	
-	$.ajax({
-		type: "GET",
-		url: "<?php echo U('statistics/load_echat_month_head_sales', array('type' => 1));?>",
-		dataType: "json",
-		success: function (data) {
-			if(data.code == 0)
-			{
-				
-				var le_arr = [];
-				var data_obj_arr  = [];
-				
-				for( var i in data.list )
-				{
-					le_arr.push(  data.list[i].head_name  );
-					data_obj_arr.push({value:data.list[i].total, name:data.list[i].head_name });
-				}
-				
-				
-				
-				
-				var option = null;
-				option = {
-					title : {
-						text: '销售金额'+data.total,
-						subtext: data.month,
-						x:'center'
-					},
-					tooltip : {
-						trigger: 'item',
-						formatter: "{a} <br/>{b} : {c} ({d}%)"
-					},
-					legend: {
-						orient: 'vertical',
-						left: 'left',
-						data: le_arr
-					},
-					series : [
-						{
-							name: '销售金额',
-							type: 'pie',
-							radius : '55%',
-							center: ['50%', '60%'],
-							data:data_obj_arr,
-							itemStyle: {
-								emphasis: {
-									shadowBlur: 10,
-									shadowOffsetX: 0,
-									shadowColor: 'rgba(0, 0, 0, 0.5)'
-								}
-							}
-						}
-					]
-				};
-
-				
-				if (option && typeof option === "object") {
-					lineChart.setOption(option, true);
-				}
-			}
-		}
-	})
-	
-	
-}
-
-
-
-function load_echat_month_goods_sales()
-{
-	var hasLineChart = $("#echat_month_goods_sales").length>0;
-	if(hasLineChart){
-		var lineChart = echarts.init(document.getElementById("echat_month_goods_sales"));
-	}
-	window.onresize = function () {
-		if(hasLineChart) {
-			lineChart.resize();
-		}
-	};
-	
-	$.ajax({
-		type: "GET",
-		url: "<?php echo U('statistics/load_echat_month_goods_sales', array('type' => 1));?>",
-		dataType: "json",
-		success: function (data) {
-			if(data.code == 0)
-			{
-				
-				var le_arr = [];
-				var data_obj_arr  = [];
-				
-				for( var i in data.list )
-				{
-					le_arr.push(  data.list[i].name  );
-					data_obj_arr.push({value:data.list[i].total, name:data.list[i].name });
-				}
-				
-				
-				
-				
-				var option = null;
-				option = {
-					title : {
-						text: '销售金额'+data.total,
-						subtext: '销售总数:'+data.total_quantity+' ('+data.month+')',
-						x:'center'
-					},
-					tooltip : {
-						trigger: 'item',
-						formatter: "{a} <br/>{b} : {c} ({d}%)"
-					},
-					legend: {
-						orient: 'vertical',
-						left: 'left',
-						data: le_arr
-					},
-					series : [
-						{
-							name: '销售金额',
-							type: 'pie',
-							radius : '55%',
-							center: ['50%', '60%'],
-							data:data_obj_arr,
-							itemStyle: {
-								emphasis: {
-									shadowBlur: 10,
-									shadowOffsetX: 0,
-									shadowColor: 'rgba(0, 0, 0, 0.5)'
-								}
-							}
-						}
-					]
-				};
-
-				
-				if (option && typeof option === "object") {
-					lineChart.setOption(option, true);
-				}
-			}
-		}
-	})
-	
-	
-}
-
-function load_echat_lastmonth_goods_sales()
-{
-	var hasLineChart = $("#echat_lastmonth_goods_sales").length>0;
-	if(hasLineChart){
-		var lineChart = echarts.init(document.getElementById("echat_lastmonth_goods_sales"));
-	}
-	window.onresize = function () {
-		if(hasLineChart) {
-			lineChart.resize();
-		}
-	};
-	
-	$.ajax({
-		type: "GET",
-		url: "<?php echo U('statistics/load_echat_month_goods_sales', array('type' => 2));?>",
-		dataType: "json",
-		success: function (data) {
-			if(data.code == 0)
-			{
-				
-				var le_arr = [];
-				var data_obj_arr  = [];
-				
-				for( var i in data.list )
-				{
-					le_arr.push(  data.list[i].name  );
-					data_obj_arr.push({value:data.list[i].total, name:data.list[i].name });
-				}
-				
-				
-				
-				
-				var option = null;
-				option = {
-					title : {
-						text: '销售金额'+data.total,
-						subtext: '销售总数:'+data.total_quantity+'  ('+data.month+')',
-						x:'center'
-					},
-					tooltip : {
-						trigger: 'item',
-						formatter: "{a} <br/>{b} : {c} ({d}%)"
-					},
-					legend: {
-						orient: 'vertical',
-						left: 'left',
-						data: le_arr
-					},
-					series : [
-						{
-							name: '销售金额',
-							type: 'pie',
-							radius : '55%',
-							center: ['50%', '60%'],
-							data:data_obj_arr,
-							itemStyle: {
-								emphasis: {
-									shadowBlur: 10,
-									shadowOffsetX: 0,
-									shadowColor: 'rgba(0, 0, 0, 0.5)'
-								}
-							}
-						}
-					]
-				};
-
-				
-				if (option && typeof option === "object") {
-					lineChart.setOption(option, true);
-				}
-			}
-		}
-	})
-}
-
-
-function load_echat_lastmonth_head_sales()
-{
-	var hasLineChart = $("#echat_lastmonth_head_sales").length>0;
-	if(hasLineChart){
-		var lineChart = echarts.init(document.getElementById("echat_lastmonth_head_sales"));
-	}
-	window.onresize = function () {
-		if(hasLineChart) {
-			lineChart.resize();
-		}
-	};
-	
-	$.ajax({
-		type: "GET",
-		url: "<?php echo U('statistics/load_echat_month_head_sales', array('type' => 2));?>",
-		dataType: "json",
-		success: function (data) {
-			if(data.code == 0)
-			{
-				
-				var le_arr = [];
-				var data_obj_arr  = [];
-				
-				for( var i in data.list )
-				{
-					le_arr.push(  data.list[i].head_name  );
-					data_obj_arr.push({value:data.list[i].total, name:data.list[i].head_name });
-				}
-				
-				
-				
-				
-				var option = null;
-				option = {
-					title : {
-						text: '销售金额'+data.total,
-						subtext: data.month,
-						x:'center'
-					},
-					tooltip : {
-						trigger: 'item',
-						formatter: "{a} <br/>{b} : {c} ({d}%)"
-					},
-					legend: {
-						orient: 'vertical',
-						left: 'left',
-						data: le_arr
-					},
-					series : [
-						{
-							name: '销售金额',
-							type: 'pie',
-							radius : '55%',
-							center: ['50%', '60%'],
-							data:data_obj_arr,
-							itemStyle: {
-								emphasis: {
-									shadowBlur: 10,
-									shadowOffsetX: 0,
-									shadowColor: 'rgba(0, 0, 0, 0.5)'
-								}
-							}
-						}
-					]
-				};
-
-				
-				if (option && typeof option === "object") {
-					lineChart.setOption(option, true);
-				}
-			}
-		}
-	})
-}
-
-
-function loadEchartsLine()
-{
-	var hasLineChart = $("#main").length>0;
-	if(hasLineChart){
-		var lineChart = echarts.init(document.getElementById("main"));
-	}
-	window.onresize = function () {
-		if(hasLineChart) {
-			lineChart.resize();
-		}
-	};
-		
-	$.ajax({
-	    type: "GET",
-	    url: "<?php echo U('statistics/load_goods_chart'); ?>",
-		data:{type:cur_type},
-	    dataType: "json",
-	    success: function (json) {
-	        var option = {
-	        	    title: {
-	        	        text: ''
-	        	    },
-	        	    tooltip: {
-	        	        trigger: 'axis',
-	        	        formatter: function (a) {
-	        	            var str = '';
-	        	            a.forEach(function (item) {
-	        	                str += item.seriesName + ':' + item.value + (item.seriesIndex > 2 ? '%' : '') + '<br/>';
-	        	            });
-	        	            return str;
-	        	        }
-	        	    },
-	        	    legend: {
-	        	        data: []
-	        	    },
-	        	    grid: {
-	        	        left: 50,
-	        	        right: 20,
-	        	        top: 40,
-	        	        bottom: 10,
-	        	        containLabel: true
-	        	    },
-
-	        	    xAxis: {
-	        	        type: 'category',
-	        	        axisLabel: {
-	        	            rotate: 30
-	        	        },
-	        	        boundaryGap: false,
-	        	        data: []
-	        	    },
-	        	    yAxis: [
-	        	        {
-	        	            type: 'value',
-	        	            name: '金额',
-	        	        }
-	        	    ],
-	        	    series: [
-	        	        {
-	        	            areaStyle: { normal: {} },
-	        	        },
-	        	    ]
-	        	};
-			if(hasLineChart) {
-				
-				//var json = {"success":true,"data":{"date":"0001-01-01 00:00:00","visits":3080,"orderUsers":24,"orderCount":52,"orderProducts":69,"orderAmount":14986.83,"payUsers":16,"payOrders":25,"payProducts":36,"payAmount":4380.31,"refundProducts":4,"refundOrderCounts":8,"refundAmount":1899.04,"refundRate":32.00,"preOrderRate":175.21,"preProductRate":121.68,"jointRate":1.44,"orderRate":1.69,"payRate":48.08,"tradeRate":0.81,"payAmountRank":1,"brokerageAmount":0.00,"lines":{"payAmountLine":{"xAxisData":["12-01","12-02","12-03","12-04","12-05","12-06","12-07","12-08"],"seriesData":[{"data":[0.00,3196.00,0.20,162.14,379.01,642.96,0.00,0.0]}]},"payUserLine":{"xAxisData":["12-01","12-02","12-03","12-04","12-05","12-06","12-07","12-08"],"seriesData":[{"data":[0,1,2,2,6,5,0,0]}]},"payProductLine":{"xAxisData":["12-01","12-02","12-03","12-04","12-05","12-06","12-07","12-08"],"seriesData":[{"data":[0,3,2,13,10,8,0,0]}]},"orderRateLine":{"xAxisData":["12-01","12-02","12-03","12-04","12-05","12-06","12-07","12-08"],"seriesData":[{"data":[0.0,4.00,1.22,1.53,2.74,1.52,1.00,0.0]}]},"payRateLine":{"xAxisData":["12-01","12-02","12-03","12-04","12-05","12-06","12-07","12-08"],"seriesData":[{"data":[0.0,75.00,33.33,77.78,35.00,50.0,0.0,0.0]}]},"tradeRateLine":{"xAxisData":["12-01","12-02","12-03","12-04","12-05","12-06","12-07","12-08"],"seriesData":[{"data":[0.0,3.00,0.41,1.19,0.96,0.76,0.0,0.0]}]}}}};
-				var lines = json.data.lines;
-				
-		        option.xAxis.data = lines.payAmountLine.xAxisData;
-		        option.series = [];
-		        option.series.push(buildLine("付款金额", lines.payAmountLine, 0));
-				option.series.push(buildLine2("退款金额", lines.payAmountLine, 0));
-		        
-		        lineChart.setOption(option);
-				lineChart.resize(); 
-			}
-			$("#echarts-line-chart-loading").hide();
-			$("#main").show();	
-		}
-	})
-}
-
-function buildLine2(name, data, yIndex) {
-    return {
-        name: name,
-        type: "line",
-        areaStyle: { normal: {} },
-        smooth: true,
-        data: data.seriesData[1].data,
-        yAxisIndex: yIndex
-    };
-}
-
-
-function buildLine(name, data, yIndex) {
-    return {
-        name: name,
-        type: "line",
-        areaStyle: { normal: {} },
-        smooth: true,
-        data: data.seriesData[0].data,
-        yAxisIndex: yIndex
-    };
-}
-
-function load_goods_paihang()
-{
-	var s_index = $('#sale li.active').index();
-	
-	$.ajax({
-		type: "GET",
-		url: "<?php echo U('statistics/load_goods_paihang'); ?>",
-		data:{type:cur_type,s_index:s_index},
-		dataType: "json",
-		success: function (data) {
-			$('#sale_div .ibox-loading').hide();
-			if(data.code ==0 )
-			{
-				$('#goods_rank_0 tbody').html( data.html );
-			}
-		}
-	})
-}
-
-function load_order_buy_data()
-{
-	var s_index = $('#orderinfo li.active').index();
-	
-	$.ajax({
-		type: "GET",
-		url: "<?php echo U('statistics/order_buy_data'); ?>",
-		data:{type:cur_type,s_index:s_index},
-		dataType: "json",
-		success: function (data) {
-			$('#order_info_div .ibox-loading').hide();
-			if(data.code ==0 )
-			{
-				$('.order_count_0').html( data.data.count );
-				$('.order_price_0').html( data.data.total );
-				$('.order_avg_0').html( data.data.per_money );
-			}
-		}
-	})
-}
-function load_data()
-{
-	cur_type = $('#select_type').val();
-
-	$.ajax({
-		type: "GET",
-		url: "<?php echo U('statistics/index_data'); ?>",
-		data:{type:cur_type},
-		dataType: "json",
-		success: function (data) {
-			
-			if(data.code ==0 )
-			{
-				
-				$('.today_member_count').html( data.data.today_member_count );
-				$('.today_pay_order_count').html( data.data.today_pay_order_count );
-				$('.today_pay_money').html( '<em>¥</em><span class="counter">'+data.data.today_pay_money +'</span>' );
-				
-				$('.total_tixian_money').html( '<em>¥</em><span class="counter">'+data.data.total_tixian_money +'</span>' );
-				$('.total_commiss_money').html( '<em>¥</em><span class="counter">'+data.data.total_commiss_money +'</span>' );
-				$('.total_order_money').html( '<em>¥</em><span class="counter">'+data.data.total_order_money +'</span>' );
-				
-				$('.counter').countUp();
-				
-				$('.goods_stock_notice_count').html( data.data.goods_stock_notice_count );
-				$('.wait_pay_order_count').html( data.data.wait_pay_order_count );
-				$('.wait_order_count').html( data.data.wait_order_count );
-				$('.after_sale_order_count').html( data.data.after_sale_order_count );
-				$('.wai_comment_order_count').html( data.data.wai_comment_order_count );
-				
-				$('.wait_shen_order_comment_count').html( data.data.wait_shen_order_comment_count );
-				$('.stock_goods_count').html( data.data.stock_goods_count );
-				$('.seven_order_count').html( data.data.seven_order_count );
-				$('.seven_pay_money').html(data.data.seven_pay_money);
-				$('.seven_refund_money').html(data.data.seven_refund_money);
-				
-				$('.community_head_count').html(data.data.community_head_count);
-				$('.seven_order_count').html(data.data.seven_order_count);
-				
-				
-				$('.member_count').html( data.data.member_count );
-				$('.goods_count').html( data.data.goods_count );
-				$('.order_count').html( data.data.order_count );
-				$('.tixian_count').html( data.data.apply_count );
-
-                if(data.data.wait_order_type == 'pintuan'){
-                    var url = "<?php echo U('group/orderlist', array('order_status_id' => 1)); ?>";
-                    $('.wait_order_count').attr('href',url);
-                }else if(data.data.wait_order_type == 'integral'){
-                    var url = "<?php echo U('points/order', array('order_status_id' => 1)); ?>";
-                    $('.wait_order_count').attr('href',url);
-                }
-				
-				$('.goods_totals').html( data.data.goods_stock_notice_count );
-			}
-		}
-	})
-	load_order_buy_data();
-	load_goods_paihang();
-	
-	
-}
-</script> 
-<script type="text/javascript">
-	$('.counter').countUp();
-</script>
-
-
-</body>
-</html>

+ 0 - 116
Runtime/Cache/Seller/f5c954841134127f98645e87c5ddd493.php

@@ -1,116 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-  window.sysinfo = {
-  <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-  
-  <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-  
-  <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-  
-  <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-  
-  'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-  
-  'siteroot': '<?php echo ($_W['siteroot']); ?>',
-    'siteurl': '<?php echo ($_W['siteurl']); ?>',
-    'attachurl': '<?php echo ($_W['attachurl']); ?>',
-    'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-    'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-    'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-    'cookie' : {'pre': ''},
-    'account' : <?php echo json_encode($_W['account']);?>,
-  };
-</script>
-
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-<link href="/static/css/snailfish.css" rel="stylesheet">
-  <link href="/static/css/szyV6.css" rel="stylesheet">
-</head>
-<body layadmin-themealias="default">
-
-<div class="layui-fluid">
-  <div class="layui-card">
-    <div class="layui-card-body" style="padding:15px;">
-
-      <div class="layui-card">
-        <div class="layui-card-header ">
-          <span class="ns-card-title">应用工具</span>
-        </div>
-        <div class="layui-card-body">
-          <div class="layui-row">
-            <?php foreach( $app_arr as $key => $val ){ ?>
-            <a class="layui-col-md3 szy-div-wrap" href="<?php echo $val['url']; ?>">
-              <div class="szy-item-block">
-                <div class="szy-item-pic">
-                  <img src="<?php echo $val['icon']; ?>">
-                </div>
-                <div class="szy-item-con">
-                  <div class="szy-item-content-title"><?php echo $val['title']; ?></div>
-                  <p class="szy-item-content-desc szy-line-hiding" title="<?php echo $val['desc']; ?>"><?php echo $val['desc']; ?></p>
-                </div>
-              </div>
-            </a>
-            <?php } ?>
-
-          </div>
-        </div>
-
-      </div>
-
-
-    </div>
-  </div>
-</div>
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-  layui.config({
-    base: '/layuiadmin/' //静态资源所在路径
-  }).extend({
-    index: 'lib/index' //主入口模块
-  }).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  
-
-})
-
-</script>  
-</body>
-</html>

+ 0 - 514
Runtime/Cache/Seller/f63b8bf4c4d8da369ef6e7983ebd16d0.php

@@ -1,514 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
-  <!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-  <!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-  <![endif]-->
-
-  <link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-  <link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-  <script type="text/javascript">
-      window.sysinfo = {
-        <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-        <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-        <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-        <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-        'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-        'siteroot': '<?php echo ($_W['siteroot']); ?>',
-        'siteurl': '<?php echo ($_W['siteurl']); ?>',
-        'attachurl': '<?php echo ($_W['attachurl']); ?>',
-        'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-        'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-        'module': {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-        'cookie': {'pre': ''},
-        'account': <?php echo json_encode($_W['account']);?>,
-      };
-  </script>
-        
-  <script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-  <script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-  <script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-  <script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-  <script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-  <script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-  <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-  <link href="/static/css/snailfish.css" rel="stylesheet">
-  <style>
-	.daterangepicker select.ampmselect, .daterangepicker select.hourselect, .daterangepicker select.minuteselect {
-		width: auto!important;
-	}
-  </style>
-</head>
-<body layadmin-themealias="default">
-
-<div class="layui-fluid">
-    <div class="layui-card">
-        <div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">生成配送单</span></div>
-        <div class="layui-card-body" style="padding:15px;">
-            <div class="page-content">
-			<span class="line-text">说明:此处所有的生成,只针对待发货的订单。如果要使用这个流程,请勿在后台--“订单”,把待发货的订单给变更为已发货,也不能在后台--“订单设置”里设置自动发货,这将导致这些订单永远不会统计在配送单中。其它细节参考帮助文档,搜索 “常规发货”。</span>
-			<br><br>
-                <form action="" method="get" class="form-horizontal form-search layui-form" role="form">
-            		<input type="hidden" name="c" value="delivery" />
-                    <input type="hidden" name="a" value="get_delivery_list" />
-                    
-                    <div class="page-toolbar">
-                        <div class="layui-form-item">
-        					<span class="layui-input-inline">
-        						<select name='searchtime' class='form-control' style="width:100px;padding:0 5px;" id="searchtime">
-        							<option value=''>不按时间</option>
-        							<option value='pay' <?php if( $gpc['searchtime']=='pay'){ ?>selected<?php } ?>>付款时间</option>
-									<option value='create' <?php if( $gpc['searchtime']=='create' ){ ?>selected<?php } ?>>下单时间</option>
-        						</select>
-        					</span>
-        					<span class="layui-input-inline" style="width:280px;">
-        						<?php echo tpl_form_field_daterange('time', array('starttime'=>date('Y-m-d H:i', $starttime),'endtime'=>date('Y-m-d H:i', $endtime)),true);;?>
-        					</span>
-        					<span class="layui-input-inline">
-        						<select name="line_id" class='form-control select2' style="width:200px;" data-placeholder="配送线路">
-        							<option value="-1" <?php if( empty($gpc['line_id'])){ ?>selected<?php } ?> >配送线路</option>
-        							<?php foreach($line_list as $line){ ?>
-        							<option value="<?php echo $line['id']; ?>" <?php if( $gpc['line_id']== $line['id'] ){ ?>selected<?php } ?> ><?php echo $line['name']; ?></option>
-        							<?php } ?>
-        						</select>
-        					</span>
-                            <div class="layui-input-inline">
-        					   <input type="text" class="layui-input" name='keyword' value="<?php echo ($gpc['keyword']); ?>" placeholder="输入店铺名称然后回车">
-                            </div>
-                            <span class="layui-input-inline">
-                                <button class="btn btn-primary" type="submit"> 搜索</button>
-                            </span>
-                        </div>
-                    </div>
-                </form>
-	
-                <form action="" method="post" class="layui-form" role="form" >
-                    <div class="row">
-                        <div class="col-md-12">
-                            <div class="page-table-header">
-                                <input type='checkbox' type='checkbox' name="checkall" lay-skin="primary" lay-filter="checkboxall" />
-                                <span class="pull-right">
-									<a  class='btn layui-btn  layui-btn-sm' href="<?php echo U('delivery/auto_get_delivery_list');?>" >
-										<span data-toggle="tooltip" data-placement="top" title="" data-original-title="打印配送单">
-											一键生成所有清单
-										</span>
-                					</a>
-            					</span>
-								<div class="btn-group">
-                                    <button class="btn btn-default btn-sm btn-operation" type="button" data-toggle='batch-remove' data-confirm="确认要批量生成吗,请确认商品数量是否正确?" data-href="<?php echo U('delivery/sub_delivery_list', array('endtime' => $endtime,'starttime' => $starttime,'searchtime' => $gpc['searchtime'] ) );?>">
-                                        <i class='icow icow-shanchu1'></i> 批量生成清单
-            						</button>
-                                </div>
-                            </div>
-                            <table class="table table-responsive">
-                                <thead>
-                                    <tr>
-                						<th style="width:25px;"></th>
-                						<th style="width:100px;text-align:center;">社区ID</th>
-                						<th style="">社区名称</th>
-                						<th style="width: 300px;">配送线路</th>
-                						<th style="width: 100px;">商品总数</th>
-                						<th style="width: 200px;">操作</th>
-                					</tr>
-                                </thead>
-                                <tbody>
-                                    <?php foreach( $list as $item ){ ?>
-                                    <tr>
-                    					<td style="width:25px;">
-                    						<input type='checkbox' value="<?php echo ($item['head_id']); ?>" value="<?php echo ($row['id']); ?>" name="item_checkbox" lay-skin="primary"/>
-                    					</td>
-                    					<td style="width:100px;text-align:center;">
-                    						<?php echo ($item['head_id']); ?>
-                    					</td>
-                    					<td>
-                    						<?php echo ($item['community_name']); ?>
-                    					</td>
-                    					<td>
-                    						<?php echo ($item['line_name']); ?>
-                    					</td>
-                    					<td>
-                    						<?php echo ($item['goods_count']); ?>
-                    					</td>
-                    					<td style="overflow:visible;position:relative">
-                    						<a class='layui-btn layui-btn-primary layui-btn-xs create_list' href="javascript:;" data-href="<?php echo U('delivery/sub_delivery_list', array('head_id' => $item['head_id'],'endtime' => $endtime,'starttime' => $starttime,'searchtime' => $gpc['searchtime'] ));?>" >
-                    							<span data-toggle="tooltip" data-placement="top" title="" data-original-title="生成清单">
-                    								生成清单
-                    							</span>
-                    						</a>
-                    						<a class='layui-btn layui-btn-primary layui-btn-xs head_ordergoods_detail' href="javascript:;" data-href="<?php echo U('delivery/head_ordergoods_detail', array('head_id' => $item['head_id'],'endtime' => $endtime,'starttime' => $starttime,'searchtime' => $gpc['searchtime'],'ok'=>1 ));?>" >
-                    							<span data-toggle="tooltip" data-placement="top" title="" data-original-title="商品详情">
-                    								<i class="icow icow-bianji2"></i>商品详情
-                    							</span>
-                    						</a>
-                    					</td>
-                                    </tr>
-                                    <?php } ?>
-                                </tbody>
-                                <tfoot>
-                                    <tr>
-                                        <td colspan="3" style="padding-left: 0;">
-                							<div class="page-table-header">
-                								<input type="checkbox" type='checkbox' name="checkall" lay-skin="primary" lay-filter="checkboxall">
-                								<div class="btn-group">
-                									<button class="btn btn-default btn-sm btn-operation" type="button" data-toggle='batch-remove' data-confirm="确认要批量生成吗,请确认商品数量是否正确?" data-href="{php echo shopUrl('delivery/sub_delivery_list', array('endtime' => $endtime,'starttime' => $starttime,'searchtime' => $_GPC['searchtime']) )}">
-                										<i class='icow icow-shanchu1'></i> 批量生成清单
-                									</button>
-                								</div>
-                							</div>
-                                        </td>
-                                        <td colspan="3" style="text-align: right">
-                                            <?php echo ($pager); ?>
-                                        </td>
-                                    </tr>
-                                </tfoot>
-                            </table>
-                        </div>
-                    </div>
-                </form>
-            </div>
-        </div>
-    </div>
-</div>
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-    layui.config({
-        base: '/layuiadmin/' //静态资源所在路径
-    }).extend({
-        index: 'lib/index' //主入口模块
-    }).use('index');
-</script>
-
-<script>
-var layer = layui.layer;
-var $;
-var can_sb = true;
-
-layui.use(['jquery', 'layer', 'form'], function(){ 
-    $ = layui.$;
-    var form = layui.form;
-
-    $('.create_list').click(function(){
-		if(!can_sb)
-		{
-			return false;
-		}
-		can_sb = false; 
-        var s_url = $(this).attr('data-href');
-        $.ajax({
-            url:s_url,
-            type:'post',
-            dataType:'json',
-            success:function(info){
-            
-                if(info.status == 0)
-                {
-                    layer.msg(info.result.message,{icon: 1,time: 2000});
-					can_sb = true;
-                }else if(info.status == 1){
-                    var go_url = location.href;
-                    if( info.result.hasOwnProperty("url") )
-                    {
-                        go_url = info.result.url;
-                    }
-                    
-                    layer.msg('生成成功',{time: 1000,
-                        end:function(){
-                            location.href = info.result.url;
-                        }
-                    }); 
-                }
-            }
-        })
-    })
-  
-    $('.deldom').click(function(){
-        var s_url = $(this).attr('data-href');
-        layer.confirm($(this).attr('data-confirm'), function(index){
-            $.ajax({
-                url:s_url,
-                type:'post',
-                dataType:'json',
-                success:function(info){
-                
-                    if(info.status == 0)
-                    {
-                        layer.msg(info.result.message,{icon: 1,time: 2000});
-                    }else if(info.status == 1){
-                        var go_url = location.href;
-                        if( info.result.hasOwnProperty("url") )
-                        {
-                            go_url = info.result.url;
-                        }
-                        
-                        layer.msg('操作成功',{time: 1000,
-                            end:function(){
-                                location.href = info.result.url;
-                            }
-                        }); 
-                    }
-                }
-            })
-        }); 
-    })
-    
-    $('.btn-operation').click(function(){
-    	if(!can_sb)
-		{
-			return false;
-		}
-		can_sb = false; 
-		
-        var ids_arr = [];
-        var obj = $(this);
-        var s_toggle = $(this).attr('data-toggle');
-        var s_url = $(this).attr('data-href');
-        
-        
-        $("input[name=item_checkbox]").each(function() {
-            
-            if( $(this).prop('checked') )
-            {
-                ids_arr.push( $(this).val() );
-            }
-        })
-        if(ids_arr.length < 1)
-        {
-            layer.msg('请选择要操作的内容');
-            can_sb = true;
-        }else{
-            var can_sub = true;
-            if( s_toggle == 'batch-remove' )
-            {
-                var nlb_can = true;
-                
-                layer.confirm($(obj).attr('data-confirm'), function(index){
-					if(nlb_can)
-					{
-						nlb_can = false;
-						$.ajax({
-							url:s_url,
-							type:'post',
-							dataType:'json',
-							data:{ids:ids_arr},
-							success:function(info){
-							
-								if(info.status == 0)
-								{
-									layer.msg(info.result.message,{icon: 1,time: 2000});
-									can_sb = true;
-								}else if(info.status == 1){
-									var go_url = location.href;
-									if( info.result.hasOwnProperty("url") )
-									{
-										go_url = info.result.url;
-									}
-									
-									layer.msg('操作成功',{time: 1000,
-										end:function(){
-											location.href = info.result.url;
-										}
-									}); 
-								}
-							}
-						})
-						
-					}
-                     
-                }, function(index){
-					console.log('cancle confirm');
-					can_sb = true;
-				}); 
-            }else{
-                $.ajax({
-                    url:s_url,
-                    type:'post',
-                    dataType:'json',
-                    data:{ids:ids_arr},
-                    success:function(info){
-                    
-                        if(info.status == 0)
-                        {
-                            layer.msg(info.result.message,{icon: 1,time: 2000});
-                            can_sb = true;
-                        }else if(info.status == 1){
-                            var go_url = location.href;
-                            if( info.result.hasOwnProperty("url") )
-                            {
-                                go_url = info.result.url;
-                            }
-                            
-                            layer.msg('操作成功',{time: 1000,
-                                end:function(){
-                                    location.href = info.result.url;
-                                }
-                            }); 
-                        }
-                    }
-                })
-            }
-        }
-    })
-  
-    form.on('switch(statewsitch)', function(data){
-      
-      var s_url = $(this).attr('data-href')
-      
-      var s_value = 1;
-      if(data.elem.checked)
-      {
-        s_value = 1;
-      }else{
-        s_value = 0;
-      }
-      
-      $.ajax({
-            url:s_url,
-            type:'post',
-            dataType:'json',
-            data:{value:s_value},
-            success:function(info){
-            
-                if(info.status == 0)
-                {
-                    layer.msg(info.result.message,{icon: 1,time: 2000});
-                }else if(info.status == 1){
-                    var go_url = location.href;
-                    if( info.result.hasOwnProperty("url") )
-                    {
-                        go_url = info.result.url;
-                    }
-                    
-                    layer.msg('操作成功',{time: 1000,
-                        end:function(){
-                            location.href = info.result.url;
-                        }
-                    }); 
-                }
-            }
-        })
-    });
-
-    form.on('checkbox(checkboxall)', function(data){
-      if(data.elem.checked)
-      {
-        $("input[name=item_checkbox]").each(function() {
-            $(this).prop("checked", true);
-        });
-        $("input[name=checkall]").each(function() {
-            $(this).prop("checked", true);
-        });
-        
-      }else{
-        $("input[name=item_checkbox]").each(function() {
-            $(this).prop("checked", false);
-        });
-        $("input[name=checkall]").each(function() {
-            $(this).prop("checked", false);
-        });
-      }
-      
-      form.render('checkbox');
-    });
-  
-    //监听提交
-    form.on('submit(formDemo)', function(data){
-        $.ajax({
-            url: data.form.action,
-            type: data.form.method,
-            data: data.field,
-            dataType:'json',
-            success: function (info) {
-              
-                if(info.status == 0)
-                {
-                    layer.msg(info.result.message,{icon: 1,time: 2000});
-                }else if(info.status == 1){
-                    var go_url = location.href;
-                    if( info.result.hasOwnProperty("url") )
-                    {
-                        go_url = info.result.url;
-                    }
-                    
-                    layer.msg('操作成功',{time: 1000,
-                        end:function(){
-                            location.href = info.result.url;
-                        }
-                    }); 
-                }
-            }
-        });
-        return false;
-    });
-})
-
-</script>
-<script>
-var ajax_url = "";
-$(function(){
-    $(".head_ordergoods_detail").click(function () {
-        var s_url = $(this).attr('data-href');
-        ajax_url = s_url;
-        $.ajax({
-                url:s_url,
-                type:"get",
-                success:function(shtml){
-					layer.open({
-					  type: 1, 
-					  area: '50%',
-					  content: shtml //这里content是一个普通的String
-					});
-				   
-                }   
-        })
-    });
-
-    var sub_url = "<?php echo U('delivery/sub_delivery_list');?>";
-    $(document).delegate(".modal-footer .btn-primary","click",function(){
-        var s_data = $('#ajaxModal form').serialize();
-        $.ajax({
-            url: sub_url,
-            type:'post',
-            dataType:'json',
-            data: s_data,
-            success:function(info){
-                if(info.status == 0)
-                {
-                    layer.msg(info.result.message,{icon: 1,time: 2000});
-                }else if(info.status == 1){
-                    var go_url = location.href;
-                    if( info.result.hasOwnProperty("url") )
-                    {
-                        go_url = info.result.url;
-                    }
-                    
-                    layer.msg('操作成功',{time: 1000,
-                        end:function(){
-                            location.href = info.result.url;
-                        }
-                    }); 
-                }
-            }
-        })
-        return false;
-    })
-    
-    
-})
-</script>
-<div id="ajaxModal" class="modal fade" style="display: none;"></div>
-</body>
-</html>

+ 0 - 310
Runtime/Cache/Seller/f8933977a3ee7ea47161438390c291c8.php

@@ -1,310 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?>
-<!DOCTYPE html>
-<html lang="en">
-	<head>
-		<meta charset="utf-8" />
-		<title>登录 - 商家管理系统</title>
-
-		<meta name="description" content="User login page" />
-		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
-
-		<!-- basic styles -->
-
-		<link href="./Themes/Seller/Public/css/bootstrap.min.css" rel="stylesheet" />
-		<link rel="stylesheet" href="./Themes/Seller/Public/css/font-awesome.min.css" />
-
-		<!--[if IE 7]>
-		  <link rel="stylesheet" href="./Themes/Seller/Public/css/font-awesome-ie7.min.css" />
-		<![endif]-->
-
-		<!-- ace styles -->
-
-		<link rel="stylesheet" href="./Themes/Seller/Public/css/ace.min.css" />
-		<link rel="stylesheet" href="./Themes/Seller/Public/css/ace-rtl.min.css" />
-		<link type="image/x-icon" href="/Common/image/ypci.jpg" rel="icon">
-  		<link type="image/x-icon" href="/Common/image/ypci.jpg" rel="bookmark">
-		<!--[if lte IE 8]>
-		  <link rel="stylesheet" href="./Themes/Seller/Public/css/ace-ie.min.css" />
-		<![endif]-->
-
-		<!-- inline styles related to this page -->
-
-		<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
-
-		<!--[if lt IE 9]>
-		<script src="./Themes/Seller/Public/js/html5shiv.js"></script>
-		<script src="./Themes/Seller/Public/js/respond.min.js"></script>
-		<![endif]-->
-	</head>
-	<style>
-		.btn-group-vertical>.btn-group:after, .btn-group-vertical>.btn-group:before, .btn-toolbar:after, .btn-toolbar:before, .clearfix:after, .clearfix:before, .container-fluid:after, .container-fluid:before, .container:after, .container:before, .dl-horizontal dd:after, .dl-horizontal dd:before, .form-horizontal .form-group:after, .form-horizontal .form-group:before, .modal-footer:after, .modal-footer:before, .modal-header:after, .modal-header:before, .nav:after, .nav:before, .navbar-collapse:after, .navbar-collapse:before, .navbar-header:after, .navbar-header:before, .navbar:after, .navbar:before, .pager:after, .pager:before, .panel-body:after, .panel-body:before, .row:after, .row:before {
-		    content: " ";
-		    display: table;
-		}
-		.panel {
-		    margin-bottom: 20px;
-		    background-color: #fff;
-		    border: 1px solid transparent;
-		    border-radius: 4px;
-		    box-shadow: 0 1px 1px rgba(0,0,0,.05);
-		}
-		.panel-default {
-		    border-color: #ddd;
-		}
-		.panel {
-		    margin-top: 20px;
-		    border: 1px solid #e2e2e2;
-		    background: #fff;
-		}
-		.panel-body {
-		    padding: 15px;
-		}
-		.page-header {
-		    padding-bottom: 9px;
-		    margin: 40px 0 20px;
-		    border-bottom: 1px solid #eee;
-		}
-		.nav_logo {
-		    background: url(/Common/image/pdd_small.png) no-repeat;
-		}
-		.nav_logo, .nav_logo_p {
-		    display: inline-block;
-		    width: 250px;
-		    height: 32px;
-		    margin-bottom: -5px;
-		    font: 0/0 a;
-		}
-		.form-group {
-		    margin-bottom: 15px;
-		}
-		.form-horizontal .form-group {
-		    margin-left: -15px;
-		    margin-right: -15px;
-		}
-		.input-group {
-		    position: relative;
-		    display: table;
-		    border-collapse: separate;
-		}
-		.input-group-addon, .input-group-btn, .input-group .form-control {
-		    display: table-cell;
-		}
-		.input-group-addon, .input-group-btn {
-		    width: 1%;
-		    white-space: nowrap;
-		    vertical-align: middle;
-		}
-		.input-group-btn {
-		    font-size: 0;
-		    white-space: nowrap;
-		}
-		.input-group-btn, .input-group-btn>.btn {
-		    position: relative;
-		}
-		.form-control, output {
-		    display: block;
-		    font-size: 14px;
-		    line-height: 1.42857143;
-		    color: #555;
-		}
-		.form-control {
-		    width: 100%;
-		    height: 34px;
-		    padding: 6px 12px;
-		    background-color: #fff;
-		    background-image: none;
-		    border: 1px solid #ccc;
-		    border-radius: 4px;
-		    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
-		    -webkit-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
-		    transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
-		}	
-		.input-group .form-control {
-		    position: relative;
-		    z-index: 2;
-		    float: left;
-		    width: 100%;
-		    margin-bottom: 0;
-		}
-		.btn {
-		    display: inline-block;
-		    margin-bottom: 0;
-		    font-weight: 400;
-		    text-align: center;
-		    vertical-align: middle;
-		    touch-action: manipulation;
-		    cursor: pointer;
-		    background-image: none;
-		    border: 1px solid transparent;
-		    white-space: nowrap;
-		    padding: 6px 12px;
-		    font-size: 14px;
-		    line-height: 1.42857143;
-		    border-radius: 4px;
-		    -webkit-user-select: none;
-		    -moz-user-select: none;
-		    -ms-user-select: none;
-		    user-select: none;
-		}
-		.btn-default {
-		    color: #333;
-		    background-color: #fff !important;
-		    border-color: #ccc;
-		}
-		.input-group-btn, .input-group-btn>.btn {
-		    position: relative;
-		}
-		.input-group-btn:first-child>.btn, .input-group-btn:first-child>.btn-group {
-		    margin-right: -1px;
-		}
-		.glyphicon {
-			color: #333;
-		    position: relative;
-		    top: 1px;
-		    display: inline-block;
-		    font-family: Glyphicons Halflings;
-		    font-style: normal;
-		    font-weight: 400;
-		    line-height: 1;
-		    -webkit-font-smoothing: antialiased;
-		    -moz-osx-font-smoothing: grayscale;
-		}
-		.glyphicon-user:before {
-		    content: "\E008";
-		}
-		.glyphicon-lock:before {
-		    content: "\E033";
-		}
-		.btn-block {
-		    display: block;
-		    width: 100%;
-		}
-		.btn.disabled, .btn[disabled], fieldset[disabled] .btn {
-		    cursor: not-allowed;
-		    opacity: .65;
-		    filter: alpha(opacity=65);
-		    box-shadow: none;
-		}
-		.has-success .form-control:focus {
-		    border-color: #2b542c;
-		    box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168;
-		}	
-		.input-group .form-control:focus {
-		    z-index: 3;
-		}
-		
-
-		.nav_logo {
-			background: url(/Common/image/pdd_small2.png) no-repeat;
-		}
-	</style>
-	<body class="login-layout">
-		<div class="main-container">
-			<div class="main-content" style="margin:150px auto;">
-				<div class="container">
-					<div class="row">
-						
-							<!-- panel begin -->
-							<div class="col-md-offset-1 col-md-10 row panel panel-default" style="padding:20px 40px 80px;">
-								<div class="panel-body" data-reactid=".0.0.0.0.0.1:$0">
-									<div class="col-md-6" data-reactid=".0.0.0.0.0.1:$0.0">
-										<?php if(!empty($seller_backimage)){ ?>
-										
-										<img src="Uploads/image/<?php echo $seller_backimage; ?>" data-reactid=".0.0.0.0.0.1:$0.0.0">
-										<?php }else { ?>
-										<img src="/Common/image/pdd.png" data-reactid=".0.0.0.0.0.1:$0.0.0">
-										<?php } ?>
-									</div>
-									
-									<form action="<?php echo U('login');?>" method="post" class="form-horizontal col-md-6" data-reactid=".0.0.0.0.0.1:$0.1">
-										<div style="text-align:center;" class="page-header" data-reactid=".0.0.0.0.0.1:$0.1.0">
-											<h1 data-reactid=".0.0.0.0.0.1:$0.1.0.0">
-												<?php if(!empty($admin_xxximage)){ ?>
-												<a href="#Login" style="background:url(Uploads/image/<?php echo $admin_xxximage; ?>) no-repeat 0 0;" class="nav_logo" data-reactid=".0.0.0.0.0.1:$0.1.0.0.0"></a>
-												<?php }else { ?>
-												<a href="#Login" class="nav_logo" data-reactid=".0.0.0.0.0.1:$0.1.0.0.0"></a>
-												<?php } ?>
-											</h1>
-										</div>
-										<div data-reactid=".0.0.0.0.0.1:$0.1.1"></div>
-										<div style="margin:0px 60px;" data-reactid=".0.0.0.0.0.1:$0.1.2">
-											<div class="form-group" data-reactid=".0.0.0.0.0.1:$0.1.2.0">
-												<div class="input-group" data-reactid=".0.0.0.0.0.1:$0.1.2.0.1:$input-group">
-													<span class="input-group-btn" data-reactid=".0.0.0.0.0.1:$0.1.2.0.1:$input-group.1">
-														<button type="button" tabindex="-1" class="btn btn-default" data-reactid=".0.0.0.0.0.1:$0.1.2.0.1:$input-group.1.0">
-															<span class="glyphicon glyphicon-user" data-reactid=".0.0.0.0.0.1:$0.1.2.0.1:$input-group.1.0.0"></span>
-
-														</button>
-													</span>
-													<input type="text" placeholder="请输入用户名或手机号" class="form-control" name="username" >
-												</div>
-											</div>
-											<div class="form-group" data-reactid=".0.0.0.0.0.1:$0.1.2.1">
-												<div class="input-group" data-reactid=".0.0.0.0.0.1:$0.1.2.1.1:$input-group">
-													<span class="input-group-btn" data-reactid=".0.0.0.0.0.1:$0.1.2.1.1:$input-group.1">
-														<button type="button"  tabindex="-1" class="btn btn-default" data-reactid=".0.0.0.0.0.1:$0.1.2.1.1:$input-group.1.0">
-															<span class="glyphicon glyphicon-lock" data-reactid=".0.0.0.0.0.1:$0.1.2.1.1:$input-group.1.0.0"></span>
-														</button>
-													</span>
-													<input placeholder="密码" type="password" class="form-control" name="password" >
-												</div>
-											</div>
-											<div data-reactid=".0.0.0.0.0.1:$0.1.2.2">
-												<button  type="submit" class="btn-block btn" data-reactid=".0.0.0.0.0.1:$0.1.2.2.0">登录</button>
-												<br/>
-												<div class="check-tips" style="color:red;"></div>
-											</div>
-										</div>
-									</form>
-								</div>
-								
-							</div>
-							<!-- panel end -->
-							
-						
-					</div><!-- /.row -->
-				</div>
-			</div>
-		</div><!-- /.main-container -->
-		<div style="text-align:center; color:#ffffff;"><?php echo ($technical_support); ?></div>
-		<div style="text-align:center; padding-bottom: 50px; color:#ffffff;">备案号:<a href="//beian.miit.gov.cn/" target="_blank" style="color:#ffffff;"><?php echo ($record_number); ?></a> </div> 
-
-		<!-- basic scripts -->
-
-
-		<script src="/Common/js/jquery/jquery-2.0.3.min.js"></script>
-
-		<!-- inline scripts related to this page -->
-
-		<script type="text/javascript">
-			function show_box(id) {
-			 jQuery('.widget-box.visible').removeClass('visible');
-			 jQuery('#'+id).addClass('visible');
-			}
-		</script>
-		<script type="text/javascript">
-    	
-    	//表单提交
-
-
-    	$("form").submit(function(){
-    		var self = $(this);
-    		$.post(self.attr("action"), self.serialize(), success, "json");
-    		return false;
-
-    		function success(data){
-    			if(data.status){
-    				window.location.href = data.url;
-    			} else {
-    				self.find(".check-tips").text(data.info);
-    				$('.check-tips').fadeIn();
-    				setTimeout("$('.check-tips').fadeOut()",3000)
-    				
-    			}
-    		}
-    	});
-
-	
-    </script>
-	</body>
-</html>

+ 0 - 673
Runtime/Cache/Seller/f96a47546a049a16a2a03a7b073077ad.php

@@ -1,673 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
-  <!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-  <!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-  <![endif]-->
-
-  <link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-  <link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-  <script type="text/javascript">
-      window.sysinfo = {
-        <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-        <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-        <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-        <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-        'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-        'siteroot': '<?php echo ($_W['siteroot']); ?>',
-        'siteurl': '<?php echo ($_W['siteurl']); ?>',
-        'attachurl': '<?php echo ($_W['attachurl']); ?>',
-        'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-        'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-        'module': {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-        'cookie': {'pre': ''},
-        'account': <?php echo json_encode($_W['account']);?>,
-      };
-  </script>
-		
-  <script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-  <script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-  <script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-  <script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-  <script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-  <script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
-  <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-  <link href="/static/css/snailfish.css" rel="stylesheet">
-  <style>
-    tbody tr td{
-        position: relative;
-    }
-    tbody tr  .icow-weibiaoti--{
-        visibility: hidden;
-        display: inline-block;
-        color: #fff;
-        height:18px;
-        width:18px;
-        background: #e0e0e0;
-        text-align: center;
-        line-height: 18px;
-        vertical-align: middle;
-    }
-    tbody tr:hover .icow-weibiaoti--{
-        visibility: visible;
-    }
-    tbody tr  .icow-weibiaoti--.hidden{
-        visibility: hidden !important;
-    }
-    .full .icow-weibiaoti--{
-        margin-left:10px;
-    }
-    .full>span{
-        display: -webkit-box;
-        display: -webkit-flex;
-        display: -ms-flexbox;
-        display: flex;
-        vertical-align: middle;
-        align-items: center;
-    }
-    tbody tr .label{
-        margin: 5px 0;
-    }
-    .goods_attribute a{
-        cursor: pointer;
-    }
-    .newgoodsflag{
-        width: 22px;height: 16px;
-        background-color: #ff0000;
-        color: #fff;
-        text-align: center;
-        position: absolute;
-        bottom: 70px;
-        left: 57px;
-        font-size: 12px;
-    }
-	.a{cursor: pointer;}
-	.img-40 {
-		width: 40px;
-		height: 40px;
-	}
-	.daterangepicker select.ampmselect, .daterangepicker select.hourselect, .daterangepicker select.minuteselect{
-		width:auto!important;
-	}
-	
-	.div-inline{ 
-		display:inline-block; 
-		text-align:center;
-		height:130px;
-		width:10%;
-		margin-right: .5%;
-		padding: 35px 0;
-		border-radius:15px;
-		} 
-	.div-inline2{ 
-		display:inline-block; 
-		text-align:center;
-		height:45px;
-		width:9%;
-		padding: 5px 0;
-	} 
-	.b{
-		margin-left: 20px;
-		display: block;
-		text-align: left;
-		font-weight: lighter;
-		font-size: 30px;
-		color: #fff;
-	}
-	.span{
-		font-size: 14px;
-		color: #fff;
-		margin-left: 20px;
-		display: block;
-		text-align: left;
-		margin-top: 12px;
-	}
-	.list-tb-div table{
-		margin-bottom: 1px;
-	}
-</style>
-</head>
-<body layadmin-themealias="default">
-
-
-<table id="demo" lay-filter="test"></table>
-
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">营业数据
-	</div>
-		<div class="layui-tab layui-tab-brief" >
-		  <ul class="layui-tab-title">
-				<li  <?php if( empty($tabid) || $tabid=='0' ){ ?>class="layui-this"<?php } ?>><a href="<?php echo U($cur_controller, array('reports_index' => 0));?>">本周</a></li>
-				<li  <?php if( $tabid=='1' ){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U($cur_controller, array('reports_index' => 1));?>">上周</a></li>
-				<li  <?php if( $tabid=='2' ){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U($cur_controller, array('reports_index' => 2));?>">本月</a></li>
-				<li  <?php if( $tabid=='3' ){ ?>class="layui-this"<?php } ?> ><a href="<?php echo U($cur_controller, array('reports_index' => 3));?>">上月</a></li>
-				<li style="float: right;margin-right: 100px;">
-					<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>
-				</li>
-		  </ul>
-		
-		</div>
-		
-		<div class="layui-card-body" style="padding:15px;padding-bottom:0px;">
-		
-			
-			<div>
-				<div class="div-inline" style="background: rgb(246, 191, 0);" >
-					<b class="b"><?php echo ($zongdanshu); ?></b>
-					<span class="span">订单笔数</span>
-				</div> 
-				
-				<div class="div-inline" style="background: rgb(171,130,255);">
-					<?php if( empty($quxiaoshu)){ ?> <b class="b">0</b> <?php }else{ ?><b class="b"><?php echo ($quxiaoshu); ?></b><?php } ?>
-					<span class="span">取消笔数</span>
-				</div> 
-				<div class="div-inline" style="background: rgb(243, 85, 14);">
-					<?php	 $zongxiadan = sprintf("%.2f",$zongxiadan); ?>
-					<b class="b"><?php echo ($zongxiadan); ?></b>
-					<span class="span">下单金额</span>
-				</div> 
-				
-				
-				<div class="div-inline" style="background: rgb(81, 194, 132);">
-					<?php if( empty($wait_refund_count)){ ?> <b class="b">0</b> <?php }else{ ?><b class="b"><?php echo ($wait_refund_count); ?></b><?php } ?>
-					<span class="span">申请退款笔数</span>
-				</div> 
-				<div class="div-inline" style="background: rgb(80, 164, 254);">
-					<?php	 $wait_refund_money = sprintf("%.2f",$wait_refund_money); ?>
-					<?php if( empty($wait_refund_money)){ ?> <b class="b">0</b> <?php }else{ ?><b class="b"><?php echo ($wait_refund_money); ?></b><?php } ?>
-					<span class="span">申请退款金额</span>
-				</div>
-				
-				<div class="div-inline" style="background: rgb(81, 194, 132);">
-					<?php if( empty($has_refund_count)){ ?> <b class="b">0</b> <?php }else{ ?><b class="b"><?php echo ($has_refund_count); ?></b><?php } ?>
-					<span class="span">已退款笔数</span>
-				</div> 
-				<div class="div-inline" style="background: rgb(80, 164, 254);">
-					<?php	 $has_refund_money = sprintf("%.2f",$has_refund_money); ?>
-					<?php if( empty($has_refund_money)){ ?> <b class="b">0</b> <?php }else{ ?><b class="b"><?php echo ($has_refund_money); ?></b><?php } ?>
-					<span class="span">已退款金额</span>
-				</div>
-				
-				<div class="div-inline" style="background: rgb(208, 109, 106);">
-					<?php	 $quxiao = sprintf("%.2f",$quxiao); ?>
-					<b class="b"><?php echo ($quxiao); ?></b>
-					<span class="span">取消金额</span>
-				</div> 
-				
-				<div class="div-inline" style="background: rgb(81, 193, 194);">
-					<?php	 $xaioji = sprintf("%.2f",$xaioji); ?>
-					<?php if( empty($xaioji)){ ?> <b class="b">0</b> <?php }else{ ?><b class="b"><?php echo ($xaioji); ?></b><?php } ?>
-					<span class="span">小计金额</span>
-				</div>
-			</div>
-			<br/>
-			
-			<form action="" class="layui-form" lay-filter="example" method="post" >
-       
-				
-				<div class="row">
-					<div class="list-div list-tb-div">
-						<table cellpadding="0" cellspacing="0" border="0" style="background-color:#fff;">
-                           
-                             <tr>
-                               <th class="div-inline2" style="font-size:15px;font-weight:bold;">下单日期</th>
-							   <th class="div-inline2" style="font-size:15px;font-weight:bold;">订单数</th>
-							   <th class="div-inline2" style="font-size:15px;font-weight:bold;">下单金额</th>
-							   
-							   
-							   <th class="div-inline2" style="font-size:15px;font-weight:bold;">等待退款笔数</th>
-							   <th class="div-inline2" style="font-size:15px;font-weight:bold;">等待退款金额</th>
-							   <th class="div-inline2" style="font-size:15px;font-weight:bold;">已退款笔数</th>
-							   <th class="div-inline2" style="font-size:15px;font-weight:bold;">已退款金额</th>
-							   <th class="div-inline2" style="font-size:15px;font-weight:bold;">取消笔数</th>
-							   <th class="div-inline2" style="font-size:15px;font-weight:bold;">取消金额</th>
-							   <th class="div-inline2" style="font-size:15px;font-weight:bold;">小计</th>
-                             <tr>
-                            
-                        </table>
-						
-						<table cellpadding="0" cellspacing="0" border="0" style="background-color:#fff;">
-							
-							<?php foreach($list2 as $k => $w){ ?>	
-								<tr>
-									<th width="15%" class="div-inline2"><?php echo ($w["date"]); ?></th>
-
-									<th width="15%" class="div-inline2"><?php echo ($w["count"]); ?></th>
-									<!--$order_amount = $w['total']+$w['shipping_fare']-$w['voucher_credit']-$w['fullreduction_money']-$w['score_for_money'];-->
-									<?php
- $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); ?>	
-									<th width="15%" class="div-inline2"><?php echo ($order_amount); ?></th>
-
-									<th  class="div-inline2"><?php echo ($w["daywait_refund_count"]); ?></th>
-									<?php	 $w["daywait_refund_money"] = sprintf("%.2f",$w["daywait_refund_money"]); ?>
-									<th  class="div-inline2"><?php echo ($w["daywait_refund_money"]); ?></th>
-									
-									<th  class="div-inline2"><?php echo ($w["dayhas_refund_count"]); ?></th>
-									<?php	 $w["dayhas_refund_money"] = sprintf("%.2f",$w["dayhas_refund_money"]); ?>
-									<th  class="div-inline2"><?php echo ($w["dayhas_refund_money"]); ?></th>
-									
-									<th width="15%" class="div-inline2"><?php echo ($w["dayqu"]); ?></th>
-									
-									<?php	 $w["dayquxiao"] = sprintf("%.2f",$w["dayquxiao"]); ?>
-									
-									<th width="15%" class="div-inline2"><?php echo ($w["dayquxiao"]); ?></th>
-									<!--$order_ji = $order_amount - $w["daytuikuan"]-$w["dayquxiao"];-->
-									<?php	 $order_ji = $order_amount - $w["dayquxiao"]; $order_ji = sprintf("%.2f",$order_ji); ?>	
-									<th width="15%" class="div-inline2"><?php echo ($order_ji); ?></th>
-								</tr>
-							<?php } ?>
-                            
-                        </table>
-					</div>
-				</div>
-				
-				
-				
-			</form>
-		</div>
-	</div>
-</div>
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  
-  
-	$('.deldom').click(function(){
-		var s_url = $(this).attr('data-href');
-		layer.confirm($(this).attr('data-confirm'), function(index){
-						
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						success:function(info){
-						$('#ajaxModal').removeClass('in');
-						$('.modal-backdrop').removeClass('in');
-							if(info.status == 0)
-							{
-							
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-								
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				},function(){
-					console.log(232323);
-					$('#ajaxModal').removeClass('in');
-					$('.modal-backdrop').removeClass('in');
-				}); 
-		return	false;
-	})
-	
-	$('.btn-operation').click(function(){
-		var ids_arr = [];
-		var obj = $(this);
-		var s_toggle = $(this).attr('data-toggle');
-		var s_url = $(this).attr('data-href');
-		
-		
-		$("input[name=item_checkbox]").each(function() {
-			
-			if( $(this).prop('checked') )
-			{
-				ids_arr.push( $(this).val() );
-			}
-		})
-		if(ids_arr.length < 1)
-		{
-			layer.msg('请选择要操作的内容');
-		}else{
-			var can_sub = true;
-			if( s_toggle == 'batch-remove' )
-			{
-				can_sub = false;
-				
-				layer.confirm($(obj).attr('data-confirm'), function(index){
-					 $.ajax({
-						url:s_url,
-						type:'post',
-						dataType:'json',
-						data:{ids:ids_arr},
-						success:function(info){
-						
-							if(info.status == 0)
-							{
-								layer.msg(info.result.message,{icon: 1,time: 2000});
-							}else if(info.status == 1){
-								var go_url = location.href;
-								if( info.result.hasOwnProperty("url") )
-								{
-									go_url = info.result.url;
-								}
-								
-								layer.msg('操作成功',{time: 1000,
-									end:function(){
-										location.href = info.result.url;
-									}
-								}); 
-							}
-						}
-					})
-				}); 
-			}else{
-				$.ajax({
-					url:s_url,
-					type:'post',
-					dataType:'json',
-					data:{ids:ids_arr},
-					success:function(info){
-					
-						if(info.status == 0)
-						{
-							layer.msg(info.result.message,{icon: 1,time: 2000});
-						}else if(info.status == 1){
-							var go_url = location.href;
-							if( info.result.hasOwnProperty("url") )
-							{
-								go_url = info.result.url;
-							}
-							
-							layer.msg('操作成功',{time: 1000,
-								end:function(){
-									location.href = info.result.url;
-								}
-							}); 
-						}
-					}
-				})
-			}
-		}
-	})
-
-	form.on('switch(restwsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var rest = 1;
-	  if(data.elem.checked)
-	  {
-		rest = 1;
-	  }else{
-		rest = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{rest:rest},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	}); 
-	form.on('switch(enablewsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var enable = 1;
-	  if(data.elem.checked)
-	  {
-		enable = 1;
-	  }else{
-		enable = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{enable:enable},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	}); 
-	
-	form.on('switch(statewsitch)', function(data){
-	  
-	  var s_url = $(this).attr('data-href')
-	  
-	  var state = 1;
-	  if(data.elem.checked)
-	  {
-		state = 1;
-	  }else{
-		state = 0;
-	  }
-	  
-	  $.ajax({
-			url:s_url,
-			type:'post',
-			dataType:'json',
-			data:{state:state},
-			success:function(info){
-			
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-	});  
-	form.on('checkbox(checkboxall)', function(data){
-	  
-	  if(data.elem.checked)
-	  {
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", true);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", true);
-		});
-		
-	  }else{
-		$("input[name=item_checkbox]").each(function() {
-			$(this).prop("checked", false);
-		});
-		$("input[name=checkall]").each(function() {
-			$(this).prop("checked", false);
-		});
-	  }
-	  
-	  form.render('checkbox');
-	});
-  
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.message,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-})
-
-</script>  
-<script>
-var ajax_url = "";
-$(function(){
-
-	$("[data-toggle='ajaxModal']").click(function () {
-        var s_url = $(this).attr('data-href');
-		ajax_url = s_url;
-		console.log(23);
-       $.ajax({
-				url:s_url,
-				type:"get",
-				success:function(shtml){
-					$('#ajaxModal').html(shtml);
-					$("#ajaxModal").modal();
-				}	
-		})
-    });
-	$(document).delegate(".modal-footer .btn-primary","click",function(){
-		var s_data = $('#ajaxModal form').serialize();
-		$.ajax({
-			url:ajax_url,
-			type:'post',
-			dataType:'json',
-			data:s_data,
-			success:function(info){
-				if(info.status == 0)
-				{
-					layer.msg(info.result.message,{icon: 1,time: 2000});
-				}else if(info.status == 1){
-					var go_url = location.href;
-					if( info.result.hasOwnProperty("url") )
-					{
-						go_url = info.result.url;
-					}
-					
-					layer.msg('操作成功',{time: 1000,
-						end:function(){
-							location.href = info.result.url;
-						}
-					}); 
-				}
-			}
-		})
-		return false;
-	})
-	
-	
-})
-</script>
-<div id="ajaxModal" class="modal fade" style="display: none;">
-
-</div>
-
-<script>
-    //没有选中时间段不能导出
-    $(function () {
-        $('.btn-submit').click(function () {
-            var e = $(this).data('export');
-            if(e==1 ){
-                if($('#keyword').val() !='' ){
-                    $('#export').val(1);
-                    $('#search').submit();
-                }else if($('#searchtime').val()!=''){
-                    $('#export').val(1);
-                    $('#search').submit();
-                }else{
-                   $('#export').val(1);
-                    $('#search').submit();
-                    return;
-                }
-            }else{
-                $('#export').val(0);
-                $('#search').submit();
-            }
-        })
-    })
-</script>
-</body>

+ 0 - 340
Runtime/Cache/Seller/fde2f73d5b86111f14ef7d3e16102128.php

@@ -1,340 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><style>
-.line_p{line-height:26px;font-size:13px;margin-top:5px;}
-.goods_refund_form th{border: 1px solid #efefef;line-height: 34px;}
-.goods_refund_form td{border: 1px solid #efefef;line-height: 34px;}
-.w100{width:100px;}
-.lh30{line-height:30px;font-size:13px;}
-.mrt8{margin-top:8px;}
-.blu{color:blue;}
-</style>
-<form class="form-horizontal form-validate" action="<?php echo U('order/oprefund_goods_do');?>" method="post" enctype="multipart/form-data">
-	<input type='hidden' name='id' value='<?php echo ($id); ?>' />
-	<input type='hidden' name='order_goods_id' value='<?php echo ($order_goods_id); ?>' />
-
-	<div class="modal-dialog">
-           <div class="modal-content">
-            <div class="modal-header">
-                <button data-dismiss="modal" class="close" type="button">×</button>
-                <h4 class="modal-title">退款</h4>
-				 
-            </div>
-            <div class="modal-body" style = "padding: 10px;" >
-			        <div style="display: flex">
-						<div class="goods_refund_form" style="width:100%;display: flex;flex-direction: column;justify-content: center;align-items: flex-start;padding-left: 5px">
-							<table style="border: 1px solid #efefef;width:100%;">
-								<tr>
-									<th style="width:40%;text-align:center;">商品标题</th>
-									<th style="width:20%;text-align:center;">商品数量</th>
-									<th style="width:30%;text-align:center;">商品价格</th>
-								</tr>
-								<tr>
-									<td style="overflow: visible;text-align:center;padding-top: 10px;">
-										<?php echo ($order_goods_info['name']); ?>
-									</td>
-									<td style="text-align:center;">
-										<?php echo ($total_quantity); ?>个<?php if($has_refund_quantity > 0){ ?>(已退<?php echo ($has_refund_quantity); ?>)<?php } ?>
-									</td>
-									<td style="text-align:center;">
-										¥<?php echo round($order_goods_info['price'] ,2);?>
-									</td>
-								</tr>
-							</table>
-							
-						</div>
-						<div style="clear:both;"></div>
-					</div>
-					<?php if($payment_code == 'cashon_delivery'){ ?>
-						<div style="color:red;line-height: 16px;font-size: 12px;margin: 5px;">该订单为“货到付款”订单,订单退款金额只保留记录到订单操作中不作实际退款(不退至用户余额或微信账户),实际退款金额请线下和用户协商解决</div>
-					<?php } ?>
-					<p class="lh30 mrt8"><label class="w100">退款数量:</label>可退<b class="blu"><?php echo ($total_quantity); ?></b>个<?php if($has_refund_quantity > 0){ ?>(已退<?php echo ($has_refund_quantity); ?>)<?php } ?></p>
-					
-					<?php if($total_quantity > 0){ ?>
-					<p class="lh30 ">
-						<label class="w100">
-						<label><input type="checkbox" id="ckall" value ="1" />&nbsp;全选</label>
-						</label>
-						<?php for( $i =0; $i < $total_quantity; $i++ ){ ?>
-						<label><input type="checkbox" class="ref_goods" value ="1" />&nbsp;<?php echo ($order_goods_info['name']); ?></label>
-						<?php } ?>
-						
-						
-						<?php for( $i =0; $i < $has_refund_quantity; $i++ ){ ?>
-						<label><input type="checkbox" disabled /><font style="text-decoration:line-through;">&nbsp;<?php echo ($order_goods_info['name']); ?>(已退款)</font></label>
-						<?php } ?>
-					</p>
-					<?php } ?>
-					
-					<?php  $total = $free_tongji; $score_for_money = $order_goods_info['score_for_money']; $free_tongji = $total; if( !empty($presale_info) ) { $free_tongji = round($free_tongji - $presale_info['presale_for_ordermoney'], 2); } if($free_tongji < 0){ $free_tongji = 0; } $refund_one_money = round( $free_tongji/$total_quantity , 2); ?>
-					<?php if( !empty( $score_for_money ) && $score_for_money > 0 ){ ?>
-					<p class="lh30"><label class="w100">积分抵扣:</label>¥<?php echo ($score_for_money); ?></p>
-					<?php } ?>
-					<p class="lh30"><label class="w100">最多退款:</label>¥<?php echo ($free_tongji); ?>
-
-						<?php if( !empty($presale_info) ){ ?>
-						<span style="color:red;">&nbsp;&nbsp;&nbsp;&nbsp;预售定金:<?php echo ($presale_info['presale_for_ordermoney']); ?>元不退款,仅退尾款</span>
-						<?php } ?>
-					</p>
-					<p class="lh30"  style="display:none;" >
-						<label class="w100">选中商品最多退款金额:</label>
-						<input type="text" style="padding:2px;height:25px;border: 1px solid #ccc;" name="refund_money2" id="refund_money2" placeholder="退款金额" value="0"  />
-					</p>	
-					<p class="lh30">
-						<label class="w100">退款金额:</label>
-						<input type="text" style="padding:2px;height:25px;border: 1px solid #ccc;" name="refund_money" id="refund_money" placeholder="退款金额" value="0"  />
-					</p>
-					
-					<div style="height:8px;"></div>
-					<input type="hidden" id="is_has_refund_deliveryfree" name="is_has_refund_deliveryfree" value="<?php echo $is_has_refund_deliveryfree;?>"/>
-					<?php  if($is_has_refund_deliveryfree == 1){ ?>
-					<p class="line_p">
-						<label class="w100">配送费:</label>
-						<?php if($shipping_fare <= 0){ ?>
-							&nbsp;0
-						<?php }else{ ?>
-						<input type="checkbox" id="is_refund_shippingfare" name="is_refund_shippingfare" checked value ="1" />&nbsp;
-						<?php if( $delivery == 'express' ){ ?>	
-							可退“快递配送费” ¥<?php echo $shipping_fare - $has_refund_quantity * round( 1/($total_quantity+$has_refund_quantity) * $shipping_fare,2); ?>,选中退配送费:¥ <input type="text" disabled="disabled" name="select_shipping_fare" id="select_shipping_fare" style="padding:2px;height:25px;border: 0px; background: #fff;width:100px;" value="0" />
-						<?php }else if( $delivery == 'localtown_delivery' ){ ?>
-							可退“同城配送费” ¥<?php echo $shipping_fare - $has_refund_quantity * round( 1/($total_quantity+$has_refund_quantity) * $shipping_fare,2); ?>,选中退配送费:¥ <input type="text" disabled="disabled" name="select_shipping_fare" id="select_shipping_fare" style="padding:2px;height:25px;border: 0px ; background: #fff;width:100px;" value="0" />
-						<?php }else if( $delivery == 'tuanz_send' ){ ?>
-							可退“团长配送费” ¥<?php echo $shipping_fare - $has_refund_quantity * round( 1/($total_quantity+$has_refund_quantity) * $shipping_fare,2); ?>,选中退配送费:¥ <input type="text" disabled="disabled" name="select_shipping_fare" id="select_shipping_fare" style="padding:2px;height:25px;border: 0px ; background: #fff;width:100px;" value="0" />
-						<?php } ?>
-						<?php } ?>
-					</p>
-					<?php }else{ ?>
-					<p class="line_p">
-						<label class="w100">配送费:&nbsp;&nbsp;&nbsp;&nbsp;后台设置不退配送费</label>
-					</p>
-					<?php } ?>
-					<p class="line_p">
-						<label class="w100">其他操作:</label>
-						<input type="checkbox" id="is_back_sellcount" checked name="is_back_sellcount" value ="1"  />&nbsp;
-						退库存以及减销量&nbsp;<input type="text" name="refund_quantity" id="refund_quantity" style="padding:2px;height:25px;border: 1px solid #ccc;width:100px;" value="0" />&nbsp;个(最多可退<?php echo ($total_quantity); ?>个)
-						<?php if( $use_score > 0 ){ ?>
-						&nbsp;&nbsp;&nbsp;&nbsp;
-						<label>
-							<input type="checkbox" id="is_back_scorecount"  name="is_back_scorecount" value ="1"  />&nbsp;退<font id="refund_scorecount"><?php echo ($use_score); ?></font>积分
-						</label>
-						<?php } ?>
-					</p>
-					<p style="line-height:26px;font-size:13px;">佣金:<span class="label label-success"><?php echo ($commiss_state); ?></span></p>
-					<p style="margin-top:10px;line-height:16px;font-size:12px;color:#9e9696;">
-						备注:1.佣金指社区团购团长提成,团长分销提成,会员分销提成。<br/>
-						2.当佣金“未结算”,本页面操作会重新计算佣金金额,计算公式:商品退款金额占商品可退总金额比重*原来应结佣金<br/>
-						3.所退配送费计算公式=均摊,退款金额/全部商品金额*运费<br/>
-						<span style="color:red;">4.当佣金“已结算”,本页面操作不会影响已经结算的所有佣金。<br/></span>
-						<span style="color:red;">5.已结算后再发生任何退款,所有积分、社区团购团长提成、会员分销提成、团长分销提成、拼团佣金团提成、独立供应商可提现,不会再扣除,不发生任何变化。<br/></span>
-				</p>
-		   </div>
-            <div class="modal-footer">
-				<input type="hidden" id="real_refund_quantity" name="real_refund_quantity" value="0" />
-                <button class="btn btn-primary" type="submit" id="ck_opgoodsrefund">提交</button>
-                <button data-dismiss="modal" class="btn btn-default" type="button">取消</button>
-            </div>
-        </div>
-</form>
-
-<script>
-var free_tongji = <?php echo ($free_tongji); ?>;
-var shipping_fare = <?php echo ($shipping_fare); ?>;
-
-var use_score = <?php echo ($use_score); ?>;
-var total_quantity = <?php echo ($total_quantity); ?>;
-var info_quantity = <?php echo ($order_goods_info['quantity']); ?>;
-
-var has_refund_quantity = <?php echo ($has_refund_quantity); ?>;
-
-var  refund_one_money = <?php echo ($refund_one_money); ?>;
-$(function(){
-
-	
-	$('.ref_goods').click(function(){
-		sum_refund_money_quantity();
-	})
-	
-	$('#ck_opgoodsrefund').click(function(){
-		
-		var loadingIndex = layer.load();
-		
-		var ck_arr = [];
-		
-		$('.ref_goods').each(function(){
-		
-			if( $(this).is(':checked') ) {
-				ck_arr.push(1);
-			}
-		})
-		
-		if(ck_arr.length <=0 )
-		{
-			layer.msg('请选择退款商品');
-			layer.close(loadingIndex); 
-			return false;
-		}
-		
-		if(  $('#is_back_sellcount').is(':checked') )
-		{
-			var refund_quantity = $('#refund_quantity').val();
-			refund_quantity = parseInt(refund_quantity);
-			
-			if( ck_arr.length <  refund_quantity)
-			{
-				layer.msg('退库存以及销量数量不能大于选中商品数量');
-				layer.close(loadingIndex); 
-				return false;
-			}
-			var refund_money = $('#refund_money').val();
-			var refund_money2 = $('#refund_money2').val();
-			
-			if(   refund_money - refund_money2 > 0 )
-			{
-				layer.msg('退款金额大于选中商品最多退款金额');
-				layer.close(loadingIndex); 
-				return false;
-			}
-		}
-		
-		$('#real_refund_quantity').val( ck_arr.length );
-		layer.close(loadingIndex);
-	})
-	
-	$('#ckall').click(function(){
-		var obj = $(this);
-		
-		if( $(obj).is(':checked') )
-		{
-			$(".ref_goods").prop("checked", true);
-		}else{
-			$(".ref_goods").prop("checked", false);
-		}
-		sum_refund_money_quantity();
-	})
-
-	$('#is_refund_shippingfare').click(function(){
-		
-		var ck_count = 0;
-		var ck_arr = [];
-		
-		$('.ref_goods').each(function(){
-		
-			if( $(this).is(':checked') ) {
-				ck_arr.push(1);
-			}
-		})
-		
-		if(ck_arr.length <=0 )
-		{
-			layer.msg('请选择退款商品');
-			return false;
-		}
-		
-		ck_count = ck_arr.length;
-		
-		
-		var refund_count = $('.ref_goods').length;
-	
-		var refund_money_str = $('#refund_money').val();
-		
-		var refund_money = parseFloat(refund_money_str);
-		
-		
-		if(refund_count > 0)
-		{
-			if($(this).is(':checked')) {
-			
-				refund_money = refund_money + (shipping_fare / refund_count) * ck_count;
-				
-			}else{
-				refund_money = refund_money - (shipping_fare/refund_count) * ck_count;
-			}
-			
-			refund_money = Math.floor( refund_money * 100) / 100;
-		
-		}else{
-			
-			refund_money = 0;
-		}
-		
-		//$('#refund_money').val(refund_money);
-		
-	})
-
-})
-
-function sum_refund_money_quantity()
-{
-	var ck_arr = [];
-	var all_refund_count = $('.ref_goods').length;
-	
-	$('.ref_goods').each(function(){
-	
-		if( $(this).is(':checked') ) {
-			ck_arr.push(1);
-		}
-	})
-	
-	var refund_count = ck_arr.length;
-	
-	var can_refund_money =   (refund_count * (free_tongji/total_quantity) ).toFixed(2);
-	
-	var can_refund_score = (refund_count * (use_score/info_quantity) ).toFixed(2);
-	
-	console.log(can_refund_score);
-	var is_has_refund_deliveryfree = $('#is_has_refund_deliveryfree').val();
-	if( $('#is_refund_shippingfare').is(':checked') )
-	{
-		can_refund_money = can_refund_money + parseFloat(shipping_fare);
-		
-		
-		if( can_refund_money > free_tongji + shipping_fare )
-		{
-			can_refund_money = free_tongji + shipping_fare;
-		}
-	
-	}else{
-		if(is_has_refund_deliveryfree == 0){
-			can_refund_money = can_refund_money;
-		}else{
-			can_refund_money = can_refund_money - (shipping_fare/all_refund_count) * refund_count;
-		}
-
-		
-		if( can_refund_money > free_tongji )
-		{
-			can_refund_money = free_tongji;
-		}
-	}
-	/*can_refund_money = Math.floor(can_refund_money *100)/100;
-	
-	can_refund_score = Math.floor(can_refund_score *100)/100;*/
-
-	can_refund_money = Math.floor(accMul(can_refund_money,100))/100;
-
-	can_refund_score = Math.floor(accMul(can_refund_score,100))/100;
-	
-	can_refund_score = parseInt(can_refund_score);
-	if(refund_count == 0){
-		select_shipping_fare  = 0;
-	}else{
-		select_shipping_fare  = shipping_fare - (total_quantity + has_refund_quantity - refund_count) * ( 1/( total_quantity + has_refund_quantity) * shipping_fare).toFixed(2);
-	}
-	
-
-	$('#refund_scorecount').html(can_refund_score);
-	$('#refund_money').val(can_refund_money);
-	$('#refund_money2').val(can_refund_money);
-	$('#refund_quantity').val(refund_count);
-	$('#select_shipping_fare').val(select_shipping_fare);
-	
-	
-}
-
-function accMul(num1,num2){
-	var m=0,s1=num1.toString(),s2=num2.toString();
-	try{m+=s1.split(".")[1].length}catch(e){};
-	try{m+=s2.split(".")[1].length}catch(e){};
-	return Number(s1.replace(".",""))*Number(s2.replace(".",""))/Math.pow(10,m);
-}
-
-
-</script>

+ 0 - 644
Runtime/Cache/Seller/ff5011d7672ef1d335a7aff6066c4912.php

@@ -1,644 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
-  <title><?php echo $shoname; ?></title>
-  <link rel="shortcut icon" href="" />
-        
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
-
-  <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
- 
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
-<!--[if lt IE 9]>
-  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-<![endif]-->  
-
-<link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
-<link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
-<script type="text/javascript">
-            window.sysinfo = {
-            <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-			
-            <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-			
-            <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-			
-            'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php  }else{ ?>0<?php } ?>,
-			
-            'siteroot': '<?php echo ($_W['siteroot']); ?>',
-                    'siteurl': '<?php echo ($_W['siteurl']); ?>',
-                    'attachurl': '<?php echo ($_W['attachurl']); ?>',
-                    'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
-                    'attachurl_remote': '<?php echo ($_W['attachurl_remote']); ?>',
-                    'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
-            'cookie' : {'pre': ''},
-            'account' : <?php echo json_encode($_W['account']);?>,
-            };
-        </script>
-		
-<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
-<script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
-<script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
-<script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
-  <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
-   <link href="/static/css/snailfish.css" rel="stylesheet">
-<style>
-	
-	.modal-dialog{background-color: #fff;}
-	
-	.content{
-		display:none;
-		width:200px;
-		height:200px;
-		border-radius:10px;
-		padding:20px;
-		position:relative;
-		top:15px;
-		left:80px;
-		background-color:FFFFFF;
-		border:1px solid;
-	}
-</style>
-</head>
-<body layadmin-themealias="default">
-
-<div class="layui-fluid">
-	<div class="layui-card">
-		<div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">订单设置</span></div>
-		<div class="layui-card-body" style="padding:15px;">
-			<form action="" method="post" class="layui-form" lay-filter="component-layui-form-item" enctype="multipart/form-data" >
-		
-		<div class="layui-form-item" >
-			<label class="layui-form-label">限制购买距离</label>
-			<div class="col-sm-10 col-xs-12" id="radPickupDateTip">  
-				<label class="radio-inline"><input type="radio"  name="data[shop_limit_buy_distance]" <?php if( !isset($data['shop_limit_buy_distance']) || $data['shop_limit_buy_distance'] ==0 ){ ?> checked <?php } ?> value="0" title="不限制" /><span class="fake-radio" ></span></label>
-				<label  class="radio-inline"><input type="radio"  name="data[shop_limit_buy_distance]" <?php if( isset($data['shop_limit_buy_distance']) && $data['shop_limit_buy_distance'] ==1 ){ ?> checked <?php } ?> value="1" title="限制" /><span class="fake-radio" ></span></label>
-			
-				<span style="clear:both;" class='help-block'>只对团长配送方式有效</span>
-			</div>
-		</div>
-		<div class="layui-form-item" id="txtPickupDateTip" style="<?php if( isset($data['shop_buy_distance']) && $data['shop_limit_buy_distance'] ==1){ ?>display:block;<?php  }else{ ?>display: none;<?php } ?>">
-            <label class="layui-form-label"></label>
-            <div class="layui-input-block">
-				<div class="input-group fixsingle-input-group">
-                    <input class="form-control" name="data[shop_buy_distance]" type="text" placeholder="填写限制距离" value="<?php echo ($data['shop_buy_distance']); ?>">
-					<div class="input-group-addon">KM</div>
-                </div>
-            </div>
-        </div>
-
-		<div class="layui-form-item">
-			<label class="layui-form-label">后台付款:</label>
-			<div class="layui-input-block">
-				<div class="input-group fixsingle-input-group">
-
-					<label class='radio-inline'><input type='radio' name='data[open_admin_payment]' value='1' <?php if( !isset($data['open_admin_payment']) || $data['open_admin_payment']=='1'){ ?>checked<?php } ?> title="开启" /> </label>
-
-					<label class='radio-inline'><input type='radio' name='data[open_admin_payment]' value='0' <?php if( $data['open_admin_payment']== '0'){ ?>checked<?php } ?> title="关闭" /> </label>
-
-					<span style="clear:both;" class='help-block'>允许后台对“待付款订单”进行付款操作</span>
-				</div>
-			</div>
-		</div>
-		
-		<div class="layui-form-item">
-            <label class="layui-form-label">自动取消未支付订单:</label>
-            <div class="layui-input-block">
-                <div class="input-group fixsingle-input-group">
-						
-                    <label class='radio-inline'><input type='radio' name='data[open_auto_delete]' value='1' <?php if( $data['open_auto_delete']=='1'){ ?>checked<?php } ?> onclick="$('#cancle_order').show()" title="开启" /> </label>
-
-					<label class='radio-inline'><input type='radio' name='data[open_auto_delete]' value='0' <?php if( empty($data['open_auto_delete'])){ ?>checked<?php } ?>  onclick="$('#cancle_order').hide()" title="关闭" /> </label>
-					
-					<span style="clear:both;" class='help-block'>订单生成后 ,用户在x小时内未支付,系统自动取消</span>
-                </div>
-            </div>
-        </div>
-		<div class="layui-form-item" id="cancle_order" style="<?php if( empty($data['open_auto_delete']) ){ ?>display:none;<?php } ?>">
-            <label class="layui-form-label"></label>
-            <div class="layui-input-block">
-				<div class="input-group fixsingle-input-group">
-                    <input type="text" name="data[auto_cancle_order_time]" class="form-control" value="<?php echo ($data['auto_cancle_order_time']); ?>" />
-                    <div class="input-group-addon">小时</div>
-                </div>
-            </div>
-        </div>
-		
-		<div class="layui-form-item">
-            <label class="layui-form-label">减库存方式:</label>
-            <div class="layui-input-block">
-                <div class="input-group fixsingle-input-group">
-					<label class='radio-inline'><input type='radio' name='data[kucun_method]' value='0' <?php if( empty($data['kucun_method']) || $data['kucun_method'] ==0){ ?>checked<?php } ?> title="下单减库存" /> </label>
-					<label class='radio-inline'  style="display:none;"><input type='radio' name='data[kucun_method]' value='1' <?php if( $data['kucun_method']=='1'){ ?>checked<?php } ?> title="付款后减库存" /> </label>
-					<span class='help-block'>用户下单减库存,取消订单将返还库存数量</span>
-                </div>
-            </div>
-        </div>
-		
-		
-		<div class="layui-form-item">
-            <label class="layui-form-label">满多少可以下单:</label>
-            <div class="layui-input-block">
-                <div class="input-group fixsingle-input-group">
-						
-                    <label class='radio-inline'><input type='radio' name='data[open_man_orderbuy]' value='1' <?php if( $data['open_man_orderbuy']=='1'){ ?>checked<?php } ?> onclick="$('#manbuy_order').show()" title="开启" /> </label>
-
-					<label class='radio-inline'><input type='radio' name='data[open_man_orderbuy]' value='0' <?php if( empty($data['open_man_orderbuy'])){ ?>checked<?php } ?>  onclick="$('#manbuy_order').hide()" title="关闭" /> </label>
-					<span class='help-block'>购物车满多少才可以下单购买</span>
-                </div>
-            </div>
-        </div>
-		<div class="layui-form-item" id="manbuy_order" style="<?php if( empty($data['open_man_orderbuy']) ){ ?>display:none;<?php } ?>">
-            <label class="layui-form-label"></label>
-            <div class="layui-input-block">
-				<div class="input-group fixsingle-input-group">
-                    <input type="text" name="data[man_orderbuy_money]" class="form-control" value="<?php echo ($data['man_orderbuy_money']); ?>" />
-                    <div class="input-group-addon">元</div>
-                </div>
-            </div>
-        </div>
-		
-		<div class="layui-form-item" style="display:none;">
-            <label class="layui-form-label">满多少免运费:</label>
-            <div class="layui-input-block">
-                <div class="input-group fixsingle-input-group">
-						
-                    <label class='radio-inline'><input type='radio' name='data[open_man_free_shipping]' value='1' <?php if( $data['open_man_free_shipping']=='1'){ ?>checked<?php } ?> onclick="$('#freeshipping_order').show()" title="开启" /> </label>
-
-					<label class='radio-inline'><input type='radio' name='data[open_man_free_shipping]' value='0' <?php if( empty($data['open_man_free_shipping'])){ ?>checked<?php } ?>  onclick="$('#freeshipping_order').hide()" title="关闭" /> </label>
-					<span class='help-block'>团长配送或快递模式下,满多少免运费</span>
-                </div>
-            </div>
-        </div>
-		<div class="layui-form-item" id="freeshipping_order" style="<?php if( empty($data['open_man_free_shipping']) ){ ?>display:none;<?php } ?>">
-            <label class="layui-form-label"></label>
-            <div class="layui-input-block">
-				<div class="input-group fixsingle-input-group">
-                    <input type="text" name="data[man_free_shipping_money]" class="form-control" value="<?php echo ($data['man_free_shipping_money']); ?>" />
-                    <div class="input-group-addon">元</div>
-                </div>
-            </div>
-        </div>
-		
-		<div class="layui-form-item">
-            <label class="layui-form-label">开启redis服务:</label>
-            <div class="layui-input-block">
-                <div class="input-group fixsingle-input-group" id="redis_server">
-					<label class='radio-inline'><input type='radio' name='data[open_redis_server]' value='0' <?php if(empty($data['open_redis_server']) || $data['open_redis_server'] ==0){ ?>checked<?php } ?> title="关闭"  /> </label>
-					<label class='radio-inline'><input type='radio' name='data[open_redis_server]' value='1' <?php if($data['open_redis_server']=='1'){ ?>checked<?php } ?>  title="开启" /> </label>
-					<span class='help-block'>更精确控制高并发下,商品超库存问题,请确保安装php_redis控制,否则无法启用</span>
-					
-					<font style="color:red">开启redis,建议使用下单减库存方式</font>
-                </div>
-            </div>
-        </div>
-		
-		<div class="redis_div" id="redis_div" style="<?php if( !empty($data['open_redis_server']) && $data['open_redis_server']=='1' ){ ?> display:block;<?php }else{ ?> display:none; <?php } ?> ">
-			
-			<div class="layui-form-item" >
-				<label class="layui-form-label">redis-host:</label>
-				<div class="layui-input-block">
-					<div class="input-group fixsingle-input-group">
-						<input type="text" name="data[redis_host]" class="form-control" value="<?php echo ($data['redis_host']); ?>" />
-					</div>
-				</div>
-			</div>
-			<div class="layui-form-item" >
-				<label class="layui-form-label">redis-port:</label>
-				<div class="layui-input-block">
-					<div class="input-group fixsingle-input-group">
-						<input type="text" name="data[redis_port]" class="form-control" value="<?php echo ($data['redis_port']); ?>" />
-					</div>
-				</div>
-			</div>
-			<div class="layui-form-item" >
-				<label class="layui-form-label">redis-auth:</label>
-				<div class="layui-input-block">
-					<div class="input-group fixsingle-input-group">
-						<input type="text" name="data[redis_auth]" class="form-control" value="<?php echo ($data['redis_auth']); ?>" />
-						<span class='help-block'>redis不需要验证可以不填写auth</span>
-					</div>
-				</div>
-			</div>
-		</div>
-		
-		
-		
-        <div class="layui-form-item">
-            <label class="layui-form-label">订单提醒开关:</label>
-            <div class="layui-input-block">
-                <div class="input-group fixsingle-input-group">
-					<label class='radio-inline'><input type='radio' name='data[order_notify_switch]' value='0' <?php if( empty($data['order_notify_switch']) || $data['order_notify_switch'] ==0){ ?>checked<?php } ?>  title="关闭" /> </label>
-					<label class='radio-inline'><input type='radio' name='data[order_notify_switch]' value='1' <?php if( $data['order_notify_switch']=='1'){ ?>checked<?php } ?> title="开启" /> </label>
-					<span class='help-block'>首页、商品详情页订单提醒开关</span>
-                </div>
-            </div>
-        </div>
-        <div class="layui-form-item">
-            <label class="layui-form-label">付款后分享:</label>
-            <div class="layui-input-block">
-                <div class="input-group fixsingle-input-group">
-					<label class='radio-inline'><input type='radio' name='data[order_pay_after_share]' value='0' <?php if( empty($data['order_pay_after_share']) || $data['order_pay_after_share'] ==0){ ?>checked<?php } ?>  title="关闭" /> </label>
-					<label class='radio-inline'><input type='radio' name='data[order_pay_after_share]' value='1' <?php if( $data['order_pay_after_share']=='1'){ ?>checked<?php } ?> title="开启" /> </label>
-                </div>
-            </div>
-        </div>
-        <div class="layui-form-item">
-			<label class="layui-form-label">付款后分享标题:</label>
-			<div class="layui-input-block">
-				<input type="text" name="data[order_pay_after_share_title]" class="layui-input" value="<?php echo ($data['order_pay_after_share_title']); ?>" />
-			</div>
-		</div>
-        <div class="layui-form-item" >
-            <label class="layui-form-label">付款后分享图片</label>
-            <div class="layui-input-block">
-                <?php echo tpl_form_field_image2('data[order_pay_after_share_img]', $data['order_pay_after_share_img']);?>
-                <span class='help-block'>不传则使用默认商品分享图,比列:5:4</span>
-            </div>
-        </div>
-		<div class="layui-form-item">
-            <label class="layui-form-label">待发货“取消订单”:</label>
-            <div class="layui-input-block">
-                <div class="input-group fixsingle-input-group">
-					<label class='radio-inline'><input type='radio' name='data[order_can_del_cancle]' value='0' <?php if(empty($data['order_can_del_cancle']) || $data['order_can_del_cancle'] =='0'){ ?>checked<?php } ?>  title="开启" /> </label>
-					<label class='radio-inline'><input type='radio' name='data[order_can_del_cancle]' value='1' <?php if($data['order_can_del_cancle']=='1'){ ?>checked<?php } ?> title="关闭" /> </label>
-					 <span class='help-block'>(备注:用户取消订单后,取消订单并全额退款)</span>
-				</div>
-            </div>
-        </div>
-		
-		<div class="layui-form-item">
-            <label class="layui-form-label">小票打印:</label>
-            <div class="layui-input-block">
-                <div class="input-group fixsingle-input-group">
-						
-                    <label class='radio-inline'><input type='radio' name='data[open_feier_print]' value='1' <?php if( $data['open_feier_print']=='1'){ ?>checked<?php } ?> onclick="$('#feier_print').show();$('#yilianyun_print').hide();" title="开启飞鹅打印机" /> </label>
-                    <label class='radio-inline'><input type='radio' name='data[open_feier_print]' value='2' <?php if( $data['open_feier_print']=='2'){ ?>checked<?php } ?> onclick="$('#yilianyun_print').show();$('#feier_print').hide();" title="开启易联云打印机" /> </label>
-
-					<label class='radio-inline'><input type='radio' name='data[open_feier_print]' value='0' <?php if( empty($data['open_feier_print'])){ ?>checked<?php } ?>  onclick="$('#feier_print').hide();$('#yilianyun_print').hide();" title="关闭" /> </label>
-					<span type="display:inline;" class='help-block'>开启后,系统将自动打印新订单&nbsp;&nbsp;&nbsp;&nbsp; <a href="#" style="color: blue;display:inline;" class="contact">飞鹅官方购买</a></span>     
-					<div class="content" style="color: black;">
-						<div align="center"><img src="/static/images/feie.png" alt="飞鹅打印机"  height="135"></div>
-						<span style="text-align: center;display:block;">扫码购买</span>
-					</div>
-                </div>
-            </div>
-        </div>
-		<div class="layui-form-item" id="feier_print" style="<?php if( empty($data['open_feier_print']) || $data['open_feier_print'] ==2 ){ ?>display:none;<?php } ?>">
-            <label class="layui-form-label"></label>
-            <div class="layui-input-block">
-				<div class="input-group fixsingle-input-group">
-					<div class="input-group-addon"><b>sn:</b></div>
-                    <input type="text" name="data[feier_print_sn]" class="form-control" value="<?php echo ($data['feier_print_sn']); ?>" />
-                    <div class="input-group-addon"><b>key:</b></div>    
-                    <input type="text" name="data[feier_print_key]" class="form-control" value="<?php echo ($data['feier_print_key']); ?>" />
-                    <div class="input-group-addon"><b>打印联数:</b></div>
-                    <input type="text" name="data[feier_print_lian]" class="form-control" value="<?php echo !isset($data['feier_print_lian']) ? 1 : $data['feier_print_lian']; ?>" />
-                    
-                </div>
-				<span class='help-block'>支持飞鹅打印机 (sn,key在机子底部),打印联数最小为1</span>
-            </div>
-        </div>
-		<div class="layui-form-item" id="yilianyun_print" style="<?php if( empty($data['open_feier_print']) || $data['open_feier_print'] == 1 ){ ?>display:none;<?php } ?>">
-            <label class="layui-form-label"></label>
-            <div class="layui-input-block">
-				
-				<div class="input-group fixsingle-input-group">
-					<div class="input-group-addon"><b>应用id:</b></div>
-                    <input type="text" name="data[yilian_client_id]" class="form-control" value="<?php echo ($data['yilian_client_id']); ?>" />
-					<div class="input-group-addon"><b>应用密钥:</b></div>
-                    <input type="text" name="data[yilian_client_key]" class="form-control" value="<?php echo ($data['yilian_client_key']); ?>" />
-                </div>
-				<div class="input-group fixsingle-input-group">
-					<div class="input-group-addon"><b>打印机终端号:</b></div>    
-                    <input type="text" name="data[yilian_machine_code]" class="form-control" value="<?php echo ($data['yilian_machine_code']); ?>" />
-					<div class="input-group-addon"><b>终端密钥:</b></div>    
-                    <input type="text" name="data[yilian_msign]" class="form-control" value="<?php echo ($data['yilian_msign']); ?>" />
-					 <div class="input-group-addon"><b>打印联数:</b></div>
-                    <input type="text" name="data[yilian_print_lian]" class="form-control" value="<?php echo !isset($data['yilian_print_lian']) ? 1 : $data['yilian_print_lian']; ?>" />
-                 </div>    
-				<span class='help-block'>支持易联云K4、K5、K6打印机 (打印机终端号,终端密钥在机子底部,开发者中心应用类型选择: 自有型应用),没有开发者账号<a href="https://dev.yilianyun.net/" target="_blank">请点击申请</a></span>
-				
-            </div>
-        </div>
-
-		<div class="layui-form-item">
-            <label class="layui-form-label">打印隐藏会员手机:</label>
-            <div class="layui-input-block">
-                <div class="input-group fixsingle-input-group">
-					<label class='radio-inline'><input type='radio' name='data[is_printhide_membermobile]' value='0' <?php if( empty($data['is_printhide_membermobile']) || $data['is_printhide_membermobile'] ==0){ ?>checked<?php } ?>  title="否" /> </label>
-					<label class='radio-inline'><input type='radio' name='data[is_printhide_membermobile]' value='1' <?php if( $data['is_printhide_membermobile']=='1'){ ?>checked<?php } ?> title="是" /> </label>
-					<span class='help-block'>小票打印时,隐藏会员手机号,默认不隐藏</span>
-                </div>
-            </div>
-        </div>
-		
-		<div class="layui-form-item">
-		   <label class="layui-form-label">打印内容</label>
-			<div class="layui-input-block ">
-				<input type="checkbox" lay-skin="primary" name="data[is_print_auto]" class="form-control valid" <?php if( empty($data['is_print_auto']) && $data['is_print_auto'] ==0 ){ ?>checked<?php } ?> value="1" title="下单自动打印" />
-				<input type="checkbox" lay-skin="primary" name="data[is_print_cancleorder]" class="form-control valid" <?php if( !empty($data) && $data['is_print_cancleorder'] ==1 ){ ?>checked<?php } ?> value="1" title="取消订单打印" />
-				<input type="checkbox" lay-skin="primary" name="data[is_print_admin_cancleorder]" class="form-control valid" <?php if( !empty($data) && $data['is_print_admin_cancleorder'] ==1 ){ ?>checked<?php } ?> value="1" title="后台整单立即退款打印" />
-				<input type="checkbox" lay-skin="primary" name="data[is_print_dansupply_order]" class="form-control valid" <?php if( !empty($data) && $data['is_print_dansupply_order'] ==1 ){ ?>checked<?php } ?> value="1" title="独立供应商订单打印" />
-				
-				<input type="checkbox" lay-skin="primary" name="data[is_print_member_note]" class="form-control valid" <?php if( !empty($data) && $data['is_print_member_note'] ==1 ){ ?>checked<?php } ?> value="1" title="小票打印内容包含“会员详情-备注信息”" />
-				<input type="checkbox" lay-skin="primary" name="data[is_print_order_note]" class="form-control valid" <?php if( !empty($data) && $data['is_print_order_note'] ==1 ){ ?>checked<?php } ?> value="1" title="小票打印内容包含“订单提交页自定义备注信息”" />
-				
-				
-				<br/>
-				<div class="layui-form-mid layui-word-aux">
-					默认付款后自动打印
-				</div>
-			</div>
-		</div>
-		
-		
-		
-        <div class="layui-form-item">
-            <label class="layui-form-label">订单留言:</label>
-            <div class="layui-input-block">
-                <div class="input-group fixsingle-input-group">
-                    <label class='radio-inline'><input type='radio' name='data[is_open_order_message]' value='0' <?php if(empty($data['is_open_order_message']) || $data['is_open_order_message']==0){ ?>checked<?php } ?> title="关闭" /> </label>
-                    <label class='radio-inline'><input type='radio' name='data[is_open_order_message]' value='1' <?php if($data['is_open_order_message']=='1'){ ?>checked<?php } ?> title="开启"  /> </label>
-                </div>
-            </div>
-        </div>
-		
-		<div class="layui-form-item">
-            <label class="layui-form-label">后台订单语音提醒:</label>
-            <div class="layui-input-block">
-                <div class="input-group fixsingle-input-group">
-                    <label class='radio-inline'><input type='radio' name='data[is_open_order_voice_notice]' value='0' <?php if(empty($data['is_open_order_voice_notice']) || $data['is_open_order_voice_notice']==0){ ?>checked<?php } ?> title="关闭" /> </label>
-                    <label class='radio-inline'><input type='radio' name='data[is_open_order_voice_notice]' value='1' <?php if($data['is_open_order_voice_notice']=='1'){ ?>checked<?php } ?> title="开启"  /> </label>
-                </div>
-            </div>
-        </div>
-		
-		<div class="layui-form-item">
-            <label class="layui-form-label">开启余额支付:</label>
-            <div class="layui-input-block">
-                <div class="input-group fixsingle-input-group">
-                    <label class='radio-inline'><input type='radio' name='data[is_open_yue_pay]' value='0' <?php if(empty($data['is_open_yue_pay']) || $data['is_open_yue_pay']==0){ ?>checked<?php } ?> title="关闭" /> </label>
-                    <label class='radio-inline'><input type='radio' name='data[is_open_yue_pay]' value='1' <?php if($data['is_open_yue_pay']=='1'){ ?>checked<?php } ?> title="开启" /> </label>
-                </div>
-				<span class='help-block'>开启后会员中心默认开启余额充值</span>
-				
-            </div>
-        </div>
-		
-		
-		<div class="layui-form-item">
-		   <label class="layui-form-label">售后申请可退包含:</label>
-			<div class="layui-input-block ">
-				<input type="checkbox" lay-skin="primary" name="data[is_has_refund_deliveryfree]" class="form-control valid" <?php if( !empty($data) && ( !isset($data['is_has_refund_deliveryfree']) || $data['is_has_refund_deliveryfree'] ==1 ) ){ ?>checked<?php } ?> value="1" title="配送费(团长配送费/快递配送费)" />
-				<br/>
-				<div class="layui-form-mid layui-word-aux">
-					
-				</div>
-			</div>
-		</div>
-				
-		<div class="layui-form-item" >
-			<label class="layui-form-label">开启售后期</label>
-			<div class="col-sm-10 col-xs-12" id="open_aftersale">  
-				<label class="radio-inline"><input type="radio"  name="data[open_aftersale]" <?php if(!isset($data['open_aftersale']) || $data['open_aftersale'] ==0){ ?>  checked <?php } ?> value="0" title="关闭" /><span class="fake-radio" ></span></label>
-				<label  class="radio-inline"><input type="radio"  name="data[open_aftersale]" <?php if( isset($data['open_aftersale']) && $data['open_aftersale'] ==1 ){ ?> checked <?php } ?> value="1" title="开启" /><span class="fake-radio" ></span></label>
-			
-				<span class='help-block'>售后期开启以后”确认收货“商品订单不马上结算订单金额给团长或供应商,需要等售后期结束,商品订单佣金也需要等售后期结束才进行结算。(售后期包含商品售后期,以及商品订单的佣金结算期)</span>
-			</div>
-		</div>
-		<div class="layui-form-item" id="open_aftersale_time" style="<?php if( isset($data['open_aftersale']) && $data['open_aftersale'] ==1 ){ ?>display:block;<?php }else{ ?>display: none;<?php } ?>">
-			<label class="layui-form-label"></label>
-			<div class="layui-input-block">
-				<div class="input-group fixsingle-input-group">
-					<input class="form-control" name="data[open_aftersale_time]" type="text" placeholder="填写售后天数" value="<?php echo ($data['open_aftersale_time']); ?>">
-					<div class="input-group-addon">天</div>
-				</div>
-			</div>
-		</div>
-				
-				<div class="layui-form-item" >
-					<label class="layui-form-label">开启系统自动签收</label>
-					<div class="col-sm-10 col-xs-12" id="open_autosale">  
-						<label class="radio-inline"><input type="radio"  name="data[open_auto_recive_order]" <?php if( !isset($data['open_auto_recive_order']) || $data['open_auto_recive_order'] ==0 ){ ?> checked <?php } ?> value="0" title="关闭" /><span class="fake-radio" ></span></label>
-						<label  class="radio-inline"><input type="radio"  name="data[open_auto_recive_order]" <?php if( isset($data['open_auto_recive_order']) && $data['open_auto_recive_order'] ==1 ){ ?> checked <?php } ?> value="1" title="开启" /><span class="fake-radio" ></span></label>
-					
-						<span class='help-block'>订单自动签收默认关闭状态,如果需要勾选进行设置,建议默认为7天。(当订单待收货或待核销时间超过所设置时间)</span>
-					</div>
-				</div>
-				<div class="layui-form-item" id="auto_recive_order_time" style="<?php if( isset($data['open_auto_recive_order']) && $data['open_auto_recive_order'] ==1 ){ ?>display:block;<?php }else{ ?>display: none;<?php } ?>">
-					<label class="layui-form-label"></label>
-					<div class="layui-input-block">
-						<div class="input-group fixsingle-input-group">
-							<input class="form-control" name="data[auto_recive_order_time]" type="text" placeholder="填写自动签收天数" value="<?php echo ($data['auto_recive_order_time']); ?>">
-							<div class="input-group-addon">天</div>
-						</div>
-					</div>
-				</div>
-				<div class="layui-form-item">
-                    <label class="layui-form-label">订单自动发货:</label>
-                    <div class="layui-input-block">
-	                    <label class="layui-form-label" style="width: 100px;padding: 9px 0;">同城配送订单:</label>
-	                    <div class="layui-input-block" style="margin-left: 110px;">
-	                        <input type="checkbox" lay-skin="primary" name="data[is_localtown_auto_delivery]" class="form-control valid" <?php if( !empty($data) && $data['is_localtown_auto_delivery'] == 1 ){ ?>checked<?php } ?> value="1" title="自动确认配送" />
-	                    	<span class='help-block'>勾选自动确认配送以后,前后台订单状态在用户下单以后自动变更为“已发货,待收货”状态,不需要后台进行配送操作,配送员可以直接进行抢单配送。</span>
-	                    </div>
-                    </div>
-                    <div class="layui-input-block">
-	                    <label class="layui-form-label" style="width: 100px;padding: 9px 0;">团长配送订单:</label>
-	                    <div class="layui-input-block" style="margin-left: 110px;">
-	                        <input type="checkbox" lay-skin="primary" name="data[is_communityhead_auto_delivery]" class="form-control valid" <?php if( !empty($data) && $data['is_communityhead_auto_delivery'] == 1 ){ ?>checked<?php } ?> value="1" title="自动确认配送" />
-	                    	<input type="checkbox" lay-skin="primary" name="data[is_communityhead_auto_service]" class="form-control valid" <?php if( !empty($data) && $data['is_communityhead_auto_service'] == 1){ ?>checked<?php } ?> value="1" title="自动确认送达团长" />
-	                    	<span class='help-block'>勾选自动确认配送/自动确认送达团长以后,前后台订单状态在用户下单以后自动变更为“配送中”状态,不需要后台进行配送操作,勾选其中一项的时候,订单还需要进行发货操作。</span>
-	                    </div>
-                    </div>
-                    <div class="layui-input-block">
-	                    <label class="layui-form-label" style="width: 100px;padding: 9px 0;">社区自提订单:</label>
-	                    <div class="layui-input-block" style="margin-left: 110px;">
-	                        <input type="checkbox" lay-skin="primary" name="data[is_ziti_auto_delivery]" class="form-control valid" <?php if( !empty($data) && $data['is_ziti_auto_delivery'] == 1 ){ ?>checked<?php } ?> value="1" title="自动确认配送" />
-	                    	<input type="checkbox" lay-skin="primary" name="data[is_ziti_auto_service]" class="form-control valid" <?php if( !empty($data) && $data['is_ziti_auto_service'] == 1 ){ ?>checked<?php } ?> value="1" title="自动确认送达团长" />
-	                    	<span class='help-block'>勾选自动确认配送/自动确认送达团长以后,前后台订单状态在用户下单以后自动变更为“配送中”,不需要后台进行配送操作,勾选其中一项的时候,订单还需要进行发货操作。</span>
-	                    </div>
-                    </div>
-                </div>
-                <div class="layui-form-item">
-                    <label class="layui-form-label">显示团长电话:</label>
-                    <div class="layui-input-block">
-                        <div class="input-group fixsingle-input-group">
-                            <label class='radio-inline'>
-								<input type='radio' name='data[is_hidden_orderlist_phone]' value='0' <?php if(empty($data['is_hidden_orderlist_phone']) || $data['is_hidden_orderlist_phone']==0){ ?>checked<?php } ?> title="显示" /> 
-							</label>
-                            <label class='radio-inline'>
-							<input type='radio' name='data[is_hidden_orderlist_phone]' value='1' <?php if( $data['is_hidden_orderlist_phone']=='1' ){ ?>checked <?php } ?> title="关闭"  /> 
-							</label>
-                        </div>
-                        <span class='help-block'>订单详情是否显示团长电话</span>
-                    </div>
-                </div>
-				
-                <div class="layui-form-item">
-                    <label class="layui-form-label">猜你喜欢:</label>
-                    <div class="layui-input-block">
-                        <div class="input-group fixsingle-input-group">
-                            <label class='radio-inline'><input type='radio' name='data[is_show_order_guess_like]' value='0' <?php if( empty($data['is_show_order_guess_like']) || $data['is_show_order_guess_like']==0 ){ ?>checked<?php } ?> title="关闭" /> </label>
-                            <label class='radio-inline'><input type='radio' name='data[is_show_order_guess_like]' value='1' <?php if( $data['is_show_order_guess_like']=='1' ){ ?>checked<?php } ?> title="开启"  /> </label>
-                        </div>
-                        <span class='help-block'>订单详情是否显示猜你喜欢商品列表</span>
-                    </div>
-                </div>
-				
-				
-				<div class="layui-form-item">
-					<label class="layui-form-label"> </label>
-					<div class="layui-input-block">
-						<input type="submit" value="提交" lay-submit lay-filter="formDemo" class="btn btn-primary"  />
-						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-						
-					</div>
-				</div>
-			</form>
-		</div>
-</div>
-</div>
-
-<script src="/layuiadmin/layui/layui.js"></script>
-
-<script>
-	layui.config({
-		base: '/layuiadmin/' //静态资源所在路径
-	}).extend({
-		index: 'lib/index' //主入口模块
-	}).use('index');
-</script>
-
-<script>
-//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
-var layer = layui.layer;
-var $;
-
-var cur_open_div;
-
-layui.use(['jquery', 'layer','form'], function(){ 
-  $ = layui.$;
-  var form = layui.form;
-  
-	form.on('radio(linktype)', function(data){
-		if (data.value == 2) {
-			$('#typeGroup').show();
-		} else {
-			$('#typeGroup').hide();
-		}
-	});  
-
-	
-	$('#chose_link').click(function(){
-		cur_open_div = $(this).attr('data-input');
-		$.post("<?php echo U('util.selecturl', array('ok' => 1));?>", {}, function(shtml){
-		 layer.open({
-			type: 1,
-			area: '930px',
-			content: shtml //注意,如果str是object,那么需要字符拼接。
-		  });
-		});
-	})
-		
-  //监听提交
-  form.on('submit(formDemo)', function(data){
-	 $.ajax({
-		url: data.form.action,
-		type: data.form.method,
-		data: data.field,
-		dataType:'json',
-		success: function (info) {
-		  
-			if(info.status == 0)
-			{
-				layer.msg(info.result.msg,{icon: 1,time: 2000});
-			}else if(info.status == 1){
-				var go_url = location.href;
-				if( info.result.hasOwnProperty("url") )
-				{
-					go_url = info.result.url;
-				}
-				
-				layer.msg('操作成功',{time: 1000,
-					end:function(){
-						location.href = info.result.url;
-					}
-				}); 
-			}
-		}
-	});
-	
-    return false;
-  });
-})
-
-</script>  
-
-<script type="text/javascript">
-$(document).ready(function(){
-$(".contact").mouseover(function(){
-$(".content").show("slow");
-$(".contact").mouseout(function(){
-$(".content").hide("slow");
-});
-});
-})
-</script>
-
-<script>
-
-$(function(){
-$('#radPickupDateTip input[type=radio]').click(function(){
-	var s_val = $(this).val();
-	if(s_val == 1)
-	{
-		$('#txtPickupDateTip').show();
-	}else{
-		$('#txtPickupDateTip').hide();
-	}
- })
- 
- 
- $('#open_aftersale input[type=radio]').click(function(){
-	var s_val = $(this).val();
-	if(s_val == 1)
-	{
-		$('#open_aftersale_time').show();
-	}else{
-		$('#open_aftersale_time').hide();
-	}
- })
- 
- $('#open_autosale input[type=radio]').click(function(){
-	var s_val = $(this).val();
-	if(s_val == 1)
-	{
-		$('#auto_recive_order_time').show();
-	}else{
-		$('#auto_recive_order_time').hide();
-	}
- })
- 
- $('#redis_server input[type=radio]').click(function(){
-	var s_val = $(this).val();
-	if(s_val == 1)
-	{
-		$('#redis_div').css('display','block');
-	}else{
-		$('#redis_div').css('display', 'none');
-	}
- })
- 
- })
-</script>
-</body>