Cannot pop-up window after clicking on Wechat to share

A pop-up window cannot pop up after clicking on Wechat to share. The code goes like this

let url = qs.stringify({
        url: window.location.href.split("-sharp")[0]
    })
axios.post(serverIp + "/dianzanbao/wechat/getConfig.do", url).then(res => {
    if (res.data.result_code === "0") {
        wx.config({
            debug: true,
            appId: res.data.result_info.appid,
            timestamp: res.data.result_info.timestamp,
            nonceStr: res.data.result_info.noncestr,
            signature: res.data.result_info.signature,
            jsApiList: ["onMenuShareTimeline", "onMenuShareAppMessage"]
        })
    }
})

initialize wx.config

developer tools can also pop up with successful configuration

clipboard.png

wx.readywx.onMenuShareAppMessageapiwx.updateAppMessageShareDataSDK

clipboard.png


fail

clipboard.png

clipboard.png

I don"t know if it has to be packaged into app to trigger the sharing pop-up window and trigger Wechat to call the friend list to solve

.
Mar.31,2022

is the Wechat jssdk introduced under confirmation version 1.4?

in addition: https://blog.csdn.net/han_cal...


there seems to be no problem. Try changing the words "Dianzanbao". Wechat will check if there are any prohibited words when you tune the interface, and if you don't give a clear prompt, you will ban it directly.


Brother, have you solved the problem? I have the same problem.

Menu