今天我在自学开发小程序开发的时候,在一个地方卡住了,先看看我的菜单代码如下:
"tabBar": {
"color": "#B6B6B6",
"selectedColor": "#FE9132",
"list": [{
"pagePath": "pages/index/index",
"text": "首页",
"iconPath": "http://106.15.33.108/首页.png",
"selectedIconPath": "http://106.15.33.108/首页1.png"
},{
"pagePath": "pages/logs/logs",
"text": "快递",
"iconPath": "http://106.15.33.108/快递.png",
"selectedIconPath": "http://106.15.33.108/快递1.png"
},{
"pagePath": "pages/shopping/shopping",
"text": "代乐购",
"iconPath": "http://106.15.33.108/购物1.png",
"selectedIconPath": "http://106.15.33.108/购物2.png"
},{
"pagePath": "pages/me/me",
"text": "我的",
"iconPath": "http://106.15.33.108/我的.png",
"selectedIconPath": "http://106.15.33.108/我的1.png"
}]
},
我一直没有找到自己那个地方是不正确的,后来发现了在网上的菜单中,大部分的图片都是使用本地的,而我使用的是在服务器上的图片,求各位路过的大佬可以解惑(是不是在菜单的小图标是不能在服务器上获取的)