Authored by hf

fixes bug to cuxiao huodong android crash

... ... @@ -220,7 +220,7 @@ function getNamedCoupon(activityId, couponId, isApp)
domain: '.m.yohobuy.com'
});
if (isApp) {
showTip('请先登录!');
//showTip('请先登录!');
} else {
location.href = data.data;
}
... ...
... ... @@ -61,7 +61,7 @@ class CouponController extends HuodongAction
'staticTitle' => 'Yoho!Buy有货2015感恩季,1000万元+品牌专属优惠券大派送!', // 标题
'isLogged' => $isLogged ? 'Y' : 'N', // 标识是否登录
'jumpUrl' => $isAppLogged ? 'javascript:;' : $urlBoys . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $urlEncode . '","param":{"from":"app"}},"requesturl":{},"priority":"N"}}',
'jumpUrl' => $isAppLogged ? 'javascript:;' : $urlBoys . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $urlEncode . '","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"Y"}}',
'weixinShare' => $isApp ? false : true, // 是否需要微信分享
'shareLink' => $urlBoys,
'shareTitle' => 'Yoho!Buy有货2015感恩季,1000万元+品牌专属优惠券大派送!',
... ... @@ -151,7 +151,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":{"from":"app"}},"requesturl":{},"priority":"N"}}',
'jumpUrl' => $isAppLogged ? 'javascript:;' : $urlGirls . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $urlEncode . '","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"Y"}}',
'isLogged' => $isLogged ? 'Y' : 'N', // 标识是否登录
'weixinShare' => $isApp ? false : true, // 是否需要微信分享
... ... @@ -247,7 +247,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":{"from":"app"}},"requesturl":{},"priority":"N"}}',
'jumpUrl' => $isAppLogged ? 'javascript:;' : $urlKids . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $urlEncode . '","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"Y"}}',
'isLogged' => $isLogged ? 'Y' : 'N', // 标识是否登录
'weixinShare' => $isApp ? false : true, // 是否需要微信分享
... ... @@ -299,7 +299,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":{"from":"app"}},"requesturl":{},"priority":"N"}}',
'jumpUrl' => $isAppLogged ? 'javascript:;' : $urlLifestyle . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $urlEncode . '","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"Y"}}',
'isLogged' => $isLogged ? 'Y' : 'N', // 标识是否登录
'weixinShare' => $isApp ? false : true, // 是否需要微信分享
... ... @@ -351,7 +351,7 @@ class CouponController extends HuodongAction
$this->_view->display('newuser', array(
'activityId' => 83, // 活动ID
'staticTitle' => '新人潮这看,超值惊喜等你领', // 标题
'jumpUrl' => $isAppLogged ? 'javascript:;' : $urlNewuser . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $urlEncode . '","param":{"from":"app"}},"requesturl":{},"priority":"N"}}',
'jumpUrl' => $isAppLogged ? 'javascript:;' : $urlNewuser . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $urlEncode . '","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"Y"}}',
'url_mycoupon' => $urlMycoupon . '?yohobuy={"action":"go.coupon"}',
'url_yohope' => $urlYohope . '?yohobuy={"action":"go.h5","params":{"islogin":"Y","type":0,"url":"' . $urlYohope . '","param":{}}}',
... ...