小程序
小游戏
企业微信
微信支付
扫描小程序码分享
微信网页分享朋友圈,设置分享的图片生效了,但是title怎么没生效
2 个回答
你不贴代码。。。。靠猜么
是否用的1.4.0版本。是否用的新版的api
const itemData = {
title: data.share_title,
desc: data.share_desc,
imgUrl: "https://image.hisento.cn/"+data.share_img,
link: location.href,
}
wx.ready(function () {
wx.showOptionMenu();
window.shareData.success = itemData;
if(window.shareData.success){
var success = window.shareData.success;
window.shareData.success = function(){
eval(success)
var attrArr = $('.addAttr'),length = 0
for(let i in attrArr){
if($(attrArr).eq(i).attr('answer_status')){
length++
if(length == total){
shareCallback()
};
wx.updateTimelineShareData(window.shareData);
wx.onMenuShareTimeline(window.shareData);
wx.onMenuShareAppMessage(window.shareData);
});
内容中可能包含密钥、AppSecret等私密参数,泄漏会有安全风险,请检查内容并确认。
官方大大来解释一下把
你不贴代码。。。。靠猜么
是否用的1.4.0版本。是否用的新版的api
const itemData = {
title: data.share_title,
desc: data.share_desc,
imgUrl: "https://image.hisento.cn/"+data.share_img,
link: location.href,
}
wx.ready(function () {
wx.showOptionMenu();
window.shareData.success = itemData;
if(window.shareData.success){
var success = window.shareData.success;
window.shareData.success = function(){
eval(success)
var attrArr = $('.addAttr'),length = 0
for(let i in attrArr){
if($(attrArr).eq(i).attr('answer_status')){
length++
}
}
if(length == total){
shareCallback()
}
};
}
wx.updateTimelineShareData(window.shareData);
wx.onMenuShareTimeline(window.shareData);
wx.onMenuShareAppMessage(window.shareData);
});
官方大大来解释一下把