You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

171 lines
7.7 KiB

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
6 years ago
6 years ago
6 years ago
7 years ago
  1. <!DOCTYPE html><html><head><meta http-equiv="content-type" content="text/html;charset=utf-8"/>
  2. <title>订单详情</title><meta content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport">
  3. <link href="<?php echo env('APP_URL'); ?>/css/weixin/style.css" type="text/css" rel="stylesheet">
  4. <script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/jquery.min.js"></script><script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/weixin/mobile.js"></script>
  5. <meta name="keywords" content="关键词"><meta name="description" content="描述">
  6. <link href="<?php echo env('APP_URL'); ?>/css/font-awesome.min.css" type="text/css" rel="stylesheet"></head><body style="background-color:#f1f1f1;">
  7. <div class="classreturn loginsignup">
  8. <div class="ds-in-bl return"><a href="javascript:history.back(-1);"><img src="<?php echo env('APP_URL'); ?>/images/weixin/return.png" alt="返回"></a></div>
  9. <div class="ds-in-bl tit center"><span>订单详情</span></div>
  10. <div class="ds-in-bl nav_menu"><a href="javascript:void(0);"><img src="<?php echo env('APP_URL'); ?>/images/weixin/class1.png" alt="菜单"></a></div>
  11. </div>
  12. @include('weixin.common.headerNav')
  13. <div class="orderdetail-des">
  14. <p>订单状态:<?php echo $post['order_status_text']; ?></p>
  15. </div>
  16. <style>
  17. .orderdetail-des{background:#ea5a3d;padding:20px 10px;color:#fff;font-size:18px;}
  18. </style>
  19. <!-- 选择收货地址-start -->
  20. <div class="checkout-addr">
  21. <p class="title"><span class="name" id="default_consignee"><?php echo $post['name']; ?></span> <span class="tel" id="default_phone"><?php echo $post['mobile']; ?></span></p>
  22. <p class="des" id="default_address"><?php echo $post['province_name'].$post['city_name'].$post['district_name']; ?> <?php echo $post['address']; ?></p>
  23. <i class="fa fa-street-view"></i>
  24. </div>
  25. <style>
  26. .checkout-addr{position: relative;background:#fff;margin-top:10px;padding:10px;}
  27. .checkout-addr p{margin-right:20px;}.checkout-addr .title{font-size:18px;color:#353535;}.checkout-addr .des{color:#9b9b9b;}
  28. .checkout-addr i{position:absolute;top:50%;right:12px;margin-top:-6px;color:#bbb;display:inline-block;}
  29. </style>
  30. <!-- 选择收货地址-end -->
  31. <!-- 订单商品-start -->
  32. <div class="floor mt10">
  33. <div class="tit_h">订单商品</div>
  34. <ul class="goodslist">
  35. <?php foreach($post['goods_list'] as $key=>$value){ ?>
  36. <li>
  37. <img src="<?php echo $value['goods_img']; ?>">
  38. <p><b><?php echo $value['goods_name']; ?></b><span>¥<?php echo $value['goods_price']; ?><i>x<?php echo $value['goods_number']; ?></i></span></p>
  39. </li>
  40. <?php } ?>
  41. </ul>
  42. <p class="des">合计: <?php echo $post['order_amount']; ?> <small>(含运费:¥<?php echo $post['shipping_fee']; ?>)</small></p>
  43. <div class="tag"><?php if($post['order_status_num']==4 || $post['order_status_num']==6 || $post['order_status_num']==7){ ?><a href="javascript:del_order(<?php echo $post['id']; ?>);">删除</a><?php } ?><?php if($post['order_status_num']==1){ ?><a href="javascript:cancel_order(<?php echo $post['id']; ?>);">取消订单</a><?php } ?><?php if($post['order_status_num']==1){ ?><a href="<?php echo route('weixin_order_pay',array('id'=>$post['id'])); ?>">付款</a><?php } ?><?php if($post['order_status_num']==3){ ?><a href="http://m.kuaidi100.com/index_all.html?type=<?php echo $post['shipping_name']; ?>&postid=<?php echo $post['shipping_sn']; ?>#result">查看物流</a><?php } ?><?php if($post['order_status_num']==3){ ?><a href="javascript:done_order(<?php echo $post['id']; ?>);">确认收货</a><?php } ?><?php if($post['order_status_num']==4){ ?><a class="activate" href="<?php echo route('weixin_order_comment',array('id'=>$post['id'])); ?>">评价</a><?php } ?></div>
  44. </div>
  45. <style>
  46. .goodslist{background-color:#fbfbfb;}
  47. .goodslist li{display:-webkit-box;margin:0 10px;padding:10px 0;border-bottom:1px solid #f1f1f1;}.goodslist li:last-child{border-bottom:none;}
  48. .goodslist li img{margin-right:10px;display:block;width:60px;height:60px;border:1px solid #e1e1e1;}
  49. .goodslist li p {display: block;-webkit-box-flex:1;width:100%;}
  50. .goodslist li p b {display:block;font-size:16px;font-weight:400;line-height:28px;color:#333;}
  51. .goodslist li p span {color:#f23030;font-size:18px;display: block;padding-top:5px;}
  52. .goodslist li p i{color:#666;float:right;font-size:14px;}
  53. .tit_h{font-size:16px;font-weight:400;background-color:#fff;color:#383838;height:42px;line-height:41px;padding-left:10px;padding-right:10px;border-bottom:1px solid #eee;}
  54. .tit_h span{color:#e94e45;}
  55. .floor .des{text-align:right;background-color:#fff;font-size:14px;padding:6px 10px;}
  56. .tag{background-color:#fff;padding-bottom:10px;text-align:right;}
  57. .tag a{color:#666;background-color:#fff;border:1px solid #ddd;border-radius:5px;font-size:14px;padding:2px 6px;display:inline-block;margin-right:10px;}
  58. .tag a.activate{color:#ea6f5a;border:1px solid #ea6f5a;}
  59. </style>
  60. <!-- 订单商品-end -->
  61. <div class="order_expand mt10">
  62. <p>创建时间:<?php echo date('Y-m-d H:i:s',$post['add_time']); ?></p>
  63. <p>订单编号:<?php echo $post['order_sn']; ?></p>
  64. </div>
  65. <style>
  66. .order_expand{background-color:#fff;padding:10px;font-size:14px;color:#666;}
  67. </style>
  68. <script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/layer/mobile/layer.js"></script>
  69. <script>
  70. var access_token = '<?php echo $_SESSION['weixin_user_info']['access_token']; ?>';
  71. //取消订单
  72. function cancel_order(order_id)
  73. {
  74. //询问框
  75. layer.open({
  76. content: '确定要取消该订单吗?'
  77. ,btn: ['确定', '取消']
  78. ,yes: function(){
  79. var url = '<?php echo env('APP_API_URL')."/order_user_cancel"; ?>';
  80. $.post(url,{access_token:access_token,id:order_id},function(res)
  81. {
  82. //提示
  83. layer.open({
  84. content: res.msg
  85. ,skin: 'msg'
  86. ,time: 2 //2秒后自动关闭
  87. });
  88. if(res.code==0)
  89. {
  90. location.reload();
  91. }
  92. else
  93. {
  94. }
  95. },'json');
  96. }
  97. });
  98. }
  99. //确认收货
  100. function done_order(order_id)
  101. {
  102. //询问框
  103. layer.open({
  104. content: '确定要这样操作吗?'
  105. ,btn: ['确定', '取消']
  106. ,yes: function(){
  107. var url = '<?php echo env('APP_API_URL')."/order_user_receipt_confirm"; ?>';
  108. $.post(url,{access_token:access_token,id:order_id},function(res)
  109. {
  110. //提示
  111. layer.open({
  112. content: res.msg
  113. ,skin: 'msg'
  114. ,time: 2 //2秒后自动关闭
  115. });
  116. if(res.code==0)
  117. {
  118. location.reload();
  119. }
  120. else
  121. {
  122. }
  123. },'json');
  124. }
  125. });
  126. }
  127. //删除订单
  128. function del_order(order_id)
  129. {
  130. //询问框
  131. layer.open({
  132. content: '确定要删除该订单吗?'
  133. ,btn: ['确定', '取消']
  134. ,yes: function(){
  135. var url = '<?php echo env('APP_API_URL')."/order_user_delete"; ?>';
  136. $.post(url,{access_token:access_token,id:order_id},function(res)
  137. {
  138. //提示
  139. layer.open({
  140. content: res.msg
  141. ,skin: 'msg'
  142. ,time: 2 //2秒后自动关闭
  143. });
  144. if(res.code==0)
  145. {
  146. location.reload();
  147. }
  148. else
  149. {
  150. }
  151. },'json');
  152. }
  153. });
  154. }
  155. </script>
  156. @include('weixin.common.footer')
  157. </body></html>