最近很多人问我微信如何去自定义分享出带logo和标题描述的链接
这里我把方法告诉大家,利用公众号原理代码:
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script>
wx.config({
debug: false,
//appId: 'wx25367cbe46c663ce',
appId: 'wxf7fec0959c803687',
timestamp: '1498633006',
nonceStr: '111',
signature: 'c87cc9146ac59d51f36b9567563aa9eebb1fb120',
jsApiList: [
'onMenuShareTimeline',
'onMenuShareAppMessage'
]
});
wx.ready(function () {
var shareData = {
title: 'http:///a',
desc: 'http:///a',
//www.wxticket.com
link: 'http://vip.kakuapi.com/',
imgUrl: 'https://tva1.sinaimg.cn/large/006Fzy5igy1g3hey2jw1kj302e02gt8u.jpg'
};
wx.onMenuShareAp