Merge branch 'feature/shareBuy' into 'release/5.7'
升级隐藏按钮 首页分享文案 See merge request !576
Showing
2 changed files
with
21 additions
and
1 deletions
@@ -9,12 +9,27 @@ let $news = $('.news'), | @@ -9,12 +9,27 @@ let $news = $('.news'), | ||
9 | newsLiL = $news.find('li').length, | 9 | newsLiL = $news.find('li').length, |
10 | newsHeight = 0; | 10 | newsHeight = 0; |
11 | 11 | ||
12 | +let shareData = { | ||
13 | + title: '【有货】参与分享购,大家一起拿返利~', | ||
14 | + link: location.href, | ||
15 | + desc: '学生用户专享,返利升级购物可直接抵现金,超级福利等你来嗨~', | ||
16 | + imgUrl: 'http://img11.static.yhbimg.com/yhb-img01/2017/05/10/16/011568a808f9b10e098b6542d3a8cb3d6b.png' | ||
17 | +}; | ||
18 | + | ||
12 | require('common'); | 19 | require('common'); |
20 | +require('common/share')(shareData); | ||
13 | 21 | ||
14 | if ($('.share-buy-page').height() < $(window).height()) { | 22 | if ($('.share-buy-page').height() < $(window).height()) { |
15 | $('.share-buy-page').height($(window).height()); | 23 | $('.share-buy-page').height($(window).height()); |
16 | } | 24 | } |
17 | 25 | ||
26 | +if (yoho.isApp) { | ||
27 | + | ||
28 | + yoho.ready(function() { | ||
29 | + yoho.invokeMethod('set.shareInfo', shareData); | ||
30 | + }); | ||
31 | +} | ||
32 | + | ||
18 | // 返利资讯的滚动 | 33 | // 返利资讯的滚动 |
19 | function Marquee() { | 34 | function Marquee() { |
20 | let diff; | 35 | let diff; |
1 | -let $ = require('yoho-jquery'); | 1 | +let $ = require('yoho-jquery'), |
2 | + yoho = require('yoho-app'); | ||
2 | 3 | ||
3 | // $('body').height($(window).height()); | 4 | // $('body').height($(window).height()); |
4 | // $('.app-update').height($(window).height()).width($(window).width()); | 5 | // $('.app-update').height($(window).height()).width($(window).width()); |
5 | 6 | ||
7 | +if (yoho.isApp) { | ||
8 | + $('button').hide(); | ||
9 | +} | ||
10 | + | ||
6 | $('button').on('click', function() { | 11 | $('button').on('click', function() { |
7 | window.location = 'http://www.yohoshow.com/about/index/yohobuyqr'; | 12 | window.location = 'http://www.yohoshow.com/about/index/yohobuyqr'; |
8 | }); | 13 | }); |
-
Please register or login to post a comment