Authored by 李靖

分享优化

... ... @@ -4,7 +4,7 @@
</div>
<div class="adviser-info">
{{#if image}}
<div class="pic" style="background-image:url({{image image}})"></div>
<div class="pic" data-pic="{{image image}}" style="background-image:url({{image image}})"></div>
{{/if}}
{{#if name}}
<div class="name">{{name}}</div>
... ...
require('activity/trend/trend.page.css');
require('activity/trend/share');
let tip = require('plugin/tip');
let classObj = {};
... ...
... ... @@ -37,7 +37,7 @@ if ((window.queryString.typeStatus === '3') && ($('.adviser-info').length > 0))
share({
title: '潮流顾问介绍-' + $('.trend-c').find('.name:eq(0)').text(),
desc: $('.trend-c').find('.intro:eq(0)').text(),
imgUrl: urlHttp($('.trend-c').find('.pic:eq(0)').attr('src'))
imgUrl: urlHttp($('.trend-c').find('.pic:eq(0)').data('pic'))
});
}
... ... @@ -118,7 +118,7 @@ if ($('.share-cutter').length > 0) {
share({
title: '发型师介绍-' + $('.trend-c').find('.name:eq(0)').text(),
desc: $('.trend-c').find('.info:eq(0)').text(),
imgUrl: urlHttp($('.trend-c').find('.pic').attr('src'))
imgUrl: urlHttp($('.trend-c').find('.pic').data('pic'))
});
}
... ...
... ... @@ -296,6 +296,7 @@
p {
margin: 30px 0;
word-wrap: break-word;
}
}
... ...