不甘寂寞 2 years ago
parent
commit
53c7d47e18

+ 10
- 6
after-sale/ETC-log-off/upload-card.vue View File

@@ -80,6 +80,7 @@
// 设置验证规则
const myForm = ref(null);
onReady(() => {
});
@@ -94,12 +95,15 @@
uni.$on('bluetoothLink', function(status) {
queryCardSignCancellation(1, 1, 1).then((item: any) => {
instructAction(item).then(value => {
queryConfirmSignCancellation(0).then((val: any) => {
console.log(val)
navTo("/after-sale/ETC-log-off/log-off-result");
})
if (value.orderStatus === 1) {
instructAction(item)
} else {
queryConfirmSignCancellation(0).then((val: any) => {
console.log(val)
navTo("/after-sale/ETC-log-off/log-off-result");
})
}
})
})
})
});
@@ -138,7 +142,6 @@
}
};
/*指令返回*/
const instructAction = (data) => {
@@ -178,6 +181,7 @@
}
});
};
//注销
const queryCardSignCancellation = (hasCard, hasObu, cosProvider) => {
var options = {

+ 82
- 100
after-sale/card-loss-reporting/card-result.vue View File

@@ -1,101 +1,83 @@
<template>
<view class="oderPage">
<view class="content">
<image :src="`${$imgUrl}ETCcancellation/bg1.png`" mode=""></image>
<view class="title">
办理成功
</view>
<view class="">
您办理的储蓄卡注销退费业务已生成订单
</view>
</view>
</view>
<button class="submit" @click="submit">返回首页</button>
</template>

<script setup lang="ts">
import navBar from "./components/nav-bar.vue"
import {
ref,
reactive
} from "vue";
import {
navTo
} from "@/utils/utils"
let model1 = reactive({
uname: '输入验证码',
phone: '135****9090',
code: ''
})

const getCode = () => {
console.log(123);
}
const submit=()=>{
console.log(11);
uni.redirectTo({
url: '/pages/service/service'
});
}
</script>


<style>
page {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
}
</style>
<style lang="scss" scoped>
.oderPage {
flex: 1;
width: 100%;

.content {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 130rpx;

image {
width: 390rpx;
height: 307rpx;
margin-bottom: 20rpx;
}

.title {
font-size: 38rpx;
font-weight: 600;
font-size: 40rpx;
font-family: Microsoft YaHei UI;
color: #2A2A2A;
}

view {
margin: 15rpx 0;
font-size: 28rpx;
font-family: Microsoft YaHei UI;
font-weight: 400;
color: #717171;
}
}
}

.submit {
background: linear-gradient(to left, #43A1E0 0%, #13E7C1 100%);
width: 670rpx;
height: 80rpx;
line-height: 80rpx;
font-size: 32rpx;
color: #fff;
border-radius: 100rpx;
position: fixed;
bottom: 60rpx;
left: 50%;
transform: translate(-50%);
}
<template>
<view class="oderPage">
<view class="content">
<image :src="`${$imgUrl}ETCcancellation/bg1.png`" mode=""></image>
<view class="title">
办理成功
</view>
<view class="">
您办理的卡签挂失业务已完成
</view>
</view>
</view>
<button class="submit" @click="submit">返回</button>
</template>
<script setup lang="ts">
const submit = () => {
let routes = getCurrentPages();
uni.navigateBack({
delta: routes.length - 2
});
}
</script>
<style>
page {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
}
</style>
<style lang="scss" scoped>
.oderPage {
flex: 1;
width: 100%;
.content {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 130rpx;
image {
width: 390rpx;
height: 307rpx;
margin-bottom: 20rpx;
}
.title {
font-size: 38rpx;
font-weight: 600;
font-size: 40rpx;
font-family: Microsoft YaHei UI;
color: #2A2A2A;
}
view {
margin: 15rpx 0;
font-size: 28rpx;
font-family: Microsoft YaHei UI;
font-weight: 400;
color: #717171;
}
}
}
.submit {
background: linear-gradient(to left, #43A1E0 0%, #13E7C1 100%);
width: 670rpx;
height: 80rpx;
line-height: 80rpx;
font-size: 32rpx;
color: #fff;
border-radius: 100rpx;
position: fixed;
bottom: 60rpx;
left: 50%;
transform: translate(-50%);
}
</style>

+ 0
- 2
after-sale/card-loss-reporting/cardloss-confirm.vue View File

@@ -143,8 +143,6 @@
})
/*监听手机号验证后的回调*/
uni.$on('queryCardlossStatus', function(type) {
console.log(type)
console.log('哈哈哈')
queryCardlossStatusType(type.type).then((val: any) => {
navTo(
`/after-sale/card-loss-reporting/card-result`

+ 206
- 97
after-sale/card-loss-reporting/cardloss.vue View File

@@ -1,169 +1,278 @@
<template>
<view class="formBox">
<view class="from_item">
<text class="label">账号验证</text>
</view>
<view class="from_item">
<text class="label">手机号码</text>
<input type="text" placeholder="" v-model="model.mobile" placeholder-style="color:#000" disabled="true">
</view>
<view class="from_item">
<text class="label">验证码</text>
<input type="text" placeholder="请输入验证码" v-model="model.code" placeholder-style="color:#000">
<text class="btn" @click="getCode">获取验证码</text>
</view>
<button class="submit" @click="submit">验证</button>
</view>
<view class="oderPage">
<u-form :model="form" ref="myForm" :error-type="errorType">
<view class="from">
<u-form-item prop="phone">
<view class="from_item" style="background-color: #f7f7f7">
<text><text style="color: red"></text>手机号:</text>
<u-input v-model="form.mobile" :disabled="true" class="input" />
</view>
</u-form-item>
<u-form-item prop="code">
<view class="from_item">
<text><text style="color: red"></text>验证码:</text>
<u-input v-model="form.code" placeholder="请输入验证码" class="input" />
<view class="hint2">
<view class="green">{{ codeDuration === 0 ? "" : codeDuration }}</view>
<view class="grey" @click="getCode">{{
codeDuration === 0 ? "发送验证码" : "秒后可重发"
}}</view>
</view>
</view>
</u-form-item>
</view>
</u-form>
<button class="submit" @click="toPage()">下一步</button>
</view>
</template>
<script setup lang="ts">
import navBar from "./components/nav-bar.vue";
import {
reactive,
ref
} from "vue";
checkStr
} from "@/utils/utils";
import {
navTo
} from "@/utils/utils"
ref,
reactive
} from "vue";
import {
onLoad,
onShow
onLoad
} from "@dcloudio/uni-app";
import {
stringToJson
} from "../../utils/network/encryption.js";
import {
request
} from "../../utils/network/request.js";
import {
sendCode,
checkCode
checkCode,
} from "@/utils/network/api.js";
const type = ref('')
let model = reactive({
import {
msg
} from "@/utils/utils";
// 表单数据
const form = reactive({
mobile: "",
code: '',
mobile: '',
})
type: undefined,
});
//倒计时时常
const codeDuration = ref(0);
let interval = null;
/* 验证码倒计时 */
const codeInterval = () => {
codeDuration.value = 60;
interval = setInterval(() => {
codeDuration.value--;
if (codeDuration.value === 0) {
if (interval) {
clearInterval(interval);
interval = null;
}
}
}, 1000);
};
onLoad((options) => {
form.type = options.type
form.mobile = options.mobile
});
const getCode = () => {
if (codeDuration.value !== 0) {
return;
}
const options = {
type: 2,
data: {
mobile: model.mobile
mobile: form.mobile
},
method: "POST",
showLoading: true,
};
request(sendCode, options)
.then((res) => {
codeInterval();
msg("验证码发送成功!");
})
.catch((err) => {
console.log(err);
});
}
onLoad((options: any) => {
type.value = options.type
model.mobile = options.mobile
})
const submit = () => {
//下一步
const toPage = () => {
const options = {
type: 2,
data: {
mobile: model.mobile,
code: model.code
mobile: form.mobile,
code: form.code
},
method: "POST",
showLoading: true,
};
request(checkCode, options)
.then((res) => {
.then((res) => {
uni.$emit('queryCardlossStatus', {
type: type.value
})
type: form.type
})
uni.navigateBack()
})
.catch((err) => {
console.log(err);
});
}
};
</script>
<style>
page {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
background-color: ##eef7f7;
}
</style>
<style lang="scss" scoped>
.formBox {
height: 90%;
.hint2 {
display: flex;
.green {
font-size: 28rpx;
color: #00b38b;
}
.grey {
font-size: 24rpx;
color: #000000;
margin-left: 16rpx;
}
}
.oderPage {
flex: 1;
width: 100%;
// background-color: red;
.from_item {
padding: 30rpx;
padding-top: 60rpx;
position: relative;
.from1 {
background-color: #fff;
margin-top: 30rpx;
padding: 0 30rpx;
.label {
font-size: 28rpx;
font-family: Microsoft YaHei;
font-weight: 400;
color: #777777;
::v-deep .uni-forms-item {
border-bottom: 1rpx solid #ccc;
padding: 15rpx 0;
margin-bottom: 0;
.uni-forms-item__label {
font-size: 28rpx;
height: 50rpx;
}
.uni-forms-item__content {
display: flex;
}
.uni-easyinput__content-input {
font-size: 28rpx;
height: 50rpx;
}
}
input {
font-size: 32rpx;
.btn {
line-height: 38rpx;
font-size: 24rpx;
font-family: Microsoft YaHei;
font-weight: 400;
color: #333333;
line-height: 58rpx;
border-bottom: 1rpx solid #DCDCDC;
margin-top: 50rpx;
padding-bottom: 10rpx;
}
.btn {
position: absolute;
right: 45rpx;
bottom: 48rpx;
background: transparent;
font-size: 30rpx;
color: #15E5C1;
z-index: 999;
color: #ffffff;
background: #00b38b;
border-radius: 10rpx;
padding: 10rpx 15rpx;
}
}
.from {
background-color: #fff;
margin-top: 30rpx;
padding: 0 30rpx;
::v-deep .u-form-item {
padding: 0;
line-height: normal;
.u-form-item__message {
margin-bottom: 12rpx;
}
}
}
.from_item {
display: flex;
flex-wrap: nowrap;
justify-content: space-between;
align-items: center;
height: 80rpx;
border-bottom: 1rpx solid #dcdcdc;
.btn {
font-size: 24rpx;
font-family: Microsoft YaHei;
font-weight: 400;
color: #ffffff;
background: #00b38b;
border-radius: 10rpx;
padding: 10rpx 15rpx;
}
::v-deep .input {
text-align: left;
flex: 1;
input {
text-align: left;
}
}
}
.from_item1 {
display: flex;
flex-wrap: nowrap;
flex-direction: column;
justify-content: space-between;
padding: 30rpx;
border-bottom: #dcdcdc 1px solid;
input {
text-align: right;
}
.submit {
background: linear-gradient(to left, #43A1E0 0%, #13E7C1 100%);
width: 670rpx;
height: 80rpx;
line-height: 80rpx;
color: #fff;
border-radius: 100rpx;
position: fixed;
bottom: 100rpx;
left: 50%;
transform: translate(-50%);
font-size: 32rpx;
font-family: Microsoft YaHei;
font-weight: 400;
color: #FFFFFF;
line-height: 80rpx;
.textarea {
background-color: #f1f1f1;
width: 100%;
border-radius: 20rpx;
margin-top: 10rpx;
text-indent: 1rem;
height: 180rpx;
padding: 20rpx;
box-sizing: border-box;
}
}
}
}
.submit {
background: linear-gradient(to left, #43a1e0 0%, #13e7c1 100%);
width: 670rpx;
height: 80rpx;
color: #fff;
border-radius: 100rpx;
position: fixed;
left: 50%;
transform: translate(-50%);
bottom: 60rpx;
font-size: 32rpx;
}
</style>

+ 83
- 0
after-sale/transfer-ownership/card-result.vue View File

@@ -0,0 +1,83 @@
<template>
<view class="oderPage">
<view class="content">
<image :src="`${$imgUrl}ETCcancellation/bg1.png`" mode=""></image>
<view class="title">
办理成功
</view>
<view class="">
您办理的ETC过户业务办理成功
</view>
</view>
</view>
<button class="submit" @click="submit">返回</button>
</template>
<script setup lang="ts">
const submit = () => {
let routes = getCurrentPages();
uni.navigateBack({
delta: routes.length - 2
});
}
</script>
<style>
page {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
}
</style>
<style lang="scss" scoped>
.oderPage {
flex: 1;
width: 100%;
.content {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 130rpx;
image {
width: 390rpx;
height: 307rpx;
margin-bottom: 20rpx;
}
.title {
font-size: 38rpx;
font-weight: 600;
font-size: 40rpx;
font-family: Microsoft YaHei UI;
color: #2A2A2A;
}
view {
margin: 15rpx 0;
font-size: 28rpx;
font-family: Microsoft YaHei UI;
font-weight: 400;
color: #717171;
}
}
}
.submit {
background: linear-gradient(to left, #43A1E0 0%, #13E7C1 100%);
width: 670rpx;
height: 80rpx;
line-height: 80rpx;
font-size: 32rpx;
color: #fff;
border-radius: 100rpx;
position: fixed;
bottom: 60rpx;
left: 50%;
transform: translate(-50%);
}
</style>

+ 158
- 97
after-sale/transfer-ownership/select-car-transfer.vue View File

@@ -1,98 +1,159 @@
<template>
<view class="selectCar-box">
<view class="item" v-for="(item,i) in list" :key="i" @click="choose(i,item)">
<view class="iten-left">
<image :src="`${$imgUrl}che.png`" mode=""></image>
<text>{{item.name}}</text>
</view>
<view class="choose-item" >
<view class="active" v-if="flag==i">
</view>
</view>
</view>
</view>
</template>

<script lang="ts" setup>
import {reactive,ref} from"vue"
import {navTo} from "@/utils/utils"

const list=reactive([
{name:"A12345"},
{name:"B12345"},
{name:"C12345"},
])
const flag=ref('0')

const choose=(i,item)=>{
flag.value=i
console.log("选择得数据",item);
navTo('/after-sale/transfer-ownership/transfer-confirm')
}
</script>

<style>
page {
width: 100%;
height: 100%;
background-color: #EEF7F7;
}
</style>
<style lang="scss" scoped>
.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%;
}

}


}
<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=""></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 = () => {
var data = {
opId: getItem(StorageKeys.OpenId),
source: 'WECHAT', //渠道为小程序
tabIndex: '0', //0全部
orderStep: '11', //11 为已完成”
};
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(`/after-sale/transfer-ownership/transfer-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>

+ 349
- 292
after-sale/transfer-ownership/transfer-confirm.vue View File

@@ -1,293 +1,350 @@
<template>
<view class="selectCar-box">
<view class="details">
<view class="title">
基础信息
</view>
<view class="details-item">
<view>
订单编号:
</view>
<text>123234350000001</text>
</view>
<view class="details-item">
<view>
用户名称:
</view>
<text>xxxxx</text>
</view>
<view class="details-item">
<view>
用户证件类型:
</view>
<text>居民身份证</text>
</view>
<view class="details-item">
<view>
用户证件号:
</view>
<text>44504049343434001</text>
</view>
<view class="details-item">
<view>
订单车牌号:
</view>
<text style="color: #00B38B;;">贵A12345</text>
</view>
<view class="details-item">
<view>
收费车型:
</view>
<text>客车</text>
</view>
</view>
<view class="title">
卡信号
</view>
<view class="card">
<view class="card-left">
<image :src="`${$imgUrl}card2.png`" mode=""></image>
<view class="card-center">
<view class="card-center-head">
2023022700012
</view>
<view class="tips">
<text>储蓄卡</text>
<text class="tips-card">正常</text>
</view>
</view>
</view>
<view class="choose-item" @click="choose(1)">
<view class="active" v-if="flag.includes(1)">

</view>
</view>
</view>
<view class="title">
OBU设备信息
</view>
<view class="card">
<view class="card-left">
<image :src="`${$imgUrl}card1.png`" mode=""></image>
<view class="card-center">
<view class="card-center-head">
2023022700012
</view>
<view class="tips">
<!-- <text>储蓄卡</text> -->
<text class="tips-card">正常</text>
</view>
</view>
</view>
<view class="choose-item" @click="choose(2)">
<view class="active" v-if="flag.includes(2)">

</view>
</view>
</view>
<view class="title">
OBU设备信息
</view>
<view class="remark">
<view>
1.xxxxxxxx
</view>
<view>
2.xxxxxxxx
</view>
<view>
3.xxxxxxxx
</view>
<view>
4.xxxxxxxx
</view>
</view>
<button class="submit" @click="toPage">下一步</button>
</view>
</template>

<script lang="ts" setup>
import {
reactive,
ref
} from "vue"
import {
navTo
} from "@/utils/utils"
const toPage = () => {
if (flag.length == 0) {
uni.showToast({
title: '请至少勾选一项',
});
} else {
navTo('/after-sale/transfer-ownership/transfer-verification')
// wx.showModal({
// title: '设备挂失',
// content: '请确认是否执行挂失操作',
// success: function(res) {
// if (res.confirm) {
// console.log('用户点击确定');
// navTo('/after-sale/transfer-ownership/transfer-verification')
// } else if (res.cancel) {
// console.log('用户点击取消');
// }
// }
// });
}

}

const flag = reactive([])
const choose = (data) => {
if (!flag.includes(data)) {
flag.push(data)
console.log(flag);
} else {
flag.splice(flag.indexOf(data), 1)
console.log(flag);
}
}
</script>

<style>
page {
width: 100%;
height: 100%;
background-color: #fff;
}
</style>
<style lang="scss" scoped>
.selectCar-box {
// width: 100%;
// height: 100%;
padding: 30rpx;

.title {
font-size: 30rpx;
font-family: Microsoft YaHei UI;
font-weight: 400;
color: #333333;
margin-bottom: 30rpx;
}

.details {
.title {
font-size: 30rpx;
font-family: Microsoft YaHei UI;
font-weight: 400;
color: #333333;
margin-bottom: 30rpx;
}

.details-item {
display: flex;
font-size: 26rpx;
font-family: Noto Sans S Chinese;
font-weight: 400;
color: #999999;
margin-bottom: 30rpx;

text {
font-size: 26rpx;
font-family: Noto Sans S Chinese;
font-weight: 400;
color: #333333;
}
}

}

.card {
height: 150rpx;
background: #FFFFFF;
box-shadow: 0rpx 4rpx 13rpx 3rpx rgba(223, 223, 223, 0.8);
border-radius: 20rpx;
padding: 30rpx;
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 60rpx;

.card-left {
display: flex;
align-items: center;

image {
width: 100rpx;
height: 90rpx;
}

.card-center {
margin-left: 30rpx;

.card-center-head {
font-size: 32rpx;
font-family: Noto Sans S Chinese;
font-weight: 400;
color: #333333;
}

.tips {
font-size: 26rpx;
font-family: Noto Sans S Chinese;
font-weight: 400;
color: #666666;

.tips-card {
width: 70rpx;
height: 40rpx;
background: #D3F2EF;
border-radius: 6rpx;
font-size: 20rpx;
font-family: Noto Sans S Chinese;
font-weight: 400;
color: #0A8F8A;
padding: 5rpx 10rpx;
margin-left: 20rpx;
}
}
}
}

.choose-item {
margin-right: 20rpx;
width: 50rpx;
height: 50rpx;
border: 1rpx solid #00B38B;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;

.active {
width: 38rpx;
height: 38rpx;
background: #00B38B;
border-radius: 50%;
}
}
}

.remark {
font-size: 26rpx;
font-family: Microsoft YaHei UI;
font-weight: 400;
color: #666666;
text-indent: 30rpx;
margin-bottom: 30rpx;
}

.submit {
margin-top: 100rpx;
width: 670rpx;
height: 80rpx;
background: linear-gradient(-90deg, #43A1E0 0%, #13E7C1 100%);
border-radius: 40rpx;
font-size: 32rpx;
font-family: Noto Sans S Chinese;
font-weight: 400;
color: #FFFFFF;
line-height: 80rpx;
}
}
<template>
<view class="selectCar-box">
<view class="details">
<view class="title">
基础信息
</view>
<view class="details-item">
<view>
订单编号:
</view>
<text>{{state.data.orderId}}</text>
</view>
<view class="details-item">
<view>
用户名称:
</view>
<text>{{state.data.customerName}}</text>
</view>
<view class="details-item">
<view>
用户证件类型:
</view>
<text>{{getCredentialType(state.data.customerIdtype)}}</text>
</view>
<view class="details-item">
<view>
用户证件号:
</view>
<text>{{state.data.customerIdnum}}</text>
</view>
<view class="details-item">
<view>
订单车牌号:
</view>
<text style="color: #00B38B;;">{{state.data.vehiclePlate}}</text>
</view>
<view class="details-item">
<view>
收费车型:
</view>
<text>{{state.data.vehicleType}}</text>
</view>
</view>
<view class="title">
卡信息
</view>
<view class="card">
<view class="card-left">
<image :src="`${$imgUrl}card2.png`" mode=""></image>
<view class="card-center">
<view class="card-center-head">
{{state.data.cardId}}
</view>
<view class="tips">
<text>储蓄卡</text>
<text class="tips-card">{{getEtcCardStatus(state.data.cardStatus)}}</text>
</view>
</view>
</view>
</view>
<view class="title">
OBU设备信息
</view>
<view class="card">
<view class="card-left">
<image :src="`${$imgUrl}card1.png`" mode=""></image>
<view class="card-center">
<view class="card-center-head">
{{state.data.obuId}}
</view>
<view class="tips">
<!-- <text>储蓄卡</text> -->
<text class="tips-card">{{getObuStatus(state.data.obuStatus)}}</text>
</view>
</view>
</view>
</view>
<button class="submit" @click="nextACtion">下一步</button>
</view>
</template>
<script lang="ts" setup>
import {
reactive,
ref
} from "vue"
import {
navTo
} from "@/utils/utils"
import {
onLoad,
onUnload
} from "@dcloudio/uni-app";
import {
request
} from "@/utils/network/request.js";
import {
orderDetail,
queryGuoHu
} from "@/utils/network/api.js";
import {
msg
} from "@/utils/utils";
import {
getCredentialType
} from "@/datas/credentialType.js";
import {
getEtcCardStatus
} from "@/datas/etcCardStatus.js";
import {
getObuStatus
} from "@/datas/obuStatus.js";
import {
stringToJson
} from "@/utils/network/encryption";
import {
getItem,
StorageKeys,
} from "@/utils/storage";
const state = reactive({
data: {
cardStatus: undefined,
obuStatus: undefined,
}
});
/*视图进入后操作*/
onLoad((option) => {
queryOrderDetail(option.id).then((val: any) => {
state.data = val
})
/*监听手机号验证后的回调*/
uni.$on('queryCardlossStatus', function(type) {
console.log(type)
queryCardlossStatusType(type.type).then((val: any) => {
navTo(
`/after-sale/transfer-ownership/card-result`
)
});
})
});
onUnload(() => {
/*移除监听*/
uni.$off('queryCardlossStatus')
});
/*下一步*/
const nextACtion = () => {
wx.showModal({
title: 'ETC过户',
content: '确认是否ETC过户操作',
success: function(res) {
if (res.confirm) {
navTo(
`/after-sale/transfer-ownership/transfer-verification?mobile=${state.data.customerTel}`
)
}
}
});
}
const queryOrderDetail = (id) => {
return new Promise(async (resolve, reject) => {
const res = await request(orderDetail, {
type: 2,
data: {
id: id
},
method: "POST",
showLoading: true,
});
const data = stringToJson(res.bizContent);
resolve(data);
}).catch((error) => {
reject(error);
});
}
const queryCardlossStatusType = (val: any) => {
var data = {
openId: getItem(StorageKeys.OpenId),
orderSource: 'WECHAT',
serviceType: val,
orderId: state.data.orderId
};
const options = {
type: 2,
data: data,
method: "POST",
showLoading: true,
};
return new Promise(async (resolve, reject) => {
const res = await request(queryGuoHu, options);
const data = stringToJson(res.bizContent);
resolve(data);
}).catch((error) => {
reject(error);
});
}
</script>
<style>
page {
width: 100%;
height: 100%;
background-color: #fff;
}
</style>
<style lang="scss" scoped>
.selectCar-box {
// width: 100%;
// height: 100%;
padding: 30rpx;
.title {
font-size: 30rpx;
font-family: Microsoft YaHei UI;
font-weight: 400;
color: #333333;
margin-bottom: 30rpx;
}
.details {
.title {
font-size: 30rpx;
font-family: Microsoft YaHei UI;
font-weight: 400;
color: #333333;
margin-bottom: 30rpx;
}
.details-item {
display: flex;
font-size: 26rpx;
font-family: Noto Sans S Chinese;
font-weight: 400;
color: #999999;
margin-bottom: 30rpx;
text {
font-size: 26rpx;
font-family: Noto Sans S Chinese;
font-weight: 400;
color: #333333;
}
}
}
.card {
height: 150rpx;
background: #FFFFFF;
box-shadow: 0rpx 4rpx 13rpx 3rpx rgba(223, 223, 223, 0.8);
border-radius: 20rpx;
padding: 30rpx;
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 60rpx;
.card-left {
display: flex;
align-items: center;
image {
width: 100rpx;
height: 90rpx;
}
.card-center {
margin-left: 30rpx;
.card-center-head {
font-size: 32rpx;
font-family: Noto Sans S Chinese;
font-weight: 400;
color: #333333;
}
.tips {
font-size: 26rpx;
font-family: Noto Sans S Chinese;
font-weight: 400;
color: #666666;
.tips-card {
width: 70rpx;
height: 40rpx;
background: #D3F2EF;
border-radius: 6rpx;
font-size: 20rpx;
font-family: Noto Sans S Chinese;
font-weight: 400;
color: #0A8F8A;
padding: 5rpx 10rpx;
margin-left: 20rpx;
}
}
}
}
.choose-item {
margin-right: 20rpx;
width: 50rpx;
height: 50rpx;
border: 1rpx solid #00B38B;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
.active {
width: 38rpx;
height: 38rpx;
background: #00B38B;
border-radius: 50%;
}
}
}
.remark {
font-size: 26rpx;
font-family: Microsoft YaHei UI;
font-weight: 400;
color: #666666;
text-indent: 30rpx;
margin-bottom: 30rpx;
}
.submit {
margin-top: 100rpx;
width: 670rpx;
height: 80rpx;
background: linear-gradient(-90deg, #43A1E0 0%, #13E7C1 100%);
border-radius: 40rpx;
font-size: 32rpx;
font-family: Noto Sans S Chinese;
font-weight: 400;
color: #FFFFFF;
line-height: 80rpx;
}
}
</style>

+ 307
- 110
after-sale/transfer-ownership/transfer-verification.vue View File

@@ -1,111 +1,308 @@
<template>
<view class="formBox">
<view class="from_item">
<text class="label">账号验证</text>
<input type="text" placeholder="输入验证码" v-model="model1.uname" placeholder-style="color:#000">
</view>
<view class="from_item">
<text class="label">手机号码</text>
<input type="text" placeholder="" v-model="model1.phone" placeholder-style="color:#000" disabled="true">
</view>
<view class="from_item">
<text class="label">验证码</text>
<input type="text" placeholder="请输入验证码" placeholder-style="color:#000">
<text class="btn" @click="getCode">获取验证码</text>
</view>
<button class="submit" @click="toPage">验证</button>
</view>

</template>

<script setup lang="ts">
import {
reactive
} from "vue";
import {
navTo
} from "@/utils/utils"
let model1 = reactive({
uname: '输入验证码',
phone: '135****9090',
code: ''
})

const getCode = () => {
console.log(123);
}
const toPage=()=>{
navTo('/after-sale/transfer-ownership/transfer')
}
</script>


<style>
page {
width: 100%;
height: 100%;
}
</style>

<style lang="scss" scoped>
.formBox {
height: 90%;
width: 100%;

// background-color: red;
.from_item {
padding: 30rpx;
padding-top: 60rpx;
position: relative;

.label {
font-size: 28rpx;
font-family: Microsoft YaHei;
font-weight: 400;
color: #777777;
}

input {
font-size: 32rpx;
font-family: Microsoft YaHei;
font-weight: 400;
color: #333333;
line-height: 58rpx;
border-bottom: 1rpx solid #DCDCDC;
margin-top: 50rpx;
padding-bottom: 10rpx;

}

.btn {
position: absolute;
right: 45rpx;
bottom: 48rpx;
background: transparent;
font-size: 30rpx;
color: #15E5C1;
z-index: 999;

}

}

.submit {
background: linear-gradient(to left, #43A1E0 0%, #13E7C1 100%);
width: 670rpx;
height: 80rpx;
line-height: 80rpx;
color: #fff;
border-radius: 100rpx;
position: fixed;
bottom: 100rpx;
left: 50%;
transform: translate(-50%);
font-size: 32rpx;
font-family: Microsoft YaHei;
font-weight: 400;
color: #FFFFFF;
line-height: 80rpx;
}
}
<template>
<view class="oderPage">
<u-form :model="form" ref="myForm">
<view class="from">
<u-form-item prop="cardState">
<view class="from_item">
<text><text style="color: red">*</text>是否保留卡签:</text>
<u-radio-group v-model="form.serviceTypeName">
<u-radio :customStyle="{ marginBottom: '8px' }" activeColor="#2CE242"
v-for="(item, index) in radiolist1" :key="index" :label="item.disabled"
:name="item.name">
{{ item.name }}
</u-radio>
</u-radio-group>
</view>
</u-form-item>
<u-form-item prop="phone">
<view class="from_item" style="background-color: #f7f7f7">
<text><text style="color: red"></text>手机号:</text>
<u-input v-model="form.mobile" :disabled="true" class="input" />
</view>
</u-form-item>
<u-form-item prop="code">
<view class="from_item">
<text><text style="color: red"></text>验证码:</text>
<u-input v-model="form.code" placeholder="请输入验证码" class="input" />
<view class="hint2">
<view class="green">{{ codeDuration === 0 ? "" : codeDuration }}</view>
<view class="grey" @click="getCode">{{
codeDuration === 0 ? "发送验证码" : "秒后可重发"
}}</view>
</view>
</view>
</u-form-item>
</view>
</u-form>
<button class="submit" @click="toPage()">下一步</button>
</view>
</template>
<script setup lang="ts">
import {
ref,
reactive
} from "vue";
import {
navTo
} from "../../utils/utils";
import {
onLoad
} from "@dcloudio/uni-app";
import {
request
} from "../../utils/network/request.js";
import {
sendCode,
checkCode,
changeCardApply
} from "@/utils/network/api.js";
import {
stringToJson
} from "@/utils/network/encryption";
import {
msg
} from "@/utils/utils";
// 表单数据
const form = reactive({
serviceType: '',
serviceTypeName: '保留卡签',
mobile: "",
code: '',
});
// 单选数据列表
const radiolist1 = reactive([{
name: "保留卡签",
disabled: false,
},
{
name: "不保留卡签",
disabled: false,
}
]);
//倒计时时常
const codeDuration = ref(0);
let interval = null;
/* 验证码倒计时 */
const codeInterval = () => {
codeDuration.value = 60;
interval = setInterval(() => {
codeDuration.value--;
if (codeDuration.value === 0) {
if (interval) {
clearInterval(interval);
interval = null;
}
}
}, 1000);
};
onLoad((option) => {
form.mobile = option.mobile
});
const getCode = () => {
if (codeDuration.value !== 0) {
return;
}
const options = {
type: 2,
data: {
mobile: form.mobile
},
method: "POST",
showLoading: true,
};
request(sendCode, options)
.then((res) => {
codeInterval();
msg("验证码发送成功!");
})
.catch((err) => {
console.log(err);
});
}
//下一步
const toPage = () => {
if (form.serviceTypeName === '保留卡签') {
form.serviceType = 'WITHVEHICLE'
} else {
form.serviceType = 'WITHCUSTOMER'
}
const options = {
type: 2,
data: {
mobile: form.mobile,
code: form.code
},
method: "POST",
showLoading: true,
};
request(checkCode, options)
.then((res) => {
uni.$emit('queryCardlossStatus', {
type: form.serviceType
})
uni.navigateBack()
})
.catch((err) => {
console.log(err);
});
};
</script>
<style>
page {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
background-color: ##eef7f7;
}
</style>
<style lang="scss" scoped>
.hint2 {
display: flex;
.green {
font-size: 28rpx;
color: #00b38b;
}
.grey {
font-size: 24rpx;
color: #000000;
margin-left: 16rpx;
}
}
.oderPage {
flex: 1;
width: 100%;
.from1 {
background-color: #fff;
margin-top: 30rpx;
padding: 0 30rpx;
::v-deep .uni-forms-item {
border-bottom: 1rpx solid #ccc;
padding: 15rpx 0;
margin-bottom: 0;
.uni-forms-item__label {
font-size: 28rpx;
height: 50rpx;
}
.uni-forms-item__content {
display: flex;
}
.uni-easyinput__content-input {
font-size: 28rpx;
height: 50rpx;
}
}
.btn {
line-height: 38rpx;
font-size: 24rpx;
font-family: Microsoft YaHei;
font-weight: 400;
color: #ffffff;
background: #00b38b;
border-radius: 10rpx;
padding: 10rpx 15rpx;
}
}
.from {
background-color: #fff;
margin-top: 30rpx;
padding: 0 30rpx;
::v-deep .u-form-item {
padding: 0;
line-height: normal;
.u-form-item__message {
margin-bottom: 12rpx;
}
}
.from_item {
display: flex;
flex-wrap: nowrap;
justify-content: space-between;
align-items: center;
height: 80rpx;
border-bottom: 1rpx solid #dcdcdc;
.btn {
font-size: 24rpx;
font-family: Microsoft YaHei;
font-weight: 400;
color: #ffffff;
background: #00b38b;
border-radius: 10rpx;
padding: 10rpx 15rpx;
}
::v-deep .input {
text-align: left;
flex: 1;
input {
text-align: left;
}
}
}
.from_item1 {
display: flex;
flex-wrap: nowrap;
flex-direction: column;
justify-content: space-between;
padding: 30rpx;
border-bottom: #dcdcdc 1px solid;
input {
text-align: right;
}
.textarea {
background-color: #f1f1f1;
width: 100%;
border-radius: 20rpx;
margin-top: 10rpx;
text-indent: 1rem;
height: 180rpx;
padding: 20rpx;
box-sizing: border-box;
}
}
}
}
.submit {
background: linear-gradient(to left, #43a1e0 0%, #13e7c1 100%);
width: 670rpx;
height: 80rpx;
color: #fff;
border-radius: 100rpx;
position: fixed;
left: 50%;
transform: translate(-50%);
bottom: 60rpx;
font-size: 32rpx;
}
</style>

+ 1371
- 1377
pages.json
File diff suppressed because it is too large
View File


+ 1
- 1
utils/network/api.js View File

@@ -114,7 +114,7 @@ export const changeCardApply = '888' //换货/换卡签申请接口
export const changeCardInfo = '887' //换货/换卡/填写信息接口
export const queryRefund= '924' //储值卡注销退费查询接口
export const queryRefundApply= '918' //储值卡注销余额补领申请接口
export const queryGuoHu= '47631d58945642afa053e07c306e99e6' //8.311.MTS-ASS-过户接口


Loading…
Cancel
Save