看3-7,3-8视频时的问题
来源:3-11 综合实践-股票应用
weixin_慕斯卡4281563
2019-07-03
代码从3-6迭代到3-7(8)时出现的问题,求老师指点。
我这里如果不在app.json文件的"pages"里面写“pages/logs/logs”, 天气和图片备份两个应用就显示不出来。console报错信息如下
WAService.js:18 Thu Jul 04 2019 09:51:36 GMT+0800 (中国标准时间) Page 注册错误
VM1628:1 thirdScriptError
sdk uncaught third Error
APP-SERVICE-Engine:pages/logs/logs has not been declared in app.json.
Error: APP-SERVICE-Engine:pages/logs/logs has not been declared in app.json.
at new t (http://127.0.0.1:26744/appservice/dev/WAService.js:18:12866)
at t.pageHolder (http://127.0.0.1:26744/appservice/dev/WAService.js:17:30723)
at http://127.0.0.1:26744/appservice/pages/logs/logs.js:6:1
at require (http://127.0.0.1:26744/appservice/dev/WAService.js:19:7304)
at :17:7
at HTMLScriptElement.scriptLoaded (http://127.0.0.1:26744/appservice/appservice?t=1562205095430:1220:21)
at HTMLScriptElement.script.onload (http://127.0.0.1:26744/appservice/appservice?t=1562205095430:1232:20)
console.error @ VM1628:1
(anonymous) @ WAService.js:4
(anonymous) @ WAService.js:4
e @ appservice?t=1562205095430:1155
window.onerror @ VM1628:1
scriptLoaded @ appservice?t=1562205095430:1220
script.onload @ appservice?t=1562205095430:1232
VM1628:1 thirdScriptError
wx.getuserInfo is not a function;at App onLaunch function;at api getSetting success callback function
TypeError: wx.getuserInfo is not a function
at Function.success (http://127.0.0.1:26744/appservice/app.js:24:14)
at Object.success (http://127.0.0.1:26744/appservice/dev/WAService.js:3:14159)
at u (http://127.0.0.1:26744/appservice/dev/WAService.js:4:6009)
at Function. (http://127.0.0.1:26744/appservice/dev/WAService.js:4:6187)
at n.function.setTimeout (http://127.0.0.1:26744/appservice/appservice?t=1562205095430:1155:10471)
at http://127.0.0.1:26744/appservice/dev/WAService.js:3:14159
at http://127.0.0.1:26744/appservice/dev/WAService.js:8:25162
console.error @ VM1628:1
errorReport @ WAService.js:3
thirdErrorReport @ WAService.js:3
(anonymous) @ WAService.js:3
u @ WAService.js:4
(anonymous) @ WAService.js:4
function.setTimeout @ appservice?t=1562205095430:1155
(anonymous) @ WAService.js:3
(anonymous) @ WAService.js:8
setTimeout (async)
setTimeout @ WAService.js:8
v @ appservice?t=1562205095430:1155
r.registerCallback.t @ appservice?t=1562205095430:1155
u.forEach.t @ appservice?t=1562205095430:1155
(anonymous) @ appservice?t=1562205095430:1155
a.onmessage @ appservice?t=1562205095430:1155
index.js:47 {type: “getuserinfo”, timeStamp: 3091, target: {…}, currentTarget: {…}, detail: {…}}
WAService.js:18 Thu Jul 04 2019 09:51:41 GMT+0800 (中国标准时间) Page route 错误
VM1628:1 Page[pages/menu/menu] not found. May be caused by: 1. Forgot to add page route in app.json. 2. Invoking Page() in async task.
console.warn @ VM1628:1
t.warn @ WAService.js:18
D @ WAService.js:18
U @ WAService.js:18
K @ WAService.js:18
(anonymous) @ WAService.js:18
(anonymous) @ WAService.js:18
(anonymous) @ WAService.js:5
(anonymous) @ WAService.js:5
(anonymous) @ WAService.js:4
e @ appservice?t=1562205095430:1155
n.registerCallback.t @ appservice?t=1562205095430:1155
u.forEach.t @ appservice?t=1562205095430:1155
(anonymous) @ appservice?t=1562205095430:1155
a.onmessage @ appservice?t=1562205095430:1155
2回答
-
咚咚呛
2019-07-03
这个只是注册logs页面,意思是注册了logs页面之后,小程序才可以使用这个页面,否则是不能使用的。不写这个是没有问题的,不影响图标才对,你试试去掉然后看看具体的错误日志是什么。
032019-07-04 -
咚咚呛
2019-07-03
好,我今晚回去统一回复,请稍等!
012019-07-03
相似问题