Authored by zhangxiaoru

首页分享数据不写死

... ... @@ -27,7 +27,7 @@
</div>
<span class="coupon-code">{{couponCode}}</span>
{{#if isApp}}
<a href='//m.yohobuy.com/?openby:yohobuy={"action":"go.copy","params":{"text":"{{couponCode}}"}}' class="copy">复制</a>
<a href='//m.yohobuy.com/?openby:yohobuy={"action":"go.copy","params":{"text":"{{couponCode}}","message":"复制成功"}}' class="copy">复制</a>
{{/if}}
<p class="share-way">
{{#if finish}}
... ...
'use strict';
require('activity/share-buy.page.css');
let $ = require('yoho-jquery'),
yoho = require('yoho-app');
let $ = require('yoho-jquery');
let $news = $('.news'),
newsLiL = $news.find('li').length,
newsHeight = 0;
let shareData = {
title: '【有货】童鞋们一起来有货玩潮流,超级专享优惠福利速来领~',
link: location.href,
desc: '有货发福利啦!甄选好货等你来BUY~',
imgUrl: 'http://img11.static.yhbimg.com/yhb-img01/2017/05/10/16/011568a808f9b10e098b6542d3a8cb3d6b.png'
};
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;
... ...