feat: 基于 @xiaochangbai 老哥的代码进行了一点样式优化

看到老哥有引入其他的qr插件,在项目里面本身自带了一个,稍微改了一下部分样式

https://gitee.com/beijing_hongye_huicheng/lilishop-uniapp/pulls/3
This commit is contained in:
lemon橪
2022-09-16 16:39:32 +08:00
parent 1e9df74034
commit d8cca8b372
4 changed files with 206 additions and 3 deletions

View File

@@ -146,6 +146,18 @@ export default {
uni.scanCode({
success: function (res) {
let path = encodeURIComponent(res.result);
if(path!=undefined && path.indexOf("QR_CODE_LOGIN_SESSION")==0){
console.log(path)
//app扫码登录
uni.navigateTo({
url:"/pages/passport/scannerCodeLoginConfirm?token="+path
});
return;
}
// WX_CODE 为小程序码
if (res.scanType == "WX_CODE") {