pintuan_detail.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
  6. <title><?php echo $shoname; ?></title>
  7. <link rel="shortcut icon" href="" />
  8. <meta name="renderer" content="webkit">
  9. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  11. <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
  12. <!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
  13. <!--[if lt IE 9]>
  14. <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
  15. <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
  16. <![endif]-->
  17. <link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
  18. <link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
  19. <script type="text/javascript">
  20. window.sysinfo = {
  21. <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '{$_W['uniacid']}',<?php } ?>
  22. <?php if( !empty($_W['acid']) ){ ?>'acid': '{$_W['acid']}',<?php } ?>
  23. <?php if (!empty($_W['openid']) ) { ?>'openid': '{$_W['openid']}',<?php } ?>
  24. <?php if( !empty($_W['uid']) ) { ?>'uid': '{$_W['uid']}',<?php } ?>
  25. 'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php }else{ ?>0<?php } ?>,
  26. 'siteroot': '{$_W['siteroot']}',
  27. 'siteurl': '{$_W['siteurl']}',
  28. 'attachurl': '{$_W['attachurl']}',
  29. 'attachurl_local': '{$_W['attachurl_local']}',
  30. 'attachurl_remote': '{$_W['attachurl_remote']}',
  31. 'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
  32. 'cookie' : {'pre': ''},
  33. 'account' : {:json_encode($_W['account'])},
  34. };
  35. </script>
  36. <script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
  37. <script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
  38. <script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
  39. <script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
  40. <script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
  41. <script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
  42. <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
  43. <link href="/static/css/snailfish.css" rel="stylesheet">
  44. <style>
  45. tbody tr td{
  46. position: relative;
  47. }
  48. tbody tr .icow-weibiaoti--{
  49. visibility: hidden;
  50. display: inline-block;
  51. color: #fff;
  52. height:18px;
  53. width:18px;
  54. background: #e0e0e0;
  55. text-align: center;
  56. line-height: 18px;
  57. vertical-align: middle;
  58. }
  59. tbody tr:hover .icow-weibiaoti--{
  60. visibility: visible;
  61. }
  62. tbody tr .icow-weibiaoti--.hidden{
  63. visibility: hidden !important;
  64. }
  65. .full .icow-weibiaoti--{
  66. margin-left:10px;
  67. }
  68. .full>span{
  69. display: -webkit-box;
  70. display: -webkit-flex;
  71. display: -ms-flexbox;
  72. display: flex;
  73. vertical-align: middle;
  74. align-items: center;
  75. }
  76. tbody tr .label{
  77. margin: 5px 0;
  78. }
  79. .goods_attribute a{
  80. cursor: pointer;
  81. }
  82. .newgoodsflag{
  83. width: 22px;height: 16px;
  84. background-color: #ff0000;
  85. color: #fff;
  86. text-align: center;
  87. position: absolute;
  88. bottom: 70px;
  89. left: 57px;
  90. font-size: 12px;
  91. }
  92. .a{cursor: pointer;}
  93. </style>
  94. </head>
  95. <body layadmin-themealias="default">
  96. <table id="demo" lay-filter="test"></table>
  97. <div class="layui-fluid">
  98. <div class="layui-card">
  99. <div class="layui-card-header layui-elem-quote">
  100. 当前位置:<span class="line-text">拼团详情</span>
  101. </div>
  102. <div class="layui-card-body" style="padding:0px;">
  103. <form action="" class="layui-form" lay-filter="example" method="post" >
  104. <!--团信息begin .layui-card-->
  105. <div class="layui-card" style="margin-bottom:0px;">
  106. <div class="layui-col-md12" >
  107. <div class="layui-card">
  108. <div class="layui-card-header">团信息</div>
  109. <div class="layui-card-body layui-row layui-col-space10" >
  110. <div class="layui-col-md12">
  111. <div style="padding-left:5px;padding-top:10px;padding-bottom:10px;">
  112. 拼团详情二维码:
  113. <img src="{$qrcode}" width="200" />
  114. </div>
  115. <table class="table table-hover">
  116. <thead class="navbar-inner">
  117. <tr>
  118. <th>团购订单号</th>
  119. <th>团购人数</th>
  120. <th>创建时间</th>
  121. <th>过期时间</th>
  122. <th>团购状态</th>
  123. </tr>
  124. </thead>
  125. <tbody>
  126. <tr>
  127. <td>{$pin_info['pin_id']}</td>
  128. <td> {$pin_buy_count}/ {$pin_info['need_count']}</td>
  129. <td>
  130. <?php echo date('Y-m-d H:i:s', $pin_info['begin_time']); ?>
  131. </td>
  132. <td>
  133. <?php echo date('Y-m-d H:i:s', $pin_info['end_time']); ?>
  134. </td>
  135. <td>
  136. <?php if($pin_info['state'] == 0){ ?>
  137. <span class="blue">拼团中</span>
  138. <?php }else if($pin_info['state'] == 1){ ?>
  139. <span class="red">已完成</span>
  140. <?php }else if($pin_info['state'] == 2){ ?>
  141. <span class="grey">已过期</span>
  142. <?php } ?>
  143. </td> </td>
  144. </tr>
  145. </tbody>
  146. </table>
  147. </div>
  148. </div>
  149. </div>
  150. </div>
  151. <div style="clear:both;"></div>
  152. </div>
  153. <!--团信息end-->
  154. <div style="height:20px;background-color:#f2f2f2;"></div>
  155. <!--用户信息begin-->
  156. <div class="layui-card" style="margin-bottom:0px;">
  157. <div class="layui-col-md12" >
  158. <div class="layui-card">
  159. <div class="layui-card-header">用户信息</div>
  160. <div class="layui-card-body layui-row layui-col-space10" >
  161. <div class="layui-col-md12">
  162. <table class="table table-hover">
  163. <thead class="navbar-inner">
  164. <tr>
  165. <th style="width:80px;">订单号</th>
  166. <th style="width:70px;">姓名</th>
  167. <th style="width:100px;">电话</th>
  168. <th style="">支付方式</th>
  169. <th style="width:80px;">订单状态</th>
  170. <th >拼团单价</th>
  171. <th >购买数量</th>
  172. <th style="">运费</th>
  173. <th style="width:60px;">总价</th>
  174. <th style="">下单时间</th>
  175. <th style="">收货地址</th>
  176. <?php if($pin_info['is_pintuan_rebate'] == 1){ ?>
  177. <th style="">拼团返利</th>
  178. <?php } ?>
  179. <th style="width:100px;">操作</th>
  180. </tr>
  181. </thead>
  182. <tbody>
  183. <?php foreach($list as $v){ ?>
  184. <tr>
  185. <td>{$v['order_num_alias']}</td>
  186. <td>
  187. {$v['name']}
  188. </td>
  189. <td>{$v['telephone']}</td>
  190. <td>
  191. <?php if( $v['payment_code'] == 'yuer' ){ ?>余额支付<?php } ?>
  192. <?php if( $v['payment_code'] == 'admin' ){ ?>后台付款<?php } ?>
  193. <?php if( $v['payment_code'] == 'weixin'){ ?>微信支付<?php } ?>
  194. </td>
  195. <td>
  196. <span class="label label-default">
  197. <?php if($v['order_status_id'] == 1) {
  198. echo '已成团待发货';
  199. }else{
  200. echo $order_status_arr[$v['order_status_id']];
  201. }
  202. ?>
  203. </span>
  204. </td>
  205. <td> <?php echo round($v['price'],2); ?> 元</td>
  206. <td>
  207. {$v['quantity']}
  208. </td>
  209. <td> <?php echo round($v['shipping_fare'],2); ?> 元</td>
  210. <td> <?php echo round($v['total'],2); ?> 元</td>
  211. <td><?php echo date('Y-m-d H:i:s',$v['date_added']); ?></td>
  212. <td>{$v['province_name']}-{$v['city_name']}-{$v['area_name']}-{$v['shipping_address']}</td>
  213. <?php if($pin_info['is_pintuan_rebate'] == 1){ ?>
  214. <td> {$v['reward_content']}</td>
  215. <?php } ?>
  216. <td>
  217. <a href="{:U('order/detail', array('id' => $v['order_id']))}" class="btn btn-success btn-sm">查看订单</a>
  218. </td>
  219. </tr>
  220. <?php } ?>
  221. <?php foreach($jiapinorder as $val){ ?>
  222. <tr>
  223. <td>--</td>
  224. <td>
  225. {$val['uname']}
  226. </td>
  227. <td></td>
  228. <td>
  229. (机器人)
  230. </td>
  231. <td>
  232. --
  233. </td>
  234. <td>--</td>
  235. <td>
  236. --
  237. </td>
  238. <td>--</td>
  239. <td> --</td>
  240. <td>--</td>
  241. <td>--</td>
  242. <td>
  243. --
  244. </td>
  245. </tr>
  246. <?php } ?>
  247. </tbody>
  248. </table>
  249. </div>
  250. </div>
  251. </div>
  252. </div>
  253. <div style="clear:both;"></div>
  254. </div>
  255. <!--用户信息end-->
  256. <div style="height:20px;background-color:#f2f2f2;"></div>
  257. <!--商品信息begin-->
  258. <div class="layui-card" style="margin-bottom:0px;">
  259. <div class="layui-col-md12" >
  260. <div class="layui-card">
  261. <div class="layui-card-header">商品信息</div>
  262. <div class="layui-card-body layui-row layui-col-space10" >
  263. <div class="layui-col-md12">
  264. <table class="table table-hover">
  265. <thead class="navbar-inner">
  266. <tr>
  267. <th style="width:5%;">ID</th>
  268. <th style="width:15%;">商品标题</th>
  269. <th style="width:15%;">商品图片</th>
  270. </tr>
  271. </thead>
  272. <tbody>
  273. <tr>
  274. <td>{$order['goods_id']}</td>
  275. <td><a href="{:U('group/editgoods', array('id' => $order['goods_id'],'ok'=>1,'page'=>$page))}" target="_blank">{$order['goods_name']}</a></td>
  276. <td>
  277. <div style=" width:40px;height:40px;">
  278. <a href="{:U('group/editgoods', array('id' => $order['goods_id'],'ok'=>1,'page'=>$page))}" target="_blank"><img src="{$goods_images}" style=" width:40px;height:40px;" alt="" title=""></a>
  279. </div>
  280. </td>
  281. </tr>
  282. </tbody>
  283. </table>
  284. </div>
  285. </div>
  286. </div>
  287. </div>
  288. <div style="clear:both;"></div>
  289. </div>
  290. <!--商品信息end-->
  291. </form>
  292. </div>
  293. </div>
  294. </div>
  295. <script src="/layuiadmin/layui/layui.js"></script>
  296. <script>
  297. layui.config({
  298. base: '/layuiadmin/' //静态资源所在路径
  299. }).extend({
  300. index: 'lib/index' //主入口模块
  301. }).use('index');
  302. </script>
  303. <script>
  304. //由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
  305. var layer = layui.layer;
  306. var $;
  307. layui.use(['jquery', 'layer','form'], function(){
  308. $ = layui.$;
  309. var form = layui.form;
  310. $('.deldom').click(function(){
  311. var s_url = $(this).attr('data-href');
  312. layer.confirm($(this).attr('data-confirm'), function(index){
  313. $.ajax({
  314. url:s_url,
  315. type:'post',
  316. dataType:'json',
  317. success:function(info){
  318. if(info.status == 0)
  319. {
  320. layer.msg(info.result.message,{icon: 1,time: 2000});
  321. }else if(info.status == 1){
  322. var go_url = location.href;
  323. if( info.result.hasOwnProperty("url") )
  324. {
  325. go_url = info.result.url;
  326. }
  327. layer.msg('操作成功',{time: 1000,
  328. end:function(){
  329. location.href = info.result.url;
  330. }
  331. });
  332. }
  333. }
  334. })
  335. });
  336. })
  337. $('.btn-operation').click(function(){
  338. var ids_arr = [];
  339. var obj = $(this);
  340. var s_toggle = $(this).attr('data-toggle');
  341. var s_url = $(this).attr('data-href');
  342. $("input[name=item_checkbox]").each(function() {
  343. if( $(this).prop('checked') )
  344. {
  345. ids_arr.push( $(this).val() );
  346. }
  347. })
  348. if(ids_arr.length < 1)
  349. {
  350. layer.msg('请选择要操作的内容');
  351. }else{
  352. var can_sub = true;
  353. if( s_toggle == 'batch-remove' )
  354. {
  355. can_sub = false;
  356. layer.confirm($(obj).attr('data-confirm'), function(index){
  357. $.ajax({
  358. url:s_url,
  359. type:'post',
  360. dataType:'json',
  361. data:{ids:ids_arr},
  362. success:function(info){
  363. if(info.status == 0)
  364. {
  365. layer.msg(info.result.message,{icon: 1,time: 2000});
  366. }else if(info.status == 1){
  367. var go_url = location.href;
  368. if( info.result.hasOwnProperty("url") )
  369. {
  370. go_url = info.result.url;
  371. }
  372. layer.msg('操作成功',{time: 1000,
  373. end:function(){
  374. location.href = info.result.url;
  375. }
  376. });
  377. }
  378. }
  379. })
  380. });
  381. }else{
  382. $.ajax({
  383. url:s_url,
  384. type:'post',
  385. dataType:'json',
  386. data:{ids:ids_arr},
  387. success:function(info){
  388. if(info.status == 0)
  389. {
  390. layer.msg(info.result.message,{icon: 1,time: 2000});
  391. }else if(info.status == 1){
  392. var go_url = location.href;
  393. if( info.result.hasOwnProperty("url") )
  394. {
  395. go_url = info.result.url;
  396. }
  397. layer.msg('操作成功',{time: 1000,
  398. end:function(){
  399. location.href = info.result.url;
  400. }
  401. });
  402. }
  403. }
  404. })
  405. }
  406. }
  407. })
  408. form.on('switch(statewsitch)', function(data){
  409. var s_url = $(this).attr('data-href')
  410. var s_value = 1;
  411. if(data.elem.checked)
  412. {
  413. s_value = 1;
  414. }else{
  415. s_value = 0;
  416. }
  417. $.ajax({
  418. url:s_url,
  419. type:'post',
  420. dataType:'json',
  421. data:{value:s_value},
  422. success:function(info){
  423. if(info.status == 0)
  424. {
  425. layer.msg(info.result.message,{icon: 1,time: 2000});
  426. }else if(info.status == 1){
  427. var go_url = location.href;
  428. if( info.result.hasOwnProperty("url") )
  429. {
  430. go_url = info.result.url;
  431. }
  432. layer.msg('操作成功',{time: 1000,
  433. end:function(){
  434. location.href = info.result.url;
  435. }
  436. });
  437. }
  438. }
  439. })
  440. });
  441. form.on('checkbox(checkboxall)', function(data){
  442. if(data.elem.checked)
  443. {
  444. $("input[name=item_checkbox]").each(function() {
  445. $(this).prop("checked", true);
  446. });
  447. $("input[name=checkall]").each(function() {
  448. $(this).prop("checked", true);
  449. });
  450. }else{
  451. $("input[name=item_checkbox]").each(function() {
  452. $(this).prop("checked", false);
  453. });
  454. $("input[name=checkall]").each(function() {
  455. $(this).prop("checked", false);
  456. });
  457. }
  458. form.render('checkbox');
  459. });
  460. //监听提交
  461. form.on('submit(formDemo)', function(data){
  462. $.ajax({
  463. url: data.form.action,
  464. type: data.form.method,
  465. data: data.field,
  466. dataType:'json',
  467. success: function (info) {
  468. if(info.status == 0)
  469. {
  470. layer.msg(info.result.message,{icon: 1,time: 2000});
  471. }else if(info.status == 1){
  472. var go_url = location.href;
  473. if( info.result.hasOwnProperty("url") )
  474. {
  475. go_url = info.result.url;
  476. }
  477. layer.msg('操作成功',{time: 1000,
  478. end:function(){
  479. location.href = info.result.url;
  480. }
  481. });
  482. }
  483. }
  484. });
  485. return false;
  486. });
  487. })
  488. </script>
  489. </body>