瀏覽代碼

增加签约跳转异地

9901
yangteng 11 月之前
父節點
當前提交
a8d7ddc99e
共有 3 個檔案被更改,包括 100 行新增94 行删除
  1. 90
    85
      datas/9901Jump.js
  2. 10
    6
      pages/index/index.vue
  3. 0
    3
      subpackage/after-sale/activation-once-again/select-car.vue

+ 90
- 85
datas/9901Jump.js 查看文件

@@ -6,92 +6,97 @@ export function jump(type,item){
// 14 首次激活 15客车个人用户办理etc
// 7申请换货 8申请退货 9申请补货 没激活之前
// 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{
// 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}`
})
}

+ 10
- 6
pages/index/index.vue 查看文件

@@ -229,6 +229,7 @@
import {
getCodeName
} from "@/datas/queryKey.js";
import { jump } from "@/datas/9901Jump.js";
import navBar from "@/components/nav-bar/nav-bar2.vue";
const tools = require("../../static/etcUtil/tools.js");
const bgOrange = `url(${fileURL}image/index/bg-orange.png) center center no-repeat`;
@@ -298,12 +299,15 @@
}
scrollTop.value = e.scrollTop;
});
onLoad(() => {
getInfo();
quanKeyAction().then((val : any) => {
setItem('key', val.dictTypeAndItem)
})

onLoad((options) => {
// if(options.wechatsignNo){
// jump(16, options.wechatsignNo)
// }else{
getInfo();
quanKeyAction().then((val : any) => {
setItem('key', val.dictTypeAndItem)
})
// }
})

onMounted(() => {

+ 0
- 3
subpackage/after-sale/activation-once-again/select-car.vue 查看文件

@@ -99,9 +99,6 @@ import { deviceType } from "@/utils/network/difference";
if (item.deviceType == deviceType) {
// OBU重新激活跳转
const params = encodeURIComponent(JSON.stringify(item))
if(state.type=="5"){
}
jump(state.type, params)
} else {
if (state.type == "1") {

Loading…
取消
儲存