Authored by whb

限购商品详情页添加分享

... ... @@ -52,6 +52,19 @@
<span>抢购超级限量款</span>
</div>
</div>
{{#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}}
</div>
{{> layout/footer}}
<script type="text/javascript">
seajs.use('js/plugin/wx-share', function(share) {
share();
});
</script>
... ...
... ... @@ -306,10 +306,14 @@ class DetailController extends AbstractAction
if (empty($data)) {
$this->error();
}
// APP下载链接地址
$data['appSrc'] = 'http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho';
$data['wxshare'] = array(
'shareLink' => Helpers::url('/product/detail/limit', array('code' => $productCode), 'default'),
'shareImg' => $data['banner'],
'shareTitle' => $data['name'],
'shareDesc' => '我在Yoho!Buy有货发现了一个限定发售商品',
);
$this->_view->display('limit', $data);
}
... ...