Burger
Burger
  • 发布:2024-08-16 15:06
  • 更新:2024-08-16 20:37
  • 阅读:161

IOS页面调用uni.reLaunch闪退

分类:uni-app

IOS页面调用uni.reLaunch闪退

            uni.getLocation({  
                type: 'gcj02',  
                geocode: true,  
                success: (res) => {  
                    that.form.longitude = res.longitude  
                    that.form.latitude = res.latitude  
                    that.form.address = res.address.province+res.address.city+res.address.district+res.address.street+res.address.streetNum+res.address.poiName  
                    that.form.short_address = res.address.street+res.address.streetNum+res.address.poiName  
                    detail({ // 接口查询  
                        pid: that.form.pid  
                    }).then(res => {  
                            that.form.fee_list = that.costList  
                            arriveTake(that.form).then(res => {  //接口上报  
                                if(res.code == 1){  
                                    uni.reLaunch({     // 运行跳转时闪退  
                                        url: `/pages/transition/being-pickUp?pid=${that.form.pid}`  
                                    })  
                                }else{  
                                    uni.showToast({  
                                        title: res.msg,  
                                        duration: 3000,  
                                        icon: 'none'  
                                    })  
                                }  
                            })  
                        }  
                    })  
                }  
            })  

到uni.reLaunch时,ios就会闪退并显示程序崩溃

2024-08-16 15:06 负责人:无 分享
已邀请:
Big_Shark

Big_Shark

楼主,问题解决了吗

  • Burger (作者)

    没有,不知道是什么问题,relaunch之前的都执行了

    2024-08-19 09:31

  • Big_Shark

    回复 Burger: 可以加个QQ帮你看下

    2024-08-20 00:26

要回复问题请先登录注册