Home  >  Q&A  >  body text

javascript - The QR code generated by the WeChat applet using interface B, which home page will be entered by default?

The QR code generated by the WeChat applet using interface B will enter the homepage by default. Is this homepage the default index in app.json? Can this homepage be changed?

伊谢尔伦伊谢尔伦2665 days ago1199

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-07-05 10:41:09

    Why do you need to modify it? You should enter the page you want to enter based on the value of scene obtained from the QR code.

    After the user scans the code and enters the mini program, the homepage will be opened uniformly. The developer needs to do the processing logic on the homepage based on the value of the scene field in the obtained code. Use the following code to get the value of the scene field in the QR code. During the debugging phase, you can use the conditional compilation of the custom parameter scene=xxxx of the development tool for simulation

    reply
    0
  • Cancelreply