...
|
...
|
@@ -57,7 +57,7 @@ class CouponController extends HuodongAction |
|
|
'activityId' => 75, // 活动ID
|
|
|
'staticTitle' => 'Yoho!Buy有货2015感恩季,1000万元+品牌专属优惠券大派送!', // 标题
|
|
|
|
|
|
'jumpUrl' => $isAppLogged ? 'javascript:;' : $urlBoys . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $urlEncode . '","param":{}},"requesturl":{},"priority":"N"}}',
|
|
|
'jumpUrl' => $isAppLogged ? 'javascript:;' : $urlBoys . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $urlEncode . '","param":{"from":"app"}},"requesturl":{},"priority":"N"}}',
|
|
|
'weixinShare' => $isApp ? false : true, // 是否需要微信分享
|
|
|
'shareLink' => $urlBoys,
|
|
|
'shareTitle' => 'Yoho!Buy有货2015感恩季,1000万元+品牌专属优惠券大派送!',
|
...
|
...
|
@@ -143,7 +143,7 @@ class CouponController extends HuodongAction |
|
|
$this->_view->display('girlsbrand', array(
|
|
|
'activityId' => 76, // 活动ID
|
|
|
'staticTitle' => 'Yoho!Buy有货2015感恩季,1000万元+品牌专属优惠券大派送!', // 标题
|
|
|
'jumpUrl' => $isAppLogged ? 'javascript:;' : $urlGirls . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $urlEncode . '","param":{}},"requesturl":{},"priority":"N"}}',
|
|
|
'jumpUrl' => $isAppLogged ? 'javascript:;' : $urlGirls . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $urlEncode . '","param":{"from":"app"}},"requesturl":{},"priority":"N"}}',
|
|
|
|
|
|
'weixinShare' => $isApp ? false : true, // 是否需要微信分享
|
|
|
'shareLink' => $urlGirls,
|
...
|
...
|
@@ -235,7 +235,7 @@ class CouponController extends HuodongAction |
|
|
'activityId' => 77, // 活动ID
|
|
|
'staticTitle' => 'Yoho!Buy有货2015感恩季,1000万元+品牌专属优惠券大派送!', // 标题
|
|
|
|
|
|
'jumpUrl' => $isAppLogged ? 'javascript:;' : $urlKids . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $urlEncode . '","param":{}},"requesturl":{},"priority":"N"}}',
|
|
|
'jumpUrl' => $isAppLogged ? 'javascript:;' : $urlKids . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $urlEncode . '","param":{"from":"app"}},"requesturl":{},"priority":"N"}}',
|
|
|
|
|
|
'weixinShare' => $isApp ? false : true, // 是否需要微信分享
|
|
|
'shareLink' => $urlKids,
|
...
|
...
|
@@ -283,7 +283,7 @@ class CouponController extends HuodongAction |
|
|
'activityId' => 78, // 活动ID
|
|
|
'staticTitle' => 'Yoho!Buy有货2015感恩季,1000万元+品牌专属优惠券大派送!', // 标题
|
|
|
|
|
|
'jumpUrl' => $isAppLogged ? 'javascript:;' : $urlLifestyle . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $urlEncode . '","param":{}},"requesturl":{},"priority":"N"}}',
|
|
|
'jumpUrl' => $isAppLogged ? 'javascript:;' : $urlLifestyle . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $urlEncode . '","param":{"from":"app"}},"requesturl":{},"priority":"N"}}',
|
|
|
|
|
|
'weixinShare' => $isApp ? false : true, // 是否需要微信分享
|
|
|
'shareLink' => $urlLifestyle,
|
...
|
...
|
@@ -328,14 +328,15 @@ class CouponController extends HuodongAction |
|
|
$urlNewuser = Helpers::url('/cuxiao/coupon/newuser');
|
|
|
$urlYohope = Helpers::url('/cuxiao/coupon/yohope');
|
|
|
$urlHelp = Helpers::url('/cuxiao/coupon/help');
|
|
|
$urlMycoupon = Helpers::url('/home/coupons');
|
|
|
$urlEncode = strtr($urlNewuser, array('/' => '\\/'));
|
|
|
|
|
|
$this->_view->display('newuser', array(
|
|
|
'activityId' => 83, // 活动ID
|
|
|
'staticTitle' => '新人潮这看,超值惊喜等你领', // 标题
|
|
|
'jumpUrl' => $isAppLogged ? 'javascript:;' : $urlNewuser . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $urlEncode . '","param":{}},"requesturl":{},"priority":"N"}}',
|
|
|
'jumpUrl' => $isAppLogged ? 'javascript:;' : $urlNewuser . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $urlEncode . '","param":{"from":"app"}},"requesturl":{},"priority":"N"}}',
|
|
|
|
|
|
'url_mycoupon' => '',
|
|
|
'url_mycoupon' => $urlMycoupon . '?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' => 'http://list.m.yohobuy.com/?msort=1&openby:yohobuy={"action":"go.list","params":{"msort":"1","title":"上衣"}}',
|
...
|
...
|
@@ -492,51 +493,6 @@ class CouponController extends HuodongAction |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取分享链接
|
|
|
*
|
|
|
* @param int id 活动ID
|
|
|
* @return json
|
|
|
*/
|
|
|
public function getshareAction()
|
|
|
{
|
|
|
$url = '';
|
|
|
$id = $this->get('id');
|
|
|
if (!is_numeric($id)) {
|
|
|
$id = 0;
|
|
|
}
|
|
|
switch (intval($id)) {
|
|
|
case 75:
|
|
|
$url = Helpers::url('/cuxiao/coupon/boysbrand');
|
|
|
break;
|
|
|
case 76:
|
|
|
$url = Helpers::url('/cuxiao/coupon/girlsbrand');
|
|
|
break;
|
|
|
case 77:
|
|
|
$url = Helpers::url('/cuxiao/coupon/kidsbrand');
|
|
|
break;
|
|
|
case 78:
|
|
|
$url = Helpers::url('/cuxiao/coupon/lifestyle');
|
|
|
break;
|
|
|
default:
|
|
|
$url = Helpers::url('/cuxiao/coupon/boysbrand');
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
$result = array(
|
|
|
'code' => 200,
|
|
|
'message' => '领券活动分享',
|
|
|
'data' => array(
|
|
|
'title' => 'Yoho!Buy有货2015感恩季,1000万元+品牌专属优惠券大派送!',
|
|
|
'content' => '2015感恩季!品牌专属优惠券限时送!先领券,再购物,让你乐享整个冬季!',
|
|
|
'pic' => 'http://img12.static.yhbimg.com/couponImg/2015/11/26/09/0226ad7f8bcf5467a789e17b761c7557e0.jpg',
|
|
|
'url' => $url,
|
|
|
),
|
|
|
);
|
|
|
|
|
|
$this->echoJson($result);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 检查用户是否登录
|
|
|
*
|
|
|
* @return bool (false:表示未登录,true:表示已登录)
|
...
|
...
|
|