</template> | </template> | ||||
<script setup lang="ts"> | <script setup lang="ts"> | ||||
import { TypeData } from "./tools"; | import { TypeData } from "./tools"; | ||||
import { request } from "../../utils/network/request.js"; | |||||
import { request } from "@/utils/network/request.js"; | |||||
import carNumBerInput from "@/components/car-number-input/car-number-input"; | import carNumBerInput from "@/components/car-number-input/car-number-input"; | ||||
import { pathToBase64 } from "../../utils/util/imageTool.js"; | |||||
import { pathToBase64 } from "@/utils/util/imageTool.js"; | |||||
import pickRegions from "@/components/pick-regions/pick-regions.vue"; | import pickRegions from "@/components/pick-regions/pick-regions.vue"; | ||||
import { fileURL } from "@/datas/fileURL.js"; | import { fileURL } from "@/datas/fileURL.js"; | ||||
</template> | </template> | ||||
<script setup lang="ts"> | <script setup lang="ts"> | ||||
import { TypeData, ImgData } from "./tools"; | import { TypeData, ImgData } from "./tools"; | ||||
import { request } from "../../utils/network/request.js"; | |||||
import { request } from "@/utils/network/request.js"; | |||||
import carNumBerInput from "@/components/car-number-input/car-number-input"; | import carNumBerInput from "@/components/car-number-input/car-number-input"; | ||||
import { pathToBase64 } from "@/utils/util/imageTool.js"; | import { pathToBase64 } from "@/utils/util/imageTool.js"; | ||||
import pickRegions from "@/components/pick-regions/pick-regions.vue"; | import pickRegions from "@/components/pick-regions/pick-regions.vue"; |
"quickapp" : {}, | "quickapp" : {}, | ||||
/* 小程序特有相关 */ | /* 小程序特有相关 */ | ||||
"mp-weixin" : { | "mp-weixin" : { | ||||
"appid" : "wx008c60533388527a", | |||||
"appid" : "wx2fe4cb115b48eff6", | |||||
"setting" : { | "setting" : { | ||||
"urlCheck" : false, | "urlCheck" : false, | ||||
"checkSiteMap" : false, | "checkSiteMap" : false, |
import flowPathList from "./components/flow-path-list.vue"; | import flowPathList from "./components/flow-path-list.vue"; | ||||
import { | import { | ||||
request | request | ||||
} from "../../utils/network/request.js"; | |||||
} from "@/utils/network/request.js"; | |||||
import { | import { | ||||
stringToJson | stringToJson | ||||
} from "../../utils/network/encryption.js"; | |||||
} from "@/utils/network/encryption.js"; | |||||
import { | import { | ||||
useUserStore | useUserStore | ||||
} from "@/stores/user"; | } from "@/stores/user"; | ||||
getItem, | getItem, | ||||
setItem, | setItem, | ||||
StorageKeys | StorageKeys | ||||
} from "../../utils/storage"; | |||||
} from "@/utils/storage"; | |||||
import { | import { | ||||
queryKey, | queryKey, | ||||
querySwiper, | querySwiper, | ||||
import { | import { | ||||
navTo, | navTo, | ||||
confirm | confirm | ||||
} from "../../utils/utils"; | |||||
} from "@/utils/utils"; | |||||
const bgOrange = `url(${fileURL}image/index/bg-orange.png) center center no-repeat`; | const bgOrange = `url(${fileURL}image/index/bg-orange.png) center center no-repeat`; | ||||
const bgBlue = `url(${fileURL}image/index/bg-blue.png) center center no-repeat`; | const bgBlue = `url(${fileURL}image/index/bg-blue.png) center center no-repeat`; |
request(checkCode, options) | request(checkCode, options) | ||||
.then(() => { | .then(() => { | ||||
navTo( | navTo( | ||||
`/after-sale/ETC-log-off/upload-card?obuId=${params.obuId}&&cardId=${params.cardId}&&orderId=${params.orderId}&&equipmentState=${form.equipmentState}` | |||||
`/subpackage/after-sale/ETC-log-off/upload-card?obuId=${params.obuId}&&cardId=${params.cardId}&&orderId=${params.orderId}&&equipmentState=${form.equipmentState}` | |||||
); | ); | ||||
}) | }) | ||||
.catch((err) => { | .catch((err) => { |
state.type = 3 //两者都有 | state.type = 3 //两者都有 | ||||
} | } | ||||
navTo( | navTo( | ||||
`/after-sale/ETC-log-off/etc-log-off?type=${state.type}&&mobile=${state.data.customerTel}&&cardId=${state.data.cardId}&&obuId=${state.data.obuId}&&orderId=${state.data.orderId}` | |||||
`/subpackage/after-sale/ETC-log-off/etc-log-off?type=${state.type}&&mobile=${state.data.customerTel}&&cardId=${state.data.cardId}&&obuId=${state.data.obuId}&&orderId=${state.data.orderId}` | |||||
) | ) | ||||
}) | }) | ||||
const choose = (i, item) => { | const choose = (i, item) => { | ||||
flag.value = i | flag.value = i | ||||
navTo(`/after-sale/ETC-log-off/log-off-confirm?id=${item.id}`) | |||||
navTo(`/subpackage/after-sale/ETC-log-off/log-off-confirm?id=${item.id}`) | |||||
} | } | ||||
</script> | </script> | ||||
import { | import { | ||||
stringToJson | stringToJson | ||||
} from "@/utils/network/encryption.js"; | } from "@/utils/network/encryption.js"; | ||||
const bluetoothUtil = require("@/static/etcUtil/index.js"); | |||||
const bluetoothUtil = require("../../../static/etcUtil/index.js"); | |||||
// 表单数据 | // 表单数据 | ||||
const form = reactive({ | const form = reactive({ | ||||
obuId: '', | obuId: '', |
import activeSuccess from "./components/popup-device-active-success"; | import activeSuccess from "./components/popup-device-active-success"; | ||||
import * as IFCODE from "@/utils/network/api.js"; | import * as IFCODE from "@/utils/network/api.js"; | ||||
const cmd = require("@/static/etcUtil/cmdConfig.js"); | |||||
const tools = require("@/static/etcUtil/tools.js"); | |||||
const bluetoothUtil = require("@/static/etcUtil/index.js"); | |||||
const cmd = require("../../../static/etcUtil/cmdConfig.js"); | |||||
const tools = require("../../../static/etcUtil/tools.js"); | |||||
const bluetoothUtil = require("../../../static/etcUtil/index.js"); | |||||
import { | import { | ||||
getCodeName | getCodeName | ||||
} from "@/datas/queryKey.js"; | } from "@/datas/queryKey.js"; |
const choose = (i, item) => { | const choose = (i, item) => { | ||||
console.log(item.cardId); | console.log(item.cardId); | ||||
navTo( | navTo( | ||||
`/after-sale/activation-once-again/activation-once-again?id=${item.id}` | |||||
`/subpackage/after-sale/activation-once-again/activation-once-again?id=${item.id}` | |||||
); | ); | ||||
}; | }; | ||||
</script> | </script> |
}; | }; | ||||
request(IFCODE.orderDetail, options).then((res) => { | request(IFCODE.orderDetail, options).then((res) => { | ||||
orderInfo = JSON.parse(res.bizContent); | orderInfo = JSON.parse(res.bizContent); | ||||
console.log("orderInfo",orderInfo); | |||||
if (orderInfo) { | if (orderInfo) { | ||||
fileDataStrings.userType = orderInfo.userType; //用户类型 | fileDataStrings.userType = orderInfo.userType; //用户类型 | ||||
fileDataStrings.approvedCount = parseInt(orderInfo.vehicleApprovedCount); //核载人数 | fileDataStrings.approvedCount = parseInt(orderInfo.vehicleApprovedCount); //核载人数 | ||||
fileDataStrings.vehiclePlate = orderInfo.vehiclePlate; //车牌 | fileDataStrings.vehiclePlate = orderInfo.vehiclePlate; //车牌 | ||||
fileDataStrings.vehiclePlateColor = orderInfo.vehiclePlateColor; //车牌颜色 | fileDataStrings.vehiclePlateColor = orderInfo.vehiclePlateColor; //车牌颜色 | ||||
fileDataStrings.vehicleDimensions = orderInfo.vehicleDimensions; | fileDataStrings.vehicleDimensions = orderInfo.vehicleDimensions; | ||||
let arr = orderInfo.vehicleDimensions.split("x"); | |||||
let arr = orderInfo.vehicleDimensions.split("X"); | |||||
fileDataStrings.outlineL = parseInt(arr[0]); //外廓 长 | fileDataStrings.outlineL = parseInt(arr[0]); //外廓 长 | ||||
fileDataStrings.outlineW = parseInt(arr[1]); //外廓 宽 | fileDataStrings.outlineW = parseInt(arr[1]); //外廓 宽 | ||||
fileDataStrings.outlineH = parseInt(arr[2].substring(0, arr[2].length - 2)); //外廓 高 | fileDataStrings.outlineH = parseInt(arr[2].substring(0, arr[2].length - 2)); //外廓 高 |
/*下一步*/ | /*下一步*/ | ||||
const nextACtion = () => { | const nextACtion = () => { | ||||
navTo( | navTo( | ||||
`/after-sale/additional-equipment/additional-equipment-verification?orderId=${state.data.orderId}&&cardId=${state.data.cardId}&&mobile=${state.data.customerTel}` | |||||
`/subpackage/after-sale/additional-equipment/additional-equipment-verification?orderId=${state.data.orderId}&&cardId=${state.data.cardId}&&mobile=${state.data.customerTel}` | |||||
) | ) | ||||
} | } |
queryOBUAddAction().then(val => { | queryOBUAddAction().then(val => { | ||||
navTo( | navTo( | ||||
`/after-sale/additional-equipment/result` | |||||
`/subpackage/after-sale/additional-equipment/result` | |||||
) | ) | ||||
}) | }) | ||||
}; | }; |
const choose = (i, item) => { | const choose = (i, item) => { | ||||
flag.value = i | flag.value = i | ||||
navTo(`/after-sale/additional-equipment/additional-equipment-confirm?id=${item.id}`) | |||||
navTo(`/subpackage/after-sale/additional-equipment/additional-equipment-confirm?id=${item.id}`) | |||||
} | } | ||||
</script> | </script> | ||||
import { | import { | ||||
stringToJson | stringToJson | ||||
} from "@/utils/network/encryption"; | } from "@/utils/network/encryption"; | ||||
const tools = require("../../static/etcUtil/tools.js"); | |||||
const bluetoothUtil = require("../../static/etcUtil/index.js"); | |||||
const tools = require("../../../static/etcUtil/tools.js"); | |||||
const bluetoothUtil = require("../../../static/etcUtil/index.js"); | |||||
const state = reactive({ | const state = reactive({ | ||||
showPopup: false, | showPopup: false, | ||||
flag: false | flag: false |
const choose = (i, item) => { | const choose = (i, item) => { | ||||
console.log(item.cardId) | console.log(item.cardId) | ||||
navTo(`/after-sale/card-Renewal/renewal-confirm?id=${item.id}`) | |||||
navTo(`/subpackage/after-sale/card-Renewal/renewal-confirm?id=${item.id}`) | |||||
} | } | ||||
</script> | </script> | ||||
import { | import { | ||||
stringToJson | stringToJson | ||||
} from "@/utils/network/encryption"; | } from "@/utils/network/encryption"; | ||||
const tools = require("../../static/etcUtil/tools.js"); | |||||
const bluetoothUtil = require("../../static/etcUtil/index.js"); | |||||
const tools = require("../../../static/etcUtil/tools.js"); | |||||
const bluetoothUtil = require("../../../static/etcUtil/index.js"); | |||||
const state = reactive({ | const state = reactive({ | ||||
showPopup: false, | showPopup: false, | ||||
flag: false | flag: false |
const choose = (i, item) => { | const choose = (i, item) => { | ||||
console.log(item.cardId) | console.log(item.cardId) | ||||
navTo(`/after-sale/card-deactivation-activation/deactivation-activation-confirm?id=${item.id}`) | |||||
navTo(`/subpackage/after-sale/card-deactivation-activation/deactivation-activation-confirm?id=${item.id}`) | |||||
} | } | ||||
</script> | </script> | ||||
uni.$on('queryCardlossStatus', function(type) { | uni.$on('queryCardlossStatus', function(type) { | ||||
queryCardlossStatusType(type.type).then((val: any) => { | queryCardlossStatusType(type.type).then((val: any) => { | ||||
navTo( | navTo( | ||||
`/after-sale/card-loss-reporting/card-result` | |||||
`/subpackage/after-sale/card-loss-reporting/card-result` | |||||
) | ) | ||||
}); | }); | ||||
}) | }) | ||||
success: function(res) { | success: function(res) { | ||||
if (res.confirm) { | if (res.confirm) { | ||||
navTo( | navTo( | ||||
`/after-sale/card-loss-reporting/cardloss?type=${type}&&mobile=${state.data.customerTel}` | |||||
`/subpackage/after-sale/card-loss-reporting/cardloss?type=${type}&&mobile=${state.data.customerTel}` | |||||
) | ) | ||||
} | } |
const choose = (i, item) => { | const choose = (i, item) => { | ||||
flag.value = i | flag.value = i | ||||
navTo(`/after-sale/card-loss-reporting/cardloss-confirm?id=${item.id}`) | |||||
navTo(`/subpackage/after-sale/card-loss-reporting/cardloss-confirm?id=${item.id}`) | |||||
} | } | ||||
</script> | </script> | ||||
getVehiclePlateColor | getVehiclePlateColor | ||||
} from "@/datas/vehiclePlateColor.js" | } from "@/datas/vehiclePlateColor.js" | ||||
const cmd = require("@/static/etcUtil/cmdConfig.js"); | |||||
const tools = require("@/static/etcUtil/tools.js"); | |||||
const datas = require("@/static/etcUtil/datas.js"); | |||||
const bluetoothUtil = require("@/static/etcUtil/index.js"); | |||||
const cmd = require("../../../static/etcUtil/cmdConfig.js"); | |||||
const tools = require("../../../static/etcUtil/tools.js"); | |||||
const datas = require("../../../static/etcUtil/datas.js"); | |||||
const bluetoothUtil = require("../../../static/etcUtil/index.js"); | |||||
const card = reactive({ | const card = reactive({ | ||||
cardNo: "", | cardNo: "", | ||||
startTime: "", | startTime: "", |
const choose = (i, item) => { | const choose = (i, item) => { | ||||
console.log(item.cardId) | console.log(item.cardId) | ||||
navTo(`/after-sale/equipment-upgrade/upgrade-confirm?id=${item.id}`) | |||||
navTo(`/subpackage/after-sale/equipment-upgrade/upgrade-confirm?id=${item.id}`) | |||||
} | } | ||||
</script> | </script> | ||||
import { | import { | ||||
stringToJson | stringToJson | ||||
} from "@/utils/network/encryption"; | } from "@/utils/network/encryption"; | ||||
const tools = require("../../static/etcUtil/tools.js"); | |||||
const bluetoothUtil = require("../../static/etcUtil/index.js"); | |||||
const tools = require("../../../static/etcUtil/tools.js"); | |||||
const bluetoothUtil = require("../../../static/etcUtil/index.js"); | |||||
const state = reactive({ | const state = reactive({ | ||||
showPopup: false, | showPopup: false, | ||||
flag: false, | flag: false, |
import { | import { | ||||
stringToJson | stringToJson | ||||
} from "@/utils/network/encryption"; | } from "@/utils/network/encryption"; | ||||
const tools = require("../../static/etcUtil/tools.js"); | |||||
const bluetoothUtil = require("../../static/etcUtil/index.js"); | |||||
const tools = require("../../../static/etcUtil/tools.js"); | |||||
const bluetoothUtil = require("../../../static/etcUtil/index.js"); | |||||
const state = reactive({ | const state = reactive({ | ||||
showPopup: false, | showPopup: false, | ||||
flag: false, | flag: false, |
const choose = (i, item) => { | const choose = (i, item) => { | ||||
console.log(item.cardId); | console.log(item.cardId); | ||||
navTo( | navTo( | ||||
`/after-sale/pin-code-deblocking/pin-code-confirm?id=${item.id}` | |||||
`/subpackage/after-sale/pin-code-deblocking/pin-code-confirm?id=${item.id}` | |||||
); | ); | ||||
}; | }; | ||||
</script> | </script> |
} from "@/utils/network/encryption"; | } from "@/utils/network/encryption"; | ||||
//-----蓝牙模块 | //-----蓝牙模块 | ||||
const bluetoothUtil = require("../../static/etcUtil/index.js"); | |||||
const cmd = require("../../static/etcUtil/cmdConfig.js"); | |||||
const tools = require("../../static/etcUtil/tools.js"); | |||||
const bluetoothUtil = require("../../../static/etcUtil/index.js"); | |||||
const cmd = require("../../../static/etcUtil/cmdConfig.js"); | |||||
const tools = require("../../../static/etcUtil/tools.js"); | |||||
const card = reactive({ | const card = reactive({ | ||||
/*卡相关信息*/ | /*卡相关信息*/ | ||||
cardId: "", | cardId: "", | ||||
if (value.commandType === 2) { | if (value.commandType === 2) { | ||||
uanConfirmAction(value).then((confirmResult) => { | uanConfirmAction(value).then((confirmResult) => { | ||||
navTo( | navTo( | ||||
`/after-sale/refund-order-balance/result`) | |||||
`/subpackage/after-sale/refund-order-balance/result`) | |||||
}); | }); | ||||
} else { | } else { | ||||
msg("圈存初始化指令验证失败, 重新初始化"); | msg("圈存初始化指令验证失败, 重新初始化"); | ||||
uanConfirmAction(applyValue).then(( | uanConfirmAction(applyValue).then(( | ||||
confirmResult) => { | confirmResult) => { | ||||
navTo( | navTo( | ||||
`/after-sale/refund-order-balance/result`) | |||||
`/subpackage/after-sale/refund-order-balance/result`) | |||||
}); | }); | ||||
}); | }); | ||||
} | } | ||||
} else if (fixStatus === 2) { | } else if (fixStatus === 2) { | ||||
uanConfirmSucessAction(value).then((confirmResult) => { | uanConfirmSucessAction(value).then((confirmResult) => { | ||||
navTo( | navTo( | ||||
`/after-sale/refund-order-balance/result`) | |||||
`/subpackage/after-sale/refund-order-balance/result`) | |||||
}); | }); | ||||
} else if (fixStatus === 1) { | } else if (fixStatus === 1) { | ||||
quanCheckActionTrue().then((val) => { | quanCheckActionTrue().then((val) => { |
const choose = (i, item) => { | const choose = (i, item) => { | ||||
flag.value = i | flag.value = i | ||||
navTo(`/after-sale/refund-order-balance/refund-order-balance?vehicleId=${item.vehicleId}`) | |||||
navTo(`/subpackage/after-sale/refund-order-balance/refund-order-balance?vehicleId=${item.vehicleId}`) | |||||
} | } | ||||
</script> | </script> | ||||
const nextACtion = () => { | const nextACtion = () => { | ||||
navTo( | navTo( | ||||
`/after-sale/replace-equipment/verification?orderId=${state.data.orderId}&&cardId=${state.data.cardId}&&mobile=${state.data.customerTel}` | |||||
`/subpackage/after-sale/replace-equipment/verification?orderId=${state.data.orderId}&&cardId=${state.data.cardId}&&mobile=${state.data.customerTel}` | |||||
) | ) | ||||
} | } |
const choose = (i, item) => { | const choose = (i, item) => { | ||||
flag.value = i | flag.value = i | ||||
navTo(`/after-sale/replace-equipment/replace-equipment-confirm?id=${item.id}`) | |||||
navTo(`/subpackage/after-sale/replace-equipment/replace-equipment-confirm?id=${item.id}`) | |||||
} | } | ||||
</script> | </script> | ||||
} from "vue"; | } from "vue"; | ||||
import { | import { | ||||
navTo | navTo | ||||
} from "../../utils/utils" | |||||
} from "@/utils/utils" | |||||
import { | import { | ||||
onReady | onReady | ||||
} from "@dcloudio/uni-app"; | } from "@dcloudio/uni-app"; |
// .then(() => { | // .then(() => { | ||||
if (apply.data.status === 'APPLY') { | if (apply.data.status === 'APPLY') { | ||||
navTo( | navTo( | ||||
`/after-sale/replace-equipment/form?orderId=${params.orderId}&&id=${apply.data.id}` | |||||
`/subpackage/after-sale/replace-equipment/form?orderId=${params.orderId}&&id=${apply.data.id}` | |||||
) | ) | ||||
} else { | } else { | ||||
// if (form.applyTypeName === '卡') { | // if (form.applyTypeName === '卡') { | ||||
queryCckChangejzCardAction().then(val => { | queryCckChangejzCardAction().then(val => { | ||||
navTo( | navTo( | ||||
`/after-sale/replace-equipment/form?orderId=${params.orderId}&&id=${val.id}` | |||||
`/subpackage/after-sale/replace-equipment/form?orderId=${params.orderId}&&id=${val.id}` | |||||
) | ) | ||||
}) | }) | ||||
} | } |
if (state.FormData.vehiclePlate && state.FormData.vehiclePlatecolor) { | if (state.FormData.vehiclePlate && state.FormData.vehiclePlatecolor) { | ||||
state.FormData.vehiclePlatecolor=Number(state.FormData.vehiclePlatecolor) | state.FormData.vehiclePlatecolor=Number(state.FormData.vehiclePlatecolor) | ||||
let data = JSON.stringify(state.FormData) | let data = JSON.stringify(state.FormData) | ||||
navTo(`/after-sale/rescind-carId/verification?fromData=${data}`); | |||||
navTo(`/subpackage/after-sale/rescind-carId/verification?fromData=${data}`); | |||||
} else { | } else { | ||||
uni.showToast({ | uni.showToast({ | ||||
title: "请填写车牌号和车牌颜色", | title: "请填写车牌号和车牌颜色", |
const data = stringToJson(res.bizContent); | const data = stringToJson(res.bizContent); | ||||
console.log(data, "数据"); | console.log(data, "数据"); | ||||
if (data.info == "成功.") { | if (data.info == "成功.") { | ||||
navTo(`/after-sale/rescind-carId/result?carid=${model1.vehiclePlate}`) | |||||
navTo(`/subpackage/after-sale/rescind-carId/result?carid=${model1.vehiclePlate}`) | |||||
} | } | ||||
}) | }) | ||||
.catch((err) => { | .catch((err) => { |
tip: "绑定微信支付,无需绑定银行卡", | tip: "绑定微信支付,无需绑定银行卡", | ||||
}, | }, | ||||
{ | { | ||||
bg: "../../static/image/jianshe-bg.png", | |||||
icon: "../../static/image/bank1", | |||||
bg: "../../../static/image/jianshe-bg.png", | |||||
icon: "../../../static/image/bank1", | |||||
title: "【货车】微信车主服务", | title: "【货车】微信车主服务", | ||||
tip: "绑定微信支付,无需绑定银行卡", | tip: "绑定微信支付,无需绑定银行卡", | ||||
}, | }, | ||||
{ | { | ||||
bg: "../../static/image/gongshang-bg.png", | |||||
icon: "../../static/image/bank2", | |||||
bg: "../../../static/image/gongshang-bg.png", | |||||
icon: "../../../static/image/bank2", | |||||
title: "【货车】微信车主服务", | title: "【货车】微信车主服务", | ||||
tip: "绑定微信支付,无需绑定银行卡", | tip: "绑定微信支付,无需绑定银行卡", | ||||
}, | }, |
const nextACtion = () => { | const nextACtion = () => { | ||||
queryCckChangejzCardAction().then(val => { | queryCckChangejzCardAction().then(val => { | ||||
navTo( | navTo( | ||||
`/after-sale/to-bookkeeping-card/mailing_information?orderId=${state.data.orderId}&&applyId=${val.applyId}` | |||||
`/subpackage/after-sale/to-bookkeeping-card/mailing_information?orderId=${state.data.orderId}&&applyId=${val.applyId}` | |||||
) | ) | ||||
}) | }) | ||||
} | } |
const choose = (i, item) => { | const choose = (i, item) => { | ||||
flag.value = i | flag.value = i | ||||
navTo(`/after-sale/to-bookkeeping-card/confirm?id=${item.id}`) | |||||
navTo(`/subpackage/after-sale/to-bookkeeping-card/confirm?id=${item.id}`) | |||||
} | } | ||||
</script> | </script> | ||||
import navBar from "./components/nav-bar.vue"; | import navBar from "./components/nav-bar.vue"; | ||||
import { checkStr } from "@/utils/utils"; | import { checkStr } from "@/utils/utils"; | ||||
import { ref, reactive } from "vue"; | import { ref, reactive } from "vue"; | ||||
import { navTo } from "../../utils/utils"; | |||||
import { navTo } from "@/utils/utils"; | |||||
import { onReady } from "@dcloudio/uni-app"; | import { onReady } from "@dcloudio/uni-app"; | ||||
// 表单数据 | // 表单数据 |
// .then(() => { | // .then(() => { | ||||
queryCckChangejzCardAction().then(val => { | queryCckChangejzCardAction().then(val => { | ||||
navTo( | navTo( | ||||
`/after-sale/to-bookkeeping-card/mailing_information?orderId=${params.orderId}&&applyId=${val.applyId}` | |||||
`/subpackage/after-sale/to-bookkeeping-card/mailing_information?orderId=${params.orderId}&&applyId=${val.applyId}` | |||||
) | ) | ||||
}) | }) | ||||
// }) | // }) |
const choose = (i, item) => { | const choose = (i, item) => { | ||||
flag.value = i | flag.value = i | ||||
navTo(`/after-sale/transfer-ownership/transfer-confirm?id=${item.id}`) | |||||
navTo(`/subpackage/after-sale/transfer-ownership/transfer-confirm?id=${item.id}`) | |||||
} | } | ||||
</script> | </script> | ||||
console.log(type) | console.log(type) | ||||
queryCardlossStatusType(type.type).then((val: any) => { | queryCardlossStatusType(type.type).then((val: any) => { | ||||
navTo( | navTo( | ||||
`/after-sale/transfer-ownership/card-result` | |||||
`/subpackage/after-sale/transfer-ownership/card-result` | |||||
) | ) | ||||
}); | }); | ||||
}) | }) | ||||
success: function(res) { | success: function(res) { | ||||
if (res.confirm) { | if (res.confirm) { | ||||
navTo( | navTo( | ||||
`/after-sale/transfer-ownership/transfer-verification?mobile=${state.data.customerTel}` | |||||
`/subpackage/after-sale/transfer-ownership/transfer-verification?mobile=${state.data.customerTel}` | |||||
) | ) | ||||
} | } |
} else { | } else { | ||||
if (state.type == 1 || state.type == "1") { | if (state.type == 1 || state.type == "1") { | ||||
uni.redirectTo({ | uni.redirectTo({ | ||||
url: `/applyCard/addAddress?orderId=${ | |||||
url: `/subpackage/applyCard/addAddress?orderId=${ | |||||
state.form.orderId | state.form.orderId | ||||
}&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}`, | }&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}`, | ||||
}); | }); |
import { | import { | ||||
onLoad | onLoad | ||||
} from '@dcloudio/uni-app'; | } from '@dcloudio/uni-app'; | ||||
const tools = require("../static/etcUtil/tools.js"); | |||||
const tools = require("../../../static/etcUtil/tools.js"); | |||||
import { | import { | ||||
request | request | ||||
} from "../utils/network/request.js"; | |||||
} from "@/utils/network/request.js"; | |||||
import { | import { | ||||
stringToJson | stringToJson | ||||
} from "../utils/network/encryption.js"; | |||||
import * as IFCODE from "../utils/network/api.js"; | |||||
} from "@/utils/network/encryption.js"; | |||||
import * as IFCODE from "@/utils/network/api.js"; | |||||
const state = reactive({ | const state = reactive({ | ||||
channelId: "", | channelId: "", | ||||
newCodeStatus: '获取验证码', | newCodeStatus: '获取验证码', |
</template> | </template> | ||||
<script setup> | <script setup> | ||||
import { navTo } from '../utils/utils'; | |||||
import { navTo } from '@/utils/utils'; | |||||
const gotoPage = ()=>{ | const gotoPage = ()=>{ | ||||
navTo("/subpackage/issueActivation/old-user") | navTo("/subpackage/issueActivation/old-user") |
import popupNumberplateColor from "./components/popup-choose-numberplate-color"; | import popupNumberplateColor from "./components/popup-choose-numberplate-color"; | ||||
import numberplateColor from "./components/layout-numberplate-color"; | import numberplateColor from "./components/layout-numberplate-color"; | ||||
import carNumerInput from "@/components/car-number-input/car-number-input"; | import carNumerInput from "@/components/car-number-input/car-number-input"; | ||||
const tools = require("../../static/etcUtil/tools.js"); | |||||
const tools = require("../../../static/etcUtil/tools.js"); | |||||
onLoad((option) => { | onLoad((option) => { | ||||
console.log(option); | console.log(option); |
if (form.operation && form.applyType) { | if (form.operation && form.applyType) { | ||||
console.log('验证通过', form); | console.log('验证通过', form); | ||||
navTo(`/orders/apply-ex-goods?orderId=${oldId.value}&id=8822ca31f88e448eb534767ba4d01eb9`) //测试用 | |||||
navTo(`/subpackage/orders/apply-ex-goods?orderId=${oldId.value}&id=8822ca31f88e448eb534767ba4d01eb9`) //测试用 | |||||
// const options = { | // const options = { | ||||
// type: 2, | // type: 2, | ||||
// data: form, | // data: form, |
</view> | </view> | ||||
<view class="btns"> | <view class="btns"> | ||||
<view class="btn btn-normal" @click="$util.navTo('/orders/cardAmountDetail')">查看进度</view> | |||||
<view class="btn btn-normal" @click="$util.navTo('/subpackage/orders/cardAmountDetail')">查看进度</view> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class="item"> | <view class="item"> | ||||
<view class="money"><text class="cny">¥</text><text class="amount">120.99</text></view> | <view class="money"><text class="cny">¥</text><text class="amount">120.99</text></view> | ||||
</view> | </view> | ||||
<view class="btns"> | <view class="btns"> | ||||
<view class="btn btn-normal" @click="$util.navTo('/orders/refund-deposit-card')">申请退款</view> | |||||
<view class="btn btn-primary" @click="$util.navTo('/pages/recharge/recharge')">圈存修复</view> | |||||
<view class="btn btn-normal" @click="$util.navTo('/subpackage/orders/refund-deposit-card')">申请退款</view> | |||||
<view class="btn btn-primary" @click="$util.navTo('/subpackage/pages/recharge/recharge')">圈存修复</view> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class="item"> | <view class="item"> | ||||
<view class="money"><text class="cny">¥</text><text class="amount">120.99</text></view> | <view class="money"><text class="cny">¥</text><text class="amount">120.99</text></view> | ||||
</view> | </view> | ||||
<view class="btns"> | <view class="btns"> | ||||
<view class="btn btn-primary" @click="$util.navTo('/orders/order-evaluate')">去评价</view> | |||||
<view class="btn btn-primary" @click="$util.navTo('/subpackage/orders/order-evaluate')">去评价</view> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class="item finished"> | <view class="item finished"> | ||||
<view class="money"><text class="cny">¥</text><text class="amount">120.99</text></view> | <view class="money"><text class="cny">¥</text><text class="amount">120.99</text></view> | ||||
</view> | </view> | ||||
<view class="btns"> | <view class="btns"> | ||||
<view class="btn btn-primary" @click="$util.navTo('/orders/order-evaluate')">去评价</view> | |||||
<view class="btn btn-primary" @click="$util.navTo('/subpackage/orders/order-evaluate')">去评价</view> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
</view> | </view> |
<view class="evaluate-btn" v-if="state.type === '2'"> | <view class="evaluate-btn" v-if="state.type === '2'"> | ||||
<submit-button | <submit-button | ||||
title="去评价" | title="去评价" | ||||
@submit="$util.navTo('/orders/order-evaluate')" | |||||
@submit="$util.navTo('/subpackage/orders/order-evaluate')" | |||||
></submit-button> | ></submit-button> | ||||
</view> | </view> | ||||
</template> | </template> |
</view> | </view> | ||||
<view class="btn-status"> | <view class="btn-status"> | ||||
<view class="btn-green" @click="comfireSure" v-if="item.status === 1">确认完成</view> | <view class="btn-green" @click="comfireSure" v-if="item.status === 1">确认完成</view> | ||||
<view class="btn-green width-num-1" @click="toNext('/orders/order-evaluate', item)" v-if="item.status === 2">去评价</view> | |||||
<view class="btn-green width-num-1" @click="toNext('/subpackage/orders/order-evaluate', item)" v-if="item.status === 2">去评价</view> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
</view> | </view> |