getCurrentPages() 这个方法在API中怎么搜索不到了
跳转执行事件,模拟器可以,但是真机预览却不行问题描述:我在B页返回A页时,执行A页事件。 在模拟器中成功,但是预览在手机上执行失败。手机是iphone6. 代码: var pages = getCurrentPages(); var lastpage = pages[pages.length - 2]; wx.navigateBack({ success: function () { lastpage.scanEvent(); } }); 求教各位技术大牛帮忙,谢谢。
2018-09-20getCurrentPages() 这个方法怎么在API上搜索不到了!!
IOS和安卓当前页面栈里页面数量不一致wx.navigateBack时success里面取得当前页面栈数量, wx.navigateBack({ success : function() { var pages = getCurrentPages(); console.log(pages); } }); IOS取到长度为2,安卓和模拟器取到长度为1. [图片] [图片]
2018-09-20同求怎么解决
85045 some path in ext_json not existsome path in ext_json not exist hint: [KeBcMa0496e255] 第三方为授权小程序提交代码。昨天还能正常提交。今天就不行了总是返回85045。能否说明具体哪个path有问题。 以下是我的ext_json { "extEnable": true, "extAppid": "wx08882c97d4e61598", "directCommit": false, "ext": { "extAppid": "wx08882c97d4e61598", "id": "29", "agent_id": 1 }, "window": { "backgroundTextStyle": "light", "navigationBarBackgroundColor": "#191E22", "navigationBarTitleText": "美联程-点餐", "navigationBarTextStyle": "white" }, "tabBar": { "list": [{ "pagePath": "/pages/index/index", "text": "首页", "iconPath": "/img/index1.png", "selectedIconPath": "/img/index2.png", "clas": "menu-item", "selectedColor": "#FF7F01", "jump": "homeJump", "active": true }, { "pagePath": "/pages/favour/favour", "text": "优惠买单", "iconPath": "/img/list1.png", "selectedIconPath": "/img/list2.png", "clas": "menu-item", "selectedColor": "#FF7F01", "jump": "favour", "active": false }, { "pagePath": "/pages/personal/personal", "text": "个人中心", "iconPath": "/img/my1.png", "selectedIconPath": "/img/my2.png", "clas": "menu-item", "selectedColor": "#FF7F01", "jump": "personalJump", "active": false }] }, "networkTimeout": { "request": 10000, "downloadFile": 10000 }, "debug": false }
2018-09-18