import { getItem } from "@/utils/storage"; export function jump(type,item){ console.log("type",type,item) let data=""//传递过来的数据 if(item){ data = JSON.parse(decodeURIComponent(item)) } let path="" let jumpType=type //1 obu重新激活 2 卡签注销 3 首次激活 4客车个人用户办理etc 5更换设备 6卡签续期 7申请换货 8申请退货 9申请补货 if(jumpType=="1"){ path="pages/route/index" }else if(jumpType=="2"){ path="pages/route/index" }else if(jumpType=="3"){ path="pages/route/index" }else if(jumpType=="4"){ path="pages/route/index" }else if(jumpType=="5"){ path="pages/route/index" }else if(jumpType=="6"){ //卡签续期 renevalType path="pages/route/index" }else if(jumpType=="7"){ path="pages/route/index" }else if(jumpType=="8"){ path="pages/route/index" } console.log("===",getItem("QYorder").openid,data.vehicleId,data.cardId,jumpType) uni.navigateToMiniProgram({ appId: "wxbcad394b3d99dac9", path: path, extraData: { openid: getItem("QYorder").openid, access_token: getItem("QYorder").access_token, mobile: getItem("mobile"), vehicleId: data.vehicleId?data.vehicleId:"", cardId: data.cardId?data.cardId:"", obuId: data.obuId?data.obuId:"" , }, success(res) { console.log(res); }, complete(res) { console.log(res); }, fail(res) { console.log(res); // 未成功跳转到车主小程序 }, }) }