1
|
'use strict';
|
1
|
'use strict';
|
|
|
2
|
+require('activity/share-buy.page.css');
|
2
|
|
3
|
|
3
|
-let $ = require('yoho-jquery');
|
4
|
+let $ = require('yoho-jquery'),
|
|
|
5
|
+ yoho = require('yoho-app');
|
4
|
|
6
|
|
5
|
let $news = $('.news'),
|
7
|
let $news = $('.news'),
|
6
|
newsLiL = $news.find('li').length,
|
8
|
newsLiL = $news.find('li').length,
|
7
|
newsHeight = 0;
|
9
|
newsHeight = 0;
|
8
|
|
10
|
|
9
|
- // tip = require('plugin/tip');
|
|
|
10
|
-
|
|
|
11
|
-require('activity/share-buy.page.css');
|
11
|
+let shareData = {
|
|
|
12
|
+ title: '【有货】童鞋们一起来有货玩潮流,超级专享优惠福利速来领~',
|
|
|
13
|
+ link: location.href,
|
|
|
14
|
+ desc: '有货发福利啦!甄选好货等你来BUY~',
|
|
|
15
|
+ imgUrl: 'http://img11.static.yhbimg.com/yhb-img01/2017/05/10/16/011568a808f9b10e098b6542d3a8cb3d6b.png'
|
|
|
16
|
+};
|
12
|
|
17
|
|
13
|
if ($('.share-buy-page').height() < $(window).height()) {
|
18
|
if ($('.share-buy-page').height() < $(window).height()) {
|
14
|
$('.share-buy-page').height($(window).height());
|
19
|
$('.share-buy-page').height($(window).height());
|
15
|
}
|
20
|
}
|
16
|
|
21
|
|
|
|
22
|
+if (yoho.isApp) {
|
|
|
23
|
+ yoho.invokeMethod('set.shareInfo', shareData);
|
|
|
24
|
+}
|
|
|
25
|
+
|
17
|
function Marquee() {
|
26
|
function Marquee() {
|
18
|
let diff;
|
27
|
let diff;
|
19
|
|
28
|
|