preface
There are many ways to pay attention to the public number in the small program, the following I cite three common, according to the actual development of the scene to choose the best scheme.
1. official-account
Official – the account number is the attention of the public official component, usage may refer to the official documentation developers.weixin.qq.com/miniprogram…
Usage steps:
Example code <official-account></official-account>Copy the code
It should be noted that it is only displayed in specific scenarios, and the scene value is 1047,1124,1089,1038, etc. We can use tools to select the opening mode during debugging, such as
The page will display the guide public account component, such as
2. Carry public account tweets through web-view to guide attention
Web – the view is the bearing official web components, usage may refer to the official documentation developers.weixin.qq.com/miniprogram…
Usage steps
Write styles on pages that need to be guided, such as
Click to jump to web-view mounted public account tweets, such as
Public account tweets need to be published on the public account platform
3. Follow via qr code
There are many methods, such as opening the customer service dialog box, web-view, H5 page put a TWO-DIMENSIONAL code long press identification.