Authored by 李靖

分享优化

@@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
4 </div> 4 </div>
5 <div class="adviser-info"> 5 <div class="adviser-info">
6 {{#if image}} 6 {{#if image}}
7 - <div class="pic" style="background-image:url({{image image}})"></div> 7 + <div class="pic" data-pic="{{image image}}" style="background-image:url({{image image}})"></div>
8 {{/if}} 8 {{/if}}
9 {{#if name}} 9 {{#if name}}
10 <div class="name">{{name}}</div> 10 <div class="name">{{name}}</div>
1 require('activity/trend/trend.page.css'); 1 require('activity/trend/trend.page.css');
  2 +require('activity/trend/share');
2 3
3 let tip = require('plugin/tip'); 4 let tip = require('plugin/tip');
4 let classObj = {}; 5 let classObj = {};
@@ -37,7 +37,7 @@ if ((window.queryString.typeStatus === '3') && ($('.adviser-info').length > 0)) @@ -37,7 +37,7 @@ if ((window.queryString.typeStatus === '3') && ($('.adviser-info').length > 0))
37 share({ 37 share({
38 title: '潮流顾问介绍-' + $('.trend-c').find('.name:eq(0)').text(), 38 title: '潮流顾问介绍-' + $('.trend-c').find('.name:eq(0)').text(),
39 desc: $('.trend-c').find('.intro:eq(0)').text(), 39 desc: $('.trend-c').find('.intro:eq(0)').text(),
40 - imgUrl: urlHttp($('.trend-c').find('.pic:eq(0)').attr('src')) 40 + imgUrl: urlHttp($('.trend-c').find('.pic:eq(0)').data('pic'))
41 }); 41 });
42 } 42 }
43 43
@@ -118,7 +118,7 @@ if ($('.share-cutter').length > 0) { @@ -118,7 +118,7 @@ if ($('.share-cutter').length > 0) {
118 share({ 118 share({
119 title: '发型师介绍-' + $('.trend-c').find('.name:eq(0)').text(), 119 title: '发型师介绍-' + $('.trend-c').find('.name:eq(0)').text(),
120 desc: $('.trend-c').find('.info:eq(0)').text(), 120 desc: $('.trend-c').find('.info:eq(0)').text(),
121 - imgUrl: urlHttp($('.trend-c').find('.pic').attr('src')) 121 + imgUrl: urlHttp($('.trend-c').find('.pic').data('pic'))
122 }); 122 });
123 } 123 }
124 124
@@ -296,6 +296,7 @@ @@ -296,6 +296,7 @@
296 296
297 p { 297 p {
298 margin: 30px 0; 298 margin: 30px 0;
  299 + word-wrap: break-word;
299 } 300 }
300 } 301 }
301 302