Showing
1 changed file
with
6 additions
and
2 deletions
@@ -12,6 +12,7 @@ let makeShareData = require('./group/share'); | @@ -12,6 +12,7 @@ let makeShareData = require('./group/share'); | ||
12 | let sharePlugin = require('js/common/share'); | 12 | let sharePlugin = require('js/common/share'); |
13 | let user, shareData; | 13 | let user, shareData; |
14 | let dialog = require('js/plugin/dialog'); | 14 | let dialog = require('js/plugin/dialog'); |
15 | +let yoho = require('js/yoho-app'); | ||
15 | 16 | ||
16 | function hiddenTips($ele) { | 17 | function hiddenTips($ele) { |
17 | let offsetContainer, | 18 | let offsetContainer, |
@@ -312,6 +313,9 @@ class Detail extends Page { | @@ -312,6 +313,9 @@ class Detail extends Page { | ||
312 | joinGroup() { | 313 | joinGroup() { |
313 | let chosePanel = require('js/activity/group/chose-panel'); | 314 | let chosePanel = require('js/activity/group/chose-panel'); |
314 | 315 | ||
316 | + if (!user.uid) { | ||
317 | + yoho.goLogin(location.href); | ||
318 | + } | ||
315 | if (!this.pickData.goodsList) { | 319 | if (!this.pickData.goodsList) { |
316 | return; | 320 | return; |
317 | } | 321 | } |
@@ -324,10 +328,10 @@ class Detail extends Page { | @@ -324,10 +328,10 @@ class Detail extends Page { | ||
324 | console.log(result); | 328 | console.log(result); |
325 | if (result.buyNow) { // 立即购买 | 329 | if (result.buyNow) { // 立即购买 |
326 | let nextUrl = location.origin + '/cart/index/buynow/orderensure?product_sku=' + | 330 | let nextUrl = location.origin + '/cart/index/buynow/orderensure?product_sku=' + |
327 | - result.sku.skuId + '&buy_number=' + result.buyNum; | 331 | + result.sku.skuId + '&buy_number=' + result.buyNum + '&is_group=' + this.pickData.groupNo + '&activity_id=' + this.pickData.activityId; |
328 | 332 | ||
329 | if (!user.uid) { | 333 | if (!user.uid) { |
330 | - yoSdk.goLogin(nextUrl); | 334 | + yoho.goLogin(nextUrl); |
331 | } else { | 335 | } else { |
332 | location.href = nextUrl; | 336 | location.href = nextUrl; |
333 | } | 337 | } |
-
Please register or login to post a comment