IOS微信webview长按二维码不识别

IOS微信webview长按二维码不识别
demo链接
看了下以前上线的项目苹果上都扫不出来了,测试的机子是ios微信版本7.0.3,安卓正常,相关代码如下,有知道的大佬该如何处理么?
排除二维码的问题,换了个简单的二维码放大也不行,去除所有定位和边距也不可以;直接打开图片地址可以扫描

<body id="share">
    <div class="wrapper">        
            <img src="static/images/qrcode_sz.png" alt="" class="i_code">    
    </div>
    <script type="text/javascript" src="static/js/jquery-3.3.1.min.js"></script>
    <script src="static/js/common.js" type="text/javascript" charset="utf-8"></script>
</body>
.wrapper {
    width: 100%;
    height: 100%;
    font-size: 0;
    background: #9bc25e url(../images/share/bg.jpg) no-repeat top center;
    background-size: 100%;
    text-align: center;
    padding-top: 4rem;
    box-sizing: border-box;
}


.i_code {
    width: 1.5rem;
    margin-left: -.2rem;
    border-radius: .1rem;
}

clipboard.png

阅读 2.2k
1 个回答

测试是跟这句js有关,这是为了返回强制刷新,changeURLArg是更改url加上时间戳,至于为什么麻烦大佬再指点一下了
history.replaceState(null, null, changeURLArg(window.location.href,"time",new Date().getTime()));

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题