更换版本
This commit is contained in:
160
packageA/pages/carcx/carInfo.js
Normal file
160
packageA/pages/carcx/carInfo.js
Normal file
@@ -0,0 +1,160 @@
|
||||
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: "chuxian_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",
|
||||
method: "post",
|
||||
dataType: "json",
|
||||
data: {
|
||||
m: "monai_market",
|
||||
type: "chuxian_money",
|
||||
orderid: a.data.orderid,
|
||||
uid: wx.getStorageSync("uid"),
|
||||
vin: a.data.cardatawx.vin,
|
||||
chepai: a.data.cardatawx.chepai,
|
||||
engine: a.data.cardatawx.engine,
|
||||
cpimg: a.data.cardatawx.imageUrl,
|
||||
postcardata: JSON.stringify(a.data),
|
||||
},
|
||||
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 () {
|
||||
wx.showModal({
|
||||
title: "查询成功",
|
||||
content: "结果将在5-10分钟通知你,不成功自动退款~",
|
||||
showCancel: !1,
|
||||
success: function (a) {
|
||||
a.confirm &&
|
||||
wx.reLaunch({ url: "/pages/reporlist/reporlist?type=1" });
|
||||
},
|
||||
});
|
||||
},
|
||||
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/carcx/carInfo.json
Normal file
3
packageA/pages/carcx/carInfo.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
33
packageA/pages/carcx/carInfo.wxml
Normal file
33
packageA/pages/carcx/carInfo.wxml
Normal file
@@ -0,0 +1,33 @@
|
||||
<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" wx:if="{{orderid}}">订单号</text>
|
||||
<text class="info-line">{{orderid}}</text>
|
||||
</view>
|
||||
<view class="text-view">
|
||||
<text class="name-line">VIN:</text>
|
||||
<text class="info-line">{{orderInfo.vin}}</text>
|
||||
</view>
|
||||
<view class="text-view" wx:if="{{cardatawx.engine}}">
|
||||
<text class="name-line">发动机:</text>
|
||||
<text class="info-line">{{cardatawx.engine}}</text>
|
||||
</view>
|
||||
<view class="text-view" wx:if="{{cardatawx.chepai}}">
|
||||
<text class="name-line">车牌号:</text>
|
||||
<text class="info-line">{{cardatawx.chepai}}</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/carcx/carInfo.wxss
Normal file
82
packageA/pages/carcx/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;
|
||||
}
|
||||
62
packageA/pages/carcx/carcxjl.js
Normal file
62
packageA/pages/carcx/carcxjl.js
Normal file
@@ -0,0 +1,62 @@
|
||||
var a;
|
||||
(a = getApp()),
|
||||
Page({
|
||||
data: { serviceSumCount: 0, serviceSumMoney: 0 },
|
||||
onLoad: function (a) {
|
||||
this.getDetail(a.orderid);
|
||||
},
|
||||
imgPreview: function (e) {
|
||||
console.log(e);
|
||||
var t = e.currentTarget.dataset.src,
|
||||
r = e.currentTarget.dataset.name;
|
||||
t
|
||||
? wx.previewImage({
|
||||
current: t,
|
||||
urls: this.data.recordimgs,
|
||||
success: function (a) {},
|
||||
fail: function () {},
|
||||
complete: function () {},
|
||||
})
|
||||
: a.showToast(r + "未生成段位卡");
|
||||
},
|
||||
getDetail: function (e) {
|
||||
var t = this,
|
||||
r = { orderid: e };
|
||||
a.getdata(r, "cxjlid").then((a) => {
|
||||
if (
|
||||
(console.log("回调数据:", a),
|
||||
a &&
|
||||
(t.setData({ cardata: a.data, orderid: e }),
|
||||
a.data.recordimgs &&
|
||||
t.setData({ recordimgs: JSON.parse(a.data.recordimgs) }),
|
||||
a.data.record))
|
||||
) {
|
||||
var r = JSON.parse(a.data.record);
|
||||
console.log(r),
|
||||
t.setData({
|
||||
records: r.result.data.details.records,
|
||||
serviceSumCount: r.result.data.details.serviceSumCount,
|
||||
serviceSumMoney: r.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: "/packageA/pages/carcx/carcxjl?orderid=" + this.data.orderid,
|
||||
};
|
||||
},
|
||||
onShareTimeline: function () {
|
||||
return {
|
||||
title: this.data.cardata.cars + "出险碰撞查询报告",
|
||||
path: "/packageA/pages/carcx/carcxjl?orderid=" + this.data.orderid,
|
||||
};
|
||||
},
|
||||
});
|
||||
5
packageA/pages/carcx/carcxjl.json
Normal file
5
packageA/pages/carcx/carcxjl.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"usingComponents": {},
|
||||
"navigationBarBackgroundColor": "#3960FE",
|
||||
"navigationBarTitleText": ""
|
||||
}
|
||||
91
packageA/pages/carcx/carcxjl.wxml
Normal file
91
packageA/pages/carcx/carcxjl.wxml
Normal file
@@ -0,0 +1,91 @@
|
||||
<view class="page-view" wx:if="{{cardata.url}}">
|
||||
<web-view src="{{cardata.url}}"></web-view>
|
||||
</view>
|
||||
<view class="page-view" wx:else>
|
||||
<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 class="page-view" wx:else>
|
||||
<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:{{cardata.vin}}</text>
|
||||
<text class="none-text"></text>
|
||||
<text class="type-text">维修次数:{{serviceSumCount}}</text>
|
||||
<text class="pai-text">维修金额:{{serviceSumMoney/100}}</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>
|
||||
232
packageA/pages/carcx/carcxjl.wxss
Normal file
232
packageA/pages/carcx/carcxjl.wxss
Normal file
@@ -0,0 +1,232 @@
|
||||
page {
|
||||
background: #f8f8f8;
|
||||
}
|
||||
.page-view {
|
||||
background: linear-gradient(#3960fe, #4e71fc, #f8f8f8);
|
||||
height: 495rpx;
|
||||
width: 100%;
|
||||
}
|
||||
.top-boxb {
|
||||
background-color: #fff;
|
||||
border-radius: 14rpx;
|
||||
height: 150rpx;
|
||||
margin: 30rpx;
|
||||
padding: 30rpx;
|
||||
}
|
||||
.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;
|
||||
}
|
||||
11
packageA/pages/carcx/dcbg.js
Normal file
11
packageA/pages/carcx/dcbg.js
Normal file
@@ -0,0 +1,11 @@
|
||||
Page({
|
||||
data: {},
|
||||
onLoad(o) {},
|
||||
onReady() {},
|
||||
onShow() {},
|
||||
onHide() {},
|
||||
onUnload() {},
|
||||
onPullDownRefresh() {},
|
||||
onReachBottom() {},
|
||||
onShareAppMessage() {},
|
||||
});
|
||||
3
packageA/pages/carcx/dcbg.json
Normal file
3
packageA/pages/carcx/dcbg.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
packageA/pages/carcx/dcbg.wxml
Normal file
1
packageA/pages/carcx/dcbg.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<text>packageA/pages/carcx/dcbg.wxml</text>
|
||||
0
packageA/pages/carcx/dcbg.wxss
Normal file
0
packageA/pages/carcx/dcbg.wxss
Normal file
179
packageA/pages/carcx/incxjl.js
Normal file
179
packageA/pages/carcx/incxjl.js
Normal file
@@ -0,0 +1,179 @@
|
||||
!(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 });
|
||||
},
|
||||
saoys: function (e) {
|
||||
wx.navigateTo({ url: "../xszsb/xszsb?type=1" });
|
||||
},
|
||||
queryVolation: function () {
|
||||
var a = this;
|
||||
if (wx.getStorageSync("uid"))
|
||||
if ((this.tongzhi(), a.data.mileage))
|
||||
if (17 == a.data.mileage.length)
|
||||
if ("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("点击取消回调");
|
||||
},
|
||||
});
|
||||
else {
|
||||
var t = this,
|
||||
o = { content: t.data.mileage + t.data.engine + t.data.chepai };
|
||||
e.getdata(o, "checkContent").then((e) => {
|
||||
console.log("文本回调数据:", e),
|
||||
0 == e.errcode
|
||||
? a.queryVin()
|
||||
: wx.showModal({
|
||||
title: "温馨提示",
|
||||
content:
|
||||
"你输入的文本检测存在违规,请检测文本内容后重新输入。",
|
||||
success: function (e) {
|
||||
e.confirm || console.log("点击取消回调");
|
||||
},
|
||||
});
|
||||
});
|
||||
}
|
||||
else
|
||||
wx.showToast({
|
||||
title: "车架号错误,请输入正确的车架号",
|
||||
icon: "none",
|
||||
duration: 2e3,
|
||||
});
|
||||
else
|
||||
wx.showToast({
|
||||
title: "车架号不能为空",
|
||||
icon: "none",
|
||||
duration: 2e3,
|
||||
});
|
||||
else
|
||||
wx.showModal({
|
||||
title: "温馨提示",
|
||||
content: "请去个人中心授权登录用户信息",
|
||||
success: function (e) {
|
||||
e.confirm
|
||||
? wx.reLaunch({ url: "/pages/mine/index" })
|
||||
: console.log("点击取消回调");
|
||||
},
|
||||
});
|
||||
},
|
||||
queryVin: function (a) {
|
||||
var t = this;
|
||||
wx.setStorageSync("cardatawx", {});
|
||||
var o = {
|
||||
vin: t.data.mileage,
|
||||
imageUrl: t.data.imageUrl,
|
||||
engine: t.data.engine,
|
||||
chepai: t.data.chepai,
|
||||
};
|
||||
wx.setStorageSync("cardatawx", o);
|
||||
var n = { uid: wx.getStorageSync("uid"), vin: t.data.mileage };
|
||||
e.getdata(n, "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: "../carcx/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: "../carcx/carcxjl?orderid=D163748239451500588618" });
|
||||
},
|
||||
toSelectCar: function () {
|
||||
wx.navigateTo({ url: "/pages/selectCar/selectCar" });
|
||||
},
|
||||
toSelectCity: function () {
|
||||
wx.navigateTo({ url: "/pages/selectCity/selectCity" });
|
||||
},
|
||||
toSelectTime: function () {
|
||||
wx.navigateTo({ url: "/pages/selectTime/selectTime" });
|
||||
},
|
||||
onLoad: function (e) {
|
||||
wx.removeStorageSync("cardata"),
|
||||
wx.removeStorageSync("carvehicle"),
|
||||
wx.removeStorageSync("carprov"),
|
||||
wx.removeStorageSync("carcity"),
|
||||
wx.removeStorageSync("cartime");
|
||||
},
|
||||
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"),
|
||||
o = wx.getStorageSync("carcity"),
|
||||
n = wx.getStorageSync("cartime"),
|
||||
i = "";
|
||||
"" != o && null != o && (i = t.name + "-" + o.name),
|
||||
console.log("" == a),
|
||||
"" != a &&
|
||||
"" != n &&
|
||||
parseInt(n.split("-")[0]) < parseInt(a.makeyear) &&
|
||||
(n = ""),
|
||||
this.setData({
|
||||
carName: a.salesdesc,
|
||||
cityName: i,
|
||||
regdate: n,
|
||||
cityid: o.id,
|
||||
provid: t.id,
|
||||
carId: a.autohomeid,
|
||||
});
|
||||
},
|
||||
onHide: function () {},
|
||||
onUnload: function () {},
|
||||
onPullDownRefresh: function () {},
|
||||
onReachBottom: function () {},
|
||||
onShareAppMessage: function () {},
|
||||
});
|
||||
})();
|
||||
4
packageA/pages/carcx/incxjl.json
Normal file
4
packageA/pages/carcx/incxjl.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "出险记录普通版查询",
|
||||
"usingComponents": {}
|
||||
}
|
||||
28
packageA/pages/carcx/incxjl.wxml
Normal file
28
packageA/pages/carcx/incxjl.wxml
Normal file
@@ -0,0 +1,28 @@
|
||||
<view class="topbb" style="width: 750rpx; height: 408rpx; display: block; box-sizing: border-box; left: 0rpx; top: 47rpx">
|
||||
<view class="top">
|
||||
<view class="title">
|
||||
<view class="main">汽车出险记录查询、杜绝事故车!</view>
|
||||
<view class="sub">一键查询历史出险记录,快速了解车辆事故</view>
|
||||
</view>
|
||||
<image mode="widthFix" src="https://api.ym23.com/addons/monai_market/static/images/car/WechatIMG25.png" style="width: 310rpx; height: 160rpx; display: block; box-sizing: border-box; left: 411rpx; top: 160rpx"></image>
|
||||
</view>
|
||||
</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>
|
||||
<text bindtap="saoys" class="driver_text" wx:if="{{!imageUrl}}">上传行驶证查询成功率更高~</text>
|
||||
<text bindtap="saoys" class="driver_text" wx:else>车牌号:{{engine}},行驶证上传成功~</text>
|
||||
<image bindtap="saoys" class="driver_img" mode="aspectFill" 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="aspectFill" 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>
|
||||
<view style="height:104rpx;"></view>
|
||||
151
packageA/pages/carcx/incxjl.wxss
Normal file
151
packageA/pages/carcx/incxjl.wxss
Normal file
@@ -0,0 +1,151 @@
|
||||
.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: 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 {
|
||||
border-radius: 20rpx;
|
||||
height: 120px;
|
||||
margin-left: 30rpx;
|
||||
width: 180px;
|
||||
}
|
||||
210
packageA/pages/carcx/index.js
Normal file
210
packageA/pages/carcx/index.js
Normal file
@@ -0,0 +1,210 @@
|
||||
var e;
|
||||
(e = getApp()),
|
||||
Page({
|
||||
data: {
|
||||
regdate: "",
|
||||
mileage: "",
|
||||
carName: "",
|
||||
cityName: "",
|
||||
cityid: 0,
|
||||
provid: 0,
|
||||
carId: 0,
|
||||
page: 1,
|
||||
type: 1,
|
||||
},
|
||||
mileageChanage: function (e) {
|
||||
this.setData({ mileage: e.detail.value });
|
||||
},
|
||||
saoys: function (e) {
|
||||
wx.navigateTo({ url: "../xszsb/xszsb?type=1" });
|
||||
},
|
||||
ptcx: function (e) {
|
||||
wx.navigateTo({ url: "../carcx/incxjl" });
|
||||
},
|
||||
gjcx: function (e) {
|
||||
wx.navigateTo({ url: "../carcxzx/incxjl" });
|
||||
},
|
||||
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,
|
||||
});
|
||||
},
|
||||
queryVin: function (e) {
|
||||
var a = this;
|
||||
wx.setStorageSync("cardatawx", {});
|
||||
var t = {
|
||||
vin: a.data.mileage,
|
||||
imageUrl: a.data.imageUrl,
|
||||
engine: a.data.engine,
|
||||
chepai: a.data.chepai,
|
||||
};
|
||||
wx.setStorageSync("cardatawx", t),
|
||||
console.log(a.data.mileage),
|
||||
n.default
|
||||
.getCarInfo({
|
||||
appType: "WECHAT",
|
||||
vin: a.data.mileage,
|
||||
queryType: 2,
|
||||
drivingLicense: "",
|
||||
})
|
||||
.then(function (e) {
|
||||
console.log(e),
|
||||
"1000" === e.error_code
|
||||
? (wx.setStorageSync("orderInfo", e.data),
|
||||
wx.navigateTo({ url: "../carcx/carInfo" }))
|
||||
: wx.showToast({
|
||||
title: e.message,
|
||||
icon: "none",
|
||||
duration: 3e3,
|
||||
});
|
||||
});
|
||||
},
|
||||
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: "../carcx/carcxjl?orderid=D163748239451500588618" });
|
||||
},
|
||||
toSelectCar: function () {
|
||||
wx.navigateTo({ url: "/pages/selectCar/selectCar" });
|
||||
},
|
||||
toSelectCity: function () {
|
||||
wx.navigateTo({ url: "/pages/selectCity/selectCity" });
|
||||
},
|
||||
toSelectTime: function () {
|
||||
wx.navigateTo({ url: "/pages/selectTime/selectTime" });
|
||||
},
|
||||
onLoad: function (e) {
|
||||
wx.getStorageSync("uid") || getApp().wxlogin(),
|
||||
wx.removeStorageSync("cardata"),
|
||||
wx.removeStorageSync("carvehicle"),
|
||||
wx.removeStorageSync("carprov"),
|
||||
wx.removeStorageSync("carcity"),
|
||||
wx.removeStorageSync("cartime"),
|
||||
wx.removeStorageSync("cardatawx");
|
||||
},
|
||||
onReady: function () {},
|
||||
onShow: function () {
|
||||
e.appdengl();
|
||||
var a = wx.getStorageSync("cardata");
|
||||
console.log("行驶证数据", a),
|
||||
console.log("行驶证照片", wx.getStorageSync("xszimgurl")),
|
||||
a &&
|
||||
this.setData({
|
||||
mileage: a.车辆识别代号.words,
|
||||
engine: a.发动机号码.words,
|
||||
chepai: a.号牌号码.words,
|
||||
imageUrl: wx.getStorageSync("xszimgurl"),
|
||||
});
|
||||
var t = wx.getStorageSync("carvehicle"),
|
||||
o = wx.getStorageSync("carprov"),
|
||||
n = wx.getStorageSync("carcity"),
|
||||
i = wx.getStorageSync("cartime"),
|
||||
c = "";
|
||||
"" != n && null != n && (c = o.name + "-" + n.name),
|
||||
console.log("" == t),
|
||||
"" != t &&
|
||||
"" != i &&
|
||||
parseInt(i.split("-")[0]) < parseInt(t.makeyear) &&
|
||||
(i = ""),
|
||||
this.setData({
|
||||
carName: t.salesdesc,
|
||||
cityName: c,
|
||||
regdate: i,
|
||||
cityid: n.id,
|
||||
provid: o.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 (a) {
|
||||
var t = this,
|
||||
o = { uid: wx.getStorageSync("uid"), type: t.data.type, page: a };
|
||||
e.getdata(o, "carqxcx").then((e) => {
|
||||
if ((console.log("回调数据:", e), e.data && 0 == e.errno))
|
||||
if (1 == a) t.setData({ repairList: e.data, page: t.data.page + 1 });
|
||||
else {
|
||||
var o = t.data.repairList;
|
||||
o.push.apply(o, e.data),
|
||||
t.setData({ repairList: o, 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 (e) {
|
||||
var a = e.currentTarget.dataset.orderid;
|
||||
wx.navigateTo({
|
||||
url: "/packageA/pages/carcx/carcxjl?orderid=" + a,
|
||||
success: function () {},
|
||||
});
|
||||
},
|
||||
});
|
||||
5
packageA/pages/carcx/index.json
Normal file
5
packageA/pages/carcx/index.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"navigationBarTitleText": "出险记录查询",
|
||||
"enablePullDownRefresh": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
34
packageA/pages/carcx/index.wxml
Normal file
34
packageA/pages/carcx/index.wxml
Normal file
@@ -0,0 +1,34 @@
|
||||
<view class="topbb" style="width: 750rpx; height: 380rpx; display: block; box-sizing: border-box; left: 0rpx; top: 47rpx">
|
||||
<view class="top">
|
||||
<view class="title">
|
||||
<view class="main">汽车出险记录查询、杜绝事故车!</view>
|
||||
<view class="sub">一键查询历史出险记录,快速了解车辆事故</view>
|
||||
</view>
|
||||
<image mode="widthFix" src="https://api.ym23.com/addons/monai_market/static/images/car/WechatIMG25.png" style="width: 315rpx; height: 165rpx; display: block; box-sizing: border-box; left: 436rpx; top: 158rpx; position: absolute"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="search-text">关于出险碰撞查询,普通查询成功率比较底30%左右,高级查询成功率100%,如果有行驶证请一定要选择高级查询,高级查询速度快,查询成功无法退款!</view>
|
||||
<button bindtap="gjcx" class="search-button">高级查询</button>
|
||||
<button bindtap="ptcx" class="search-button">普通查询</button>
|
||||
<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>
|
||||
149
packageA/pages/carcx/index.wxss
Normal file
149
packageA/pages/carcx/index.wxss
Normal file
@@ -0,0 +1,149 @@
|
||||
@import "/graceUI/reporlist.wxss";
|
||||
.topbb {
|
||||
height: 215px;
|
||||
margin: 10px;
|
||||
top: 20px;
|
||||
}
|
||||
.top {
|
||||
height: 135px;
|
||||
position: relative;
|
||||
}
|
||||
.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: #000;
|
||||
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: #000;
|
||||
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 {
|
||||
border-radius: 20rpx;
|
||||
margin-left: 10%;
|
||||
width: 80%;
|
||||
}
|
||||
Reference in New Issue
Block a user