更换版本

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,110 @@
var a, e;
(a = (function (a) {
return a && a.__esModule ? a : { default: a };
})(require("../../utils/apis.js"))),
(e = getApp()),
Page({
data: { orderInfo: null },
onLoad: function (a) {
var e = wx.getStorageSync("orderInfo");
this.setData({ orderInfo: e });
},
queryVin: function () {
var a = this,
t = wx.getStorageSync("userid");
e.util.request({
url: "entry/wxapp/Payordeo",
cachetime: "0",
data: { typeid: 6, openid: t, vin: a.data.orderInfo.vin },
success(e) {
e.data &&
e.data.data &&
!e.data.errno &&
(console.log(e.data),
wx.requestPayment({
timeStamp: e.data.data.timeStamp,
nonceStr: e.data.data.nonceStr,
package: e.data.data.package,
signType: "MD5",
paySign: e.data.data.paySign,
success: function (e) {
a.getDetail();
},
fail: function (a) {},
}));
},
fail(a) {
wx.showModal({
title: "温馨提醒",
content: a.data.message ? a.data.message : "错误",
showCancel: !1,
success: function (a) {
a.confirm;
},
});
},
});
},
getDetail: function () {
var a = this,
t = {
openid: wx.getStorageSync("userid"),
vin: a.data.orderInfo.vin,
logo: a.data.orderInfo.logo,
car: a.data.orderInfo.brand,
cars: a.data.orderInfo.typeName,
};
e.getdata(t, "carjqx").then((e) => {
console.log("回调数据:", e.data),
wx.navigateTo({
url: "/pages/carjqx/carcxjl?vin=" + a.data.orderInfo.vin,
}),
(e = e.data).data && a.setData({ order: e.data.result });
});
},
queryVinb: function () {
var e = this.data.orderInfo.seriousNo,
t = this.data.orderInfo.queryType,
n = this.data.orderInfo.name;
console.log("queryType:" + t),
a.default
.wxPay({
seriousNo: e,
openId: wx.getStorageSync("openId"),
money: this.data.orderInfo.money,
})
.then(function (a) {
wx.requestPayment({
timeStamp: a.data.timeStamp,
nonceStr: a.data.nonceStr,
package: a.data.package,
signType: a.data.signType,
paySign: a.data.sign,
success: function (a) {
wx.navigateTo({
url:
"/pages/successPage/successPage?seriousNo=" +
e +
"&queryType=" +
t +
"&name=" +
n,
});
},
fail: function (a) {
console.log(a);
},
});
});
},
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,4 @@
{
"navigationBarTitleText": "汽车OBD故障查询",
"usingComponents": {}
}

View File

@@ -0,0 +1,28 @@
<view class="search-title">请确认以下信息</view>
<view class="info-box">
<view class="image-view">
<image class="logo-iamge image-width" mode="heightFix" src="{{orderInfo.logo}}"></image>
</view>
<view class="text-view first-top">
<text class="name-line">品牌</text>
<text class="info-line">{{orderInfo.brand}}</text>
<text class="special-text {{orderInfo.specialCar==1?'':'none-text'}}"> 特殊品牌</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.groupname}}</text>
</view>
<view class="text-view">
<text class="name-line">厂商</text>
<text class="info-line">{{orderInfo.manufacturer}}</text>
</view>
<view class="text-money">本次查询需要支付<text class="free-money {{orderInfo.queryType==3?'':'none-text'}}">¥{{orderInfo.tMoney}} </text>
<text class="info-money">¥{{orderInfo.money}}</text>元</view>
</view>
<button bindtap="queryVin" class="search-button">确认查询</button>
<view class="guite-info">默认支付同意<text bindtap="toDisclaimers" class="page-text">《平台免责声明》</text>
</view>

View File

@@ -0,0 +1,82 @@
.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: 830rpx;
}
.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;
}

View File

@@ -0,0 +1,37 @@
var a;
(a = getApp()),
Page({
data: { serviceSumCount: 0, serviceSumMoney: 0 },
onLoad: function (a) {
this.getDetail(a.id), this.setData({ id: a.id });
},
getDetail: function (t) {
var e = this,
o = { openid: wx.getStorageSync("userid"), id: t };
a.getdata(o, "obdjcid").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.data });
}
});
},
onReady: function () {},
onShow: function () {},
onHide: function () {},
onUnload: function () {},
onPullDownRefresh: function () {},
onReachBottom: function () {},
onShareAppMessage: function () {
return {
title: this.data.cardata.obd + "故障码报告",
path: "/packageA/pages/carobd/carcxjl?id=" + this.data.id,
};
},
onShareTimeline: function () {
return {
title: this.data.cardata.obd + "故障码报告",
path: "packageA/pages/carobd/carcxjl?id=" + this.data.id,
};
},
});

View File

@@ -0,0 +1,4 @@
{
"navigationBarTitleText": "汽车OBD故障查询",
"usingComponents": {}
}

