收藏
回答

url:APP-SERVICE-SDK:Unknown URL protocol "http?

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 个回答

  • 嗯
    03-18
    你这个要用一个页面放web-view跳转过去,不能用navigateTo
    


    03-18
    赞同
    回复 1
    • L[爱心]L
      L[爱心]L
      59分钟前
      怎么实现
      59分钟前
      回复
登录 后发表内容
问题标签