...
|
...
|
@@ -728,7 +728,57 @@ class CouponController extends HuodongAction |
|
|
));
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 新客领券(第6波)2016年5月13号上线
|
|
|
*/
|
|
|
public function newuser6Action()
|
|
|
{
|
|
|
// 判断是否是应用访问, 拼接APP需要的URL参数
|
|
|
$isApp = null !== $this->get('app_version');
|
|
|
$isAppLogged = true;
|
|
|
if ($isApp) {
|
|
|
$isLogged = $this->get('uid') !== null;
|
|
|
$isAppLogged = $this->checkIsLogin();
|
|
|
} else {
|
|
|
$isLogged = $this->getUid();
|
|
|
}
|
|
|
$urlNewuser = Helpers::url('/cuxiao/coupon/newuser6');
|
|
|
$urlYohope = Helpers::url('/cuxiao/coupon/yohope');
|
|
|
$urlHelp = Helpers::url('/cuxiao/coupon/help');
|
|
|
$urlMycoupon = Helpers::url('/home/coupons', null, 'default');
|
|
|
$urlEncode = strtr($urlNewuser, array('/' => '\\/'));
|
|
|
$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') . '?openby:yohobuy={"action":"go.home","params":{"gender":"' . $gender . '","channel":"' . $channel . '"}}';
|
|
|
|
|
|
$this->_view->display('newuser6-test', array(
|
|
|
'activityId' => 495,//627
|
|
|
'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', // 标识是否登录
|
|
|
'url_mycoupon' => $urlMycoupon . '?openby:yohobuy={"action":"go.coupon"}',
|
|
|
'url_yohope' => $urlYohope . '?yohobuy={"action":"go.h5","params":{"islogin":"Y","type":0,"url":"' . $urlYohope . '","param":{}}}',
|
|
|
'url_help' => $urlHelp . '?yohobuy={"action":"go.h5","params":{"islogin":"Y","type":0,"url":"' . $urlHelp . '","param":{}}}',
|
|
|
'url_more' => $url,
|
|
|
|
|
|
'url_1' => 'http://list.m.yohobuy.com/?msort=1&misort=18,20,21,22,172,226&openby:yohobuy={"action":"go.list","params":{"msort":"1","misort":"18,20,21,22,172,226","title":"外套"}}',
|
|
|
'url_2' => 'http://list.m.yohobuy.com/?msort=1&misort=12,16,257&openby:yohobuy={"action":"go.list","params":{"msort":"1","misort":"12,16,257","title":"春装"}}',
|
|
|
'url_3' => 'http://list.m.yohobuy.com/?gender=2,3&msort=4&misort=31,32&openby:yohobuy={"action":"go.list","params":{"msort":"4","misort":"31,32","gender":"2,3","title":"裙装"}}',
|
|
|
'url_4' => 'http://list.m.yohobuy.com/?msort=3&misort=26,27,28&openby:yohobuy={"action":"go.list","params":{"msort":"3","misort":"26,27,28","title":"裤装"}}',
|
|
|
'url_5' => 'http://list.m.yohobuy.com/?msort=7,8&openby:yohobuy={"action":"go.list","params":{"msort":"7,8","title":"包配"}}',
|
|
|
'url_6' => 'http://list.m.yohobuy.com/?msort=10&openby:yohobuy={"action":"go.list","params":{"msort":"10","title":"创意生活"}}',
|
|
|
'url_7' => 'http://list.m.yohobuy.com/?msort=1&misort=12&openby:yohobuy={"action":"go.list","params":{"msort":"1","misort":"12","title":"衬衫"}}',
|
|
|
));
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 新客领券YOHOPE
|
...
|
...
|
|