Showing
1 changed file
with
7 additions
and
0 deletions
@@ -224,6 +224,13 @@ function getNamedCoupon(activityId, couponId, isApp, userIsLogged) | @@ -224,6 +224,13 @@ function getNamedCoupon(activityId, couponId, isApp, userIsLogged) | ||
224 | }); | 224 | }); |
225 | if (isApp) { | 225 | if (isApp) { |
226 | //showTip('请先登录!'); | 226 | //showTip('请先登录!'); |
227 | + //跳app登陆页面 | ||
228 | + if ($('.go-login').length <= 0) { | ||
229 | + var loginUrl = location.href + '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' + location.href + '","param":{}},"priority":"Y"}}'; | ||
230 | + console.log(loginUrl); | ||
231 | + $('body').append('<a href=\'' + loginUrl + '\' ><span class="go-login"></span></a>'); | ||
232 | + } | ||
233 | + $('.go-login').click(); | ||
227 | } else { | 234 | } else { |
228 | location.href = decodeURIComponent(data.data); | 235 | location.href = decodeURIComponent(data.data); |
229 | } | 236 | } |
-
Please register or login to post a comment