//去激活订单 | //去激活订单 | ||||
const gotoActiveOrder = (orderInfo : any) => { | const gotoActiveOrder = (orderInfo : any) => { | ||||
// if(orderInfo.aa){ | |||||
// const params = encodeURIComponent(JSON.stringify(orderInfo)) | |||||
// jump("3",params) | |||||
// }else{ | |||||
if(orderInfo.agencyId=="52010106004"){ | |||||
const params = encodeURIComponent(JSON.stringify(orderInfo)) | |||||
jump("3",params) | |||||
}else{ | |||||
navTo(`/subpackage/after-sale/activation/operation-tips?id=${orderInfo.id}&orderId=${orderInfo.orderId}&cardStatus=${orderInfo.cardStatus}&obuStatus=${orderInfo.obuStatus}&transfer=${orderInfo.transfer}`); | navTo(`/subpackage/after-sale/activation/operation-tips?id=${orderInfo.id}&orderId=${orderInfo.orderId}&cardStatus=${orderInfo.cardStatus}&obuStatus=${orderInfo.obuStatus}&transfer=${orderInfo.transfer}`); | ||||
// } | |||||
} | |||||
} | } | ||||
//新办订单-去评价 | //新办订单-去评价 |
"enablePullDownRefresh": false | "enablePullDownRefresh": false | ||||
} | } | ||||
}, | }, | ||||
{ | |||||
"path": "card-loss-reporting/select-car", | |||||
"style": { | |||||
"navigationBarTitleText": "卡签挂失/解除挂失-选择车辆", | |||||
"enablePullDownRefresh": false | |||||
} | |||||
}, | |||||
{ | { | ||||
"path": "card-loss-reporting/cardloss-confirm", | "path": "card-loss-reporting/cardloss-confirm", | ||||
"style": { | "style": { | ||||
"enablePullDownRefresh": false | "enablePullDownRefresh": false | ||||
} | } | ||||
}, | }, | ||||
{ | |||||
"path": "additional-equipment/select-car", | |||||
"style": { | |||||
"navigationBarTitleText": "增补OBU-选车", | |||||
"enablePullDownRefresh": false | |||||
} | |||||
}, | |||||
{ | { | ||||
"path": "additional-equipment/additional-equipment-confirm", | "path": "additional-equipment/additional-equipment-confirm", | ||||
"style": { | "style": { |
obuStatus: undefined, | obuStatus: undefined, | ||||
}, | }, | ||||
type: undefined, | type: undefined, | ||||
agencyId:"" | |||||
}); | }); | ||||
/*视图进入后操作*/ | /*视图进入后操作*/ | ||||
console.log("option", val) | console.log("option", val) | ||||
state.data = val | state.data = val | ||||
}) | }) | ||||
state.agencyId=option.agencyId | |||||
}); | }); | ||||
onUnload(() => { | onUnload(() => { |
import { onLoad, onShow } from "@dcloudio/uni-app"; | import { onLoad, onShow } from "@dcloudio/uni-app"; | ||||
import { orderList } from "@/utils/network/api.js"; | import { orderList } from "@/utils/network/api.js"; | ||||
import { request } from "@/utils/network/request.js"; | import { request } from "@/utils/network/request.js"; | ||||
import { msg } from "@/utils/utils"; | |||||
import { getItem, StorageKeys, setItem } from "@/utils/storage"; | import { getItem, StorageKeys, setItem } from "@/utils/storage"; | ||||
import { stringToJson } from "@/utils/network/encryption"; | import { stringToJson } from "@/utils/network/encryption"; | ||||
import { jump } from "@/datas/9901Jump.js"; | import { jump } from "@/datas/9901Jump.js"; | ||||
const state = reactive({ | const state = reactive({ | ||||
list: [], | list: [], | ||||
type:"",//1 OBU重新激活 2 卡签注销 3 更换设备(正常走,现在不需要跳转,因为要根据其他判断) 4卡签续期(正常走,现在不需要跳转,因为要根据其他判断) | |||||
type: "",//1 OBU重新激活 2 卡签注销 3 更换设备 4卡签续期 5挂失解挂 6增补设备 | |||||
}); | }); | ||||
onLoad((options) => { | onLoad((options) => { | ||||
console.log("options",options) | |||||
state.type=options.type | |||||
if(options.type=="2"){ | |||||
console.log("options", options) | |||||
state.type = options.type | |||||
if (options.type == "2") { | |||||
uni.setNavigationBarTitle({ | uni.setNavigationBarTitle({ | ||||
title: 'ETC注销-选择车辆' | title: 'ETC注销-选择车辆' | ||||
}); | }); | ||||
}else if(options.type=="3"){ | |||||
} else if (options.type == "3") { | |||||
uni.setNavigationBarTitle({ | uni.setNavigationBarTitle({ | ||||
title: '更换ETC设备-选择车辆' | title: '更换ETC设备-选择车辆' | ||||
}); | }); | ||||
}else if(options.type=="4"){ | |||||
} else if (options.type == "4") { | |||||
uni.setNavigationBarTitle({ | uni.setNavigationBarTitle({ | ||||
title: '卡签续期-选择车辆' | title: '卡签续期-选择车辆' | ||||
}); | }); | ||||
}else if (options.type == "5") { | |||||
uni.setNavigationBarTitle({ | |||||
title: '卡签挂失/解除挂失-选择车辆' | |||||
}); | |||||
}else if (options.type == "6") { | |||||
uni.setNavigationBarTitle({ | |||||
title: '增补设备-选择车辆' | |||||
}); | |||||
} | } | ||||
quanCheckActionTrue().then((item : any) => { | quanCheckActionTrue().then((item : any) => { | ||||
state.list = item.data; | state.list = item.data; | ||||
console.log(item); | console.log(item); | ||||
const choose = (i, item) => { | const choose = (i, item) => { | ||||
console.log(item.cardId); | console.log(item.cardId); | ||||
flag.value = i | |||||
// 判断9901 | // 判断9901 | ||||
console.log("state.type!=3 || state.type!=4",(state.type!="3" || state.type!="4")) | |||||
if(state.type=="2"){ | |||||
navTo(`/subpackage/after-sale/ETC-log-off/log-off-confirm?id=${item.id}&&agencyId=${item.agencyId}`) | |||||
}else if(state.type=="3"){ | |||||
navTo(`/subpackage/after-sale/replace-equipment/replace-equipment-confirm?id=${item.id}&&agencyId=${item.agencyId}`) | |||||
}else if(state.type=="4"){ | |||||
navTo(`/subpackage/after-sale/card-Renewal/renewal-confirm?id=${item.id}&orderId=${item.orderId}&&agencyId=${item.agencyId}`) | |||||
}else { | |||||
if(item.agencyId=="52010106004"){ | |||||
// OBU重新激活跳转 | |||||
const params = encodeURIComponent(JSON.stringify(item)) | |||||
jump(state.type,params) | |||||
}else{ | |||||
if(state.type=="1"){ | |||||
// #ifdef MP-WEIXIN | |||||
navTo( | |||||
`/subpackage/after-sale/activation-once-again/activation-once-again?id=${item.id}` | |||||
); | |||||
// #endif | |||||
// #ifdef MP-ALIPAY | |||||
navTo( | |||||
`/subpackage/after-sale/activation-once-again/activation-once-again-ali?id=${item.id}` | |||||
); | |||||
// #endif | |||||
} | |||||
if (item.agencyId == "52010106004") { | |||||
// OBU重新激活跳转 | |||||
const params = encodeURIComponent(JSON.stringify(item)) | |||||
jump(state.type, params) | |||||
} else { | |||||
if (state.type == "1") { | |||||
// #ifdef MP-WEIXIN | |||||
navTo( | |||||
`/subpackage/after-sale/activation-once-again/activation-once-again?id=${item.id}` | |||||
); | |||||
// #endif | |||||
// #ifdef MP-ALIPAY | |||||
navTo( | |||||
`/subpackage/after-sale/activation-once-again/activation-once-again-ali?id=${item.id}` | |||||
); | |||||
// #endif | |||||
} else if (state.type == "2") { | |||||
navTo(`/subpackage/after-sale/ETC-log-off/log-off-confirm?id=${item.id}`) | |||||
} else if (state.type == "3") { | |||||
navTo(`/subpackage/after-sale/replace-equipment/replace-equipment-confirm?id=${item.id}`) | |||||
} else if (state.type == "4") { | |||||
navTo(`/subpackage/after-sale/card-Renewal/renewal-confirm?id=${item.id}&orderId=${item.orderId}`) | |||||
} else if (state.type == "5") { | |||||
navTo(`/subpackage/after-sale/card-loss-reporting/cardloss-confirm?id=${item.id}`) | |||||
}else if (state.type == "6") { | |||||
navTo(`/subpackage/after-sale/additional-equipment/additional-equipment-confirm?id=${item.id}`) | |||||
} | } | ||||
} | } | ||||
} | } | ||||
</script> | </script> | ||||
<style> | <style> |
<template> | |||||
<view class="selectCar-box"> | |||||
<view v-if="state.list&&state.list.length>0" @click="choose(i,item)" class="item" v-for="(item,i) in state.list" | |||||
:key="i"> | |||||
<view class="iten-left"> | |||||
<image :src="`${$imgUrl}che.png`" mode="aspectFill"></image> | |||||
<text>{{item.vehiclePlate}}</text> | |||||
</view> | |||||
<view class="choose-item"> | |||||
<view class="active" v-if="flag==i"> | |||||
</view> | |||||
</view> | |||||
</view> | |||||
<view v-else> | |||||
<empty title='暂无找到相关车辆信息' /> | |||||
</view> | |||||
</view> | |||||
</template> | |||||
<script lang="ts" setup> | |||||
import empty from "@/components/empty/empty.vue"; | |||||
import { | |||||
reactive, | |||||
ref | |||||
} from "vue" | |||||
import { | |||||
navTo | |||||
} from "@/utils/utils" | |||||
import { | |||||
onLoad, | |||||
} from "@dcloudio/uni-app"; | |||||
import { | |||||
orderList | |||||
} from "@/utils/network/api.js"; | |||||
import { | |||||
request | |||||
} from "@/utils/network/request.js"; | |||||
import { | |||||
getItem, | |||||
StorageKeys, | |||||
} from "@/utils/storage"; | |||||
import { | |||||
stringToJson | |||||
} from "@/utils/network/encryption"; | |||||
const state = reactive({ | |||||
list: [] //车辆list | |||||
}); | |||||
const flag = ref('0') //默认选择0 | |||||
onLoad(() => { | |||||
quanCheckActionTrue().then((item : any) => { | |||||
state.list = item.data | |||||
}) | |||||
}); | |||||
const quanCheckActionTrue = () => { | |||||
let source = "" | |||||
// #ifdef MP-ALIPAY | |||||
source ="ALI" | |||||
// #endif | |||||
// #ifdef MP-WEIXIN | |||||
source ="WECHAT" | |||||
// #endif | |||||
var data = { | |||||
opId: getItem(StorageKeys.OpenId), | |||||
source: source, //渠道为小程序 | |||||
tabIndex: '0', //0全部 | |||||
orderStep: '11', //11 为已完成” | |||||
isValueCard: "", | |||||
orderStatus: "1", | |||||
isAfter: true, | |||||
}; | |||||
const options = { | |||||
type: 2, | |||||
data: data, | |||||
method: "POST", | |||||
showLoading: true, | |||||
}; | |||||
return new Promise(async (resolve, reject) => { | |||||
const res = await request(orderList, options); | |||||
const data = stringToJson(res.bizContent); | |||||
resolve(data); | |||||
}).catch((error) => { | |||||
reject(error); | |||||
}); | |||||
} | |||||
const choose = (i, item) => { | |||||
flag.value = i | |||||
navTo(`/subpackage/after-sale/additional-equipment/additional-equipment-confirm?id=${item.id}`) | |||||
} | |||||
</script> | |||||
<style> | |||||
page { | |||||
width: 100%; | |||||
height: 100%; | |||||
background-color: #EEF7F7; | |||||
} | |||||
</style> | |||||
<style lang="scss" scoped> | |||||
.flex { | |||||
display: flex; | |||||
justify-content: center; | |||||
} | |||||
.selectCar-box { | |||||
// width: 100%; | |||||
height: 100%; | |||||
padding: 30rpx; | |||||
.item { | |||||
padding: 20rpx; | |||||
display: flex; | |||||
justify-content: space-between; | |||||
align-items: center; | |||||
height: 130rpx; | |||||
background: #FFFFFF; | |||||
box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8); | |||||
border-radius: 20rpx; | |||||
margin-bottom: 30rpx; | |||||
.iten-left { | |||||
display: flex; | |||||
align-items: center; | |||||
image { | |||||
width: 150rpx; | |||||
height: 90rpx; | |||||
} | |||||
text { | |||||
margin-left: 20rpx; | |||||
font-size: 32rpx; | |||||
font-family: Noto Sans S Chinese; | |||||
font-weight: 400; | |||||
color: #333333; | |||||
} | |||||
} | |||||
.choose-item { | |||||
width: 44rpx; | |||||
height: 44rpx; | |||||
background: #FFFFFF; | |||||
border: 2rpx solid #00B38B; | |||||
border-radius: 50%; | |||||
margin-right: 20rpx; | |||||
display: flex; | |||||
justify-content: center; | |||||
align-items: center; | |||||
box-sizing: content-box; | |||||
} | |||||
.active { | |||||
width: 34rpx; | |||||
height: 34rpx; | |||||
background: #00B38B; | |||||
border-radius: 50%; | |||||
} | |||||
} | |||||
} | |||||
</style> |
IntegerToHexString, | IntegerToHexString, | ||||
AsciToHexString, | AsciToHexString, | ||||
} from "@/utils/util/fileData.js"; | } from "@/utils/util/fileData.js"; | ||||
import { | |||||
jump | |||||
} from "@/datas/9901Jump.js"; | |||||
import { | import { | ||||
stringToJson | stringToJson | ||||
showPopup: false, | showPopup: false, | ||||
flag: false, | flag: false, | ||||
successName: "", | successName: "", | ||||
agencyId:"" | |||||
}) | }) | ||||
const flag = reactive([]) | const flag = reactive([]) | ||||
//请求订单详情 | //请求订单详情 | ||||
queryOrderDetail(option.id); | queryOrderDetail(option.id); | ||||
getOrderDetails(option.id) | getOrderDetails(option.id) | ||||
state.agencyId=option.agencyId | |||||
}); | }); | ||||
onShow((option) => { | onShow((option) => { | ||||
icon: 'none' | icon: 'none' | ||||
}); | }); | ||||
} else { | } else { | ||||
if(state.agencyId=="52010106004"){ | |||||
let obj={ | |||||
vehicleId: orderInfos.vehicleId, | |||||
cardId: orderInfos.cardId, | |||||
obuId: orderInfos.obuId, | |||||
renevalType: type.value, //选择得哪一个续期 | |||||
} | |||||
const params = encodeURIComponent(JSON.stringify(obj)) | |||||
jump("6",params) | |||||
}else{ | |||||
console.log("getCurrentPages()", getCurrentPages()) | console.log("getCurrentPages()", getCurrentPages()) | ||||
navTo("/pages/bluetooth/bluetooth?routeType=5"); //去连接蓝牙 | navTo("/pages/bluetooth/bluetooth?routeType=5"); //去连接蓝牙 | ||||
} | |||||
} | } | ||||
}; | }; |
<template> | |||||
<view class="selectCar-box"> | |||||
<view v-if="state.list&&state.list.length>0" @click="choose(i,item)" class="item" v-for="(item,i) in state.list" | |||||
:key="i"> | |||||
<view class="iten-left"> | |||||
<image :src="`${$imgUrl}che.png`" mode="aspectFill"></image> | |||||
<text>{{item.vehiclePlate}}</text> | |||||
</view> | |||||
<view class="choose-item"> | |||||
<view class="active" v-if="flag==i"> | |||||
</view> | |||||
</view> | |||||
</view> | |||||
<view v-else> | |||||
<empty title='暂无找到相关车辆信息' /> | |||||
</view> | |||||
</view> | |||||
</template> | |||||
<script lang="ts" setup> | |||||
import empty from "@/components/empty/empty.vue"; | |||||
import { | |||||
reactive, | |||||
ref | |||||
} from "vue" | |||||
import { | |||||
navTo | |||||
} from "@/utils/utils" | |||||
import { | |||||
onLoad, | |||||
} from "@dcloudio/uni-app"; | |||||
import { | |||||
orderList | |||||
} from "@/utils/network/api.js"; | |||||
import { | |||||
request | |||||
} from "@/utils/network/request.js"; | |||||
import { | |||||
getItem, | |||||
StorageKeys, | |||||
} from "@/utils/storage"; | |||||
import { | |||||
stringToJson | |||||
} from "@/utils/network/encryption"; | |||||
const state = reactive({ | |||||
list: [] //车辆list | |||||
}); | |||||
const flag = ref('0') //默认选择0 | |||||
onLoad(() => { | |||||
quanCheckActionTrue().then((item : any) => { | |||||
state.list = item.data | |||||
}) | |||||
}); | |||||
const quanCheckActionTrue = () => { | |||||
let source = "" | |||||
// #ifdef MP-ALIPAY | |||||
source = "ALI" | |||||
// #endif | |||||
// #ifdef MP-WEIXIN | |||||
source = "WECHAT" | |||||
// #endif | |||||
var data = { | |||||
opId: getItem(StorageKeys.OpenId), | |||||
source: source, //渠道为小程序 | |||||
tabIndex: '0', //0全部 | |||||
orderStep: '11', //11 为已完成” | |||||
isValueCard: "", | |||||
orderStatus: "1", | |||||
isAfter: true, | |||||
}; | |||||
const options = { | |||||
type: 2, | |||||
data: data, | |||||
method: "POST", | |||||
showLoading: true, | |||||
}; | |||||
return new Promise(async (resolve, reject) => { | |||||
const res = await request(orderList, options); | |||||
const data = stringToJson(res.bizContent); | |||||
resolve(data); | |||||
}).catch((error) => { | |||||
reject(error); | |||||
}); | |||||
} | |||||
const choose = (i, item) => { | |||||
flag.value = i | |||||
navTo(`/subpackage/after-sale/card-loss-reporting/cardloss-confirm?id=${item.id}`) | |||||
} | |||||
</script> | |||||
<style> | |||||
page { | |||||
width: 100%; | |||||
height: 100%; | |||||
background-color: #EEF7F7; | |||||
} | |||||
</style> | |||||
<style lang="scss" scoped> | |||||
.flex { | |||||
display: flex; | |||||
justify-content: center; | |||||
} | |||||
.selectCar-box { | |||||
height: 100%; | |||||
padding: 30rpx; | |||||
.item { | |||||
padding: 20rpx; | |||||
display: flex; | |||||
justify-content: space-between; | |||||
align-items: center; | |||||
height: 130rpx; | |||||
background: #FFFFFF; | |||||
box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8); | |||||
border-radius: 20rpx; | |||||
margin-bottom: 30rpx; | |||||
.iten-left { | |||||
display: flex; | |||||
align-items: center; | |||||
image { | |||||
width: 150rpx; | |||||
height: 90rpx; | |||||
} | |||||
text { | |||||
margin-left: 20rpx; | |||||
font-size: 32rpx; | |||||
font-family: Noto Sans S Chinese; | |||||
font-weight: 400; | |||||
color: #333333; | |||||
} | |||||
} | |||||
.choose-item { | |||||
width: 44rpx; | |||||
height: 44rpx; | |||||
background: #FFFFFF; | |||||
border: 2rpx solid #00B38B; | |||||
border-radius: 50%; | |||||
margin-right: 20rpx; | |||||
display: flex; | |||||
justify-content: center; | |||||
align-items: center; | |||||
box-sizing: content-box; | |||||
} | |||||
.active { | |||||
width: 34rpx; | |||||
height: 34rpx; | |||||
background: #00B38B; | |||||
border-radius: 50%; | |||||
} | |||||
} | |||||
} | |||||
</style> |
obuStatus: undefined, | obuStatus: undefined, | ||||
}, | }, | ||||
type: undefined, | type: undefined, | ||||
agencyId:"" | |||||
}); | }); | ||||
const apply = reactive({ | const apply = reactive({ | ||||
data: { | data: { | ||||
}); | }); | ||||
/*视图进入后操作*/ | /*视图进入后操作*/ | ||||
onLoad((option) => { | onLoad((option) => { | ||||
state.agencyId=option.agencyId | |||||
console.log("id", option) | console.log("id", option) | ||||
queryOrderDetail(option.id).then((val : any) => { | queryOrderDetail(option.id).then((val : any) => { | ||||
console.log("val", val) | console.log("val", val) | ||||
console.log("val.status", val); | console.log("val.status", val); | ||||
if (!val) { | if (!val) { | ||||
navTo( | navTo( | ||||
`/subpackage/after-sale/replace-equipment/verification?orderId=${state.data.orderId}&&cardId=${state.data.cardId}&&mobile=${state.data.customerTel}&&vehicleId=${state.data.vehicleId}&&agencyId=${state.agencyId}` | |||||
`/subpackage/after-sale/replace-equipment/verification?orderId=${state.data.orderId}&&cardId=${state.data.cardId}&&mobile=${state.data.customerTel}&&vehicleId=${state.data.vehicleId}` | |||||
) | ) | ||||
} else { | } else { | ||||
) | ) | ||||
} else { | } else { | ||||
navTo( | navTo( | ||||
`/subpackage/after-sale/replace-equipment/verification?orderId=${state.data.orderId}&&cardId=${state.data.cardId}&&mobile=${state.data.customerTel}&&vehicleId=${state.data.vehicleId}&&agencyId=${state.agencyId}` | |||||
`/subpackage/after-sale/replace-equipment/verification?orderId=${state.data.orderId}&&cardId=${state.data.cardId}&&mobile=${state.data.customerTel}&&vehicleId=${state.data.vehicleId}` | |||||
) | ) | ||||
} | } | ||||
} | } |
import { | import { | ||||
stringToJson | stringToJson | ||||
} from "@/utils/network/encryption"; | } from "@/utils/network/encryption"; | ||||
import { jump } from "@/datas/9901Jump.js"; | |||||
import { | import { | ||||
msg | msg | ||||
} from "@/utils/utils"; | } from "@/utils/utils"; | ||||
}, | }, | ||||
isPicture: false, //是否上传图片 | isPicture: false, //是否上传图片 | ||||
vehicleId:"", | vehicleId:"", | ||||
agencyId:"" | |||||
}) | }) | ||||
// 表单数据 | // 表单数据 | ||||
const form = reactive({ | const form = reactive({ | ||||
params.cardId = option.cardId | params.cardId = option.cardId | ||||
params.orderId = option.orderId | params.orderId = option.orderId | ||||
state.vehicleId = option.vehicleId | state.vehicleId = option.vehicleId | ||||
state.agencyId=option.agencyId | |||||
}); | }); | ||||
onShow(() => { | onShow(() => { | ||||
const toPage = () => { | const toPage = () => { | ||||
console.log("sdkchkdscn", apply.data) | console.log("sdkchkdscn", apply.data) | ||||
console.log("form.damageMode", form.damageMode) | console.log("form.damageMode", form.damageMode) | ||||
if(state.agencyId=="52010106004"){ | |||||
let obj={ | |||||
applyType:form.applyType, | |||||
vehicleId:state.vehicleId, | |||||
cardId:params.cardId, | |||||
} | |||||
const paramss = encodeURIComponent(JSON.stringify(obj)) | |||||
jump("5",paramss) | |||||
}else{ | |||||
queryCckChangejzCardAction().then(val => { | queryCckChangejzCardAction().then(val => { | ||||
console.log("val888888", val) | console.log("val888888", val) | ||||
navTo( | navTo( | ||||
`/subpackage/after-sale/replace-equipment/form?orderId=${params.orderId}&&id=${val.id}&&damageMode=${form.damageMode}&&msg=${val.msg}&&cardExpire=${val.cardExpire}&&obuExpire=${val.obuExpire}` | `/subpackage/after-sale/replace-equipment/form?orderId=${params.orderId}&&id=${val.id}&&damageMode=${form.damageMode}&&msg=${val.msg}&&cardExpire=${val.cardExpire}&&obuExpire=${val.obuExpire}` | ||||
) | ) | ||||
}) | }) | ||||
} | |||||
}; | }; | ||||
</script> | </script> | ||||
state.signAgencyId = option.signAgencyId; | state.signAgencyId = option.signAgencyId; | ||||
}) | }) | ||||
const addInterestsList = () => { | const addInterestsList = () => { | ||||
if(state.signAgencyId=="99019052"){ | |||||
if(state.signAgencyId=="52010102041"){ | |||||
jump("4","") | jump("4","") | ||||
}else{ | }else{ | ||||
if (state.changeCardType == "1") { | if (state.changeCardType == "1") { |