Showing
2 changed files
with
8 additions
and
7 deletions
@@ -617,23 +617,23 @@ define('yohood', function(require, exports) { | @@ -617,23 +617,23 @@ define('yohood', function(require, exports) { | ||
617 | 617 | ||
618 | shareUrl = $(".share").attr("data-link"); | 618 | shareUrl = $(".share").attr("data-link"); |
619 | shareCover = $(".share").attr("cover-url"); | 619 | shareCover = $(".share").attr("cover-url"); |
620 | - detailTitle = $('.detail-title').find('h2'); | 620 | + detailTitle = $("input[name=title]").val(); |
621 | detailSubtitle = $('.detail-title').find('h3'); | 621 | detailSubtitle = $('.detail-title').find('h3'); |
622 | //分享 | 622 | //分享 |
623 | share.init({ | 623 | share.init({ |
624 | shareUrl: shareUrl, | 624 | shareUrl: shareUrl, |
625 | img: shareCover, | 625 | img: shareCover, |
626 | - sinaText: '【YO’HOOD 2016】' + detailTitle.text() + '\r\n' + detailSubtitle.text() + '@YOHO潮流志', | 626 | + sinaText: '【YO’HOOD 2016】' + detailTitle + '\r\n' + detailSubtitle.text() + '@YOHO潮流志', |
627 | fbTextFunction: function() { | 627 | fbTextFunction: function() { |
628 | return { | 628 | return { |
629 | - des: '【YO’HOOD 2016】' + detailTitle.text() + '\r\n' + detailSubtitle.text() + '#YO’HOOD 2016', | ||
630 | - name: '【YO’HOOD 2016】' + detailTitle.text() + '\r\n' + detailSubtitle.text() + '#YO’HOOD 2016', | ||
631 | - caption: '【YO’HOOD 2016】' + detailTitle.text() + '\r\n' + detailSubtitle.text() + '#YO’HOOD 2016', | 629 | + des: '【YO’HOOD 2016】' + detailTitle + '\r\n' + detailSubtitle.text() + '#YO’HOOD 2016', |
630 | + name: '【YO’HOOD 2016】' + detailTitle + '\r\n' + detailSubtitle.text() + '#YO’HOOD 2016', | ||
631 | + caption: '【YO’HOOD 2016】' + detailTitle + '\r\n' + detailSubtitle.text() + '#YO’HOOD 2016', | ||
632 | // url: location.href | 632 | // url: location.href |
633 | } | 633 | } |
634 | }, | 634 | }, |
635 | - tweetText: '【YO’HOOD 2016】' + detailTitle.text() + '\r\n' + detailSubtitle.text(), | ||
636 | - qqText: '【YO’HOOD 2016】' + detailTitle.text() + ' ' + detailSubtitle.text(), | 635 | + tweetText: '【YO’HOOD 2016】' + detailTitle + '\r\n' + detailSubtitle.text(), |
636 | + qqText: '【YO’HOOD 2016】' + detailTitle + ' ' + detailSubtitle.text(), | ||
637 | }); | 637 | }); |
638 | } | 638 | } |
639 | 639 |
@@ -2,6 +2,7 @@ | @@ -2,6 +2,7 @@ | ||
2 | <?php $this->_block('main');?> | 2 | <?php $this->_block('main');?> |
3 | <div class="detail-title"> | 3 | <div class="detail-title"> |
4 | <h2 class="title"><?php echo $this->view->info['title']?></h2> | 4 | <h2 class="title"><?php echo $this->view->info['title']?></h2> |
5 | + <input type="hidden" name="title" value="<?php echo $this->view->info['title']?>"> | ||
5 | <h3 class="subtitle"><?php echo date('m月d日 H:i', $this->view->info['create_time'])?></h3> | 6 | <h3 class="subtitle"><?php echo date('m月d日 H:i', $this->view->info['create_time'])?></h3> |
6 | </div> | 7 | </div> |
7 | <?php if(!empty($this->view->info['pics'])):?> | 8 | <?php if(!empty($this->view->info['pics'])):?> |
-
Please register or login to post a comment