ops.html 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?php if( $item['order_status_id'] == 3){ ?>
  2. <!--未付款-->
  3. <?php
  4. $is_pay_show = true;
  5. if( $_W['role'] == 'agenter' )
  6. {
  7. $supper_info = json_decode(base64_decode($_GPC['__lionfish_comshop_agent']), true);
  8. $is_pay_show = false;
  9. }
  10. ?>
  11. <?php if($is_pay_show){ ?>
  12. <a class="btn btn-primary btn-xs" data-toggle="ajaxPost" href="{:U('order/oppay', array('id' => $item['order_id']))}" data-confirm="确认此订单已付款吗?">确认付款</a>
  13. <?php } ?>
  14. <?php }elseif( $item['order_status_id'] == 1 ){ ?>
  15. <!--已付款-->
  16. <?php if( $item['order_status_id'] == 1 && $item['delivery'] == 'express' ){ ?>
  17. <!--快递 发货-->
  18. <a class="btn btn-primary btn-xs" data-toggle="ajaxModal" href="{:U('order/opsend', array('id' => $item['order_id']))}">确认发货</a>
  19. <?php }elseif( $item['order_status_id'] == 1 && ($item['delivery'] == 'pickup' || $item['delivery'] == 'tuanz_send' ) ){ ?>
  20. <a class="btn btn-primary btn-xs" data-toggle='ajaxPost' href="{:U('order/opsend_tuanz', array('id' => $item['order_id']))}">确认配送</a>
  21. <?php }else{ ?>
  22. <?php if( $item['isverify']==1){ ?>
  23. <!--核销 确认核销-->
  24. <a class="btn btn-primary btn-xs" data-toggle='ajaxPost' href="{:U('order/opfetch', array('id' => $item['order_id']))}" data-confirm="确认使用吗?">确认使用</a>
  25. <?php }else{ ?>
  26. <!--自提 确认取货-->
  27. <a class="btn btn-primary btn-xs" data-toggle='ajaxPost' href="{:U('order/opfetch', array('id' => $item['order_id']))}" data-confirm="确认<?php if( !empty($item['ccard'])){ ?>充值<?php }else{ ?>取货<?php } ?>吗?">确认<?php if( !empty($item['ccard'])){ ?>充值<?php }else{ ?>取货<?php } ?></a>
  28. <?php } ?>
  29. <?php } ?>
  30. <?php if( $item['sendtype'] > 0){ ?>
  31. <a class="text-primary" data-toggle='ajaxModal' href="{:U('order/opsendcancel', array('id' => $item['order_id']))}" >取消发货</a>
  32. <?php } ?>
  33. <?php }elseif( $item['order_status_id'] == 14 && ($item['delivery'] == 'pickup' || $item['delivery'] == 'tuanz_send') ){ ?>
  34. <a class="btn btn-primary btn-xs" data-toggle='ajaxPost' href="{:U('order/opsend_tuanz_over', array('id' => $item['order_id']))}">确认送达团长</a>
  35. <?php }elseif( $item['order_status_id'] == 14 && ($item['delivery'] == 'express') ){ ?>
  36. <a class="btn btn-primary btn-xs" data-toggle='ajaxPost' href="{:U('order/opreceive', array('id' => $item['order_id']))}" data-confirm="确认订单收货吗?">确认收货</a><br />
  37. <?php }elseif( $item['order_status_id'] == 4 || $item['order_status_id'] == 6 ){ ?>
  38. <!--已发货-->
  39. <?php if( $item['order_status_id'] == 4){ ?>
  40. <!--快递 取消发货-->
  41. <a class="btn btn-primary btn-xs" data-toggle='ajaxPost' href="{:U('order/opreceive', array('id' => $item['order_id']))}" data-confirm="确认订单收货吗?">确认收货</a><br />
  42. <?php if( $item['delivery'] == 'express'){ ?>
  43. <a class="text-primary" data-toggle="ajaxModal" href="{:U('order/opchangeexpress', array('id' => $item['order_id']))}">修改物流</a>
  44. <a class="text-primary" data-toggle='ajaxModal' href="{:U('order/opsendcancel', array('id' => $item['order_id']))}" >取消发货</a>
  45. <?php } ?>
  46. <?php }else{ ?>
  47. <a class="btn btn-primary btn-xs" data-toggle='ajaxPost' href="{:U('order/opfinish', array('id' => $item['order_id']))}" data-confirm="确认完成订单吗?">确认完成</a>
  48. <?php } ?>
  49. <?php }elseif( $item['order_status_id'] == 3 ){ ?>
  50. <?php } ?>