<view>
<web-view wx:if="{{showpage}}" class="webview" src="{{noticesrc}}"></web-view>
</view>
data: {
noticesrc: "",
showpage: false,
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
const data = JSON.parse(options.data);
let url = domains["webhtmlurl"] +
"/contentPage.html?id=" +
data.showId +
"&type=" +
data.type;
console.log(url);
let that = this;
setTimeout(function() {
that.setData({
showpage: true,
noticesrc:url,
});
}, 1000)
},
报错截图如下:
开发设置中业务域名如下:

你好,已恢复,请查实。
将要访问
https://xacsydgy.com/contentPage.html?id=0&type=3
非微信官方网页,请确认是否继续访问。
https://xacsydgy.com/contentPage.html?id=0&type=3
非微信官方网页,请确认是否继续访问。