Cashorder.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /**
  3. * Niushop商城系统 - 团队十年电商经验汇集巨献!
  4. * =========================================================
  5. * Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
  6. * ----------------------------------------------
  7. * 官方网址: https://www.niushop.com
  8. * =========================================================
  9. */
  10. namespace app\shop\controller;
  11. use app\model\order\OrderCommon as OrderCommonModel;
  12. /**
  13. * 自提订单
  14. * Class storeorder
  15. * @package app\shop\controller
  16. */
  17. class Cashorder extends BaseShop
  18. {
  19. public function __construct()
  20. {
  21. //执行父类构造函数
  22. parent::__construct();
  23. }
  24. /**
  25. * 订单详情
  26. * @return mixed
  27. */
  28. public function detail()
  29. {
  30. $order_id = input("order_id", 0);
  31. $order_common_model = new OrderCommonModel();
  32. $order_detail_result = $order_common_model->getOrderDetail($order_id);
  33. $order_detail = $order_detail_result[ "data" ];
  34. $this->assign("order_detail", $order_detail);
  35. $this->assign("http_type", get_http_type());
  36. return $this->fetch("cashorder/detail");
  37. }
  38. }