更换版本

This commit is contained in:
2024-01-22 18:48:00 +08:00
parent 9f65ea8fd9
commit 00e6dcaec0
1158 changed files with 70609 additions and 51780 deletions

View File

@@ -0,0 +1,42 @@
var a;
(a = getApp()),
Page({
data: { serviceSumCount: 0, serviceSumMoney: 0 },
onLoad: function (a) {
this.getDetail(a.vin), this.setData({ vin: a.vin });
},
getDetail: function (t) {
var e = this,
n = { openid: wx.getStorageSync("userid"), frameno: t };
a.getdata(n, "cxjlid").then((a) => {
if ((console.log("回调数据:", a), a)) {
e.setData({ cardata: a.data });
var t = JSON.parse(a.data.record);
console.log(t),
e.setData({
records: t.result.data.details.records,
serviceSumCount: t.result.data.details.serviceSumCount,
serviceSumMoney: t.result.data.details.serviceSumMoney,
});
}
});
},
onReady: function () {},
onShow: function () {},
onHide: function () {},
onUnload: function () {},
onPullDownRefresh: function () {},
onReachBottom: function () {},
onShareAppMessage: function () {
return {
title: this.data.cardata.cars + "出险查询报告",
path: "/pages/carcxjl/carcxjl?vin=" + this.data.cardata.vin,
};
},
onShareTimeline: function () {
return {
title: this.data.cardata.cars + "出险查询报告",
path: "/pages/carcxjl/carcxjl?vin=" + this.data.cardata.vin,
};
},
});

View File

@@ -0,0 +1,5 @@
{
"usingComponents": {},
"navigationBarBackgroundColor": "#3960FE",
"navigationBarTitleText": ""
}

View File

@@ -0,0 +1,57 @@
<view class="page-view">
<view class="top-title">
<text class="top-title-b">出险记录查询</text>
<text class="top-title-l">查询时间:{{cardata.time}}</text>
</view>
<view class="top-box">
<view class="box-text">
<view style="width: 130%;">
<text class="brand-text" style="display: inline;">{{cardata.car}}</text>
<text class="order-text" style="display: inline;font-size: 24rpx">{{cardata.cars}}</text>
</view>
<text class="order-text">VIN{{vin}}</text>
<text class="none-text"></text>
<text class="type-text">维修次数:{{serviceSumCount}}</text>
<text class="pai-text">维修金额:{{serviceSumMoney}}</text>
</view>
<view class="box-img">
<image class="logo-img" mode="widthFix" src="{{cardata.logo}}"></image>
</view>
</view>
<view class="content-view">
<view class="content-desc">
<text class="content-title">出险记录</text>
<text class="content-shuo">* 数据来自第三方,仅作参考</text>
</view>
<view data-index="{{index}}" wx:if="{{records.length>0}}" wx:for="{{records}}" wx:key="index">
<view class="content-detail-single">
<view class="content-right">
<view class="veibao-title">
<text class="{{index==0?'yuandian first-dian':'yuandian no-dian'}}"></text>
<text class="veibao-time">{{item.dangerDate}}</text>
</view>
<view class="veibao-text" wx:if="{{item.resultInfo.length>0}}" wx:for="{{item.resultInfo}}" wx:for-item="result" wx:key="index">
<view class="veibao-xiangmu">
<text class="xiangmu-title">理赔类型</text>
<text class="xiangmu-detail">{{result.dangerSingleType==1?'更换':result.dangerSingleType==2?'维修':'材料'}}</text>
</view>
<view class="veibao-xiangmu">
<text class="xiangmu-title">理赔描述</text>
<text class="xiangmu-detail">{{result.dangerSingleName}}</text>
</view>
<view class="veibao-xiangmu">
<text class="xiangmu-title">理赔金额</text>
<text class="xiangmu-detail">{{result.dangerSingleMoney/100}}</text>
</view>
</view>
<view class="veibao-text {{item.vehicleType==null?'none-view':''}}">
<view class="veibao-xiangmu">
<text class="xiangmu-title">相关事故车</text>
<text class="xiangmu-detail"> {{item.vehicleType}}</text>
</view>
</view>
</view>
</view>
</view>
</view>
</view>

View File

