Home >WeChat Applet >Mini Program Development >How to display public account in mini program

How to display public account in mini program

angryTom
angryTomOriginal
2020-03-19 10:40:254187browse

How to display public account in mini program

How to display the public account in the mini program

The mini program provides us with the public account follow component, you can Used to display public accounts.

Mini program development

When the user scans the mini program code to open the mini program, the developer can configure the public account following component in the mini program to facilitate users to quickly follow the public No., can be nested within native components.

Sample code:

<official-account></official-account>

The attributes that can be used by the component are as follows:

##bindloadEventHandleTriggered when the component is loaded successfullybinderrorEventHandleTriggered when component loading fails
Attribute name Type Description
detail object

Attribute nameTypeDescription##status##errMsgStringError messageNote:
Number Status code

1. Before using the component, you need to go to the mini program backstage and set the official account to be displayed in "Settings"->"Follow Official Accounts". Note: The set public account must be consistent with the main body of the mini program.

2. Only one component can be configured on each page.

PHP Chinese website has a large number of

jquery video tutorials

, welcome to learn!

The above is the detailed content of How to display public account in mini program. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn