The official document: 1 developers.weixin.qq.com/doc/oplatfo…

Refer to the entry 1:www.cnblogs.com/martianShu/…

Refer to the entry 2:www.jianshu.com/p/a77b287be…

Login qr code style personalized: www.jianshu.com/p/588ec979e…

Parameters into data – url: www.jianshu.com/p/11f66a889…

1. The way of embedding two-dimensional code in the webpage

this.$nextTick(() => { const obj = new WxLogin({ self_redirect: true, id: Scope: 'snSAPi_login ', // Fixed field redirect_URI: State: math.ceil (math.random () * 1000), style: 'black', href: 'data:text/ CSS; Base64,' // Custom style of QR code}); });Copy the code