微信小程序web-view页面偶尔出现空白

<web-view wx:if="{{ scenicId !=undefined }}" src="https://域名/map?scenicId={{scenicId}}&token={{token}}" ></web-view>

成功的时候

图片说明

出现空白的时候

图片说明

第一次点进去很大几率出现空白

猜测可能是程序中scenicId和token的初始化的问题。看看Page的onLoad函数中是否通过this.setData正确设置了这两个变量。