Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. import {
  2. getItem
  3. } from "@/utils/storage";
  4. export function jump(type,item){
  5. console.log("type",type,item)
  6. let data=""//传递过来的数据
  7. if(item){
  8. data = JSON.parse(decodeURIComponent(item))
  9. }
  10. let path=""
  11. let jumpType=type //1 obu重新激活 2 卡签注销 3 首次激活 4客车个人用户办理etc 5更换设备 6卡签续期 7申请换货 8申请退货 9申请补货
  12. if(jumpType=="1"){
  13. path="pages/route/index"
  14. }else if(jumpType=="2"){
  15. path="pages/route/index"
  16. }else if(jumpType=="3"){
  17. path="pages/route/index"
  18. }else if(jumpType=="4"){
  19. path="pages/route/index"
  20. }else if(jumpType=="5"){
  21. path="pages/route/index"
  22. }else if(jumpType=="6"){ //卡签续期 renevalType
  23. path="pages/route/index"
  24. }else if(jumpType=="7"){
  25. path="pages/route/index"
  26. }else if(jumpType=="8"){
  27. path="pages/route/index"
  28. }
  29. console.log("===",getItem("QYorder").openid,data.vehicleId,data.cardId,jumpType)
  30. uni.navigateToMiniProgram({
  31. appId: "wxbcad394b3d99dac9",
  32. path: path,
  33. extraData: {
  34. openid: getItem("QYorder").openid,
  35. access_token: getItem("QYorder").access_token,
  36. mobile: getItem("mobile"),
  37. vehicleId: data.vehicleId?data.vehicleId:"",
  38. cardId: data.cardId?data.cardId:"",
  39. obuId: data.obuId?data.obuId:"" ,
  40. },
  41. success(res) {
  42. console.log(res);
  43. },
  44. complete(res) {
  45. console.log(res);
  46. },
  47. fail(res) {
  48. console.log(res);
  49. // 未成功跳转到车主小程序
  50. },
  51. })
  52. }