Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
yangyang
9 years ago
Commit
26a1d28b123c8e87aefa89ce968673d537cbbdd0
1 parent
ac4feb3d
领券5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
0 deletions
yohobuy/huodong.m.yohobuy.com/application/modules/Cuxiao/controllers/Coupon.php
yohobuy/huodong.m.yohobuy.com/application/modules/Cuxiao/controllers/Coupon.php
View file @
26a1d28
...
...
@@ -676,6 +676,60 @@ class CouponController extends HuodongAction
));
}
/**
* 新客领券(第5波)2016年4月26号上线
*/
public
function
newuser5Action
()
{
// 判断是否是应用访问, 拼接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/newuser5'
);
$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
(
'newuser5'
,
array
(
'activityId'
=>
604
,
//活动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'
,
// 标识是否登录
'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":"创意生活"}}'
));
}
/**
* 新客领券YOHOPE
*
...
...
Please
register
or
login
to post a comment