Javascript-why is the "view public account" button added to WeChat JSSDK invalid?

Source: Internet
Author: User
In debug mode, no error is reported for all operations, and the status is & #039; OK & #039; the page cannot be displayed when the user jumps to the page through snsapi_base authentication. & quot; check whether there are other invisible restrictions on the public account & quot; button display? {Code...} In debug mode, no error is reported for all operations. The status is 'OK'
The user jumps to the page through web page authentication snsapi_base
The "view public account" button is always unavailable

Check whether there are other invisible restrictions on the Public Account button?

jsWx. config ({debug: true, // enable the debug mode appId: '{$ appID}', timestamp: '{$ timestamp}', nonceStr: '{$ nonceStr }', signature: '{$ signature}', jsApiList: ['hidemenuitems ', 'showmenuitems', 'onmenusharetimeline', 'onmenushareappmessage']});
Wx. ready (function () {wx. showMenuItems ({menuList: ['menuitem: profile ', // Add the public account 'menuitem: addcontact']});

Reply content:

No error is reported for all operations in debug mode. The status is 'OK'
The user jumps to the page through web page authentication snsapi_base
The "view public account" button is always unavailable

Check whether there are other invisible restrictions on the Public Account button?

jsWx. config ({debug: true, // enable the debug mode appId: '{$ appID}', timestamp: '{$ timestamp}', nonceStr: '{$ nonceStr }', signature: '{$ signature}', jsApiList: ['hidemenuitems ', 'showmenuitems', 'onmenusharetimeline', 'onmenushareappmessage']});
Wx. ready (function () {wx. showMenuItems ({menuList: ['menuitem: profile ', // Add the public account 'menuitem: addcontact']});

Check whether your public account has permissions.

Http://github.com/thenbsp/Wechat

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.