更换版本
This commit is contained in:
179
packageA/pages/cphcx/carInfo.js
Normal file
179
packageA/pages/cphcx/carInfo.js
Normal file
@@ -0,0 +1,179 @@
|
||||
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"),
|
||||
t = wx.getStorageSync("cardatawx");
|
||||
this.setData({ orderInfo: e, cardatawx: t }), this.getmoney();
|
||||
},
|
||||
getmoney: function () {
|
||||
var a = this,
|
||||
t = { type: "weibaoa_money", uid: wx.getStorageSync("uid") };
|
||||
e.getdata(t, "getcarmoney").then((t) => {
|
||||
console.log("money", t.data),
|
||||
t.data &&
|
||||
e
|
||||
.getdata({ car: a.data.orderInfo.brand }, "wxjlcxmoney")
|
||||
.then((e) => {
|
||||
console.log("数据库价格", e.data),
|
||||
a.setData({ fee: Number(t.data) + Number(e.data.money) });
|
||||
});
|
||||
});
|
||||
},
|
||||
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: "weibaoa_money",
|
||||
fee: a.data.fee,
|
||||
car: a.data.orderInfo.brand,
|
||||
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,
|
||||
chepai: a.data.cardatawx.chepai,
|
||||
engine: a.data.cardatawx.engine,
|
||||
xszimg: a.data.cardatawx.imageUrl,
|
||||
money: a.data.fee,
|
||||
};
|
||||
e.getdata(t, "wxjlcxjzb").then((e) => {
|
||||
console.log("回调数据:", e.data),
|
||||
wx.showModal({
|
||||
title: "查询成功",
|
||||
content:
|
||||
"在早上8-下午8点查询结果将在10-30分钟查到,其他时间需要到次日早上统一出结果,不成功自动退款~",
|
||||
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/cphcx/carInfo.json
Normal file
3
packageA/pages/cphcx/carInfo.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
38
packageA/pages/cphcx/carInfo.wxml
Normal file
38
packageA/pages/cphcx/carInfo.wxml
Normal file
@@ -0,0 +1,38 @@
|
||||
<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/cphcx/carInfo.wxss
Normal file
82
packageA/pages/cphcx/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;
|
||||
}
|
||||
164
packageA/pages/cphcx/cphcx.js
Normal file
164
packageA/pages/cphcx/cphcx.js
Normal file
@@ -0,0 +1,164 @@
|
||||
!(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,
|
||||
engine: "",
|
||||
imageUrl: "",
|
||||
chepai: "",
|
||||
},
|
||||
engineChanage: function (e) {
|
||||
this.setData({ engine: e.detail.value });
|
||||
},
|
||||
mileageChanage: function (e) {
|
||||
this.setData({ mileage: e.detail.value });
|
||||
},
|
||||
getad: function () {},
|
||||
queryVolation: function () {
|
||||
var a = this;
|
||||
this.tongzhi(),
|
||||
a.data.mileage
|
||||
? 17 == a.data.mileage.length
|
||||
? "iosb" == e.getSystemPlatform()
|
||||
? wx.showModal({
|
||||
title: "温馨提示",
|
||||
content: "iOS不支持小程序,请使用公众号查询",
|
||||
success: function (e) {
|
||||
e.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("点击取消回调");
|
||||
},
|
||||
})
|
||||
: a.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 (a) {
|
||||
var t = this;
|
||||
wx.setStorageSync("cardatawx", {});
|
||||
var n = {
|
||||
vin: t.data.mileage,
|
||||
imageUrl: t.data.imageUrl,
|
||||
engine: t.data.engine,
|
||||
chepai: t.data.chepai,
|
||||
};
|
||||
wx.setStorageSync("cardatawx", n);
|
||||
var o = { uid: wx.getStorageSync("uid"), vin: t.data.mileage };
|
||||
e.getdata(o, "vincxmf").then((e) => {
|
||||
if ((console.log("vin回调数据:", e.data), e.data)) {
|
||||
var a = JSON.parse(e.data);
|
||||
console.log(a.result),
|
||||
wx.setStorageSync("orderInfo", a.result),
|
||||
wx.navigateTo({ url: "../carwbjzb/carInfo" });
|
||||
}
|
||||
});
|
||||
},
|
||||
tongzhi: function (a) {
|
||||
e.getdata({ type: "4" }, "getdyxx").then((a) => {
|
||||
console.log(a.data),
|
||||
wx.requestSubscribeMessage({
|
||||
tmplIds: [a.data],
|
||||
success(t) {
|
||||
"accept" == t[a.data]
|
||||
? (wx.showToast({ title: "订阅成功" }),
|
||||
e.util.request({
|
||||
url: "entry/wxapp/addtemplateid",
|
||||
data: { templateid: a.data, uid: wx.getStorageSync("uid") },
|
||||
header: { "content-type": "application/json" },
|
||||
success: function (e) {
|
||||
console.log(e);
|
||||
},
|
||||
}))
|
||||
: wx.showToast({ title: "订阅失败" });
|
||||
},
|
||||
});
|
||||
});
|
||||
},
|
||||
toDetailExample: function () {
|
||||
wx.navigateTo({
|
||||
url: "../carwbjzb/carwxjl?orderid=D163746409775526522433",
|
||||
});
|
||||
},
|
||||
toSelectCar: function () {
|
||||
wx.navigateTo({ url: "../carwbjzb/selectCar/selectCar" });
|
||||
},
|
||||
toSelectCity: function () {
|
||||
wx.navigateTo({ url: "../carwbjzb/selectCity/selectCity" });
|
||||
},
|
||||
toSelectTime: function () {
|
||||
wx.navigateTo({ url: "../carwbjzb/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");
|
||||
},
|
||||
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,
|
||||
chepai: e.号牌号码.words,
|
||||
imageUrl: wx.getStorageSync("xszimgurl"),
|
||||
});
|
||||
var a = wx.getStorageSync("carvehicle"),
|
||||
t = wx.getStorageSync("carprov"),
|
||||
n = wx.getStorageSync("carcity"),
|
||||
o = wx.getStorageSync("cartime"),
|
||||
i = "";
|
||||
"" != n && null != n && (i = t.name + "-" + n.name),
|
||||
console.log("" == a),
|
||||
"" != a &&
|
||||
"" != o &&
|
||||
parseInt(o.split("-")[0]) < parseInt(a.makeyear) &&
|
||||
(o = ""),
|
||||
this.setData({
|
||||
carName: a.salesdesc,
|
||||
cityName: i,
|
||||
regdate: o,
|
||||
cityid: n.id,
|
||||
provid: t.id,
|
||||
carId: a.autohomeid,
|
||||
});
|
||||
},
|
||||
onHide: function () {},
|
||||
onUnload: function () {},
|
||||
onPullDownRefresh: function () {},
|
||||
onReachBottom: function () {},
|
||||
onShareAppMessage: function () {},
|
||||
});
|
||||
})();
|
||||
4
packageA/pages/cphcx/cphcx.json
Normal file
4
packageA/pages/cphcx/cphcx.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "维修保养记录精准查询",
|
||||
"usingComponents": {}
|
||||
}
|
||||
32
packageA/pages/cphcx/cphcx.wxml
Normal file
32
packageA/pages/cphcx/cphcx.wxml
Normal file
@@ -0,0 +1,32 @@
|
||||
<view class="topbb">
|
||||
<view class="top">
|
||||
<view class="title">
|
||||
<view class="main">维修记录一键查、掌握细节不吃亏!</view>
|
||||
<view class="sub">泡水车、事故车、二手车在4S的维保记录</view>
|
||||
</view>
|
||||
<image mode="widthFix" src="https://api.ym23.com/addons/monai_market/static/images/car/audi.png"></image>
|
||||
</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>
|
||||
<input bindinput="engineChanage" class="vin-input" maxlength="50" placeholder="发动机号/选填" type="text" value="{{engine}}"></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>
|
||||
<text bindtap="saoys" class="driver_text" wx:if="{{!imageUrl}}">上传行驶证查询成功率更高~</text>
|
||||
<text bindtap="saoys" class="driver_text" wx:else>车牌号:{{chepai}},行驶证上传成功~</text>
|
||||
<image bindtap="saoys" class="driver_img" mode="widthFix" src="https://api.ym23.com/addons/monai_market/static/images/car/xsz_example.jpg" wx:if="{{!imageUrl}}"></image>
|
||||
<image bindtap="saoys" class="driver_img" mode="widthFix" src="{{imageUrl}}" wx:else></image>
|
||||
<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>
|
||||
140
packageA/pages/cphcx/cphcx.wxss
Normal file
140
packageA/pages/cphcx/cphcx.wxss
Normal file
@@ -0,0 +1,140 @@
|
||||
.topbb {
|
||||
height: 215px;
|
||||
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: 12rem;
|
||||
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%;
|
||||
}
|
||||
.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 {
|
||||
border-radius: 20rpx;
|
||||
margin-left: 10%;
|
||||
width: 80%;
|
||||
}
|
||||
52
packageA/pages/cphcx/cphjl.js
Normal file
52
packageA/pages/cphcx/cphjl.js
Normal file
@@ -0,0 +1,52 @@
|
||||
var a;
|
||||
(a = getApp()),
|
||||
Page({
|
||||
data: {},
|
||||
onLoad: function (a) {
|
||||
wx.getStorageSync("uid") || getApp().wxlogin(), this.getDetail(a.orderid);
|
||||
},
|
||||
getDetail: function (t) {
|
||||
var e = this,
|
||||
r = { orderid: t };
|
||||
a.getdata(r, "wxjlid").then((a) => {
|
||||
console.log("回调数据:", a),
|
||||
e.setData({ cardata: a.data, orderid: t }),
|
||||
a.data.recordimgs &&
|
||||
e.setData({ recordimgs: JSON.parse(a.data.recordimgs) });
|
||||
var r = JSON.parse(a.data.record);
|
||||
console.log(r), e.setData({ records: r.result });
|
||||
});
|
||||
},
|
||||
imgPreview: function (t) {
|
||||
console.log(t);
|
||||
var e = t.currentTarget.dataset.src,
|
||||
r = t.currentTarget.dataset.name;
|
||||
e
|
||||
? wx.previewImage({
|
||||
current: e,
|
||||
urls: this.data.recordimgs,
|
||||
success: function (a) {},
|
||||
fail: function () {},
|
||||
complete: function () {},
|
||||
})
|
||||
: a.showToast(r + "未生成段位卡");
|
||||
},
|
||||
onReady: function () {},
|
||||
onShow: function () {},
|
||||
onHide: function () {},
|
||||
onUnload: function () {},
|
||||
onPullDownRefresh: function () {},
|
||||
onReachBottom: function () {},
|
||||
onShareAppMessage: function () {
|
||||
return {
|
||||
title: this.data.cardata.cars + "维修保养报告",
|
||||
path: "/packageA/pages/carwbjzb/carwxjl?orderid=" + this.data.orderid,
|
||||
};
|
||||
},
|
||||
onShareTimeline: function () {
|
||||
return {
|
||||
title: this.data.cardata.cars + "维修保养报告",
|
||||
path: "/ packageA/pages/carwbjzb/carwxjl?orderid=" + this.data.orderid,
|
||||
};
|
||||
},
|
||||
});
|
||||
5
packageA/pages/cphcx/cphjl.json
Normal file
5
packageA/pages/cphcx/cphjl.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"usingComponents": {},
|
||||
"navigationBarBackgroundColor": "#3960FE",
|
||||
"navigationBarTitleText": ""
|
||||
}
|
||||
225
packageA/pages/cphcx/cphjl.wxml
Normal file
225
packageA/pages/cphcx/cphjl.wxml
Normal file
@@ -0,0 +1,225 @@
|
||||
<view class="page-view" wx:if="{{recordimgs.length>0}}">
|
||||
<view class="top-title">
|
||||
<text class="top-title-b">维修保养记录报告</text>
|
||||
<text class="top-title-l">查询时间:{{cardata.time}}</text>
|
||||
</view>
|
||||
<view class="top-boxb">
|
||||
<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:{{cardata.vin}}</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 class="tui-upload-box" wx:if="{{recordimgs.length>0}}">
|
||||
<view class="tui-upload-item" wx:for="{{recordimgs}}" wx:key="{{index}}">
|
||||
<image bindtap="imgPreview" class="grace-time-line-image grace-border-radius-small" data-src="{{item}}" mode="widthFix" src="{{item}}" style="width: 100%;"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view wx:else>
|
||||
<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.content.length}}条</text>
|
||||
<text class="type-text">最后公里数:{{records.last_kilometer}}公里</text>
|
||||
<text class="type-text" style="color: #ff6412;" wx:if="{{records.structure_is_repair==1}}">本车结构件已经维修</text>
|
||||
<text class="type-text" wx:if="{{records.structure_is_repair==2}}">本车结构件正常</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" wx:if="{{records.car_is_fire==0}}">正常</text>
|
||||
<text class="pars-desc status-false" wx:if="{{records.car_is_fire==1}}">异常</text>
|
||||
<text class="pars-desc status-true" wx:if="{{records.car_is_fire==2}}">正常</text>
|
||||
<text class="pars-title">是否火烧</text>
|
||||
</view>
|
||||
<view class="single-pars">
|
||||
<text class="pars-desc status-true" wx:if="{{records.car_is_water==0}}">正常</text>
|
||||
<text class="pars-desc status-false" wx:if="{{records.car_is_water==1}}">异常</text>
|
||||
<text class="pars-desc status-true" wx:if="{{records.car_is_water==2}}">异常</text>
|
||||
<text class="pars-title">是否泡水</text>
|
||||
</view>
|
||||
<view class="single-pars">
|
||||
<text class="pars-desc status-true" wx:if="{{records.kilomete_is_normal==0}}">正常</text>
|
||||
<text class="pars-desc status-false" wx:if="{{records.kilomete_is_normal==1}}">异常</text>
|
||||
<text class="pars-desc status-true" wx:if="{{records.kilomete_is_normal==2}}">正常</text>
|
||||
<text class="pars-title">里程数</text>
|
||||
</view>
|
||||
<view class="single-pars">
|
||||
<text class="pars-desc status-true" wx:if="{{records.important_parts_is_repair==0}}">正常</text>
|
||||
<text class="pars-desc status-false" wx:if="{{records.important_parts_is_repair==1}}">异常</text>
|
||||
<text class="pars-desc status-true" wx:if="{{records.important_parts_is_repair==2}}">正常</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.content.length>0}}" wx:for="{{records.content}}" 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">{{filters.formaTime(item.maintain_dateline)}}</text>
|
||||
<text class="{{item.maintain_type=='事故维修'?'veibao-remark remark-shi':item.maintain_type=='机油保养'?'veibao-remark remark-yang':'veibao-remark remark-xiu'}}">{{item.maintain_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.meterial}}</text>
|
||||
</view>
|
||||
<view class="veibao-xiangmu">
|
||||
<text class="xiangmu-title">公里数</text>
|
||||
<text class="xiangmu-detail">{{item.kilomete}}公里</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>
|
||||
</view>
|
||||
<wxs module="filters" src="../../utils/filter.wxs" />
|
||||
234
packageA/pages/cphcx/cphjl.wxss
Normal file
234
packageA/pages/cphcx/cphjl.wxss
Normal file
@@ -0,0 +1,234 @@
|
||||
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-boxb {
|
||||
height: 150rpx;
|
||||
}
|
||||
.top-box,
|
||||
.top-boxb {
|
||||
background-color: #fff;
|
||||
border-radius: 14rpx;
|
||||
margin: 30rpx;
|
||||
padding: 30rpx;
|
||||
}
|
||||
.top-box {
|
||||
height: 440rpx;
|
||||
}
|
||||
.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;
|
||||
}
|
||||
Reference in New Issue
Block a user