详细问题描述
我新建了一个wap2app项目 地址为我的一个h5网页(单页面应用) 在手机上运行调试的时候没有任何问题
但是我云打包后第一次打开的时候 所有的数据加载都不加载并且不显示, 如果刷新或者重新进入app的时候数据就会加载
有一部分的数据是加载的 像主页的banner图的地址是请求回来的,
但是数据部分不请求
[内容]
重现步骤
[步骤]
进行wap2app云打包
[结果]
第一次进入数据不加载
[期望]
数据加载并显示
[如果语言难以表述清晰,拍一个视频或截图,有图有真相]
IDE运行环境说明
[HBuilder 或 HBuilderX。如果你用其他工具开发uni-app,也需要在此说明]
[IDE版本号]
HBuilderX 2.2.2.20190816
[windows版本号]
[mac版本号]
10.14.6
uni-app运行环境说明
[运行端是h5或app或某个小程序?]
[运行端版本号]
[项目是cli创建的还是HBuilderX创建的?如果是cli创建的,请更新到最新版cli再试]
[编译模式是老模板模式还是新的自定义组件模式?]
App运行环境说明
[Android版本号]
9
[iOS版本号]
[手机型号]
三星s10
[模拟器型号]
附件
[IDE问题请提供HBuilderX运行日志。菜单帮助-查看运行日志,点右键打开文件所在目录,将log文件压缩成zip包上传]
[App问题请提供可重现问题的代码片段,你补充的细一点,问题就解决的快一点]
我新建的项目只填写了线上的h5地址 其他的都没有设置
[App安装包或H5地址]
https://h5.lingqian360.com
[可重现代码片段]
控制台输出:
15:07:38.713 https: at https://h5.lingqian360.com/js/httpConfig/api.js:2
15:07:38.735 A parser-blocking, cross site (i.e. different eTLD+1) script, https://s19.cnzz.com/z_stat.php?id=1274996213, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details. at https://h5.lingqian360.com/js/statistic.js:2
15:07:38.758 A parser-blocking, cross site (i.e. different eTLD+1) script, https://s19.cnzz.com/z_stat.php?id=1274996213, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details. at https://h5.lingqian360.com/js/statistic.js:2
15:07:39.106 A parser-blocking, cross site (i.e. different eTLD+1) script, https://c.cnzz.com/core.php?web_id=1274996213&t=z, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details. at https://s19.cnzz.com/z_stat.php?id=1274996213:17
15:07:39.132 A parser-blocking, cross site (i.e. different eTLD+1) script, https://c.cnzz.com/core.php?web_id=1274996213&t=z, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details. at https://s19.cnzz.com/z_stat.php?id=1274996213:17
15:07:39.643 A parser-blocking, cross site (i.e. different eTLD+1) script, https://webapi.amap.com/maps/main?v=1.3&key=&m=http,map,anip,layers,overlay0,brender,mrender,touch,vectorlayer,overlay,cmng,cgl,sync&vrs=1536672475627, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details. at https://webapi.amap.com/maps?v=1.3:20
15:07:39.663 A parser-blocking, cross site (i.e. different eTLD+1) script, https://webapi.amap.com/maps/main?v=1.3&key=&m=http,map,anip,layers,overlay0,brender,mrender,touch,vectorlayer,overlay,cmng,cgl,sync&vrs=1536672475627, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details. at https://webapi.amap.com/maps?v=1.3:20
15:07:39.733 TypeError: Cannot read property 'length' of undefined at https://h5.lingqian360.com/js/app.9ccd5c06.js:1
15:07:39.851 A parser-blocking, cross site (i.e. different eTLD+1) script, https://api.map.baidu.com/getscript?v=2.0&ak=suyv2jndXIaZeQD5yGGfBkzUZmuOFKTG&services=&t=20190622163250, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details. at https://api.map.baidu.com/api?ak=suyv2jndXIaZeQD5yGGfBkzUZmuOFKTG&v=2.0:1
15:07:39.878 A parser-blocking, cross site (i.e. different eTLD+1) script, https://api.map.baidu.com/getscript?v=2.0&ak=suyv2jndXIaZeQD5yGGfBkzUZmuOFKTG&services=&t=20190622163250, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details. at https://api.map.baidu.com/api?ak=suyv2jndXIaZeQD5yGGfBkzUZmuOFKTG&v=2.0:1
联系方式
[QQ]
451687300