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

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