Authored by youfu

h5领券第4波文件代码优化 for Girlday.php

... ... @@ -31,8 +31,6 @@ class GirlfourController extends HuodongAction
}
$urlKids = Helpers::url('/cuxiao/girlfour/boy');
$urlEncode = strtr($urlKids, array('/' => '\\/'));
//获取跳转到个人中心-我的优惠券链接,并调用接口,完成领券操作
$myCouponUrl = Helpers::url('/home/coupons', null, 'default') . '?openby:yohobuy={"action":"go.coupon"}';
$this->_view->display('girlfour', array(
'staticTitle' => 'YOHO!BUY有货【春潮新势力】',
... ... @@ -70,8 +68,6 @@ class GirlfourController extends HuodongAction
}
$urlKids = Helpers::url('/cuxiao/girlfour/girl');
$urlEncode = strtr($urlKids, array('/' => '\\/'));
//获取跳转到个人中心-我的优惠券链接,并调用接口,完成领券操作
$myCouponUrl = Helpers::url('/home/coupons', null, 'default') . '?openby:yohobuy={"action":"go.coupon"}';
$this->_view->display('girlfour', array(
'staticTitle' => 'YOHO!BUY有货【春潮新势力】',
... ... @@ -109,16 +105,13 @@ class GirlfourController extends HuodongAction
$urlKids = Helpers::url('/cuxiao/girlfour/kid');
$urlEncode = strtr($urlKids, array('/' => '\\/'));
//获取跳转到个人中心-我的优惠券链接,并调用接口,完成领券操作
$myCouponUrl = Helpers::url('/home/coupons', null, 'default') . '?openby:yohobuy={"action":"go.coupon"}';
$isOnline = $this->getisOnline();
$this->_view->display('girlfour', array(
'staticTitle' => 'YOHO!BUY有货【春潮新势力】',
'staticJS' => array(
'main.js'
),
'jumpUrl' => $isAppLogged ? 'javascript:;' : $urlKids . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $urlEncode . '","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"N"}}',
'isOnline' => $isOnline,
'isOnline' => $this->getisOnline(),
'pageType' => 'kid',
'tab' => array('us', 'bag', 'yohope', 'shoes', 'more'),
'isApp' => $this->_isApp,
... ... @@ -146,17 +139,14 @@ class GirlfourController extends HuodongAction
}
$urlKids = Helpers::url('/cuxiao/girlfour/lifestyle');
$urlEncode = strtr($urlKids, array('/' => '\\/'));
//获取跳转到个人中心-我的优惠券链接,并调用接口,完成领券操作
$myCouponUrl = Helpers::url('/home/coupons', null, 'default') . '?openby:yohobuy={"action":"go.coupon"}';
$isOnline = $this->getisOnline();
$this->_view->display('girlfour', array(
'staticTitle' => 'YOHO!BUY有货【春潮新势力】',
'staticJS' => array(
'main.js'
),
'jumpUrl' => $isAppLogged ? 'javascript:;' : $urlKids . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $urlEncode . '","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"N"}}',
'isOnline' => $isOnline,
'isOnline' => $this->getisOnline(),
'pageType' => 'lifestyle',
'tab' => array('us', 'hot', 'more'),
'moreBrand' => 'http://feature.yoho.cn/0318/TICKETSLIFE/index.html',
... ...