myjf007

Results 11 issues of myjf007

不能像原生那样设置后进行回调处理么? ```js this.setData({ },()=>{ // do something }); ```

`Page.P('index',{ onLoad(){ let that = this; // 异步读 this.$cache.get('page_data', function (err, data) { // success or fail if (err) { that.$route('setting') } else { console.log('Get data success', data) } })...

定义了一个弹层的组件 在pageAd页面引用了,点击调用没问题,然后调用了$route,打开了pageB,点击调用也没问题,从pageB返回到pageA后,pageA点击就调用不了

rq(opt).then( res => { wx.hideToast(); const data = res.data; if (data.code === 200 ) { }else { this.$route('../add/add'); /*wx.navigateTo({ url: '../add/add' })*/ } }).catch(()=>{ wx.hideToast(); })

Cannot read property 'mode' of undefined;at api onAppEnterBackground callback function

在页面的json文件,引用 { "usingComponents": { } } 只要设置了这个,就立马不能往下执行了