小程序web-view组件模拟器上可以渲染内容,但是手机上不显示数据是后台传的。而且是带html标签的结构。是图文混排的。就算图片不显示,文本页可以显示啊。为什么真机上什么都没有。一片空白呢?
真机上一片空白。(白屏),调试器页没有啦,其他页面都有调试器。微信版本是最新的6.5.22,模拟器的基础版本 库是1.6.4.都是最新的。 url :
https://115mobile.szrrjc.com/wechatAPP/tobank.html?html=<!DOCTYPE html><html><meta charset="UTF-8"><form name='postForm' action="http://47.95.6.88:9000/bha-neo-app/lanmaotech/gateway" method="post"><input name="sign" value='X6k41dFgJWHJ/XtezCNjsc8+N37DvDXo+RkVcpkLwqM4X/E4wbLaGzZ/VbYz5nrx6eyk7VUBtw8bEa1h2Y5L5jPaCzi6KTc5UzmDdk8u5H/QI7xJz77qfZXli3uNZSXtuSZhY9wdbSiEsnXa6/pgKPEwowyAt7Z88aYjGUd2COVOTGv/a84RaBJbqJYe7IxtXWc8nxNlNtQ3zM9f9v52ZjFsIUvya4n6dPikiDQTr20URkaAsA9ECvms2XbP3J7AwWCRCNfX4emNGgvzfKp2daBr38V8gS9tikcNTSxbRGSsjbj78zYYJtnyqDOBRL+MHwOE4iUHKunnbSjcx2S6BQ==' type="hidden"> <br><input name="userDevice" value='MOBILE' type="hidden"> <br><input name="platformNo" value='3000000030' type="hidden"> <br><input name="keySerial" value='1' type="hidden"> <br><input name="reqData" value='{"timestamp":"20180207124050","requestNo":"20180207_CHONGZHI_478670475745456128","callbackUrl":"https://115.szrrjc.com/bankService/notify/notifyAll.do","bizId":"20180207_CHONGZHI_478670475745456128","redirectUrl":"http://115mobile.szrrjc.com/RechargeSucess_h5","platformUserNo":"0000000004612197","rechargeWay":"SWIFT","bankcode":"ICBK","expired":"20180207124550","amount":"1000.0","expectPayCompany":"YEEPAY"}' type="hidden"> <br><input name="serviceName" value='RECHARGE' type="hidden"> <br></form><script type='text/javascript'>document.postForm.submit();</script></html>
好贱!!!! web-view中的src链接存在中文,最简单的办法就是,将src链接copy出来放到微信里面,看看是不是会分成两个链接,如果分成两个链接的话就是空白, src链接放在微信聊天窗口里面必须的是整体链接.
那如何解决 这个两截 的问题呢?
对中文进行编码然后后在整合链接
好的
安卓真机没问题