I have encountered this requirement twice. One is to jump to other pages after recognizing the QR code, and the other is to enter the current page where the applet code is generated after recognizing the QR code.
On the 21st, a small program for sending red envelopes was launched. When I met a hacker, I was so dumbfounded! ! ! ! Sadness flows like river! ! ! ! ! !
The server is down and the page can't load. The server traffic is up to 100Mb.
Well, let's not talk about it, it's all hurt! ! ! ! !
I have a dream to be a hacker! ! ! ! ! !
I have a dream to be a hacker! ! ! ! ! !
I have a dream to be a hacker! ! ! ! ! !
I have a dream to be a hacker! ! ! ! ! !
I have a dream to be a hacker! ! ! ! ! !
I have a dream to be a hacker! ! ! ! ! !
I have a dream to be a hacker! ! ! ! ! !
I have a dream to be a hacker! ! ! ! ! !
js in applet
// options 中的 scene 需要使用 decodeURIComponent 才能获取到生成二维码时传入的 scene
var scene = decodeURIComponent(options.scene)
//因为上面我小程序码上传的参数cid=X,所以我接收到的参数scene=X