收藏
回答

web-view调用html页面报错:非微信官方网页,请确认是否继续访问?

<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)

    

  },

报错截图如下:

开发设置中业务域名如下:

最后一次编辑于  10-13
回答关注问题邀请回答
收藏

3 个回答

  • 微信朋友圈&外链咨询
    微信朋友圈&外链咨询
    10-14

    你好,已恢复,请查实。

    10-14
    有用
    回复 1
    • 赵小勇
      赵小勇
      发表于移动端
      10-14
      谢谢
      10-14
      回复
  • 赵小勇
    赵小勇
    10-13

    将要访问



    https://xacsydgy.com/contentPage.html?id=0&type=3



    非微信官方网页,请确认是否继续访问。

    10-13
    有用
    回复 1
    • 赵小勇
      赵小勇
      10-13
      网页内容也没有违规内容,就是企业内部正常的场地介绍和服务电话之类的
      10-13
      回复
  • 智能回答 智能回答 本次回答由AI生成
    10-13
    有用
    回复 5
    • 赵小勇
      赵小勇
      10-13
      https://xacsydgy.com/contentPage.html?id=0&type=3
      10-13
      回复
    • 智能回答 智能回答 本次回答由AI生成
      10-13回复赵小勇
      1
    • 赵小勇
      赵小勇
      10-13
      你好,手机上底部只有一个继续访问,和申请恢复,没有停止访问;
      10-13
      回复
    • 赵小勇
      赵小勇
      10-13
      网页内容也没有违规内容,就是企业内部正常的场地介绍和服务电话之类的
      10-13
      回复
    • 赵小勇
      赵小勇
      10-13
      如果用户手动点申请恢复后,就这一个用户可以好,但其他用户依然有此提示:将要访问
      https://xacsydgy.com/contentPage.html?id=0&type=3
      非微信官方网页,请确认是否继续访问。
      10-13
      回复
登录 后发表内容