Authored by 郭成尧

'hotrank-wxshare-lost-pic'

... ... @@ -6,4 +6,19 @@
<div id="hotRank"></div>
{{> product/suspend-cart}}
</div>
{{> layout/footer}}
\ No newline at end of file
{{#wxshare}}
<script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<input id="shareLink" type="hidden" value="{{shareLink}}">
<input id="shareImg" type="hidden" value="{{shareImg}}">
<input id="shareTitle" type="hidden" value="{{shareTitle}}">
<input id="shareDesc" type="hidden" value="{{shareDesc}}">
{{/wxshare}}
{{> layout/footer}}
<script type="text/javascript">
seajs.use('js/plugin/wx-share', function(share) {
share();
});
</script>
\ No newline at end of file
... ...
... ... @@ -89,6 +89,12 @@ class NewsaleController extends AbstractAction
'showDownloadApp' => true,
'pageFooter' => true,
'cartUrl' => Helpers::url('/cart/index/index'),
'wxshare' => array(
'shareLink' => 'https://new.m.yohobuy.com/hotrank',
'shareImg' => '',
'shareTitle' => 'YOHO!BUY 有货 【新品到着】潮流夯货上架开催,全面盘点当季最热销的 TOP 单品~',
'shareDesc' => '潮流购物逛不停,新品 IN 品等你来!'
)
);
$this->_view->display('hotrank', $data);
... ...