You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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