...
|
...
|
@@ -2,14 +2,11 @@ |
|
|
require('activity/share-detail.page.css');
|
|
|
|
|
|
let $ = require('yoho-jquery'),
|
|
|
yoho = require('yoho-app'),
|
|
|
dialog = require('plugin/dialog');
|
|
|
yoho = require('yoho-app');
|
|
|
|
|
|
let $activityTime = $('.activity-time'),
|
|
|
endTime = $activityTime ? $activityTime.data('time-s') : '',
|
|
|
$container = $('.goods-container'),
|
|
|
isStudent = $('.coupon-detail').data('student'),
|
|
|
isApp = $('.coupon-detail').data('app');
|
|
|
$container = $('.goods-container');
|
|
|
|
|
|
let winH = $(window).height(),
|
|
|
page = 1,
|
...
|
...
|
@@ -39,7 +36,9 @@ let couponId = $('.coupon-info').data('id'); |
|
|
require('common/share')(shareData);
|
|
|
require('common');
|
|
|
|
|
|
yoho.invokeMethod('set.shareInfo', shareData);
|
|
|
if (yoho.isApp) {
|
|
|
yoho.invokeMethod('set.shareInfo', shareData);
|
|
|
}
|
|
|
|
|
|
appVersion = window.queryString.app_version;
|
|
|
|
...
|
...
|
@@ -149,27 +148,16 @@ function scrollHandler() { |
|
|
}
|
|
|
}
|
|
|
|
|
|
if (isStudent === false) {
|
|
|
dialog.showDialog({
|
|
|
dialogText: '完成学生认证即可参与活动哦~',
|
|
|
fast: true,
|
|
|
hasFooter: {
|
|
|
rightBtnText: '去认证'
|
|
|
}
|
|
|
}, function() {
|
|
|
if (isApp) {
|
|
|
location.href = 'http://m.yohobuy.com/activity/student/register?refer=' +
|
|
|
'openbuy:yohobuy={"action":"go.h5","params":{"islogin":"N","type":"13","url":"http://m.yohobuy.com/activity/student/register"}}';
|
|
|
} else {
|
|
|
location.href = '//m.yohobuy.com/activity/student/register?refer=' + location.href;
|
|
|
}
|
|
|
}, null, true);
|
|
|
}
|
|
|
|
|
|
$(window).scroll(function() {
|
|
|
window.requestAnimationFrame(scrollHandler);
|
|
|
});
|
|
|
|
|
|
if ($('.share-dialog-tip')) {
|
|
|
// window.setCookie('refer', window.location.href);
|
|
|
|
|
|
window.setCookie('share', '1', { path: '/' });
|
|
|
}
|
|
|
|
|
|
$(function() {
|
|
|
productData();
|
|
|
}); |
...
|
...
|
|