- 使用button中的open-type配合onShareAppMessage事件做微信转发功能?
button设置为open-share后,如何根据条件动态终止分享,在onShareAppMessage中return false并未生效 onShareAppMessage: function () { let initInviterView = this.data.initInviterView; const defaultOps = { title: initInviterView.stageBaseInfo?.wechatShareTitle, desc: initInviterView.stageBaseInfo?.wechartShareText, imageUrl: initInviterView.stageBaseInfo?.wechatSharePic, path: "pages/home/home", }; let path = "pages/home/home"; const promise = new Promise(resolve=>{ if (wx.getStorageSync("activitycode")) { this.requestInvite() .then((invitePageCode) => { console.log(invitePageCode, "invitePageCode"); path = `pages/activity/invitation/invitedPay/index?activitycode=${wx.getStorageSync( "activitycode" )}&invitePageCode=${invitePageCode}`; resolve({ ...defaultOps, path, }) }) .catch((err) => { }); } }) return false // return { // ...defaultOps, // promise // }; },
2024-12-19 - 使用button中的open-type配合onShareAppMessage事件做微信转发功能?
onShareAppMessage: function () { let initInviterView = this.data.initInviterView; let path = 'pages/home/home'; if(wx.getStorageSync("activitycode")){ console.log("执行1") this.requestInvite().then((invitePageCode)=>{ console.log(invitePageCode,'invitePageCode') path = `pages/activity/invitation/invitedPay/index?activitycode=${ wx.getStorageSync("activitycode") }&invitePageCode=${invitePageCode}`; return { title: initInviterView.stageBaseInfo?.wechatShareTitle, desc: initInviterView.stageBaseInfo?.wechartShareText, imageUrl: initInviterView.stageBaseInfo?.wechatSharePic, path: path }; }).catch(err=>{ return { title: initInviterView.stageBaseInfo?.wechatShareTitle, desc: initInviterView.stageBaseInfo?.wechartShareText, imageUrl: initInviterView.stageBaseInfo?.wechatSharePic, path: path }; }) } }, 使用button中的open-type配合onShareAppMessage事件做微信转发功能,想在用户点击按钮的时候动态调一个接口获取参数,然后在path中拼接这个参数,但是未生效依旧会提供一个默认路径唤起面板
2024-12-13 - 微信内H5链接跳转微信公众号失效?
急急急!大佬们看一下,微信内H5链接跳转公众号地址,依旧提示我在微信客户端内,该怎么解决呢?[图片]
2023-07-06 - https://api.weixin.qq.com/wxa/getwxacodeunlimit?
https://api.weixin.qq.com/wxa/getwxacodeunlimit 使用postman调用时一直报错access_token missing rid , 已经检查过了 appid 和 secret , 是不是我的调用方式有问题 ,求大佬帮忙看看 [图片] [图片]
2021-12-24