|
|
|
|
|
|
|
|
// 14 首次激活 15客车个人用户办理etc |
|
|
// 14 首次激活 15客车个人用户办理etc |
|
|
// 7申请换货 8申请退货 9申请补货 没激活之前 |
|
|
// 7申请换货 8申请退货 9申请补货 没激活之前 |
|
|
// 10 上传身份信息 11待支付 12待签约 13异地-邮寄地址填写 |
|
|
// 10 上传身份信息 11待支付 12待签约 13异地-邮寄地址填写 |
|
|
let data=""//传递过来的数据 |
|
|
|
|
|
if(item){ |
|
|
|
|
|
data = JSON.parse(decodeURIComponent(item)) |
|
|
|
|
|
} |
|
|
|
|
|
console.log("type",type,data) |
|
|
|
|
|
let redirectUrl="" |
|
|
|
|
|
let handleType="" |
|
|
|
|
|
let orderType="" |
|
|
|
|
|
let afterType="" |
|
|
|
|
|
|
|
|
|
|
|
let accountType="" |
|
|
|
|
|
let carType="" |
|
|
|
|
|
if(type=="15" ){ |
|
|
|
|
|
// 7. accountType 1 个人 2企业 |
|
|
|
|
|
// 8. carType 0 客车 1 货车 |
|
|
|
|
|
accountType=data.userType |
|
|
|
|
|
carType=data.type=='1'?0:1 |
|
|
|
|
|
console.log("accountType",accountType,carType) |
|
|
|
|
|
redirectUrl=`/pages/order/order` |
|
|
|
|
|
} |
|
|
|
|
|
if(type=="10" || type=="11" || type=="12"|| type=="13"){ |
|
|
|
|
|
redirectUrl="/pages/order/order" |
|
|
|
|
|
handleType="continuation" |
|
|
|
|
|
} |
|
|
|
|
|
// 售后激活 更换卡签 |
|
|
|
|
|
if(type=="14" && (data['orderType']=='EXCHANGE_CARD' || data['orderType']=='EXCHANGE_OBU' || data['orderType']=='EXCHANGE_ALL')){ |
|
|
|
|
|
afterType=3 |
|
|
|
|
|
orderType=2 |
|
|
|
|
|
handleType="aftersale" |
|
|
|
|
|
redirectUrl="/pages/order/order" |
|
|
|
|
|
|
|
|
// 16签约 |
|
|
|
|
|
if(type=="16"){ |
|
|
|
|
|
uni.navigateTo({ |
|
|
|
|
|
url:`plugin://issuer-plugin/login?redirectUrl="/pages/index/index"&wechatsignNo=${wechatsignNo}` |
|
|
|
|
|
}) |
|
|
}else{ |
|
|
}else{ |
|
|
// 14 正常激活 |
|
|
|
|
|
redirectUrl="/pages/order/order" |
|
|
|
|
|
handleType="continuation" |
|
|
|
|
|
} |
|
|
|
|
|
if(type=="7" || type=="8" || type=="9"){ |
|
|
|
|
|
redirectUrl="/pages/order/order" |
|
|
|
|
|
handleType="aftersale" |
|
|
|
|
|
if(type=="7"){ |
|
|
|
|
|
afterType=7 |
|
|
|
|
|
}else if(type=="8"){ |
|
|
|
|
|
afterType=8 |
|
|
|
|
|
}else if(type=="9"){ |
|
|
|
|
|
afterType=9 |
|
|
|
|
|
} |
|
|
|
|
|
if(data['after']){ |
|
|
|
|
|
orderType=2 |
|
|
|
|
|
// plateNum 车牌号码和颜色编号 例:浙A0P73H_0 |
|
|
|
|
|
// orderNo 订单编号 |
|
|
|
|
|
// afterType 售后办理类型 1.挂失 2.解挂 3.更换 4.续期 5.补办 6.注销 7.换货 8.退货 9.补货 |
|
|
|
|
|
// orderType 订单类型 1.新办 2.售后 |
|
|
|
|
|
}else{ |
|
|
|
|
|
orderType=1 |
|
|
|
|
|
|
|
|
let data=""//传递过来的数据 |
|
|
|
|
|
if(item){ |
|
|
|
|
|
data = JSON.parse(decodeURIComponent(item)) |
|
|
|
|
|
} |
|
|
|
|
|
console.log("type",type,data) |
|
|
|
|
|
let redirectUrl="" |
|
|
|
|
|
let handleType="" |
|
|
|
|
|
let orderType="" |
|
|
|
|
|
let afterType="" |
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
// 售后业务 |
|
|
|
|
|
if(type=="2" || type=="3"|| type=="4" || type=="5"|| type=="6"){ |
|
|
|
|
|
redirectUrl="/pages/index/index" |
|
|
|
|
|
handleType="aftersale" |
|
|
|
|
|
if(data['after']){ |
|
|
|
|
|
orderType=2 |
|
|
|
|
|
}else{ |
|
|
|
|
|
orderType=1 |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
// 售后办理类型 |
|
|
|
|
|
if(type=="2"){ |
|
|
|
|
|
afterType=6 |
|
|
|
|
|
}else if(type=="3"){ |
|
|
|
|
|
afterType=3 |
|
|
|
|
|
}else if(type=="4"){ |
|
|
|
|
|
afterType=4 |
|
|
|
|
|
}else if(type=="5"){ |
|
|
|
|
|
afterType=1 |
|
|
|
|
|
}else if(type=="6"){ |
|
|
|
|
|
afterType=5 |
|
|
|
|
|
} |
|
|
|
|
|
// 重新激活 |
|
|
|
|
|
if(type=="1"){ |
|
|
|
|
|
handleType="reactivate" |
|
|
|
|
|
redirectUrl="/pages/index/index" |
|
|
|
|
|
|
|
|
let accountType="" |
|
|
|
|
|
let carType="" |
|
|
|
|
|
if(type=="15" ){ |
|
|
|
|
|
// 7. accountType 1 个人 2企业 |
|
|
|
|
|
// 8. carType 0 客车 1 货车 |
|
|
|
|
|
accountType=data.userType |
|
|
|
|
|
carType=data.type=='1'?0:1 |
|
|
|
|
|
console.log("accountType",accountType,carType) |
|
|
|
|
|
redirectUrl=`/pages/order/order` |
|
|
|
|
|
} |
|
|
|
|
|
if(type=="10" || type=="11" || type=="12"|| type=="13"){ |
|
|
|
|
|
redirectUrl="/pages/order/order" |
|
|
|
|
|
handleType="continuation" |
|
|
|
|
|
} |
|
|
|
|
|
// 售后激活 更换卡签 |
|
|
|
|
|
if(type=="14" && (data['orderType']=='EXCHANGE_CARD' || data['orderType']=='EXCHANGE_OBU' || data['orderType']=='EXCHANGE_ALL')){ |
|
|
|
|
|
afterType=3 |
|
|
|
|
|
orderType=2 |
|
|
|
|
|
handleType="aftersale" |
|
|
|
|
|
redirectUrl="/pages/order/order" |
|
|
|
|
|
}else{ |
|
|
|
|
|
// 14 正常激活 |
|
|
|
|
|
redirectUrl="/pages/order/order" |
|
|
|
|
|
handleType="continuation" |
|
|
|
|
|
} |
|
|
|
|
|
if(type=="7" || type=="8" || type=="9"){ |
|
|
|
|
|
redirectUrl="/pages/order/order" |
|
|
|
|
|
handleType="aftersale" |
|
|
|
|
|
if(type=="7"){ |
|
|
|
|
|
afterType=7 |
|
|
|
|
|
}else if(type=="8"){ |
|
|
|
|
|
afterType=8 |
|
|
|
|
|
}else if(type=="9"){ |
|
|
|
|
|
afterType=9 |
|
|
|
|
|
} |
|
|
|
|
|
if(data['after']){ |
|
|
|
|
|
orderType=2 |
|
|
|
|
|
// plateNum 车牌号码和颜色编号 例:浙A0P73H_0 |
|
|
|
|
|
// orderNo 订单编号 |
|
|
|
|
|
// afterType 售后办理类型 1.挂失 2.解挂 3.更换 4.续期 5.补办 6.注销 7.换货 8.退货 9.补货 |
|
|
|
|
|
// orderType 订单类型 1.新办 2.售后 |
|
|
|
|
|
}else{ |
|
|
|
|
|
orderType=1 |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
// 售后业务 |
|
|
|
|
|
if(type=="2" || type=="3"|| type=="4" || type=="5"|| type=="6"){ |
|
|
|
|
|
redirectUrl="/pages/index/index" |
|
|
|
|
|
handleType="aftersale" |
|
|
|
|
|
if(data['after']){ |
|
|
|
|
|
orderType=2 |
|
|
|
|
|
}else{ |
|
|
|
|
|
orderType=1 |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
// 售后办理类型 |
|
|
|
|
|
if(type=="2"){ |
|
|
|
|
|
afterType=6 |
|
|
|
|
|
}else if(type=="3"){ |
|
|
|
|
|
afterType=3 |
|
|
|
|
|
}else if(type=="4"){ |
|
|
|
|
|
afterType=4 |
|
|
|
|
|
}else if(type=="5"){ |
|
|
|
|
|
afterType=1 |
|
|
|
|
|
}else if(type=="6"){ |
|
|
|
|
|
afterType=5 |
|
|
|
|
|
} |
|
|
|
|
|
// 重新激活 |
|
|
|
|
|
if(type=="1"){ |
|
|
|
|
|
handleType="reactivate" |
|
|
|
|
|
redirectUrl="/pages/index/index" |
|
|
|
|
|
} |
|
|
|
|
|
uni.navigateTo({ |
|
|
|
|
|
url:`plugin://issuer-plugin/login?redirectUrl=${redirectUrl}&plateNum=${data.vehicleId?data.vehicleId:""}&handleType=${handleType}&orderNo=${data.orderId?data.orderId:""}&orderType=${orderType}&afterType=${afterType}&accountType=${accountType}&carType=${carType}` |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
uni.navigateTo({ |
|
|
|
|
|
url:`plugin://issuer-plugin/login?redirectUrl=${redirectUrl}&plateNum=${data.vehicleId?data.vehicleId:""}&handleType=${handleType}&orderNo=${data.orderId?data.orderId:""}&orderType=${orderType}&afterType=${afterType}&accountType=${accountType}&carType=${carType}` |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |