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就会闪退并显示程序崩溃
Burger (作者)
没有,不知道是什么问题,relaunch之前的都执行了
2024-08-19 09:31
Big_Shark
回复 Burger: 可以加个QQ帮你看下
2024-08-20 00:26