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.

9901Jump.js 4.8KB

hace 11 meses
hace 11 meses
hace 11 meses
hace 11 meses
hace 9 meses
hace 11 meses
hace 10 meses
hace 11 meses
hace 10 meses
hace 11 meses
hace 11 meses
hace 10 meses
hace 9 meses
hace 10 meses
hace 9 meses
hace 10 meses
hace 9 meses
hace 10 meses
hace 9 meses
hace 10 meses
hace 10 meses
hace 10 meses
hace 11 meses
hace 11 meses
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. import {
  2. getItem
  3. } from "@/utils/storage";
  4. export function jump(type,item){
  5. // type 1 obu重新激活 2 卡签注销 3更换设备 4卡签续期 5挂失解挂 6增补设备 售后业务
  6. // 14 首次激活 15客车个人用户办理etc
  7. // 7申请换货 8申请退货 9申请补货 没激活之前
  8. // 10 上传身份信息 11待支付 12待签约 13异地-邮寄地址填写 18去下单
  9. // 16签约 17卡签信息读取(没登录去异地登录)
  10. // plateNum 车牌号码和颜色编号 例:浙A0P73H_0
  11. // orderNo 订单编号
  12. // afterType 售后办理类型 1.挂失/解挂 3.更换 4.续期 5.补办 6.注销 7.换货 8.退货 9.补货
  13. // orderType 订单类型 1.新办 2.售后
  14. // 需要小程序跳转的:
  15. // 1.新办理的订单在设备在已发货未二发前可进行退货、换货、补货的业务。
  16. // 2. 已激活设备可发起挂失、解挂、更换、补办、注销、续期售后业务。针对更换、补办产生的订单在已发货未二发前可以进行退货、换货、补货业务。
  17. if(type=="17"){
  18. uni.navigateTo({
  19. url:`plugin://issuer-plugin/login?redirectUrl=/pages/index/index&type=1&mobile=${getItem("mobile")}`
  20. })
  21. }else if(type=="16"){
  22. uni.navigateTo({
  23. url:`plugin://issuer-plugin/login?redirectUrl=/pages/index/index&wechatSignNo=${item}&mobile=${getItem("mobile")}`
  24. })
  25. }else{
  26. let data=""//传递过来的数据
  27. if(item){
  28. data = JSON.parse(decodeURIComponent(item))
  29. }
  30. console.log("type",type,data)
  31. let redirectUrl=""
  32. let handleType=""
  33. let orderType=""
  34. let afterType=""
  35. let accountType=""
  36. let carType=""
  37. if(type=="15" ){
  38. // 7. accountType 1 个人 2企业
  39. // 8. carType 0 客车 1 货车
  40. accountType=data.userType
  41. carType=data.type=='1'?0:1
  42. console.log("accountType",accountType,carType,type,handleType)
  43. redirectUrl=`/pages/order/order`
  44. }
  45. if(type=="10" || type=="12"|| type=="13" || type=="18"){
  46. redirectUrl="/pages/order/order"
  47. handleType="continuation"
  48. console.log("accountType",type)
  49. }
  50. if(type=="11"){
  51. if(data['orderType']=='EXCHANGE_CARD' || data['orderType']=='EXCHANGE_OBU' || data['orderType']=='EXCHANGE_ALL'){
  52. // 售后换卡换签换卡签
  53. redirectUrl="/pages/order/order"
  54. handleType="aftersale"
  55. afterType=3
  56. }else if(data['orderType']=='FILL_OBU'|| data['orderType']=='FILL_CARD'){
  57. // 补卡 补签(没有补卡签)
  58. redirectUrl="/pages/order/order"
  59. handleType="aftersale"
  60. afterType=9
  61. }else{
  62. // 正常支付
  63. redirectUrl="/pages/order/order"
  64. handleType="continuation"
  65. }
  66. }
  67. // 售后激活 更换卡签
  68. if(type=="14"){
  69. if(data['orderType']=='EXCHANGE_CARD' || data['orderType']=='EXCHANGE_OBU' || data['orderType']=='EXCHANGE_ALL'){
  70. afterType=3
  71. orderType=2
  72. handleType="aftersale"
  73. redirectUrl="/pages/order/order"
  74. }else if(data['orderType']=='FILL_OBU'|| data['orderType']=='FILL_CARD'){
  75. // 补卡 补签(没有补卡签)
  76. afterType=9
  77. orderType=2
  78. handleType="aftersale"
  79. redirectUrl="/pages/order/order"
  80. }else{
  81. // 14 正常激活
  82. redirectUrl="/pages/order/order"
  83. handleType="continuation"
  84. }
  85. }
  86. if(type=="7" || type=="8" || type=="9"){
  87. redirectUrl="/pages/order/order"
  88. handleType="aftersale"
  89. if(type=="7"){
  90. afterType=7
  91. }else if(type=="8"){
  92. afterType=8
  93. }else if(type=="9"){
  94. afterType=9
  95. }
  96. if(data['after']){
  97. orderType=2
  98. // plateNum 车牌号码和颜色编号 例:浙A0P73H_0
  99. // orderNo 订单编号
  100. // afterType 售后办理类型 1.挂失 2.解挂 3.更换 4.续期 5.补办 6.注销 7.换货 8.退货 9.补货
  101. // orderType 订单类型 1.新办 2.售后
  102. }else{
  103. orderType=1
  104. }
  105. }
  106. // 售后业务
  107. if(type=="2" || type=="3"|| type=="4" || type=="5"|| type=="6"){
  108. redirectUrl="/pages/index/index"
  109. handleType="aftersale"
  110. if(data['after']){
  111. orderType=2
  112. }else{
  113. orderType=1
  114. }
  115. }
  116. // 售后办理类型
  117. if(type=="2"){
  118. afterType=6
  119. }else if(type=="3"){
  120. afterType=3
  121. }else if(type=="4"){
  122. afterType=4
  123. }else if(type=="5"){
  124. afterType=1
  125. }else if(type=="6"){
  126. afterType=5
  127. }
  128. // 重新激活
  129. if(type=="1"){
  130. handleType="reactivate"
  131. redirectUrl="/pages/index/index"
  132. }
  133. console.log("data.promoteId",data.promoteId,handleType)
  134. uni.navigateTo({
  135. url:`plugin://issuer-plugin/login?redirectUrl=${redirectUrl}&plateNum=${data.vehicleId?data.vehicleId:""}&handleType=${handleType}&orderNo=${(handleType!='continuation' && data.orderId)?data.orderId:""}&orderType=${orderType}&afterType=${afterType}&accountType=${accountType}&carType=${carType}&etcProductId=${data.promoteId?data.promoteId:data.productId}&mobile=${getItem("mobile")}`
  136. })
  137. }
  138. }