Mini programs and official accounts jump to each other

Mini program jumps to public account

  1. The mini program jumps to the official account and currently only finds the official-account component exposed by WeChat . The official document is as follows: https://developers.weixin.qq.com/miniprogram/dev/component/official-account.html
    and this component is displayed There are restrictions . Only when you scan the code to enter the mini program, the component will be displayed on the page in this life cycle. The specific scene values ​​are given in the official documents, so you can pay attention to them.
  2. The style of the official-account component cannot be modified . You can only change the width and height at most. However, this is also limited. The minimum width of the component is 300px and the height is a fixed value of 84px.
  3. Component style:Insert image description here
  4. It should be noted that when you click on other areas other than the follow button, you will jump to the guidance page. If you click the follow button directly, it will not jump. A pop-up layer will pop up directly in the current mini program to prompt whether to follow the official account.
    Insert image description here
  5. If you have followed, the copy of the follow button will change to view. Clicking the button at this time will jump to the guide to follow page, showing two buttons of followed and sending a message. You can click to send a message to enter the official account main page.
  6. Later, I searched for an article that said that you can use webview to display the official account in the mini program, and then put the QR code of the official account in the article. The user can press and hold, and there will be an option to go to the official account. Clicking can also open the official account homepage.

Official account jump applet

  1. It can be configured in the custom menu and the page path can also be specified.
  2. You can configure mini program cards or mini program codes in public account articles
  3. After searching, it seems that you can also directly push the message, and then click it to directly open the specified page of the mini program, such as ZTO's express reminder. After clicking, it will directly open the waybill details page. Reference link
    Insert image description here
    :
    https://zhuanlan.zhihu.com/p/ 354647248
    https://www.zhihu.com/question/55567303

Guess you like

Origin blog.csdn.net/be_strong_web/article/details/128495156