|
@@ -57,7 +57,7 @@ class CouponController extends HuodongAction |
|
@@ -57,7 +57,7 @@ class CouponController extends HuodongAction |
57
|
'activityId' => 75, // 活动ID
|
57
|
'activityId' => 75, // 活动ID
|
58
|
'staticTitle' => 'Yoho!Buy有货2015感恩季,1000万元+品牌专属优惠券大派送!', // 标题
|
58
|
'staticTitle' => 'Yoho!Buy有货2015感恩季,1000万元+品牌专属优惠券大派送!', // 标题
|
59
|
|
59
|
|
60
|
- 'jumpUrl' => $isAppLogged ? 'javascript:;' : $urlBoys . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $urlEncode . '","param":{}},"requesturl":{},"priority":"N"}}',
|
60
|
+ 'jumpUrl' => $isAppLogged ? 'javascript:;' : $urlBoys . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $urlEncode . '","param":{"from":"app"}},"requesturl":{},"priority":"N"}}',
|
61
|
'weixinShare' => $isApp ? false : true, // 是否需要微信分享
|
61
|
'weixinShare' => $isApp ? false : true, // 是否需要微信分享
|
62
|
'shareLink' => $urlBoys,
|
62
|
'shareLink' => $urlBoys,
|
63
|
'shareTitle' => 'Yoho!Buy有货2015感恩季,1000万元+品牌专属优惠券大派送!',
|
63
|
'shareTitle' => 'Yoho!Buy有货2015感恩季,1000万元+品牌专属优惠券大派送!',
|
|
@@ -143,7 +143,7 @@ class CouponController extends HuodongAction |
|
@@ -143,7 +143,7 @@ class CouponController extends HuodongAction |
143
|
$this->_view->display('girlsbrand', array(
|
143
|
$this->_view->display('girlsbrand', array(
|
144
|
'activityId' => 76, // 活动ID
|
144
|
'activityId' => 76, // 活动ID
|
145
|
'staticTitle' => 'Yoho!Buy有货2015感恩季,1000万元+品牌专属优惠券大派送!', // 标题
|
145
|
'staticTitle' => 'Yoho!Buy有货2015感恩季,1000万元+品牌专属优惠券大派送!', // 标题
|
146
|
- 'jumpUrl' => $isAppLogged ? 'javascript:;' : $urlGirls . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $urlEncode . '","param":{}},"requesturl":{},"priority":"N"}}',
|
146
|
+ 'jumpUrl' => $isAppLogged ? 'javascript:;' : $urlGirls . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $urlEncode . '","param":{"from":"app"}},"requesturl":{},"priority":"N"}}',
|
147
|
|
147
|
|
148
|
'weixinShare' => $isApp ? false : true, // 是否需要微信分享
|
148
|
'weixinShare' => $isApp ? false : true, // 是否需要微信分享
|
149
|
'shareLink' => $urlGirls,
|
149
|
'shareLink' => $urlGirls,
|
|
@@ -235,7 +235,7 @@ class CouponController extends HuodongAction |
|
@@ -235,7 +235,7 @@ class CouponController extends HuodongAction |
235
|
'activityId' => 77, // 活动ID
|
235
|
'activityId' => 77, // 活动ID
|
236
|
'staticTitle' => 'Yoho!Buy有货2015感恩季,1000万元+品牌专属优惠券大派送!', // 标题
|
236
|
'staticTitle' => 'Yoho!Buy有货2015感恩季,1000万元+品牌专属优惠券大派送!', // 标题
|
237
|
|
237
|
|
238
|
- 'jumpUrl' => $isAppLogged ? 'javascript:;' : $urlKids . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $urlEncode . '","param":{}},"requesturl":{},"priority":"N"}}',
|
238
|
+ 'jumpUrl' => $isAppLogged ? 'javascript:;' : $urlKids . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $urlEncode . '","param":{"from":"app"}},"requesturl":{},"priority":"N"}}',
|
239
|
|
239
|
|
240
|
'weixinShare' => $isApp ? false : true, // 是否需要微信分享
|
240
|
'weixinShare' => $isApp ? false : true, // 是否需要微信分享
|
241
|
'shareLink' => $urlKids,
|
241
|
'shareLink' => $urlKids,
|
|
@@ -283,7 +283,7 @@ class CouponController extends HuodongAction |
|
@@ -283,7 +283,7 @@ class CouponController extends HuodongAction |
283
|
'activityId' => 78, // 活动ID
|
283
|
'activityId' => 78, // 活动ID
|
284
|
'staticTitle' => 'Yoho!Buy有货2015感恩季,1000万元+品牌专属优惠券大派送!', // 标题
|
284
|
'staticTitle' => 'Yoho!Buy有货2015感恩季,1000万元+品牌专属优惠券大派送!', // 标题
|
285
|
|
285
|
|
286
|
- 'jumpUrl' => $isAppLogged ? 'javascript:;' : $urlLifestyle . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $urlEncode . '","param":{}},"requesturl":{},"priority":"N"}}',
|
286
|
+ 'jumpUrl' => $isAppLogged ? 'javascript:;' : $urlLifestyle . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $urlEncode . '","param":{"from":"app"}},"requesturl":{},"priority":"N"}}',
|
287
|
|
287
|
|
288
|
'weixinShare' => $isApp ? false : true, // 是否需要微信分享
|
288
|
'weixinShare' => $isApp ? false : true, // 是否需要微信分享
|
289
|
'shareLink' => $urlLifestyle,
|
289
|
'shareLink' => $urlLifestyle,
|
|
@@ -328,14 +328,15 @@ class CouponController extends HuodongAction |
|
@@ -328,14 +328,15 @@ class CouponController extends HuodongAction |
328
|
$urlNewuser = Helpers::url('/cuxiao/coupon/newuser');
|
328
|
$urlNewuser = Helpers::url('/cuxiao/coupon/newuser');
|
329
|
$urlYohope = Helpers::url('/cuxiao/coupon/yohope');
|
329
|
$urlYohope = Helpers::url('/cuxiao/coupon/yohope');
|
330
|
$urlHelp = Helpers::url('/cuxiao/coupon/help');
|
330
|
$urlHelp = Helpers::url('/cuxiao/coupon/help');
|
|
|
331
|
+ $urlMycoupon = Helpers::url('/home/coupons');
|
331
|
$urlEncode = strtr($urlNewuser, array('/' => '\\/'));
|
332
|
$urlEncode = strtr($urlNewuser, array('/' => '\\/'));
|
332
|
|
333
|
|
333
|
$this->_view->display('newuser', array(
|
334
|
$this->_view->display('newuser', array(
|
334
|
'activityId' => 83, // 活动ID
|
335
|
'activityId' => 83, // 活动ID
|
335
|
'staticTitle' => '新人潮这看,超值惊喜等你领', // 标题
|
336
|
'staticTitle' => '新人潮这看,超值惊喜等你领', // 标题
|
336
|
- 'jumpUrl' => $isAppLogged ? 'javascript:;' : $urlNewuser . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $urlEncode . '","param":{}},"requesturl":{},"priority":"N"}}',
|
337
|
+ 'jumpUrl' => $isAppLogged ? 'javascript:;' : $urlNewuser . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $urlEncode . '","param":{"from":"app"}},"requesturl":{},"priority":"N"}}',
|
337
|
|
338
|
|
338
|
- 'url_mycoupon' => '',
|
339
|
+ 'url_mycoupon' => $urlMycoupon . '?yohobuy={"action":"go.coupon"}',
|
339
|
'url_yohope' => $urlYohope . '?yohobuy={"action":"go.h5","params":{"islogin":"Y","type":0,"url":"' . $urlYohope . '","param":{}}}',
|
340
|
'url_yohope' => $urlYohope . '?yohobuy={"action":"go.h5","params":{"islogin":"Y","type":0,"url":"' . $urlYohope . '","param":{}}}',
|
340
|
'url_help' => $urlHelp . '?yohobuy={"action":"go.h5","params":{"islogin":"Y","type":0,"url":"' . $urlHelp . '","param":{}}}',
|
341
|
'url_help' => $urlHelp . '?yohobuy={"action":"go.h5","params":{"islogin":"Y","type":0,"url":"' . $urlHelp . '","param":{}}}',
|
341
|
'url_more' => 'http://list.m.yohobuy.com/?msort=1&openby:yohobuy={"action":"go.list","params":{"msort":"1","title":"上衣"}}',
|
342
|
'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 |
|
@@ -492,51 +493,6 @@ class CouponController extends HuodongAction |
492
|
}
|
493
|
}
|
493
|
|
494
|
|
494
|
/**
|
495
|
/**
|
495
|
- * 获取分享链接
|
|
|
496
|
- *
|
|
|
497
|
- * @param int id 活动ID
|
|
|
498
|
- * @return json
|
|
|
499
|
- */
|
|
|
500
|
- public function getshareAction()
|
|
|
501
|
- {
|
|
|
502
|
- $url = '';
|
|
|
503
|
- $id = $this->get('id');
|
|
|
504
|
- if (!is_numeric($id)) {
|
|
|
505
|
- $id = 0;
|
|
|
506
|
- }
|
|
|
507
|
- switch (intval($id)) {
|
|
|
508
|
- case 75:
|
|
|
509
|
- $url = Helpers::url('/cuxiao/coupon/boysbrand');
|
|
|
510
|
- break;
|
|
|
511
|
- case 76:
|
|
|
512
|
- $url = Helpers::url('/cuxiao/coupon/girlsbrand');
|
|
|
513
|
- break;
|
|
|
514
|
- case 77:
|
|
|
515
|
- $url = Helpers::url('/cuxiao/coupon/kidsbrand');
|
|
|
516
|
- break;
|
|
|
517
|
- case 78:
|
|
|
518
|
- $url = Helpers::url('/cuxiao/coupon/lifestyle');
|
|
|
519
|
- break;
|
|
|
520
|
- default:
|
|
|
521
|
- $url = Helpers::url('/cuxiao/coupon/boysbrand');
|
|
|
522
|
- break;
|
|
|
523
|
- }
|
|
|
524
|
-
|
|
|
525
|
- $result = array(
|
|
|
526
|
- 'code' => 200,
|
|
|
527
|
- 'message' => '领券活动分享',
|
|
|
528
|
- 'data' => array(
|
|
|
529
|
- 'title' => 'Yoho!Buy有货2015感恩季,1000万元+品牌专属优惠券大派送!',
|
|
|
530
|
- 'content' => '2015感恩季!品牌专属优惠券限时送!先领券,再购物,让你乐享整个冬季!',
|
|
|
531
|
- 'pic' => 'http://img12.static.yhbimg.com/couponImg/2015/11/26/09/0226ad7f8bcf5467a789e17b761c7557e0.jpg',
|
|
|
532
|
- 'url' => $url,
|
|
|
533
|
- ),
|
|
|
534
|
- );
|
|
|
535
|
-
|
|
|
536
|
- $this->echoJson($result);
|
|
|
537
|
- }
|
|
|
538
|
-
|
|
|
539
|
- /**
|
|
|
540
|
* 检查用户是否登录
|
496
|
* 检查用户是否登录
|
541
|
*
|
497
|
*
|
542
|
* @return bool (false:表示未登录,true:表示已登录)
|
498
|
* @return bool (false:表示未登录,true:表示已登录)
|