// 微信分享
var wx = require('wechat-sdk');
rewardsResultService.getWechatInfo().then(function(data) {
var conf = data;
wx.config({
debug: false,
appId: 'wx34e783920b37ee91',
timestamp: conf.timestamp,
nonceStr: conf.noncestr,
signature: conf.signature,
jsApiList: ['onMenuShareAppMessage', 'onMenuShareTimeline','onMenuShareQQ']
});
configWeChatInterface();
});
var iconUrl = 'http://'+location.host+'/images/icon-200yuan.png';
function configWeChatInterface() {
//分享给朋友
wx.onMenuShareAppMessage({
title: '一言不合就发红包,金蛛送您200元红包!',
desc: '一言不合就发红包,金蛛送您200元红包!',
link: location.href,
imgUrl: iconUrl,
type: 'link',