javascript - The QR code generated by the WeChat applet using interface B, which home page will be entered by default?
伊谢尔伦2017-07-05 10:39:09
0
1
1281
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?
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
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.