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'
})
}
})
}
})
}
})
![Burger](https://img-cdn-tc.dcloud.net.cn/account/identicon/e5fcb91fac81d89f2ef0e9d0b17db042.png)
- 发布:2024-08-19 11:23
- 更新:2024-08-26 10:07
- 阅读:191
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: w10
HBuilderX类型: 正式
HBuilderX版本号: 4.15
手机系统: iOS
手机系统版本号: iOS 17
手机厂商: 苹果
手机机型: pro
页面类型: vue
vue版本: vue2
打包方式: 云端
项目创建方式: HBuilderX
示例代码:
操作步骤:
A页面调用代码示例跳转至B页面,B页面调用代码示例跳转至C页面,重复该操作,IOS会闪退提示程序崩溃(页面有使用renderjs绘制地图以及路线规划)
A页面调用代码示例跳转至B页面,B页面调用代码示例跳转至C页面,重复该操作,IOS会闪退提示程序崩溃(页面有使用renderjs绘制地图以及路线规划)
预期结果:
不闪退
不闪退
实际结果:
闪退崩溃
闪退崩溃
bug描述:
IOS页面多次调用uni.reLaunch闪退
Burger (作者)
已提供代码,请查看
2024-08-19 11:46
DCloud_UNI_yuhe
回复 Burger: 你好,请说明如何操作可以复现
2024-08-19 11:50
Burger (作者)
回复 DCloud_UNI_yuhe: 首页点击运单进入详情,点击底部按钮
2024-08-19 11:55