Authored by hf

code review by fei.hong: do huodong girlday coupon

@@ -17,7 +17,7 @@ @@ -17,7 +17,7 @@
17 <div class="share"> 17 <div class="share">
18 </div> 18 </div>
19 <a class="banner" href="{{banner.url}}"> 19 <a class="banner" href="{{banner.url}}">
20 - <img src="{{banner.img}}"> 20 + <img src="{{banner.img}}" style="border: none;">
21 </a> 21 </a>
22 <div class="footer"> 22 <div class="footer">
23 </div> 23 </div>
@@ -5,17 +5,17 @@ @@ -5,17 +5,17 @@
5 * Date: 2016/3/2 5 * Date: 2016/3/2
6 * Time: 10:48 6 * Time: 10:48
7 */ 7 */
8 -use Action\HuodongAction; 8 +use Action\HuodongWebAction;
9 use Cuxiao\GirldayModel; 9 use Cuxiao\GirldayModel;
10 use WebPlugin\Helpers; 10 use WebPlugin\Helpers;
11 /** 11 /**
12 * 女生节活动领券-第二波 12 * 女生节活动领券-第二波
13 * @author Administrator 13 * @author Administrator
14 */ 14 */
15 -class GirldayController extends HuodongAction 15 +class GirldayController extends HuodongWebAction
16 { 16 {
17 - // const STATIC_FILE = 'http://localhost:2222/1.0.0';  
18 - const STATIC_FILE = 'http://cdn.yoho.cn/huodong/2016xinshili-2-web/1.0.0'; 17 + // const STATIC_FILE = 'http://localhost:2222/1.0.3';
  18 + const STATIC_FILE = 'http://cdn.yoho.cn/huodong/2016xinshili-2-web/1.0.3';
19 /** 19 /**
20 * 检测登录状态 20 * 检测登录状态
21 * 21 *
@@ -59,7 +59,7 @@ class GirldayController extends HuodongAction @@ -59,7 +59,7 @@ class GirldayController extends HuodongAction
59 case 'testing': // 测试 59 case 'testing': // 测试
60 case 'develop': // 开发 60 case 'develop': // 开发
61 default: 61 default:
62 - return 90; 62 + return 528; //490;
63 } 63 }
64 } 64 }
65 65
@@ -86,7 +86,7 @@ class GirldayController extends HuodongAction @@ -86,7 +86,7 @@ class GirldayController extends HuodongAction
86 86
87 public function indexAction() 87 public function indexAction()
88 { 88 {
89 - 89 +
90 $this->checkLogin(); 90 $this->checkLogin();
91 //获取跳转到个人中心-我的优惠券链接,并调用接口,完成领券操作 91 //获取跳转到个人中心-我的优惠券链接,并调用接口,完成领券操作
92 $myCouponUrl = Helpers::url('/home/coupons', null, 'default'); 92 $myCouponUrl = Helpers::url('/home/coupons', null, 'default');
@@ -99,7 +99,7 @@ class GirldayController extends HuodongAction @@ -99,7 +99,7 @@ class GirldayController extends HuodongAction
99 ), 99 ),
100 'couponUrl' => $myCouponUrl, // 个人中心优惠券地址 100 'couponUrl' => $myCouponUrl, // 个人中心优惠券地址
101 'banner' => array( 101 'banner' => array(
102 - 'img' => '', 102 + 'img' => 'http://img02.yohoboys.com/staticimg/2016/03/10/10/020ea7cb1f9c2f26b14e08107f778485ff.jpg',
103 'url' => 'http://www.yohobuy.com/special_14548_0310PCHOME.html', 103 'url' => 'http://www.yohobuy.com/special_14548_0310PCHOME.html',
104 ), 104 ),
105 'selectUrl' => 'http://www.yohobuy.com/home/coupons', 105 'selectUrl' => 'http://www.yohobuy.com/home/coupons',