更换版本
This commit is contained in:
164
packageA/pages/carwb/carInfo.js
Normal file
164
packageA/pages/carwb/carInfo.js
Normal file
@@ -0,0 +1,164 @@
|
||||
var a, e, t;
|
||||
(a = (function (a) {
|
||||
return a && a.__esModule ? a : { default: a };
|
||||
})(require("../../utils/apis.js"))),
|
||||
(e = getApp()),
|
||||
(t = getApp()),
|
||||
Page({
|
||||
data: { orderInfo: null, phone: e.getSystemPlatform() },
|
||||
onLoad: function (a) {
|
||||
var e = wx.getStorageSync("orderInfo");
|
||||
this.setData({ orderInfo: e }), this.getmoney();
|
||||
},
|
||||
getmoney: function () {
|
||||
var a = this,
|
||||
t = { type: "weibao_money", uid: wx.getStorageSync("uid") };
|
||||
e.getdata(t, "getcarmoney").then((e) => {
|
||||
console.log("money", e.data), e.data && a.setData({ fee: e.data });
|
||||
});
|
||||
},
|
||||
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")),
|
||||
t.util.request({
|
||||
url: "entry/wxapp/paynum",
|
||||
data: {
|
||||
m: "monai_market",
|
||||
type: "weibao_money",
|
||||
orderid: a.data.orderid,
|
||||
uid: wx.getStorageSync("uid"),
|
||||
},
|
||||
success: function (e) {
|
||||
e.data && e.data.data && 1e3 == e.data.message
|
||||
? t.util.request({
|
||||
url: "entry/wxapp/Api",
|
||||
data: {
|
||||
m: "monai_market",
|
||||
uid: wx.getStorageSync("uid"),
|
||||
r: "home.weizhang.paynum",
|
||||
orderid: e.data.data.orderid,
|
||||
},
|
||||
success: function (e) {
|
||||
wx.showModal({ content: e.data.message }),
|
||||
a.setData({
|
||||
weizhang_num: 1 * a.data.weizhang_num + 10,
|
||||
}),
|
||||
a.getDetail();
|
||||
},
|
||||
})
|
||||
: e.data &&
|
||||
e.data.data &&
|
||||
!e.data.errno &&
|
||||
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 (n) {
|
||||
t.util.request({
|
||||
url: "entry/wxapp/Api",
|
||||
data: {
|
||||
m: "monai_market",
|
||||
uid: wx.getStorageSync("uid"),
|
||||
r: "home.weizhang.paynum",
|
||||
orderid: e.data.data.orderid,
|
||||
},
|
||||
success: function (e) {
|
||||
a.setData({
|
||||
weizhang_num: 1 * a.data.weizhang_num + 10,
|
||||
}),
|
||||
wx.showModal({ content: e.data.message }),
|
||||
a.getDetail();
|
||||
},
|
||||
});
|
||||
},
|
||||
});
|
||||
},
|
||||
}))
|
||||
: wx.showModal({
|
||||
title: "温馨提醒",
|
||||
content: "使用本功能请先登录后在使用~",
|
||||
showCancel: !1,
|
||||
success: function (a) {
|
||||
a.confirm && wx.reLaunch({ url: "/pages/mine/index" });
|
||||
},
|
||||
});
|
||||
},
|
||||
getDetail: function () {
|
||||
var a = this,
|
||||
t = {
|
||||
uid: wx.getStorageSync("uid"),
|
||||
frameno: a.data.orderInfo.vin,
|
||||
logo: a.data.orderInfo.logo,
|
||||
car: a.data.orderInfo.brand,
|
||||
cars: a.data.orderInfo.typeName,
|
||||
orderid: a.data.orderid,
|
||||
};
|
||||
e.getdata(t, "wxjlcx").then((e) => {
|
||||
console.log("回调数据:", e.data),
|
||||
wx.showModal({
|
||||
title: "查询成功",
|
||||
content: "结果将在5-10分钟通知你,不成功自动退款~",
|
||||
showCancel: !1,
|
||||
success: function (a) {
|
||||
a.confirm && wx.reLaunch({ url: "/pages/reporlist/reporlist" });
|
||||
},
|
||||
}),
|
||||
e.data && a.setData({ order: e.data });
|
||||
});
|
||||
},
|
||||
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 () {},
|
||||
});
|
||||
3
packageA/pages/carwb/carInfo.json
Normal file
3
packageA/pages/carwb/carInfo.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
34
packageA/pages/carwb/carInfo.wxml
Normal file
34
packageA/pages/carwb/carInfo.wxml
Normal file
@@ -0,0 +1,34 @@
|
||||
<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 wx:if="{{phone!=ios}}">
|
||||
<view class="text-money">本次查询需要支付 <text class="free-money {{orderInfo.queryType==3?'':'none-text'}}">¥{{fee}}</text>
|
||||
<text class="info-money">¥{{fee}}</text>元 </view>
|
||||
</view>
|
||||
<view wx:if="{{phone==ios}}">
|
||||
<view class="text-money" wx:if="{{order.data.open==1}}">本次查询需要支付 <text class="free-money {{orderInfo.queryType==3?'':'none-text'}}">¥{{fee}}</text>
|
||||
<text class="info-money">¥{{fee}}</text>元 </view>
|
||||
</view>
|
||||
</view>
|
||||
<button bindtap="queryVin" class="search-button">确认查询</button>
|
||||
<view class="guite-info">默认支付同意<text bindtap="toDisclaimers" class="page-text">《平台免责声明》</text>
|
||||
</view>
|
||||
82
packageA/pages/carwb/carInfo.wxss
Normal file
82
packageA/pages/carwb/carInfo.wxss
Normal 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;
|
||||
}
|
||||
35
packageA/pages/carwb/carwxjl.js
Normal file
35
packageA/pages/carwb/carwxjl.js
Normal file
@@ -0,0 +1,35 @@
|
||||
var a;
|
||||
(a = getApp()),
|
||||
Page({
|
||||
data: {},
|
||||
onLoad: function (a) {
|
||||
this.getDetail(a.vin);
|
||||
},
|
||||
getDetail: function (t) {
|
||||
var n = this,
|
||||
e = { openid: wx.getStorageSync("userid"), frameno: t };
|
||||
a.getdata(e, "wxjlid").then((a) => {
|
||||
console.log("回调数据:", a), n.setData({ vin: t, cardata: a.data });
|
||||
var e = JSON.parse(a.data.record);
|
||||
console.log(e), n.setData({ records: e.result });
|
||||
});
|
||||
},
|
||||
onReady: function () {},
|
||||
onShow: function () {},
|
||||
onHide: function () {},
|
||||
onUnload: function () {},
|
||||
onPullDownRefresh: function () {},
|
||||
onReachBottom: function () {},
|
||||
onShareAppMessage: function () {
|
||||
return {
|
||||
title: this.data.cardata.cars + "碰撞维修出险报告",
|
||||
path: "/pages/carwxjl/carwxjl?vin=" + this.data.vin,
|
||||
};
|
||||
},
|
||||
onShareTimeline: function () {
|
||||
return {
|
||||
title: this.data.cardata.cars + "碰撞维修出险报告",
|
||||
path: "/pages/carwxjl/carwxjl?vin=" + this.data.vin,
|
||||
};
|
||||
},
|
||||
});
|
||||
5
packageA/pages/carwb/carwxjl.json
Normal file
5
packageA/pages/carwb/carwxjl.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"usingComponents": {},
|
||||
"navigationBarBackgroundColor": "#3960FE",
|
||||
"navigationBarTitleText": ""
|
||||
}
|
||||
182
packageA/pages/carwb/carwxjl.wxml
Normal file
182
packageA/pages/carwb/carwxjl.wxml
Normal file
@@ -0,0 +1,182 @@
|
||||
<view class="page-view" wx:if="{{cardata.vin}}">
|
||||
<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="records-text" style="display: inline;font-size: 24rpx">{{cardata.cars}}</text>
|
||||
</view>
|
||||
<text class="records-text">VIN:{{cardata.vin}}</text>
|
||||
<text class="kilm-text">维修记录:{{records.normalRepairRecords.length}}条</text>
|
||||
</view>
|
||||
<view class="box-img">
|
||||
<image class="logo-img" mode="widthFix" src="{{cardata.logo}}"></image>
|
||||
</view>
|
||||
<view class="lineView"></view>
|
||||
<view class="carpars-status">
|
||||
<view class="single-pars">
|
||||
<text class="pars-desc status-true">正常</text>
|
||||
<text class="pars-title">结构部件</text>
|
||||
</view>
|
||||
<view class="single-pars">
|
||||
<text class="pars-desc status-true">正常</text>
|
||||
<text class="pars-title">发动机</text>
|
||||
</view>
|
||||
<view class="single-pars">
|
||||
<text class="pars-desc status-true">正常</text>
|
||||
<text class="pars-title">里程数</text>
|
||||
</view>
|
||||
<view class="single-pars">
|
||||
<text class="pars-desc status-true">正常</text>
|
||||
<text class="pars-title">安全气囊</text>
|
||||
</view>
|
||||
</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.normalRepairRecords.length>0}}" wx:for="{{records.normalRepairRecords}}" 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.date}}</text>
|
||||
<text class="veibao-remark {{tools.indexOf(item.type,'保养')?'remark-yang':tools.indexOf(item.type,'事故')?'remark-shi':'remark-xiu'}}">{{item.type}}</text>
|
||||
</view>
|
||||
<view class="veibao-text">
|
||||
<view class="veibao-xiangmu">
|
||||
<text class="xiangmu-title">维保详情</text>
|
||||
<text class="xiangmu-detail">{{item.content}}</text>
|
||||
</view>
|
||||
<view class="veibao-xiangmu">
|
||||
<text class="xiangmu-title">使用材料</text>
|
||||
<text class="xiangmu-detail">{{item.materal}}</text>
|
||||
</view>
|
||||
<view class="veibao-xiangmu">
|
||||
<text class="xiangmu-title">公里数</text>
|
||||
<text class="xiangmu-detail">{{item.mileage}}公里</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="page-view" wx:else>
|
||||
<view class="top-title">
|
||||
<text class="top-title-b">维保记录查询</text>
|
||||
<text class="top-title-l">查询时间:2020-12-23 15:36</text>
|
||||
</view>
|
||||
<view class="top-box">
|
||||
<view class="box-text">
|
||||
<view style="width: 130%;">
|
||||
<text class="brand-text" style="display: inline;">进口凯迪拉克</text>
|
||||
<text class="records-text" style="display: inline;font-size: 24rpx"> CT6 2020款 28T 豪华运动型</text>
|
||||
</view>
|
||||
<text class="records-text">VIN:TRUDD28J3820983930</text>
|
||||
<text class="kilm-text">32000公里</text>
|
||||
</view>
|
||||
<view class="box-img">
|
||||
<image class="logo-img" mode="widthFix" src="https://file.bigfishfarming.com/file/car_icon/C10000191.jpg"></image>
|
||||
</view>
|
||||
<view class="lineView"></view>
|
||||
<view class="carpars-status">
|
||||
<view class="single-pars">
|
||||
<text class="pars-desc status-true">正常</text>
|
||||
<text class="pars-title">结构部件</text>
|
||||
</view>
|
||||
<view class="single-pars">
|
||||
<text class="pars-desc status-true">正常</text>
|
||||
<text class="pars-title">发动机</text>
|
||||
</view>
|
||||
<view class="single-pars">
|
||||
<text class="pars-desc status-false">异常</text>
|
||||
<text class="pars-title">里程数</text>
|
||||
</view>
|
||||
<view class="single-pars">
|
||||
<text class="pars-desc status-true">正常</text>
|
||||
<text class="pars-title">安全气囊</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="content-view">
|
||||
<view class="content-desc">
|
||||
<text class="content-title">维修历史</text>
|
||||
<text class="content-shuo">* 数据来自第三方,仅作参考</text>
|
||||
</view>
|
||||
<view class="content-detail-single">
|
||||
<view class="content-right">
|
||||
<view class="veibao-title">
|
||||
<text class="yuandian first-dian"></text>
|
||||
<text class="veibao-time">2020-09-11</text>
|
||||
<text class="veibao-remark remark-yang">保养</text>
|
||||
</view>
|
||||
<view class="veibao-text">
|
||||
<view class="veibao-xiangmu">
|
||||
<text class="xiangmu-title">维保详情</text>
|
||||
<text class="xiangmu-detail">车辆前后检查,包括更换机油 ,空气滤清器滤芯 拆卸和安装,后消音</text>
|
||||
</view>
|
||||
<view class="veibao-xiangmu">
|
||||
<text class="xiangmu-title">使用材料</text>
|
||||
<text class="xiangmu-detail">后消音器拆卸和安装</text>
|
||||
</view>
|
||||
<view class="veibao-xiangmu">
|
||||
<text class="xiangmu-title">公里数</text>
|
||||
<text class="xiangmu-detail">32000公里</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="content-detail-single">
|
||||
<view class="content-right">
|
||||
<view class="veibao-title">
|
||||
<text class="yuandian no-dian"></text>
|
||||
<text class="veibao-time">2009-12-05</text>
|
||||
<text class="veibao-remark remark-xiu">小修</text>
|
||||
</view>
|
||||
<view class="veibao-text">
|
||||
<view class="veibao-xiangmu">
|
||||
<text class="xiangmu-title">维保详情</text>
|
||||
<text class="xiangmu-detail">车辆前后检查,包括更换机油 ,空气滤清器滤芯 拆卸和安装,后消音</text>
|
||||
</view>
|
||||
<view class="veibao-xiangmu">
|
||||
<text class="xiangmu-title">使用材料</text>
|
||||
<text class="xiangmu-detail">后消音器拆卸和安装</text>
|
||||
</view>
|
||||
<view class="veibao-xiangmu">
|
||||
<text class="xiangmu-title">公里数</text>
|
||||
<text class="xiangmu-detail">38000公里</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="content-detail-single">
|
||||
<view class="content-right">
|
||||
<view class="veibao-title">
|
||||
<text class="yuandian no-dian"></text>
|
||||
<text class="veibao-time">2009-12-05</text>
|
||||
<text class="veibao-remark remark-shi">事故</text>
|
||||
</view>
|
||||
<view class="veibao-text">
|
||||
<view class="veibao-xiangmu">
|
||||
<text class="xiangmu-title">维保详情</text>
|
||||
<text class="xiangmu-detail">车辆前后检查,包括更换机油 ,空气滤清器滤芯 拆卸和安装,后消音</text>
|
||||
</view>
|
||||
<view class="veibao-xiangmu">
|
||||
<text class="xiangmu-title">使用材料</text>
|
||||
<text class="xiangmu-detail">后消音器拆卸和安装</text>
|
||||
</view>
|
||||
<view class="veibao-xiangmu">
|
||||
<text class="xiangmu-title">公里数</text>
|
||||
<text class="xiangmu-detail tiaobiao">15000公里</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
228
packageA/pages/carwb/carwxjl.wxss
Normal file
228
packageA/pages/carwb/carwxjl.wxss
Normal file
@@ -0,0 +1,228 @@
|
||||
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: 340rpx;
|
||||
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: 300rpx;
|
||||
}
|
||||
.none-text {
|
||||
display: block;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
.pai-text {
|
||||
color: #ff6412;
|
||||
}
|
||||
.pai-text,
|
||||
.type-text {
|
||||
display: inline-block;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
.type-text {
|
||||
color: #4cce23;
|
||||
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;
|
||||
}
|
||||
147
packageA/pages/carwb/inwxjl.js
Normal file
147
packageA/pages/carwb/inwxjl.js
Normal file
@@ -0,0 +1,147 @@
|
||||
var e, t;
|
||||
(e = getApp()),
|
||||
(t = (function (e) {
|
||||
return e && e.__esModule ? e : { default: e };
|
||||
})(require("../../utils/apis.js"))),
|
||||
Page({
|
||||
data: {
|
||||
regdate: "",
|
||||
mileage: "",
|
||||
carName: "",
|
||||
cityName: "",
|
||||
cityid: 0,
|
||||
provid: 0,
|
||||
carId: 0,
|
||||
engine: "",
|
||||
imageUrl: "",
|
||||
},
|
||||
mileageChanage: function (e) {
|
||||
this.setData({ mileage: e.detail.value });
|
||||
},
|
||||
getad: function () {},
|
||||
queryVolation: function () {
|
||||
var e = this;
|
||||
this.tongzhi(),
|
||||
e.data.mileage
|
||||
? 17 == e.data.mileage.length
|
||||
? e.queryVin()
|
||||
: wx.showToast({
|
||||
title: "车架号错误,请输入正确的车架号",
|
||||
icon: "none",
|
||||
duration: 2e3,
|
||||
})
|
||||
: wx.showToast({
|
||||
title: "车架号不能为空",
|
||||
icon: "none",
|
||||
duration: 2e3,
|
||||
});
|
||||
},
|
||||
saoys: function (e) {
|
||||
wx.navigateTo({ url: "../xszsb/xszsb?type=1" });
|
||||
},
|
||||
queryVin: function (e) {
|
||||
var a = this;
|
||||
console.log(a.data.mileage),
|
||||
t.default
|
||||
.getCarInfo({
|
||||
appType: "WECHAT",
|
||||
vin: a.data.mileage,
|
||||
engine: a.data.engine,
|
||||
mileage: a.data.imageUrl,
|
||||
queryType: 2,
|
||||
drivingLicense: "",
|
||||
})
|
||||
.then(function (e) {
|
||||
console.log(e),
|
||||
"1000" === e.error_code
|
||||
? (wx.setStorageSync("orderInfo", e.data),
|
||||
wx.setStorageSync("mileage", a.data.mileage),
|
||||
wx.navigateTo({ url: "../carwb/carInfo" }))
|
||||
: wx.showToast({
|
||||
title: e.message,
|
||||
icon: "none",
|
||||
duration: 3e3,
|
||||
});
|
||||
});
|
||||
},
|
||||
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: "../carwb/carwxjl" });
|
||||
},
|
||||
toSelectCar: function () {
|
||||
wx.navigateTo({ url: "../carwb/selectCar/selectCar" });
|
||||
},
|
||||
toSelectCity: function () {
|
||||
wx.navigateTo({ url: "../carwb/selectCity/selectCity" });
|
||||
},
|
||||
toSelectTime: function () {
|
||||
wx.navigateTo({ url: "../carwb/selectTime/selectTime" });
|
||||
},
|
||||
onLoad: function (e) {
|
||||
wx.getStorageSync("uid") || getApp().wxlogin(),
|
||||
this.getad(),
|
||||
wx.removeStorageSync("cardata"),
|
||||
wx.removeStorageSync("xszimgurl"),
|
||||
wx.removeStorageSync("carvehicle"),
|
||||
wx.removeStorageSync("carprov"),
|
||||
wx.removeStorageSync("carcity"),
|
||||
wx.removeStorageSync("cartime"),
|
||||
wx.removeStorageSync("cardatawx"),
|
||||
this.setData({ mileage: wx.getStorageSync("mileage") });
|
||||
},
|
||||
onReady: function () {},
|
||||
onShow: function () {
|
||||
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"),
|
||||
a = wx.getStorageSync("carprov"),
|
||||
o = wx.getStorageSync("carcity"),
|
||||
n = wx.getStorageSync("cartime"),
|
||||
i = "";
|
||||
"" != o && null != o && (i = a.name + "-" + o.name),
|
||||
console.log("" == t),
|
||||
"" != t &&
|
||||
"" != n &&
|
||||
parseInt(n.split("-")[0]) < parseInt(t.makeyear) &&
|
||||
(n = ""),
|
||||
this.setData({
|
||||
carName: t.salesdesc,
|
||||
cityName: i,
|
||||
regdate: n,
|
||||
cityid: o.id,
|
||||
provid: a.id,
|
||||
carId: t.autohomeid,
|
||||
});
|
||||
},
|
||||
onHide: function () {},
|
||||
onUnload: function () {},
|
||||
onPullDownRefresh: function () {},
|
||||
onReachBottom: function () {},
|
||||
onShareAppMessage: function () {},
|
||||
});
|
||||
3
packageA/pages/carwb/inwxjl.json
Normal file
3
packageA/pages/carwb/inwxjl.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
16
packageA/pages/carwb/inwxjl.wxml
Normal file
16
packageA/pages/carwb/inwxjl.wxml
Normal file
@@ -0,0 +1,16 @@
|
||||
<view class="search-title">维修保养记录普通查询</view>
|
||||
<view class="search-text">查询此项可以获得车辆在4S店进店时候的真实公里数,真实的维修大修小修记录,详细保养记录,事故、水泡、火烧车一查便知,郑重承诺查不到全额退款!获得目标车架号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>
|
||||
104
packageA/pages/carwb/inwxjl.wxss
Normal file
104
packageA/pages/carwb/inwxjl.wxss
Normal file
@@ -0,0 +1,104 @@
|
||||
.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%;
|
||||
}
|
||||
.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%;
|
||||
}
|
||||
Reference in New Issue
Block a user