toShareGame: function () {
console.log("点击分享", wx.getSystemInfoSync());
if (window["wx"]) {
console.log("点击分享", window["wx"]);
wx.shareAppMessage({
title: "主动拉起的转发",
imageUrl: "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1536815255677&di=52c7867231e3ca0081e5d81871e68e38&imgtype=0&src=http%3A%2F%2Fi5.72g.com%2Fupload%2F201408%2F201408041006053007.JPG",
query: "key1=val1&key2=val2"
});
}
},
如题中的方法可以实现;不能实现的问题是:**
appid必须是正式的,新建小游戏生成的测试appid是吊不起分享的
**