From fe6986f3676a943414dd852fc0da2a0fbff890ca Mon Sep 17 00:00:00 2001 From: zengchaoxin Date: Fri, 11 Oct 2019 10:39:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E7=A4=BC=E5=88=B8=E7=AD=96?= =?UTF-8?q?=E7=95=A5=E5=8A=9F=E8=83=BD=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/controllers/MarketingStrategyController.php | 6 ++++-- frontend/views/marketing-strategy/edit.php | 9 +++++---- frontend/views/marketing-strategy/gifts.php | 6 +++--- 3 files changed, 12 insertions(+), 9 deletions(-) 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 += '