Authored by 郭成尧

Merge branch 'feature/shareBuy' into 'release/5.7'

升级隐藏按钮  首页分享文案



See merge request !576
... ... @@ -9,12 +9,27 @@ let $news = $('.news'),
newsLiL = $news.find('li').length,
newsHeight = 0;
let shareData = {
title: '【有货】参与分享购,大家一起拿返利~',
link: location.href,
desc: '学生用户专享,返利升级购物可直接抵现金,超级福利等你来嗨~',
imgUrl: 'http://img11.static.yhbimg.com/yhb-img01/2017/05/10/16/011568a808f9b10e098b6542d3a8cb3d6b.png'
};
require('common');
require('common/share')(shareData);
if ($('.share-buy-page').height() < $(window).height()) {
$('.share-buy-page').height($(window).height());
}
if (yoho.isApp) {
yoho.ready(function() {
yoho.invokeMethod('set.shareInfo', shareData);
});
}
// 返利资讯的滚动
function Marquee() {
let diff;
... ...
let $ = require('yoho-jquery');
let $ = require('yoho-jquery'),
yoho = require('yoho-app');
// $('body').height($(window).height());
// $('.app-update').height($(window).height()).width($(window).width());
if (yoho.isApp) {
$('button').hide();
}
$('button').on('click', function() {
window.location = 'http://www.yohoshow.com/about/index/yohobuyqr';
});
... ...