Showing
1 changed file
with
50 additions
and
0 deletions
@@ -728,7 +728,57 @@ class CouponController extends HuodongAction | @@ -728,7 +728,57 @@ class CouponController extends HuodongAction | ||
728 | )); | 728 | )); |
729 | } | 729 | } |
730 | 730 | ||
731 | + /** | ||
732 | + * 新客领券(第6波)2016年5月13号上线 | ||
733 | + */ | ||
734 | + public function newuser6Action() | ||
735 | + { | ||
736 | + // 判断是否是应用访问, 拼接APP需要的URL参数 | ||
737 | + $isApp = null !== $this->get('app_version'); | ||
738 | + $isAppLogged = true; | ||
739 | + if ($isApp) { | ||
740 | + $isLogged = $this->get('uid') !== null; | ||
741 | + $isAppLogged = $this->checkIsLogin(); | ||
742 | + } else { | ||
743 | + $isLogged = $this->getUid(); | ||
744 | + } | ||
745 | + $urlNewuser = Helpers::url('/cuxiao/coupon/newuser6'); | ||
746 | + $urlYohope = Helpers::url('/cuxiao/coupon/yohope'); | ||
747 | + $urlHelp = Helpers::url('/cuxiao/coupon/help'); | ||
748 | + $urlMycoupon = Helpers::url('/home/coupons', null, 'default'); | ||
749 | + $urlEncode = strtr($urlNewuser, array('/' => '\\/')); | ||
750 | + $channel = $this->get('yh_channel', '1'); | ||
751 | + switch (strval($channel)) { | ||
752 | + case '1': | ||
753 | + $gender = '1,3'; | ||
754 | + break; | ||
755 | + case '2': | ||
756 | + $gender = '2,3'; | ||
757 | + break; | ||
758 | + default: | ||
759 | + $gender = '1,2,3'; | ||
760 | + } | ||
761 | + $url = Helpers::url('/boys', array(), 'default') . '?openby:yohobuy={"action":"go.home","params":{"gender":"' . $gender . '","channel":"' . $channel . '"}}'; | ||
731 | 762 | ||
763 | + $this->_view->display('newuser6-test', array( | ||
764 | + 'activityId' => 495,//627 | ||
765 | + 'staticTitle' => '新人潮这看,超值惊喜等你领', // 标题 | ||
766 | + 'jumpUrl' => $isAppLogged ? 'javascript:;' : $urlNewuser . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $urlEncode . '","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"N"}}', | ||
767 | + 'isLogged' => $isLogged ? 'Y' : 'N', // 标识是否登录 | ||
768 | + 'url_mycoupon' => $urlMycoupon . '?openby:yohobuy={"action":"go.coupon"}', | ||
769 | + 'url_yohope' => $urlYohope . '?yohobuy={"action":"go.h5","params":{"islogin":"Y","type":0,"url":"' . $urlYohope . '","param":{}}}', | ||
770 | + 'url_help' => $urlHelp . '?yohobuy={"action":"go.h5","params":{"islogin":"Y","type":0,"url":"' . $urlHelp . '","param":{}}}', | ||
771 | + 'url_more' => $url, | ||
772 | + | ||
773 | + '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":"外套"}}', | ||
774 | + '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":"春装"}}', | ||
775 | + '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":"裙装"}}', | ||
776 | + '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":"裤装"}}', | ||
777 | + 'url_5' => 'http://list.m.yohobuy.com/?msort=7,8&openby:yohobuy={"action":"go.list","params":{"msort":"7,8","title":"包配"}}', | ||
778 | + 'url_6' => 'http://list.m.yohobuy.com/?msort=10&openby:yohobuy={"action":"go.list","params":{"msort":"10","title":"创意生活"}}', | ||
779 | + 'url_7' => 'http://list.m.yohobuy.com/?msort=1&misort=12&openby:yohobuy={"action":"go.list","params":{"msort":"1","misort":"12","title":"衬衫"}}', | ||
780 | + )); | ||
781 | + } | ||
732 | 782 | ||
733 | /** | 783 | /** |
734 | * 新客领券YOHOPE | 784 | * 新客领券YOHOPE |
-
Please register or login to post a comment