...
|
...
|
@@ -33,7 +33,7 @@ function hiddenTips($ele) { |
|
|
}
|
|
|
}
|
|
|
|
|
|
function getUser(title, name, imgUrl, activityId, productSkn, groupNo) {
|
|
|
function getUser(title, name, imgUrl, activityId, productSkn, groupNo, unionType) {
|
|
|
try {
|
|
|
if (user) {
|
|
|
return Promise.resolve();
|
...
|
...
|
@@ -41,7 +41,7 @@ function getUser(title, name, imgUrl, activityId, productSkn, groupNo) { |
|
|
|
|
|
return yoSdk.getUser().then(u => {
|
|
|
user = u;
|
|
|
shareData = makeShareData({title, name, imgUrl, activityId, productSkn, groupNo});
|
|
|
shareData = makeShareData({title, name, imgUrl, activityId, productSkn, groupNo, unionType});
|
|
|
|
|
|
sharePlugin(shareData.h5);
|
|
|
});
|
...
|
...
|
@@ -95,7 +95,8 @@ class Detail extends Page { |
|
|
$hours: $('#hours'),
|
|
|
$minutes: $('#minutes'),
|
|
|
$seconds: $('#seconds'),
|
|
|
$label: $('#label')
|
|
|
$label: $('#label'),
|
|
|
$share: $('#share')
|
|
|
};
|
|
|
this.getIntro();
|
|
|
this.goSwiper();
|
...
|
...
|
@@ -285,6 +286,7 @@ class Detail extends Page { |
|
|
let imgUrl = 'http://static.yohobuy.com/m/v1/img/touch/apple-touch-icon-144x144-precomposed-new.png';
|
|
|
let buynow = document.getElementById('buynow');
|
|
|
let formatCollagePrice = document.getElementById('collagePrice').value;
|
|
|
let unionType = this.selector.$share.data('union-type');
|
|
|
|
|
|
this.getProductData(productSkn);
|
|
|
if (buynow) {
|
...
|
...
|
@@ -293,7 +295,7 @@ class Detail extends Page { |
|
|
|
|
|
let title = `【包邮】${formatCollagePrice}抢${goodsName}`;
|
|
|
|
|
|
getUser(title, goodsName, imgUrl, activityId, productSkn, groupNo).then(() => {
|
|
|
getUser(title, goodsName, imgUrl, activityId, productSkn, groupNo, unionType).then(() => {
|
|
|
shareDom.onclick = function() {
|
|
|
if (/QQ/i.test(navigator.userAgent) || /MicroMessenger/i.test(navigator.userAgent)) {
|
|
|
dialog.showDialog({hasClass: 'group-guide-mask'});
|
...
|
...
|
|