Authored by hf

do add cuxiao christmas page

... ... @@ -59,8 +59,8 @@
</div>
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser2/09.jpg">
<span class="href href-left get-coupon" href="{{jumpUrl}}" param="12042"></span>
<span class="href href-right get-coupon" href="{{jumpUrl}}" param="12043"></span>
<span class="href href-left get-coupon" href="{{jumpUrl}}" param="16753"></span>
<span class="href href-right get-coupon" href="{{jumpUrl}}" param="16755"></span>
</div>
<img src="{{jsUrl}}/cuxiao/img/newuser2/line-1.jpg">
<div class="img-box">
... ... @@ -70,8 +70,8 @@
</div>
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser2/11.jpg">
<span class="href href-left get-coupon" href="{{jumpUrl}}" param="12044"></span>
<span class="href href-right get-coupon" href="{{jumpUrl}}" param="12045"></span>
<span class="href href-left get-coupon" href="{{jumpUrl}}" param="16757"></span>
<span class="href href-right get-coupon" href="{{jumpUrl}}" param="16759"></span>
</div>
<img src="{{jsUrl}}/cuxiao/img/newuser2/line-1.jpg">
<div class="img-box">
... ... @@ -81,8 +81,8 @@
</div>
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser2/13.jpg">
<span class="href href-left get-coupon" onclick="" href="{{jumpUrl}}" param="12046"></span>
<span class="href href-right get-coupon" onclick="" href="{{jumpUrl}}" param="12047"></span>
<span class="href href-left get-coupon" onclick="" href="{{jumpUrl}}" param="16761"></span>
<span class="href href-right get-coupon" onclick="" href="{{jumpUrl}}" param="16763"></span>
</div>
<img src="{{jsUrl}}/cuxiao/img/newuser2/line-1.jpg">
<div class="img-box">
... ... @@ -92,8 +92,8 @@
</div>
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser2/15.jpg">
<span class="href href-left get-coupon" onclick="" href="{{jumpUrl}}" param="12048"></span>
<span class="href href-right get-coupon" onclick="" href="{{jumpUrl}}" param="12049"></span>
<span class="href href-left get-coupon" onclick="" href="{{jumpUrl}}" param="16765"></span>
<span class="href href-right get-coupon" onclick="" href="{{jumpUrl}}" param="16767"></span>
</div>
<img src="{{jsUrl}}/cuxiao/img/newuser2/line-1.jpg">
<div class="img-box">
... ... @@ -103,8 +103,8 @@
</div>
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser2/17.jpg">
<span class="href href-left get-coupon" href="{{jumpUrl}}" param="12050"></span>
<span class="href href-right get-coupon" href="{{jumpUrl}}" param="12051"></span>
<span class="href href-left get-coupon" href="{{jumpUrl}}" param="16769"></span>
<span class="href href-right get-coupon" href="{{jumpUrl}}" param="16771"></span>
</div>
<img src="{{jsUrl}}/cuxiao/img/newuser2/line-1.jpg">
<div class="img-box">
... ...
... ... @@ -101,7 +101,7 @@ class ChristmasController extends HuodongAction
'shareLink' => 'http://feature.yohobuy.com/0/0/701/index.html',
'shareTitle' => 'YOHO!BUY有货【潮集圣诞】第二弹来袭!1000元优惠券引爆圣诞!',
'shareDesc' => '万件潮品限时5折封顶,冬季优品最高直减800元,还有惊喜圣诞礼物等你来挑哦!',
'shareImg' => 'http://img12.static.yhbimg.com/couponImg/2015/12/10/09/029fd41969b67002126ff7a71fe5396b6e.png',
'shareImg' => 'http://img11.static.yhbimg.com/couponImg/2015/12/17/09/014bba1e01a0aef86fa4c81f1c926a0d62.png',
'showPopupFlag' => $showPopupFlag,
'myCouponUrl' => $myCouponUrl,
'bannerUrl_1' => 'http://feature.yoho.cn/1211/1211APPHOMEBOY/index.html?openby:yohobuy={"action":"go.h5","params":{"title":"潮集圣诞","url":"http://feature.yoho.cn/1211/1211APPHOMEBOY/index.html?","share":"\/operations\/api\/v5\/webshare\/getShare","shareparam":{"share_id":"454"},"param":{"share_id":"454"}}}',
... ...
... ... @@ -502,10 +502,8 @@ class CouponController extends HuodongAction
));
}
/**
* 新客领券2
*
*
/**
* 新客领券(第二波)12月21号上线
*/
public function newuser2Action()
{
... ... @@ -523,12 +521,21 @@ class CouponController extends HuodongAction
$urlHelp = Helpers::url('/cuxiao/coupon/help');
$urlMycoupon = Helpers::url('/home/coupons', null, 'default');
$urlEncode = strtr($urlNewuser, array('/' => '\\/'));
$gender = $this->get('gender', '1,3');
$channel = $this -> get('yh_channel','1');
$url = Helpers::url('/boys') . '?openbuy:yohobuy={"action":"go.home","params":{"gender":"' . $gender . '","channel":"' . $channel . '"}}';
$channel = $this -> get('yh_channel', '1');
switch (strval($channel)) {
case '1':
$gender = '1,3';
break;
case '2':
$gender = '2,3';
break;
default:
$gender = '1,2,3';
}
$url = Helpers::url('/boys', array(), 'default') . '?openbuy:yohobuy={"action":"go.home","params":{"gender":"' . $gender . '","channel":"' . $channel . '"}}';
$this->_view->display('newuser2', array(
'activityId' => 87, // 活动ID
'activityId' => 444, // 活动ID
'staticTitle' => '新人潮这看,超值惊喜等你领', // 标题
'jumpUrl' => $isAppLogged ? 'javascript:;' : $urlNewuser . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $urlEncode . '","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"N"}}',
'isLogged' => $isLogged ? 'Y' : 'N', // 标识是否登录
... ...