diff --git a/frontend/controllers/MarketingStrategyController.php b/frontend/controllers/MarketingStrategyController.php index 308b60a..1a97366 100644 --- a/frontend/controllers/MarketingStrategyController.php +++ b/frontend/controllers/MarketingStrategyController.php @@ -386,15 +386,17 @@ class MarketingStrategyController extends UserBaseController $request = Yii::$app->request; $celuo_id = $request->get('celuo_id'); $fanxian_id = $request->get('fanxian_id'); + $type = $request->get('type',1); $items = GiftT::find() - ->where(['type_id'=>1]) + ->where(['type_id'=>$type]) ->all(); return $this->render('gifts',[ 'celuo_id'=>$celuo_id, 'fanxian_id'=>$fanxian_id, - 'items'=>$items + 'items'=>$items, + 'type' => $type ]); } diff --git a/frontend/views/marketing-strategy/edit.php b/frontend/views/marketing-strategy/edit.php index f5830d5..761199c 100644 --- a/frontend/views/marketing-strategy/edit.php +++ b/frontend/views/marketing-strategy/edit.php @@ -93,10 +93,10 @@ use \common\libs\MyLib; html += '
'; html += ''; html += '
'; - html += ''; + html += ''; html += ' 添加礼品'; html += ''; - html += ''; + html += ''; html += ' 添加礼券'; html += ''; html += '