1.原因:app.js文件中的requestUrl的地址最后缺少一个/;举个例子
requestUrl: "https://xxx.xxx.com" 正确的写法是:requestUrl: "https://xxx.xxx.com/"
2.需要检查app.json中的 tabBar.list 配置 在list中的页面只能用switchTab 不在list中的页面不能用switchTab
"tabBar": { "custom": true, "list": [ { "pagePath": "pages/index/index", "text": "首页" }, { "pagePath": "pages/me/index", "text": "我的" } ]