Wechat's sharing function on the web side

now I want to achieve such a function, that is, there is a sharing icon on the pc web page, and users can share the content with Wechat friends after scanning the QR code. How should this function be realized? Ask for divine assists

Php
Mar.09,2021

  1. requires a library to generate QR codes
  2. The content in the QR code generated by
  3. is a URL designed to prompt users to forward it to their friends (or moments)
  4. the above URL can use the existing PC page (add an opaque stack. After the wx container is detected, call WxJSSDK's sharing API to register the relevant title and desc copy, and display it. Remember to make an arrow pointing to the upper right corner, and add some copywriting. Many H5 encourage sharing and forwarding have similar materials, the design will be understood at a glance). You can also make a separate page for the mobile side (the advantage is that only a few things will be added to the existing page, mainly those generated by the QR code, and then the link will be written dead or dynamically generated depending on your actual business needs)

here Wechat shares his own look

Menu