Authored by tmq

Merge branch 'develop' of git.dev.yoho.cn:web/yohood into develop

@@ -149,35 +149,35 @@ define('channel', function(require, exports) { @@ -149,35 +149,35 @@ define('channel', function(require, exports) {
149 //使用瀑布流布局 149 //使用瀑布流布局
150 setLayout(); 150 setLayout();
151 151
152 - if ($('.share').size() > 0) {  
153 - //微信分享鼠标事件  
154 - $('.yohoo-share-button-wx').on('mouseover', function() {  
155 - $('.wx-qrcode-dialog').show();  
156 - }).on('mouseout', function() {  
157 - $('.wx-qrcode-dialog').hide();  
158 - });  
159 -  
160 - shareUrl = $(".share").attr("data-link");  
161 - shareCover = $(".share").attr("cover-url");  
162 - detailTitle = $('.detail-title').find('h2');  
163 - detailSubtitle = $('.detail-title').find('h3');  
164 - //分享  
165 - share.init({  
166 - shareUrl: shareUrl,  
167 - img: shareCover,  
168 - sinaText: '【YO’HOOD 2016】' + detailTitle.text() + '\r\n' + detailSubtitle.text() + '@YOHO!潮流志' + shareUrl,  
169 - fbTextFunction: function() {  
170 - return {  
171 - des: '【YO’HOOD 2016】' + detailTitle.text() + '\r\n' + detailSubtitle.text() + '#YO’HOOD 2016',  
172 - name: '【YO’HOOD 2016】' + detailTitle.text() + '\r\n' + detailSubtitle.text() + '#YO’HOOD 2016',  
173 - caption: '【YO’HOOD 2016】' + detailTitle.text() + '\r\n' + detailSubtitle.text() + '#YO’HOOD 2016',  
174 - url: location.href  
175 - }  
176 - },  
177 - tweetText: '【YO’HOOD 2016】' + detailTitle.text() + '\r\n' + detailSubtitle.text(),  
178 - qqText: '【YO’HOOD 2016】' + detailTitle.text() + ' ' + detailSubtitle.text() + shareUrl,  
179 - });  
180 - } 152 + // if ($('.share').size() > 0) {
  153 + // //微信分享鼠标事件
  154 + // $('.yohoo-share-button-wx').on('mouseover', function() {
  155 + // $('.wx-qrcode-dialog').show();
  156 + // }).on('mouseout', function() {
  157 + // $('.wx-qrcode-dialog').hide();
  158 + // });
  159 +
  160 + // shareUrl = $(".share").attr("data-link");
  161 + // shareCover = $(".share").attr("cover-url");
  162 + // detailTitle = $('.detail-title').find('h2');
  163 + // detailSubtitle = $('.detail-title').find('h3');
  164 + // //分享
  165 + // share.init({
  166 + // shareUrl: shareUrl,
  167 + // img: shareCover,
  168 + // sinaText: '【YO’HOOD 2016】' + detailTitle.text() + '\r\n' + detailSubtitle.text() + '@YOHO!潮流志' + shareUrl,
  169 + // fbTextFunction: function() {
  170 + // return {
  171 + // des: '【YO’HOOD 2016】' + detailTitle.text() + '\r\n' + detailSubtitle.text() + '#YO’HOOD 2016',
  172 + // name: '【YO’HOOD 2016】' + detailTitle.text() + '\r\n' + detailSubtitle.text() + '#YO’HOOD 2016',
  173 + // caption: '【YO’HOOD 2016】' + detailTitle.text() + '\r\n' + detailSubtitle.text() + '#YO’HOOD 2016',
  174 + // url: location.href
  175 + // }
  176 + // },
  177 + // tweetText: '【YO’HOOD 2016】' + detailTitle.text() + '\r\n' + detailSubtitle.text(),
  178 + // qqText: '【YO’HOOD 2016】' + detailTitle.text() + ' ' + detailSubtitle.text() + shareUrl,
  179 + // });
  180 + // }
181 181
182 // 表单验证 182 // 表单验证
183 if ($('#index-form').length > 0) { 183 if ($('#index-form').length > 0) {
@@ -765,6 +765,7 @@ define('channel', function(require, exports) { @@ -765,6 +765,7 @@ define('channel', function(require, exports) {
765 765
766 $('.detail-slide-ctrl-tabs').slider(); 766 $('.detail-slide-ctrl-tabs').slider();
767 $('.detail-slide-big-ctrl').on('click', 'a', function() { 767 $('.detail-slide-big-ctrl').on('click', 'a', function() {
  768 + console.log(detailSwiper.activeLoopIndex);
768 $('.detail-slide-ctrl-tabs').slider('slideTo', detailSwiper.activeLoopIndex); 769 $('.detail-slide-ctrl-tabs').slider('slideTo', detailSwiper.activeLoopIndex);
769 }); 770 });
770 $('.detail-slide-ctrl-tabs').on('click', 'li', function() { 771 $('.detail-slide-ctrl-tabs').on('click', 'li', function() {
This diff could not be displayed because it is too large.
@@ -180,6 +180,17 @@ @@ -180,6 +180,17 @@
180 </li> 180 </li>
181 </ul> 181 </ul>
182 </div> 182 </div>
  183 +<!-- 点击图片显示大图 start -->
  184 +<div class="detial-img-zoom">
  185 + <div class="img-zoom ">
  186 + <img src="">
  187 + <a href="javascript:;" class="close-btn"></a>
  188 + <a href="javascript:;" class="img-zoom-ctrl-prev iconfont">&#xe600;</a>
  189 + <a href="javascript:;" class="img-zoom-ctrl-next iconfont">&#xe602;</a>
  190 + </div>
  191 + <div class="overlay"></div>
  192 +</div>
  193 +<!-- 点击图片显示大图 end -->
183 <?php $this->_endblock();?> 194 <?php $this->_endblock();?>
184 <?php $this->_block('js');?> 195 <?php $this->_block('js');?>
185 <script type="text/javascript"> 196 <script type="text/javascript">
@@ -189,7 +200,6 @@ @@ -189,7 +200,6 @@
189 }) 200 })
190 seajs.use(['jquery', 'channel'], function($, channel) { 201 seajs.use(['jquery', 'channel'], function($, channel) {
191 channel.common(); 202 channel.common();
192 - channel.detail();  
193 }) 203 })
194 </script> 204 </script>
195 <?php $this->_endblock();?> 205 <?php $this->_endblock();?>