View File

@@ -0,0 +1,56 @@
<view class="page-view">
<view class="top-title">
<text class="top-title-b">OBD故障检测报告</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;">OBD故障码{{cardata.obd}}</text>
<text class="order-text" style="display: inline;font-size: 24rpx">{{cardata.cars}}</text>
</view>
<text class="none-text"></text>
<text class="type-text">故障范围:{{records.gzfw}}</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}}">
<view class="content-detail-single">
<view class="content-right">
<view class="veibao-title">
<text class="{{index==0?'yuandian first-dian':'yuandian no-dian'}}"></text>
</view>
<view class="veibao-text">
<view class="veibao-xiangmu">
<text class="xiangmu-title">出故障码</text>
<text class="xiangmu-detail">{{records.code}}</text>
</view>
<view class="veibao-xiangmu">
<text class="xiangmu-title">故障范围</text>
<text class="xiangmu-detail">{{records.gzfw}}</text>
</view>
<view class="veibao-xiangmu">
<text class="xiangmu-title">故障描述</text>
<text class="xiangmu-detail">{{records.ms}}</text>
</view>
<view class="veibao-xiangmu">
<text class="xiangmu-title">中文含义</text>
<text class="xiangmu-detail">{{records.zwhy}}</text>
</view>
<view class="veibao-xiangmu">
<text class="xiangmu-title">英文含义</text>
<text class="xiangmu-detail">{{records.ywhy}}</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,95 @@
!(function () {
var e = getApp();
!(function (e) {
e && e.__esModule;
})(require("../../utils/apis.js"));
Page({
data: {
regdate: "",
mileage: "",
carName: "",
cityName: "",
cityid: 0,
provid: 0,
carId: 0,
},
mileageChanage: function (e) {
this.setData({ mileage: e.detail.value });
},
queryVolation: function () {
this.tongzhi(),
this.data.mileage
? this.getDetail()
: wx.showToast({
title: "请输入OBD故障码",
icon: "none",
duration: 2e3,
});
},
getDetail: function () {
var t = { uid: wx.getStorageSync("uid"), obd: this.data.mileage };
e.getdata(t, "obdjc").then((e) => {
console.log("回调数据:", e.data),
e.data && wx.navigateTo({ url: "../carobd/carcxjl?id=" + e.data });
});
},
tongzhi: function (t) {
e.getdata({ type: "4" }, "getdyxx").then((t) => {
console.log(t.data),
wx.requestSubscribeMessage({
tmplIds: [t.data],
success(a) {
"accept" == a[t.data]
? (wx.showToast({ title: "订阅成功" }),
e.util.request({
url: "entry/wxapp/addtemplateid",
data: { templateid: t.data, uid: wx.getStorageSync("uid") },
header: { "content-type": "application/json" },
success: function (e) {
console.log(e);
},
}))
: wx.showToast({ title: "订阅失败" });
},
});
});
},
toDetailExample: function () {
wx.navigateTo({ url: "../carobd/carcxjl?id=6" });
},
onLoad: function (e) {
wx.getStorageSync("uid") || getApp().wxlogin(),
wx.removeStorageSync("carvehicle"),
wx.removeStorageSync("carprov"),
wx.removeStorageSync("carcity"),
wx.removeStorageSync("cartime"),
wx.removeStorageSync("cardatawx");
},
onReady: function () {},
onShow: function () {
var e = wx.getStorageSync("carvehicle"),
t = wx.getStorageSync("carprov"),
a = wx.getStorageSync("carcity"),
o = wx.getStorageSync("cartime"),
n = "";
"" != a && null != a && (n = t.name + "-" + a.name),
console.log("" == e),
"" != e &&
"" != o &&
parseInt(o.split("-")[0]) < parseInt(e.makeyear) &&
(o = ""),
this.setData({
carName: e.salesdesc,
cityName: n,
regdate: o,
cityid: a.id,
provid: t.id,
carId: e.autohomeid,
});
},
onHide: function () {},
onUnload: function () {},
onPullDownRefresh: function () {},
onReachBottom: function () {},
});
})();

View File

@@ -0,0 +1,4 @@
{
"navigationBarTitleText": "汽车OBD故障查询",
"usingComponents": {}
}

View File

@@ -0,0 +1,13 @@
<view class="search-title">汽车OBD故障码查询</view>
<view class="search-text">车OBD故障码查询返回中文含义、英文含义、故障范围、描述等</view>
<view>
<input bindinput="mileageChanage" class="vin-input" maxlength="17" placeholder="OBD故障码" type="text" value="{{mileage}}"></input>
<view style="display:inline-block;width:75rpx;margin-left:25rpx;"></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>
<import src="../footer/footer.wxml"></import>
<template is="item" data="{{text:'forbar'}}"></template>

View File

@@ -0,0 +1,114 @@
.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: 85%;
}
.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%;
}