不甘寂寞 2 år sedan
förälder
incheckning
c4bf37e56c

+ 5
- 4
after-sale/rescind-carId/rescind-carId-select.vue Visa fil

@@ -359,10 +359,11 @@
}
});
const savaHandle = () => {
navTo("/after-sale/rescind-carId/verification");
let data=JSON.stringify(state.FormData)
navTo(`/after-sale/rescind-carId/verification?fromData=${data}`);


console.log(state.FormData);
console.log(JSON.stringify(state.FormData));
// var data = state.form
// const options = {
// type: 2,
@@ -402,7 +403,7 @@
};
request(fileUpload, options).then((res) => {
const data = stringToJson(res.bizContent);
console.log(data);
console.log(data,"didid");
state.FormData.peopleVehicleImgUrl = data.data.url;
});
})
@@ -472,7 +473,7 @@
};
request(etcCarOcrCard, options).then((res) => {
const data = stringToJson(res.bizContent);
console.log(data);
console.log(data,"didi");
if (val === "1") {
state.form.vehicleId = data.plate_a;
state.form.man = data.man;

+ 16
- 7
after-sale/rescind-carId/result.vue Visa fil

@@ -6,11 +6,11 @@
办理成功
</view>
<view class="">
您的车辆贵A123456解除车牌占用申请也提交
您的车辆{{}}解除车牌占用申请也提交
</view>
</view>
</view>
<button class="submit" @click="submit">查看进度</button>
<button class="submit" @click="submit">返回更多</button>
</template>

<script setup lang="ts">
@@ -23,15 +23,24 @@
navTo
} from "@/utils/utils"

import {
onLoad,
onShow
} from "@dcloudio/uni-app";



const carid=ref('')
const submit = () => {
console.log(11);
uni.redirectTo({
// url: '/pages/service/service'
});
uni.reLaunch({
url: '/pages/service/service'
})
}
onLoad((option)=>{
carid.value=option.carid
})
</script>



+ 96
- 23
after-sale/rescind-carId/verification.vue Visa fil

@@ -1,17 +1,18 @@
<template>
<view class="formBox">
<view class="from_item">
<!-- <view class="from_item">
<text class="label">账号验证</text>
<input type="text" placeholder="输入验证码" v-model="model1.uname" placeholder-style="color:#000">
</view>
</view> -->
<view class="from_item">
<text class="label">手机号码</text>
<input type="text" placeholder="" v-model="model1.phone" placeholder-style="color:#000" disabled="true">
<input type="number" placeholder="" v-model="model1.mobile" placeholder-style="color:#000" maxlength="11">
</view>
<view class="from_item">
<text class="label">验证码</text>
<input type="text" placeholder="请输入验证码" placeholder-style="color:#000">
<text class="btn" @click="getCode">获取验证码</text>
<input type="text" placeholder="请输入验证码" v-model="model1.code" placeholder-style="color:#000">
<text class="btn" @click="getCode" v-if="waitTime==0">获取验证码</text>
<text class="btn" v-else>{{waitTime}}</text>
</view>
<button class="submit" @click="submit">验证</button>
</view>
@@ -20,11 +21,16 @@

<script setup lang="ts">
import {
reactive
reactive,
ref
} from "vue";
import {
navTo
} from "@/utils/utils"
import {
onLoad,
onShow
} from "@dcloudio/uni-app";
import {
stringToJson
} from "../../utils/network/encryption.js";
@@ -32,41 +38,68 @@
request
} from "../../utils/network/request.js";
import {
CardHangUpStatus
sendCode,
relieveCarId
} from "@/utils/network/api.js"

let model1 = reactive({
uname: '输入验证码',
phone: '135****9090',
const model1 = reactive({
vehiclePlate: '',
vehiclePlatecolor: '',
openid: '',
idcardFrontImgUrl: '',
idcardBacktImgUrl: '',
vehPosImgUrl: '',
vehNegImgUrl: '',
peopleVehicleImgUrl: '',
commitmentUrl: '',
mobile: '',
code: ''
})

let waitTime = ref(0)
const getCode = () => {
console.log(123);
if (model1.mobile) {
sendCodeApi()
codeInterval()
}else{
uni.showToast({
title: '请输入手机号',
icon:'none'
});
}

}

//倒计时函数
const codeInterval = () => {
waitTime.value = 60
let timer = setInterval(() => {
if (waitTime.value == 1) {
clearInterval(timer)
}
waitTime.value -= 1
}, 1000)
}

const changeCardstatus = (type) => {
// 发送验证码
const sendCodeApi = (type) => {
//参数说明
let options = {
type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
data: {
cardId: '', //卡号
obuId: "", //签号
reason: "", //原因
provider: '2', //挂起类型 2-有卡挂起,3-无卡挂起
operation: "1", //1-卡挂起, 2-牵挂起, 3-卡签挂起, 4-卡解挂 ,5-签解挂
orderId: '20230225155521777646302', //订单编号
mobile: model1.mobile
}, //请求参数
method: "POST", //提交方式(默认POST)
showLoading: true, //是否显示加载中(默认显示)
};

//调用方式
request(CardHangUpStatus, options)
request(sendCode, options)
.then((res) => {
stringToJson(res.bizContent)
if (stringToJson(res.statusCode) == 0) {
navTo('/after-sale/card-release-pending/result')
let data = stringToJson(res.bizContent)
console.log(data,"#################");
if (data.data.info == "成功") {
console.log('######################CCCCCCCCCCCCCCCCC');
}
})
.catch((err) => {
@@ -74,11 +107,51 @@
});
}




const submit = () => {
console.log("111");
changeCardstatus()
console.log(model1);

let options = {
type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
data: model1,
method: "POST", //提交方式(默认POST)
showLoading: true, //是否显示加载中(默认显示)
};

//调用方式
request(relieveCarId, options)
.then((res) => {
stringToJson(res.bizContent)
const data = stringToJson(res.bizContent);
console.log(data, "数据");
if (data.data.info == "成功") {
navTo(`/after-sale/rescind-carId/result?carid=${model1.vehiclePlate}`)
}
})
.catch((err) => {
console.log(err);
});

}

onLoad((option) => {
console.log(option, "这是传过来的参数");
console.log(JSON.parse(option.fromData), "这是传过来的参数");
let data = JSON.parse(option.fromData)
model1.vehiclePlate = data.vehiclePlate
model1.vehiclePlatecolor = data.vehiclePlatecolor
model1.openid = data.openid
model1.idcardFrontImgUrl = data.idcardFrontImgUrl
model1.idcardBacktImgUrl = data.idcardBacktImgUrl
model1.vehPosImgUrl = data.vehPosImgUrl
model1.vehNegImgUrl = data.vehNegImgUrl
model1.peopleVehicleImgUrl = data.peopleVehicleImgUrl
model1.commitmentUrl = data.commitmentUrl

})
</script>



+ 1
- 1
manifest.json Visa fil

@@ -52,7 +52,7 @@
"quickapp" : {},
/* 小程序特有相关 */
"mp-weixin" : {
"appid" : "wx008c60533388527a",
"appid" : "wx214b4f8de36a0181",
"setting" : {
"urlCheck" : false,
"checkSiteMap" : false,

+ 6
- 0
pages.json Visa fil

@@ -1035,6 +1035,12 @@
"navigationBarTitleText": "设置-车辆信息-变更"
}
},
{
"path": "setting/car-information/car-manage",
"style": {
"navigationBarTitleText": "设置-车辆信息-管理"
}
},
{
"path": "setting/car-information/car-card",
"style": {

+ 221
- 0
personal-center/setting/car-information/car-manage.vue Visa fil

@@ -0,0 +1,221 @@
<template>
<view class="main" :style="{height: height+'px'}">
<view class="item-row">
<view class="item-left">
<view class="title">行驶证正面</view>
<view class="desc">补传行驶证正面</view>
<view class="flag"><text>拍摄示例</text> </view>
</view>
<view class="item-right" @click="chooseImage(1)">
<view class="empty-node"></view>
<image :src="state.headstockImg ?? defHeadstockImg" :data-url="state.headstockImg ?? defHeadstockImg">
</image>
</view>
</view>
<view class="item-row">
<view class="item-left">
<view class="title">行驶证副面</view>
<view class="desc">补传行驶证副面</view>
<view class="flag"><text>拍摄示例</text> </view>
</view>
<view class="item-right" @click="chooseImage(2)">
<view class="empty-node"></view>
<image :src="state.installImg ?? defInstallImg"></image>
</view>
</view>
<view class="btn">
<submit-button @submit="saveHandle" title="保存"></submit-button>
</view>
</view>
</template>

<script lang="ts" setup>
import {
reactive
} from "vue";
import {
msg,
navTo
} from '@/utils/utils';
import {
fileURL
} from "@/datas/fileURL.js";
const height = uni.getSystemInfoSync().windowHeight
const defHeadstockImg = `${fileURL}image/applyCard/car-zhu.png`;
const defInstallImg = `${fileURL}image/applyCard/car-fu.png`;

const state = reactive({
headstockImg: null,
installImg: null
});

//选择图片
const chooseImage = (type: number) => {
uni.chooseImage({
count: 1,
sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
//sourceType: ['album','camera'],
success: function(res) {
console.log(res.tempFilePaths);
if (type === 1) {
state.headstockImg = res.tempFilePaths[0];
} else {
state.installImg = res.tempFilePaths[0];
}
}
});
}

//下一步
const saveHandle = () => {
if (!state.headstockImg || !state.installImg) {
msg('请按照要求上传图片!');
return;
}
msg('保存成功')
}
</script>

<style>
page {
background: #F3F3F3;
}
</style>
<style lang="scss" scoped>
.main {
overflow: hidden;

.item-row {
display: flex;
justify-content: space-between;
margin-top: 30rpx;
background: white;
padding: 30rpx;
border-radius: 20rpx;
box-shadow: 0rpx 4rpx 13rpx 3rpx rgba(223, 223, 223, 0.8);
margin: 30rpx;

.item-left {
.title {
font-size: 34rpx;
color: #333;
font-weight: bold;
}

.desc {
font-size: 24rpx;
color: #999;
margin: 10rpx 0;
}

.flag {
width: 110rpx;
height: 45rpx;
line-height: 42rpx;
color: #0A8F8A;
margin-top: 16rpx;
border-radius: 6rpx;
text-align: center;
font-size: 20rpx;
background: #D9F8F1;
}
}

.item-right {
width: 295rpx;
height: 188rpx;
position: relative;

image {
position: relative;
z-index: 10;
width: 100%;
height: 188rpx;
}

&::before {
content: '';
position: absolute;
width: 22rpx;
height: 22rpx;
border: 4rpx solid #21BEB1;
border-bottom: none;
border-right: none;
z-index: 0;
left: -4rpx;
top: -4rpx;
}

&::after {
content: '';
position: absolute;
width: 22rpx;
height: 22rpx;
border: 4rpx solid #21BEB1;
border-top: none;
border-right: none;
z-index: 0;
left: -4rpx;
bottom: -4rpx;
}
}

.empty-node {
position: absolute;
z-index: 0;
width: 100%;
height: 100%;

&::before {
content: '';
position: absolute;
width: 22rpx;
height: 22rpx;
border: 4rpx solid #21BEB1;
border-left: none;
border-bottom: none;
z-index: 0;
right: -4rpx;
top: -4rpx;
}

&::after {
content: '';
position: absolute;
width: 22rpx;
height: 22rpx;
border: 4rpx solid #21BEB1;
border-top: none;
border-left: none;
z-index: 0;
right: -4rpx;
bottom: -4rpx;
}
}
}

.hint {
display: flex;
flex-direction: row;
justify-content: center;
font-size: 26rpx;
color: #666666;
padding: 0px 30rpx;
margin-top: 60rpx;

.icon {
width: 36rpx;
height: 36rpx;
margin-right: 10rpx;
}

view {
width: calc(100% - 36rpx);
}
}

.btn {
margin: 470rpx 40rpx 30rpx;
}
}
</style>

+ 1
- 1
personal-center/setting/car-information/corrections.vue Visa fil

@@ -18,7 +18,7 @@
{
title:'车辆信息管理',
columns:[
{title:'车辆信息变更',path:'car-information/car-change',login:true},
{title:'车辆信息变更',path:'car-information/car-manage',login:true},
{title:'补传车辆证件',path:'car-information/car-card',login:true},
]
},

+ 63
- 2
personal-center/setting/conceal-agreement.vue Visa fil

@@ -1,14 +1,75 @@
<template>
<view class="content">
本协议是由用户(以下简称为“您”)与北京巴别时代科技股份有限公司及其关联公司海南巴别时代科技有限公司(以下简称为“我们”)就我们所提供的产品和网络服务(包括我们的网站以及我们现在正在提供和将来可能向您提供的网络服务和游戏服务,以下统称为“产品和服务”)所订立的协议,本
<!-- 本协议是由用户(以下简称为“您”)与北京巴别时代科技股份有限公司及其关联公司海南巴别时代科技有限公司(以下简称为“我们”)就我们所提供的产品和网络服务(包括我们的网站以及我们现在正在提供和将来可能向您提供的网络服务和游戏服务,以下统称为“产品和服务”)所订立的协议,本
协议包括《用户协议》、《用户个人信息保护政策》、《巴别时代儿童个人信息保护指引》、游戏规则(包括但不限于用户守则、玩家条例、游戏公告、提示及通知等内容)及其修订版本,上述内容一经正式发布,即为本协议不可分割的组成部分(以下简称“本协议”)。
-->
{{textContent}}
</view>
</template>


<script>
<script setup lang="ts">
import {
reactive,
ref
} from "vue";
import {
navTo
} from "@/utils/utils"
import {
onLoad,
onShow
} from "@dcloudio/uni-app";
import {
stringToJson
} from "../../utils/network/encryption.js";
import {
request
} from "../../utils/network/request.js";
import {
infoQuery
} from "@/utils/network/api.js"

const textContent = ref('')
// 获取文本信息----用户协议
const getInfo = (type) => {
//参数说明
let options = {
type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
data: {
businessType: 'PRIVACY_POLICY'
}, //请求参数
method: "POST", //提交方式(默认POST)
showLoading: true, //是否显示加载中(默认显示)
};

//调用方式
request(infoQuery, options)
.then((res) => {
let data = stringToJson(res.bizContent)
console.log(data);
textContent.value = data.text
})
.catch((err) => {
console.log(err);
});
}





onLoad(() => {

})
onShow(() => {
getInfo()
console.log(1);
})
</script>



<style lang="scss" scoped>
.content {
padding: 98rpx 50rpx 0rpx 50rpx;

+ 55
- 1
personal-center/setting/information-deletion.vue Visa fil

@@ -4,9 +4,63 @@
</view>
</template>

<script>
<script setup lang="ts">
import {
reactive,
ref
} from "vue";
import {
navTo
} from "@/utils/utils"
import {
onLoad,
onShow
} from "@dcloudio/uni-app";
import {
stringToJson
} from "../../utils/network/encryption.js";
import {
request
} from "../../utils/network/request.js";
import {
infoQuery
} from "@/utils/network/api.js"


// 获取文本信息----用户协议
const getInfo = (type) => {
//参数说明
let options = {
type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
data: {
businessType: 'USER_AGREEMENT'
}, //请求参数
method: "POST", //提交方式(默认POST)
showLoading: true, //是否显示加载中(默认显示)
};

//调用方式
request(infoQuery, options)
.then((res) => {
let data=stringToJson(res.bizContent)
console.log(data);
})
.catch((err) => {
console.log(err);
});
}





onLoad(() => {
getInfo()
})
</script>



<style lang="scss" scoped>
.content {
padding: 98rpx 50rpx 0rpx 50rpx;

+ 63
- 2
personal-center/setting/risk-agreement.vue Visa fil

@@ -1,14 +1,75 @@
<template>
<view class="content">
本协议是由用户(以下简称为“您”)与北京巴别时代科技股份有限公司及其关联公司海南巴别时代科技有限公司(以下简称为“我们”)就我们所提供的产品和网络服务(包括我们的网站以及我们现在正在提供和将来可能向您提供的网络服务和游戏服务,以下统称为“产品和服务”)所订立的协议,本
<!-- 本协议是由用户(以下简称为“您”)与北京巴别时代科技股份有限公司及其关联公司海南巴别时代科技有限公司(以下简称为“我们”)就我们所提供的产品和网络服务(包括我们的网站以及我们现在正在提供和将来可能向您提供的网络服务和游戏服务,以下统称为“产品和服务”)所订立的协议,本
协议包括《用户协议》、《用户个人信息保护政策》、《巴别时代儿童个人信息保护指引》、游戏规则(包括但不限于用户守则、玩家条例、游戏公告、提示及通知等内容)及其修订版本,上述内容一经正式发布,即为本协议不可分割的组成部分(以下简称“本协议”)。
-->
{{textContent}}
</view>
</template>


<script>
<script setup lang="ts">
import {
reactive,
ref
} from "vue";
import {
navTo
} from "@/utils/utils"
import {
onLoad,
onShow
} from "@dcloudio/uni-app";
import {
stringToJson
} from "../../utils/network/encryption.js";
import {
request
} from "../../utils/network/request.js";
import {
infoQuery
} from "@/utils/network/api.js"

const textContent = ref('')
// 获取文本信息----用户协议
const getInfo = (type) => {
//参数说明
let options = {
type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
data: {
businessType: 'RISK_NOTIFICATION'
}, //请求参数
method: "POST", //提交方式(默认POST)
showLoading: true, //是否显示加载中(默认显示)
};

//调用方式
request(infoQuery, options)
.then((res) => {
let data = stringToJson(res.bizContent)
console.log(data);
textContent.value = data.text
})
.catch((err) => {
console.log(err);
});
}





onLoad(() => {

})
onShow(() => {
getInfo()
console.log(1);
})
</script>



<style lang="scss" scoped>
.content {
padding: 98rpx 50rpx 0rpx 50rpx;

+ 63
- 2
personal-center/setting/usage-instructions.vue Visa fil

@@ -1,14 +1,75 @@
<template>
<view class="content">
本协议是由用户(以下简称为“您”)与北京巴别时代科技股份有限公司及其关联公司海南巴别时代科技有限公司(以下简称为“我们”)就我们所提供的产品和网络服务(包括我们的网站以及我们现在正在提供和将来可能向您提供的网络服务和游戏服务,以下统称为“产品和服务”)所订立的协议,本
<!-- 本协议是由用户(以下简称为“您”)与北京巴别时代科技股份有限公司及其关联公司海南巴别时代科技有限公司(以下简称为“我们”)就我们所提供的产品和网络服务(包括我们的网站以及我们现在正在提供和将来可能向您提供的网络服务和游戏服务,以下统称为“产品和服务”)所订立的协议,本
协议包括《用户协议》、《用户个人信息保护政策》、《巴别时代儿童个人信息保护指引》、游戏规则(包括但不限于用户守则、玩家条例、游戏公告、提示及通知等内容)及其修订版本,上述内容一经正式发布,即为本协议不可分割的组成部分(以下简称“本协议”)。
-->
{{textContent}}
</view>
</template>


<script>
<script setup lang="ts">
import {
reactive,
ref
} from "vue";
import {
navTo
} from "@/utils/utils"
import {
onLoad,
onShow
} from "@dcloudio/uni-app";
import {
stringToJson
} from "../../utils/network/encryption.js";
import {
request
} from "../../utils/network/request.js";
import {
infoQuery
} from "@/utils/network/api.js"

const textContent = ref('')
// 获取文本信息----用户协议
const getInfo = (type) => {
//参数说明
let options = {
type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
data: {
businessType: 'PRIVILEGE_USE'
}, //请求参数
method: "POST", //提交方式(默认POST)
showLoading: true, //是否显示加载中(默认显示)
};

//调用方式
request(infoQuery, options)
.then((res) => {
let data = stringToJson(res.bizContent)
console.log(data);
textContent.value = data.text
})
.catch((err) => {
console.log(err);
});
}





onLoad(() => {

})
onShow(() => {
getInfo()
console.log(1);
})
</script>



<style lang="scss" scoped>
.content {
padding: 98rpx 50rpx 0rpx 50rpx;

+ 60
- 3
personal-center/setting/user-agreement.vue Visa fil

@@ -1,12 +1,69 @@
<template>
<view class="content">
本协议是由用户(以下简称为“您”)与北京巴别时代科技股份有限公司及其关联公司海南巴别时代科技有限公司(以下简称为“我们”)就我们所提供的产品和网络服务(包括我们的网站以及我们现在正在提供和将来可能向您提供的网络服务和游戏服务,以下统称为“产品和服务”)所订立的协议,本
协议包括《用户协议》、《用户个人信息保护政策》、《巴别时代儿童个人信息保护指引》、游戏规则(包括但不限于用户守则、玩家条例、游戏公告、提示及通知等内容)及其修订版本,上述内容一经正式发布,即为本协议不可分割的组成部分(以下简称“本协议”)。
{{textContent}}
</view>
</template>


<script>
<script setup lang="ts">
import {
reactive,
ref
} from "vue";
import {
navTo
} from "@/utils/utils"
import {
onLoad,
onShow
} from "@dcloudio/uni-app";
import {
stringToJson
} from "../../utils/network/encryption.js";
import {
request
} from "../../utils/network/request.js";
import {
infoQuery
} from "@/utils/network/api.js"

const textContent=ref('')
// 获取文本信息----用户协议
const getInfo = (type) => {
//参数说明
let options = {
type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
data: {
businessType: 'USER_AGREEMENT'
}, //请求参数
method: "POST", //提交方式(默认POST)
showLoading: true, //是否显示加载中(默认显示)
};

//调用方式
request(infoQuery, options)
.then((res) => {
let data = stringToJson(res.bizContent)
console.log(data);
textContent.value=data.text
})
.catch((err) => {
console.log(err);
});
}





onLoad(() => {

})
onShow(() => {
getInfo()
console.log(1);
})
</script>

<style lang="scss" scoped>

+ 1
- 0
utils/network/api.js Visa fil

@@ -89,6 +89,7 @@ export const orderEvaluateTag = '170'; //获取服务评价标签
export const changePassword = "94"; //重置密码
export const changePhone = "220"; //修改手机号
export const changecarInfo = "1029"; //车辆管理信息修改
export const infoQuery= "935"; //8.212.文本信息查询接口
// 售后管理

+ 4
- 4
utils/util/fileData.js Visa fil

@@ -1,7 +1,7 @@
import {
TextEncoder,
TextDecoder
} from "text-decoding";
// import {
// TextEncoder,
// TextDecoder
// } from "text-decoding";


export function IntegerToHexString(num, nLen) {

Laddar…
Avbryt
Spara