@@ -0,0 +1,225 @@
page {
background: #f8f8f8;
}
.page-view {
background: linear-gradient(#3960fe, #4e71fc, #f8f8f8);
height: 495rpx;
width: 100%;
}
.top-title {
color: #fff;
padding-top: 30rpx;
text-align: center;
}
.top-title-b {
display: block;
font-size: 50rpx;
font-weight: 700;
}
.top-title-l {
display: block;
font-size: 25rpx;
margin-bottom: 20rpx;
margin-top: 20rpx;
}
.top-box {
background-color: #fff;
border-radius: 14rpx;
height: 230rpx;
margin: 30rpx;
padding: 30rpx;
}
.box-text {
display: inline-block;
width: 70%;
}
.brand-text {
display: block;
font-size: 36rpx;
font-weight: 700;
height: 46rpx;
line-height: 46rpx;
}
.order-text {
color: #999;
margin: 20rpx 0;
}
.kilm-text,
.order-text {
display: block;
font-size: 30rpx;
}
.kilm-text {
background-color: #e8f3ff;
}
.kilm-text,
.none-text {
border-radius: 5rpx;
color: #3292ff;
height: 42rpx;
line-height: 42rpx;
text-align: center;
width: 200rpx;
}
.none-text {
display: block;
font-size: 30rpx;
}
.pai-text,
.type-text {
color: #ff6412;
display: inline-block;
font-size: 30rpx;
}
.type-text {
margin-right: 30rpx;
margin-top: 20rpx;
}
.box-img {
display: inline-block;
margin-top: 45rpx;
text-align: center;
vertical-align: top;
width: 30%;
}
.logo-img {
width: 160rpx;
}
.carpars-status {
display: block;
}
.single-pars {
display: inline-block;
text-align: center;
width: 25%;
}
.pars-desc {
border-radius: 50%;
color: #fff;
display: block;
font-size: 27rpx;
height: 80rpx;
line-height: 80rpx;
margin: auto;
text-align: center;
width: 80rpx;
}
.status-true {
background-color: #5ebb5b;
}
.status-false {
background-color: #f47e50;
}
.pars-title {
display: block;
margin-top: 10rpx;
}
.lineView {
background-color: #d8d8d8;
height: 1px;
margin: 20rpx auto;
width: 100%;
}
.content-view {
background-color: #fff;
border-radius: 14rpx;
margin: 30rpx;
padding: 30rpx;
}
.content-desc {
border-bottom: 1rpx solid #ddd;
height: 56rpx;
padding: 10rpx 30rpx 20rpx;
}
.content-title {
float: left;
font-size: 36rpx;
font-weight: 700;
}
.content-shuo,
.content-title {
height: 46rpx;
line-height: 46rpx;
}
.content-shuo {
color: #999;
float: right;
font-size: 27rpx;
}
.content-detail-single {
margin-top: 10rpx;
}
.content-left {
display: inline-block;
width: 8%;
}
.yuandian {
border-radius: 50%;
display: inline-block;
float: left;
height: 16rpx;
margin: 27rpx 20rpx 27rpx 0rpx;
width: 16rpx;
}
.first-dian {
background-color: #3e61f0;
}
.no-dian,
.shuline {
background-color: #e5e5e5;
}
.shuline {
display: inline-block;
height: 120rpx;
width: 1rpx;
}
.content-right {
display: inline-block;
width: 100%;
}
.veibao-title {
font-size: 36rpx;
font-weight: 700;
height: 70rpx;
line-height: 70rpx;
}
.veibao-time {
float: left;
}
.veibao-remark {
float: right;
font-size: 30rpx;
}
.remark-yang {
color: #389e0d;
}
.remark-xiu {
color: #fa8c16;
}
.remark-shi {
color: #ff4d4f;
}
.veibao-text {
background-color: #f8f8f8;
border-radius: 8rpx;
font-size: 30rpx;
padding: 20rpx;
}
.veibao-xiangmu {
padding: 10rpx;
}
.xiangmu-title {
color: #999;
display: inline-block;
vertical-align: top;
width: 28%;
}
.xiangmu-detail {
color: #666;
display: inline-block;
width: 72%;
}
.tiaobiao {
border-radius: 3rpx;
color: #fa8c16;
}

View File

@@ -0,0 +1,67 @@
var e, a;
(e = (function (e) {
return e && e.__esModule ? e : { default: e };
})(require("../../utils/apis.js"))),
(a = getApp()),
Page({
data: { orderInfo: null },
onLoad: function (e) {
this.getDetail(e.orderid);
},
getDetail: function (e) {
var n = this,
o = { orderid: e };
a.getdata(o, "vincxid").then((e) => {
if ((console.log("vin回调数据", e.data), e.data)) {
n.setData({ cardata: e.data[0] });
var a = JSON.parse(e.data[0].record);
console.log(a), n.setData({ orderInfo: a.result });
}
});
},
queryVinb: function () {
var a = this.data.orderInfo.seriousNo,
n = this.data.orderInfo.queryType,
o = this.data.orderInfo.name;
console.log("queryType:" + n),
e.default
.wxPay({
seriousNo: a,
openId: wx.getStorageSync("openId"),
money: this.data.orderInfo.money,
})
.then(function (e) {
wx.requestPayment({
timeStamp: e.data.timeStamp,
nonceStr: e.data.nonceStr,
package: e.data.package,
signType: e.data.signType,
paySign: e.data.sign,
success: function (e) {
wx.navigateTo({
url:
"/pages/successPage/successPage?seriousNo=" +
a +
"&queryType=" +
n +
"&name=" +
o,
});
},
fail: function (e) {
console.log(e);
},
});
});
},
toDisclaimers: function () {
wx.navigateTo({ url: "/pages/disclaimers/disclaimers" });
},
onReady: function () {},
onShow: function () {},
onHide: function () {},
onUnload: function () {},
onPullDownRefresh: function () {},
onReachBottom: function () {},
onShareAppMessage: function () {},
});

View File

@@ -0,0 +1,3 @@
{
"usingComponents": {}
}

View File

@@ -0,0 +1,112 @@
<view class="page-view" wx:if="{{cardata.url}}">
<web-view src="{{cardata.url}}"></web-view>
</view>
<view class="page-view">
<view class="top-title">
<text class="top-title-b">VIN车辆查询报告</text>
<text class="top-title-l">查询时间:{{cardata.time}}</text>
</view>
<view class="top-box">
<view class="box-text">
<view style="width: 130%;">
<text class="brand-text" style="display: inline;">{{orderInfo.brand}}</text>
<text class="order-text" style="display: inline;font-size: 24rpx">{{orderInfo.name}}</text>
</view>
<text class="order-text">VIN{{orderInfo.vin}}</text>
<text class="type-text">上市价:{{orderInfo.price}}</text>
</view>
<view class="box-img">
<image class="logo-img" mode="widthFix" src="{{orderInfo.logo}}"></image>
</view>
</view>
<view class="info-boxn">
<view class="content-view">
<view class="text-view first-top">
<text class="name-line">品牌</text>
<text class="info-line">{{orderInfo.brand}}</text>
</view>
<view class="text-view">
<text class="name-line">VIN</text>
<text class="info-line">{{orderInfo.vin}}</text>
</view>
<view class="text-view">
<text class="name-line">排放标准</text>
<text class="info-line">{{orderInfo.environmentalstandards}}</text>
</view>
<view class="text-view">
<text class="name-line">种类</text>
<text class="info-line">{{orderInfo.name}}</text>
</view>
<view class="text-view">
<text class="name-line">厂商</text>
<text class="info-line">{{orderInfo.manufacturer}}</text>
</view>
<view class="text-view">
<text class="name-line">年份</text>
<text class="info-line">{{orderInfo.yeartype}}</text>
</view>
<view class="text-view">
<text class="name-line">油耗</text>
<text class="info-line">{{orderInfo.comfuelconsumption}}</text>
</view>
<view class="text-view">
<text class="name-line">发动机</text>
<text class="info-line">{{orderInfo.engine}}</text>
</view>
<view class="text-view">
<text class="name-line">燃油</text>
<text class="info-line">{{orderInfo.fueltype}}</text>
</view>
<view class="text-view">
<text class="name-line">变速箱</text>
<text class="info-line">{{orderInfo.gearbox}}</text>
</view>
<view class="text-view">
<text class="name-line">驱动方式</text>
<text class="info-line">{{orderInfo.drivemode}}</text>
</view>
<view class="text-view">
<text class="name-line">车形</text>
<text class="info-line">{{orderInfo.fronttiresize}}</text>
</view>
<view class="text-view">
<text class="name-line">排量</text>
<text class="info-line">{{orderInfo.displacement}}</text>
</view>
<view class="text-view">
<text class="name-line">汽油类型</text>
<text class="info-line">{{orderInfo.fuelgrade}}</text>
</view>
<view class="text-view">
<text class="name-line">上市价</text>
<text class="info-line">{{orderInfo.price}}</text>
</view>
<view class="text-view">
<text class="name-line">喷嘴</text>
<text class="info-line">{{orderInfo.fuelmethod}}</text>
</view>
<view class="text-view">
<text class="name-line">机油</text>
<text class="info-line">{{orderInfo.machineoil.grade}} {{orderInfo.machineoil.level}} {{orderInfo.machineoil.viscosity}} {{orderInfo.machineoil.volume}}</text>
</view>
<view class="text-view">
<text class="name-line">别名</text>
<text class="info-line">{{orderInfo.groupname}}</text>
</view>
<view class="content-desc">
<text class="content-title">该车配置</text>
<text class="content-shuo">* 数据来自第三方,仅作参考</text>
</view>
<view class="veibao-text" wx:if="{{orderInfo.carlist.length>0}}" wx:for="{{orderInfo.carlist}}" wx:key="index">
<view class="veibao-xiangmu">
<text class="xiangmu-title">配置{{index+1}}</text>
<text class="xiangmu-detail">{{item.name}}</text>
</view>
<view class="veibao-xiangmu">
<text class="xiangmu-title">品牌</text>
<text class="xiangmu-detail">{{item.typename}}</text>
</view>
</view>
</view>
</view>
</view>

View File

@@ -0,0 +1,307 @@
.search-title {
font-size: 50rpx;
font-weight: 700;
margin-bottom: 60rpx;
margin-top: 80rpx;
text-align: center;
}
.info-box {
background-attachment: fixed;
background-image: url(https://file.bigfishfarming.com/file/car_icon/info-bg@2.png);
background-position: 22rpx;
background-repeat: no-repeat;
background-size: 711rpx 820rpx;
height: 100%;
}
.name-line {
display: inline-block;
width: 160rpx;
}
.image-view {
height: 80rpx;
padding-top: 80rpx;
text-align: center;
}
.image-width {
width: 60px;
}
.logo-iamge {
border-radius: 50%;
display: inline-block;
height: 120rpx;
overflow: hidden;
}
.text-view {
color: #9f9f9f;
margin-left: 100rpx;
margin-top: 44rpx;
}
.first-top {
margin-top: 80rpx;
}
.info-line {
color: #000;
}
.special-text {
color: red;
}
.none-text {
display: none;
}
.text-money {
font-size: 35rpx;
margin-top: 95rpx;
text-align: center;
}
.info-money {
color: #e2864b;
font-weight: 700;
}
.search-button {
background: #3d61f0 !important;
border-radius: 10rpx;
color: #fff !important;
height: 100rpx !important;
line-height: 100rpx !important;
padding: 0rpx !important;
width: 92% !important;
}
.guite-info {
color: #9f9f9f;
font-size: 27rpx;
margin-top: 40rpx;
text-align: center;
}
.page-text {
color: #3d61f0;
}
.free-money {
color: #9f9f9f;
font-weight: 700;
text-decoration: line-through;
}
page {
background: #f8f8f8;
}
.page-view {
background: linear-gradient(#3960fe, #4e71fc, #f8f8f8);
height: 495rpx;
width: 100%;
}
.top-title {
color: #fff;
padding-top: 30rpx;
text-align: center;
}
.top-title-b {
display: block;
font-size: 50rpx;
font-weight: 700;
}
.top-title-l {
display: block;
font-size: 25rpx;
margin-bottom: 20rpx;
margin-top: 20rpx;
}
.top-box {
background-color: #fff;
border-radius: 14rpx;
height: 230rpx;
margin: 30rpx;
padding: 30rpx;
}
.box-text {
display: inline-block;
width: 70%;
}
.brand-text {
display: block;
font-size: 36rpx;
font-weight: 700;
height: 46rpx;
line-height: 46rpx;
}
.order-text {
color: #999;
margin: 20rpx 0;
}
.kilm-text,
.order-text {
display: block;
font-size: 30rpx;
}
.kilm-text {
background-color: #e8f3ff;
}
.kilm-text,
.none-text {
border-radius: 5rpx;
color: #3292ff;
height: 42rpx;
line-height: 42rpx;
text-align: center;
width: 200rpx;
}
.none-text {
display: block;
font-size: 30rpx;
}
.pai-text,
.type-text {
color: #ff6412;
display: inline-block;
font-size: 30rpx;
}
.type-text {
margin-right: 30rpx;
margin-top: 20rpx;
}
.box-img {
display: inline-block;
margin-top: 45rpx;
text-align: center;
vertical-align: top;
width: 30%;
}
.logo-img {
width: 160rpx;
}
.carpars-status {
display: block;
}
.single-pars {
display: inline-block;
text-align: center;
width: 25%;
}
.pars-desc {
border-radius: 50%;
color: #fff;
display: block;
font-size: 27rpx;
height: 80rpx;
line-height: 80rpx;
margin: auto;
text-align: center;
width: 80rpx;
}
.status-true {
background-color: #5ebb5b;
}
.status-false {
background-color: #f47e50;
}
.pars-title {
display: block;
margin-top: 10rpx;
}
.lineView {
background-color: #d8d8d8;
height: 1px;
margin: 20rpx auto;
width: 100%;
}
.content-view {
background-color: #fff;
border-radius: 14rpx;
margin: 30rpx;
padding: 30rpx;
}
.content-desc {
border-bottom: 1rpx solid #ddd;
height: 56rpx;
padding: 10rpx 30rpx 20rpx;
}
.content-title {
float: left;
font-size: 36rpx;
font-weight: 700;
}
.content-shuo,
.content-title {
height: 46rpx;
line-height: 46rpx;
}
.content-shuo {
color: #999;
float: right;
font-size: 27rpx;
}
.content-detail-single {
margin-top: 10rpx;
}
.content-left {
display: inline-block;
width: 8%;
}
.yuandian {
border-radius: 50%;
display: inline-block;
float: left;
height: 16rpx;
margin: 27rpx 20rpx 27rpx 0rpx;
width: 16rpx;
}
.first-dian {
background-color: #3e61f0;
}
.no-dian,
.shuline {
background-color: #e5e5e5;
}
.shuline {
display: inline-block;
height: 120rpx;
width: 1rpx;
}
.content-right {
display: inline-block;
width: 100%;
}
.veibao-title {
font-size: 36rpx;
font-weight: 700;
height: 70rpx;
line-height: 70rpx;
}
.veibao-time {
float: left;
}
.veibao-remark {
float: right;
font-size: 30rpx;
}
.remark-yang {
color: #389e0d;
}
.remark-xiu {
color: #fa8c16;
}
.remark-shi {
color: #ff4d4f;
}
.veibao-text {
background-color: #f8f8f8;
border-radius: 8rpx;
font-size: 30rpx;
padding: 20rpx;
}
.veibao-xiangmu {
padding: 10rpx;
}
.xiangmu-title {
color: #999;
display: inline-block;
vertical-align: top;
width: 28%;
}
.xiangmu-detail {
color: #666;
display: inline-block;
width: 72%;
}
.tiaobiao {
border-radius: 3rpx;
color: #fa8c16;
}

View File

@@ -0,0 +1,274 @@
!(function () {
var a = getApp(),
e = getApp();
!(function (a) {
a && a.__esModule;
})(require("../../utils/apis.js"));
Page({
data: {
regdate: "",
mileage: "",
carName: "",
cityName: "",
cityid: 0,
provid: 0,
carId: 0,
page: 1,
type: 4,
},
mileageChanage: function (a) {
this.setData({ mileage: a.detail.value });
},
saoys: function (a) {
wx.navigateTo({ url: "../xszsb/xszsb?type=2" });
},
queryVolation: function () {
if (wx.getStorageSync("uid")) {
var e = this;
this.tongzhi(),
e.data.mileage
? 17 == e.data.mileage.length
? "iosb" == a.getSystemPlatform()
? wx.showModal({
title: "温馨提示",
content: "iOS不支持小程序请使用公众号查询",
success: function (a) {
a.confirm
? wx.navigateTo({
url:
"/pages/website/website?url=https://mp.weixin.qq.com/s?__biz=MzIwOTYxMTI2Nw==&mid=2247483888&idx=1&sn=1f5deda3e1a2d5e109dfaf8000520030&chksm=97707e9ca007f78a7ade8b1b57eda40183c6de47a6a115836fdb77748fc248c320a29e3309c6&token=1742855998&lang=zh_CN#rd&img=" +
wx.getStorageSync("gzhurl"),
})
: console.log("点击取消回调");
},
})
: e.queryVin()
: wx.showToast({
title: "车架号错误,请输入正确的车架号",
icon: "none",
duration: 2e3,
})
: wx.showToast({
title: "车架号不能为空",
icon: "none",
duration: 2e3,
});
} else
wx.showModal({
title: "温馨提示",
content: "请去个人中心授权登录用户信息",
success: function (a) {
a.confirm
? wx.reLaunch({ url: "/pages/mine/index" })
: console.log("点击取消回调");
},
});
},
orderid: function () {
let a = "";
for (var e = 0; e < 8; e++) a += Math.floor(10 * Math.random());
(a = "D" + new Date().getTime() + a), this.setData({ orderid: a });
},
queryVin: function () {
var a = this;
a.orderid(),
console.log(wx.getStorageSync("uid")),
wx.getStorageSync("uid")
? (console.log(wx.getStorageSync("uid")),
e.util.request({
url: "entry/wxapp/paynum",
method: "post",
dataType: "json",
data: {
m: "monai_market",
type: "vin_money",
orderid: a.data.orderid,
uid: wx.getStorageSync("uid"),
postcardata: JSON.stringify(a.data),
},
success: function (t) {
t.data && t.data.data && 1e3 == t.data.message
? e.util.request({
url: "entry/wxapp/Api",
data: {
m: "monai_market",
uid: wx.getStorageSync("uid"),
r: "home.weizhang.paynum",
orderid: t.data.data.orderid,
},
success: function (e) {
wx.showModal({ content: e.data.message }),
a.setData({
weizhang_num: 1 * a.data.weizhang_num + 10,
}),
a.getDetailpay();
},
})
: t.data &&
t.data.data &&
!t.data.errno &&
wx.requestPayment({
timeStamp: t.data.data.timeStamp,
nonceStr: t.data.data.nonceStr,
package: t.data.data.package,
signType: "MD5",
paySign: t.data.data.paySign,
success: function (n) {
e.util.request({
url: "entry/wxapp/Api",
data: {
m: "monai_market",
uid: wx.getStorageSync("uid"),
r: "home.weizhang.paynum",
orderid: t.data.data.orderid,
},
success: function (e) {
a.setData({
weizhang_num: 1 * a.data.weizhang_num + 10,
}),
wx.showModal({ content: e.data.message }),
a.getDetailpay();
},
});
},
});
},
}))
: wx.showModal({
title: "温馨提醒",
content: "使用本功能请先登录后在使用~",
showCancel: !1,
success: function (a) {
a.confirm && wx.reLaunch({ url: "/pages/mine/index" });
},
});
},
getDetailpay: function () {
var e = this,
t = {
uid: wx.getStorageSync("uid"),
vin: e.data.mileage,
orderid: e.data.orderid,
};
a.getdata(t, "vincx").then((a) => {
wx.navigateTo({
url: "/packageA/pages/carvin/carvin?orderid=" + e.data.orderid,
}),
console.log("vin回调数据", a.data),
a.data;
});
},
tongzhi: function (e) {
a.getdata({ type: "4" }, "getdyxx").then((e) => {
console.log(e.data),
wx.requestSubscribeMessage({
tmplIds: [e.data],
success(t) {
"accept" == t[e.data]
? (wx.showToast({ title: "订阅成功" }),
a.util.request({
url: "entry/wxapp/addtemplateid",
data: { templateid: e.data, uid: wx.getStorageSync("uid") },
header: { "content-type": "application/json" },
success: function (a) {
console.log(a);
},
}))
: wx.showToast({ title: "订阅失败" });
},
});
});
},
toDetailExample: function () {
wx.navigateTo({ url: "../carvin/carvin?orderid=D163750614515331518116" });
},
onLoad: function (a) {
wx.getStorageSync("uid") || getApp().wxlogin(),
this.orderid(),
wx.removeStorageSync("cardata"),
wx.removeStorageSync("carvehicle"),
wx.removeStorageSync("carprov"),
wx.removeStorageSync("carcity"),
wx.removeStorageSync("cartime"),
wx.removeStorageSync("cardatawx");
},
onReady: function () {},
onShow: function () {
a.appdengl();
var e = wx.getStorageSync("cardata");
console.log("行驶证数据", e),
console.log("行驶证照片", wx.getStorageSync("xszimgurl")),
e &&
this.setData({
mileage: e.车辆识别代号.words,
engine: e.发动机号码.words,
});
var t = wx.getStorageSync("carvehicle"),
n = wx.getStorageSync("carprov"),
o = wx.getStorageSync("carcity"),
i = wx.getStorageSync("cartime"),
r = "";
"" != o && null != o && (r = n.name + "-" + o.name),
console.log("" == t),
"" != t &&
"" != i &&
parseInt(i.split("-")[0]) < parseInt(t.makeyear) &&
(i = ""),
this.setData({
carName: t.salesdesc,
cityName: r,
regdate: i,
cityid: o.id,
provid: n.id,
carId: t.autohomeid,
}),
this.getDetail(1);
},
onPullDownRefresh: function () {
this.clearCache(), this.getArticles(1);
},
onReachBottom: function () {
console.log("加上"), this.getDetail(this.data.page);
},
clearCache: function () {
this.setData({ repairList: [], page: 1 });
},
getDetail: function (e) {
var t = this,
n = { uid: wx.getStorageSync("uid"), type: t.data.type, page: e };
a.getdata(n, "carqxcx").then((a) => {
if ((console.log("回调数据:", a), a.data && 0 == a.errno))
if (1 == e) t.setData({ repairList: a.data, page: t.data.page + 1 });
else {
var n = t.data.repairList;
n.push.apply(n, a.data),
t.setData({ repairList: n, page: t.data.page + 1 });
}
});
},
onHide: function () {},
onUnload: function () {},
onShareAppMessage: function () {},
showRenMsg: function () {
wx.showToast({
title: "人工查询中,请稍等",
icon: "none",
duration: 3e3,
});
},
showGaoMsg: function () {
wx.showToast({
title: "查不到记录,建议使用高级出险查询。",
icon: "none",
duration: 3e3,
});
},
getDangerDetail: function (a) {
var e = a.currentTarget.dataset.orderid;
wx.navigateTo({
url: "/packageA/pages/carvin/carvin?orderid=" + e,
success: function () {},
});
},
});
})();

View File

@@ -0,0 +1,3 @@
{
"usingComponents": {}
}

View File

@@ -0,0 +1,38 @@
<view class="search-title">车架号VIN信息查询</view>
<view class="search-text">车辆车架号VIN查询输入17位VIN车辆识别代码查询车辆的品牌、公司、车型、年款、排量等基本信息同时返回机油用量、机油型号</view>
<view>
<input bindinput="mileageChanage" class="vin-input" maxlength="17" placeholder="车辆识别码/车架号" type="text" value="{{mileage}}"></input>
<view style="display:inline-block;width:75rpx;margin-left:25rpx;">
<navigator bindtap="saoys" class="camera-nav" hoverClass="none" selectedOptions="{{['plateNum','vehicleType','owner']}}">
<image class="camera-img" src="/assets/images/scan.png"></image>
<text style="font-size:24rpx;">扫一扫</text>
</navigator>
</view>
</view>
<button bindtap="queryVolation" class="search-button">开始查询</button>
<view class="help-view">
<text bindtap="toDetailExample" class="help-example">样例报告</text>
<text bindtap="toHelpVin" class="help-wht">扫一扫识别更快</text>
</view>
<view style="height:10rpx;"></view>
<view class="topbb">
<view class="title">
<view class="main">车辆信息查询记录{{repairList.length}}条</view>
</view>
<view data-index="{{index}}" wx:for="{{repairList}}" wx:key="index">
<view class="contentView">
<text bindtap="copyText" class="orderNum" data-text="{{item.vin}}">订单编号:{{item.orderid}}</text>
<view class="lineView"></view>
<view bindtap="{{item.queryStatus=='2'?'getDangerDetail':item.queryStatus=='4'?'showRenMsg':item.queryStatus=='3'?'showGaoMsg':''}}" data-brand="{{item.car}}" data-logo="{{item.logo}}" data-orderid="{{item.orderid}}" data-querytype="{{item.queryType}}" data-time="{{item.queryTimeStr}}" data-version="{{item.queryVersion}}">
<image class="logo-img" mode="widthFix" src="{{item.logo}}"></image>
<view class="text-view">
<text class="name-text">{{item.car}}</text>
<text class="statusView {{item.queryStatus=='1'?'underwayView':item.queryStatus=='2'?'ingView':item.queryStatus=='4'?'underwayView':'successView'}}">{{item.queryStatus=='1'?'查询中...':item.queryStatus=='2'?'已出报告':item.queryStatus=='4'?'人工处理':'无记录'}}</text>
<text class="{{item.hasRefund=='2'?'refundView successView':'noneView'}}">{{item.hasRefund=='2'?'已退款':'退款中...'}}</text>
<text class="hui-text">VIN:{{item.vin}}</text>
<text class="hui-text">{{item.time}}</text>
</view>
</view>
</view>
</view>
</view>

View File

@@ -0,0 +1,151 @@
@import "/graceUI/reporlist.wxss";
.topbb {
height: 215px;
margin: 10px;
top: 20px;
}
.top,
.topbb {
position: relative;
}
.top {
height: 135px;
}
.top .title .main {
background: #3d61f0;
border: 1px solid #3d61f0;
border-radius: 0.5rem 3rem 3rem 3rem;
color: #fff;
display: inline-block;
font-weight: 300;
margin: 16px 10px 10px;
padding: 8px;
}
.top .title .sub {
color: #636364;
font-size: 1rem;
font-weight: 300;
margin: 10px;
width: 180px;
}
.top image {
bottom: -1rem;
position: absolute;
right: 0;
width: 10rem;
z-index: 10;
}
.search-title {
font-size: 50rpx;
font-weight: 700;
margin-bottom: 60rpx;
margin-top: 150rpx;
text-align: center;
}
.search-text {
border-radius: 10rpx;
color: #86868b;
font-size: 35rpx;
font-size: 34rpx;
line-height: 40rpx;
margin: auto auto 120rpx;
width: 89%;
}
.vin-input {
background: #f2f2f2;
display: inline-block;
font-size: 46rpx;
height: 80rpx;
margin-left: 30rpx;
padding: 10rpx 30rpx;
width: 70%;
}
.search-button {
background: #3d61f0 !important;
border-radius: 10rpx;
color: #fff !important;
height: 100rpx !important;
line-height: 100rpx !important;
margin-top: 40rpx;
padding: 0rpx !important;
width: 93% !important;
}
.help-view {
font-size: 31rpx;
padding: 30rpx;
}
.help-example {
color: #3d61f0;
float: left;
}
.help-wht {
color: #f0803e;
float: right;
}
.camera-nav {
display: inline-block;
}
.camera-img {
height: 66rpx;
margin-bottom: -14rpx;
width: 75rpx;
}
.driver_mask {
background: #000;
height: 100%;
left: 0;
opacity: 0.5;
position: fixed;
top: 0;
width: 100%;
z-index: 9000;
}
.driver_modalDlg {
align-items: center;
background-color: #fff;
border-radius: 5px;
display: -webkit-flex;
display: flex;
flex-direction: column;
left: 0;
margin: 0 auto;
position: fixed;
right: 0;
top: 25%;
width: 80%;
z-index: 9999;
}
.driver_ok {
background: #3d61f0;
border-radius: 8rpx;
color: #fff;
display: block;
font-size: 15px;
height: 35px;
line-height: 35px;
margin: 20px auto;
text-align: center;
width: 80px;
}
.driver_text {
color: #666;
display: block;
font-size: 32rpx;
line-height: 40rpx;
margin: 30rpx;
}
.driver_ocr {
margin: 0 auto;
width: 80px;
}
.driver_ocr,
.show_modal {
display: block;
}
.hide_modal {
display: none;
}
.driver_img {
margin-left: 10%;
width: 80%;
}