Authored by huangyCode

修改详情页

... ... @@ -12,6 +12,7 @@ let makeShareData = require('./group/share');
let sharePlugin = require('js/common/share');
let user, shareData;
let dialog = require('js/plugin/dialog');
let yoho = require('js/yoho-app');
function hiddenTips($ele) {
let offsetContainer,
... ... @@ -312,6 +313,9 @@ class Detail extends Page {
joinGroup() {
let chosePanel = require('js/activity/group/chose-panel');
if (!user.uid) {
yoho.goLogin(location.href);
}
if (!this.pickData.goodsList) {
return;
}
... ... @@ -324,10 +328,10 @@ class Detail extends Page {
console.log(result);
if (result.buyNow) { // 立即购买
let nextUrl = location.origin + '/cart/index/buynow/orderensure?product_sku=' +
result.sku.skuId + '&buy_number=' + result.buyNum;
result.sku.skuId + '&buy_number=' + result.buyNum + '&is_group=' + this.pickData.groupNo + '&activity_id=' + this.pickData.activityId;
if (!user.uid) {
yoSdk.goLogin(nextUrl);
yoho.goLogin(nextUrl);
} else {
location.href = nextUrl;
}
... ...