url:APP-SERVICE-SDK:Unknown URL protocol "http?
发布于 8 年前 作者 minggong 4769 次浏览 来自 官方Issues

js代码:

 goAPP: function (e{
   const that=this;
    if(that.data.platform == "ios"){
      wx.navigateTo({
        url: 'https://itunes.apple.com/cn/app/id1319750087?mt=8'
      });
    }else {
      console.log('11111111');
      wx.navigateTo({
        url: 'https://zhouse-app.zbjsaas.com/#/fearmy/index'
      }); 
    }
  }

报错:
thirdScriptError
APP-SERVICE-SDK:Unknown URL protocol "https://"; [Component] Event Handler Error @ pages/home/home#bound goAPP
Error: APP-SERVICE-SDK:Unknown URL protocol "https://"
    at p (WAService.js:1:428450)
    at Iu (WAService.js:1:777853)
    at Object.ku (WAService.js:1:779229)
    at Object.f.<computed> [as navigateTo] (WAService.js:1:1086595)
    at Object.<anonymous> (WAService.js:1:442053)
    at Object.<anonymous> (WAService.js:1:1125609)
    at Function.<anonymous> (WAService.js:1:1125739)
    at Object.<anonymous> (WAService.js:1:427294)
    at ge.goAPP (http://127.0.0.1:35921/appservice/pages/home/home.js:213:10)
    at Object.r.safeCallback (WAService.js:1:1133279)

但是轮播图的图片链接可以打开

1 回复
你这个要用一个页面放web-view跳转过去,不能用navigateTo
回到顶部