فهرست منبع

activityController

DengTao 8 سال پیش
والد
کامیت
2550558cc5
1فایلهای تغییر یافته به همراه9 افزوده شده و 3 حذف شده
  1. 9 3
      www/protected/modules/common/controllers/ActivityController.php

+ 9 - 3
www/protected/modules/common/controllers/ActivityController.php

@@ -9,9 +9,9 @@
 class ActivityController extends O2oBaseController  {
     //扫码获取代金券
 
-   /* public function actionIndex(){
+    public function actionIndex(){
         $this->renderpartial('index');
-    }*/
+    }
 
     public function actionGetCoupon() {
         $signPackage = CommonWeixin::get_sign();
@@ -89,7 +89,13 @@ class ActivityController extends O2oBaseController  {
         }
 
         if($home_page){
-            $this->renderpartial('index');
+            $this->renderpartial('index', array(
+                'version' => '2015111601',
+                'debug' => 'false',
+                'signPackage' => $signPackage,
+                'userId' => $userId,
+                'appToken' => $appToken,
+            ));
         }else{
 
             $this->renderpartial('getCoupon', array(