在app.js里写下
wx.getSetting({
success:data=>{
if (data.authSetting['scope.userInfo']){
wx.getUserInfo({
success:res=>{
console.log(res)
}
})
console.log(data)
}else{
wx.reLaunch({
url: '../3D/3D',
})
}
}
})
在win10上都能正常跳转,在win8下会报3D/3Dis not in app.json
将../3D/3D改成pages/3D/3D就可以在win8下正常运行,win10报错
这是为什么?
当前页面的路径,这个 reLaunch 目标 page 文件的路径,分别是什么呢?
app.json里写的是
{
"pages": [
"pages/index/index",
"pages/carport/carinfo/carinfo",
"pages/carport/recordDetail/recordDetail",
"pages/carport/carpayrecord/carpayrecord",
"pages/carport/carrenew/carrenew",
"pages/carport/allcar/allcar",
"pages/tttt/tttt",
"pages/three/three",
"pages/canvasimg/canvasimg",
"pages/canvas/canvas",
"pages/tx/tx",
"pages/logo/logo",
"pages/3D/3D",
"pages/one/one",
"pages/two/two",
"pages/logs/logs"
],