微信小程序访问本地接口失败

微信小程序访问本地接口失败,这是为什么?
代码如下:

onLoad(options) {
    var _this = this;
        wx.request({
            url: 'http:localhost:8083/dd/appApi/home',
            method: 'get',
            data: {},
            header: {  
                'content-type': 'application/x-www-form-urlencoded'  
              }, 
            success: function (res) {
                console.log(res.data);
                _this.setData({
                  finishedInfo: res.data
                })
            },
            fail: function (res) {
                console.log('失败'+res.data);
            }
        })
  },

1、后台确定启动了
2、用的测试号开发的,跟这个会有关系吗?
3、本地设置也改了

img

换成域名的方式访问调用,似乎不能使用localhost这种本地ip,可以使用内网穿透工具cpolar穿透8083端口,然后生成公网域名地址,使用公网域名地址访问.cpolar网站:

https://www.cpolar.com