LinHang
LinHang
  • 发布:2021-09-13 09:28
  • 更新:2021-09-13 09:28
  • 阅读:712

uniapp APP端uni.openLocation打开地图后,返回不触发onShow

分类:uni-app
onShow() {  
            uni.showModal({  
                content: '数量:'+this.type+this.openLocationCount  
            })  
            if(this.type == 'openLocation'){  
                this.openLocationCount++  
                if(this.openLocationCount > 1){  
                    uni.navigateBack()  
                }else{  
                    setTimeout(()=>{  
                        this.openLocation(this.shopInfo)  
                    },150)  
                }  
            }  
        },

一进入页面再onShow打开uni.openLocation
打开地图后,返回就不再触发onShow了
在小程序上面可以,APP端就不行

2021-09-13 09:28 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复