1***@qq.com
1***@qq.com
  • 发布:2018-04-13 11:56
  • 更新:2018-04-13 12:01
  • 阅读:1395

使用Wap2App打包问题

分类:HBuilder

调用 扫描二维码时(真机运行可以)直接退出app了

scanQrCode: function() {  
                var bcid = document.getElementById("bcid");  
                bcid.style.display = "block";  
                var _this = this;  
                if(_this.userId == null) {  
                    layer.open({  
                        content: '您还没有登录,是否登录',  
                        btn: ['是', '否'],  
                        yes: function(index) {  
                            window.location.href = "login.html";  
                        }  
                    });  
                } else {  
                    _this.isQRCode = true;  
                    scan = new plus.barcode.Barcode('bcid');  
                    scan.onmarked = function onmarked(type, result) {  
                        window.location.href = "souquan_ok.html?url=" + result;  
                        scan.close();  
                    };  
                    scan.start();  
                }  
            },
2018-04-13 11:56 负责人:无 分享
已邀请:
1***@qq.com

1***@qq.com (作者)

求解

该问题目前已经被锁定, 无法添加新回复