OrderFormLogic.php 811 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace addons\Store\common\logic\order;
  3. use common\enums\PreviewTypeEnum;
  4. use common\enums\ShippingTypeEnum;
  5. use common\helpers\ArrayHelper;
  6. use common\logic\order\BaseOrderForm;
  7. use common\models\order\Order;
  8. use Yii;
  9. use yii\base\Model;
  10. /**
  11. * 订单预览表单逻辑层
  12. * @Author bing
  13. * @DateTime 2021-09-22 18:16:58
  14. * @copyright: Copyright (c) 2020 广东七件事集团
  15. */
  16. class OrderFormLogic extends BaseOrderForm {
  17. public $freight_type;
  18. public $store_address; // 营销活动类型
  19. public $initial_delivery_amount; // 多少元起送
  20. public $out_of_range; // 是否超出配送范围
  21. public function getDefaultForm($mall_id,$user_id){
  22. $model = new self();
  23. $model->mall_id = $mall_id;
  24. $model->user_id = $user_id;
  25. return $model;
  26. }
  27. }