收藏
回答

很多安卓手机页面会跳转两次,苹果手机不会,怎么解决?

getVipTaskInfo(){

let that=this

let member=wx.getStorageSync('member')

let shopId=that.data.shopId

let enterCode = that.data.enterCode

// let shopId="SH190706000J190705144419"

if(member){

let memberId=member.memberId

getVipTaskInfo(memberId,shopId,res=>{

console.log(res)

let result=res.data.data

if(result){

let shopId=result.vipTask.shopId

let partition=that.data.partition

if (!isBlank(result.vipTaskCosumePool)) {

that.setData({

vipTaskCosumePool: result.vipTaskCosumePool

})

}

if (isBlank(result.vipTaskCosumePool)){

wx.navigateTo({

url: `../exclusiveMember/exclusiveMember?shopId=${shopId}&partition=${partition}&enterCode=${enterCode}&memberId=${that.data.userId}`,

})

return

}

}

},err=>{

console.log(err)

})

}

},

在onshow里面调用的这个方法,页面跳转后用return,但是有的安卓手机还是会跳转两次,用户体验感很差,怎么解决

最后一次编辑于  08-14
回答关注问题邀请回答
收藏

3 个回答

问题标签