因为使用监听滑动的时候根部左滑还是监听不到退而求其次
该方法会在返回后的页面弹窗
onUnload() {// console.log("VisitDetail onUnload")if (this.pagesList.length > 2 && this.detail.status === 2) {if (this.pagesList[this.pagesList.length - 2] == '前一个页面路径') {const that = thisuni.showModal({title: '提示',content: '是否保存已填写数据',success: function (res) {if (res.confirm) {// 调取保存的接口}}});}}},