Burger
Burger
  • 发布:2024-08-19 11:23
  • 更新:2024-08-26 10:07
  • 阅读:191

【报Bug】IOS页面多次调用uni.reLaunch闪退

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: w10

HBuilderX类型: 正式

HBuilderX版本号: 4.15

手机系统: iOS

手机系统版本号: iOS 17

手机厂商: 苹果

手机机型: pro

页面类型: vue

vue版本: vue2

打包方式: 云端

项目创建方式: HBuilderX

示例代码:
    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'      
                            })      
                        }      
                    })      
                }      
            })      
        }      
    })  

操作步骤:

A页面调用代码示例跳转至B页面,B页面调用代码示例跳转至C页面,重复该操作,IOS会闪退提示程序崩溃(页面有使用renderjs绘制地图以及路线规划)

预期结果:

不闪退

实际结果:

闪退崩溃

bug描述:

IOS页面多次调用uni.reLaunch闪退

2024-08-19 11:23 负责人:无 分享
已邀请:
DCloud_UNI_yuhe

DCloud_UNI_yuhe

你好,请勿重复发帖,您的问题请提供一个可以复现的测试工程

  • Burger (作者)

    已提供代码,请查看

    2024-08-19 11:46

  • DCloud_UNI_yuhe

    回复 Burger: 你好,请说明如何操作可以复现

    2024-08-19 11:50

  • Burger (作者)

    回复 DCloud_UNI_yuhe: 首页点击运单进入详情,点击底部按钮

    2024-08-19 11:55

DCloud_UNI_yuhe

DCloud_UNI_yuhe

你好,我这里好像并没有发生闪退,不知道你说的是哪种情况。或许你可以尝试升级到最新版试一下,我是拿最新版测试的。

  • Burger (作者)

    xcode还是真机,如果不是真机,需要将onLoad中的fence.pauseGeoFence(), this.removeGeoFence(params.pid)注释掉,我这边也用最新版打包测试一下

    2024-08-19 12:08

  • Burger (作者)

    还是有闪退的情况,视频在下面评论

    2024-08-26 10:08

Burger

Burger (作者)

不行,还是有闪退的情况

要回复问题请先登录注册