开发工具、真机调式模式下能正常运行,上传体验版在手机上无法运行。。出现如下报错。。
a._request is not a function;at "pages/acct/acct" page lifeCycleMethod onLoad function TypeError: a._request is not a function at be._GetTermListToDownMenu (app-service.js:5892:1763) at be.onLoad (app-service.js:5892:2468) at be.<anonymous> (WASubContext.js:1:1446679) at be.p.__callPageLifeTime__ (WASubContext.js:1:1446424) at Tt (WASubContext.js:1:1461733) at at (WASubContext.js:1:1464743) at At (WASubContext.js:1:1464810) at Function.<anonymous> (WASubContext.js:1:1469093) at i.<anonymous> (WASubContext.js:1:1437956) at i.emit (WASubContext.js:1:446330)
页面JS代码:
onLoad: function () {
var t = this
t.setData({ overlay_show: true })
t._GetTermListToDownMenu().then((e) => {
if (e.data.length > ) {
t.setData({
term_opt: e.data
})
}
wx.hideLoading()
t.setData({ overlay_show: false })
})
},_GetTermListToDownMenu:function(){
var t = this
var _data = { code: 123,abc:987}
return app._request(_data, app.globalData._GetTermApi,'');
}
麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
还是一样的提示,真机调试都正常,上传体验版就出错了
app._request(_data, app.globalData._GetTermApi,'');
主要是提示这个错误
先调用,再return.