更换版本
This commit is contained in:
145
packageA/pages/carjqx/carInfob.js
Normal file
145
packageA/pages/carjqx/carInfob.js
Normal file
@@ -0,0 +1,145 @@
|
||||
!(function () {
|
||||
!(function (a) {
|
||||
a && a.__esModule;
|
||||
})(require("../../utils/apis.js"));
|
||||
var a = getApp(),
|
||||
t = getApp();
|
||||
Page({
|
||||
data: { orderInfo: null },
|
||||
onLoad: function (a) {
|
||||
var t = wx.getStorageSync("orderInfo"),
|
||||
e = wx.getStorageSync("cardatawx");
|
||||
this.setData({ orderInfo: t, cardatawx: e }), this.getmoney();
|
||||
},
|
||||
getmoney: function () {
|
||||
var t = this,
|
||||
e = { type: "jiaoqianxian_money", uid: wx.getStorageSync("uid") };
|
||||
a.getdata(e, "getcarmoney").then((a) => {
|
||||
console.log("money", a.data), a.data && t.setData({ fee: a.data });
|
||||
});
|
||||
},
|
||||
orderid: function () {
|
||||
let a = "";
|
||||
for (var t = 0; t < 8; t++) 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: "jiaoqianxian_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 (t) {
|
||||
wx.showModal({ content: t.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 (t) {
|
||||
a.setData({
|
||||
weizhang_num: 1 * a.data.weizhang_num + 10,
|
||||
}),
|
||||
wx.showModal({ content: t.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:
|
||||
"恭喜下单成功,人工查询早上8点-晚上10点20分钟内出结果,点击确定后进入订单列表~",
|
||||
showCancel: !1,
|
||||
success: function (a) {
|
||||
a.confirm &&
|
||||
wx.reLaunch({ url: "/pages/reporlist/reporlist?type=5" });
|
||||
},
|
||||
});
|
||||
},
|
||||
getDetailb: function () {
|
||||
var t = this,
|
||||
e = {
|
||||
uid: wx.getStorageSync("uid"),
|
||||
vin: t.data.orderInfo.vin,
|
||||
logo: t.data.orderInfo.logo,
|
||||
car: t.data.orderInfo.brand,
|
||||
cars: t.data.orderInfo.typeName,
|
||||
orderid: t.data.orderid,
|
||||
};
|
||||
a.getdata(e, "carjqxb").then((a) => {
|
||||
console.log("回调数据:", a.data),
|
||||
wx.navigateTo({
|
||||
url: "/packageA/pages/carjqx/carcxjl?orderid=" + t.data.orderid,
|
||||
}),
|
||||
(a = a.data).data && t.setData({ order: a.data.result });
|
||||
});
|
||||
},
|
||||
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/carjqx/carInfob.json
Normal file
3
packageA/pages/carjqx/carInfob.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
33
packageA/pages/carjqx/carInfob.wxml
Normal file
33
packageA/pages/carjqx/carInfob.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 class="text-view">
|
||||
<text class="name-line">查询项目:</text>
|
||||
<text class="info-line">车辆交强险日期查询</text>
|
||||
</view>
|
||||
<view>
|
||||
<view class="text-money">本次查询需要支付 <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/carjqx/carInfob.wxss
Normal file
82
packageA/pages/carjqx/carInfob.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;
|
||||
}
|
||||
61
packageA/pages/carjqx/carcxjl.js
Normal file
61
packageA/pages/carjqx/carcxjl.js
Normal file
@@ -0,0 +1,61 @@
|
||||
var t;
|
||||
(t = getApp()),
|
||||
Page({
|
||||
data: { serviceSumCount: 0, serviceSumMoney: 0 },
|
||||
onLoad: function (a) {
|
||||
this.getDetail(a.orderid);
|
||||
},
|
||||
copyBtnb: function (t) {
|
||||
console.log(t),
|
||||
wx.setClipboardData({
|
||||
data: a,
|
||||
success: function (a) {
|
||||
wx.showToast({
|
||||
icon: "success",
|
||||
title: "复制成功",
|
||||
duration: 1500,
|
||||
success: function () {},
|
||||
});
|
||||
},
|
||||
fail: function () {
|
||||
wx.showToast({ icon: "loading", title: "复制失败" });
|
||||
},
|
||||
});
|
||||
},
|
||||
handleInput: function (a) {
|
||||
var t = a.split("\n").length,
|
||||
e = Math.max(130 * t, 100);
|
||||
this.setData({ textareaValue: a, textareaHeight: e });
|
||||
},
|
||||
getDetail: function (a) {
|
||||
var e = this,
|
||||
n = { orderid: a };
|
||||
t.getdata(n, "jqxid").then((t) => {
|
||||
if ((console.log("回调数据:", t), t)) {
|
||||
e.setData({ cardata: t.data, orderid: a });
|
||||
var n = JSON.parse(t.data.record);
|
||||
console.log(n),
|
||||
e.setData({ records: n.data.detail }),
|
||||
e.handleInput(n.data.detail.stateDes);
|
||||
}
|
||||
});
|
||||
},
|
||||
onReady: function () {},
|
||||
onShow: function () {},
|
||||
onHide: function () {},
|
||||
onUnload: function () {},
|
||||
onPullDownRefresh: function () {},
|
||||
onReachBottom: function () {},
|
||||
onShareAppMessage: function () {
|
||||
return {
|
||||
title: this.data.cardata.cars + "交强险查询报告",
|
||||
path: "/packageA/pages/carjqx/carcxjl?orderid=" + this.data.orderid,
|
||||
};
|
||||
},
|
||||
onShareTimeline: function () {
|
||||
return {
|
||||
title: this.data.cardata.cars + "交强险查询报告",
|
||||
path: "/packageA/pages/carjqx/carcxjl?orderid=" + this.data.orderid,
|
||||
};
|
||||
},
|
||||
});
|
||||
5
packageA/pages/carjqx/carcxjl.json
Normal file
5
packageA/pages/carjqx/carcxjl.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"usingComponents": {},
|
||||
"navigationBarBackgroundColor": "#3960FE",
|
||||
"navigationBarTitleText": ""
|
||||
}
|
||||
47
packageA/pages/carjqx/carcxjl.wxml
Normal file
47
packageA/pages/carjqx/carcxjl.wxml
Normal file
@@ -0,0 +1,47 @@
|
||||
<view class="page-view" wx:if="{{cardata.url}}">
|
||||
<web-view src="{{cardata.url}}"></web-view>
|
||||
</view>
|
||||
<view class="page-view">
|
||||
<view class="top-title">
|
||||
<text class="top-title-b">车辆交强险日期报告</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="type-text">最后交保:{{records.latestInsuranceDate}}</text>
|
||||
</view>
|
||||
<view class="box-img">
|
||||
<image class="logo-img" mode="widthFix" src="{{cardata.logo}}"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="content-view">
|
||||
<view class="content-desc">
|
||||
<text class="content-title">交强险情况</text>
|
||||
<text class="content-shuo">* 数据来自第三方,仅作参考</text>
|
||||
</view>
|
||||
<view data-index="{{index}}">
|
||||
<view class="content-detail-single">
|
||||
<view class="content-right">
|
||||
<view class="veibao-title">
|
||||
<text class="{{index==0?'yuandian first-dian':'yuandian no-dian'}}"></text>
|
||||
</view>
|
||||
<view class="veibao-text">
|
||||
<view class="veibao-xiangmu">
|
||||
<text class="xiangmu-title">交强险情况:</text>
|
||||
<text class="xiangmu-detail">{{records.stateDes}}</text>
|
||||
</view>
|
||||
<view class="veibao-xiangmu">
|
||||
<text class="xiangmu-title">最近投保:</text>
|
||||
<text class="xiangmu-detail">{{records.latestInsuranceDate}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
237
packageA/pages/carjqx/carcxjl.wxss
Normal file
237
packageA/pages/carjqx/carcxjl.wxss
Normal file
@@ -0,0 +1,237 @@
|
||||
page {
|
||||
background: #f8f8f8;
|
||||
}
|
||||
.xiaoxi_right_btn {
|
||||
border: 1px solid #3d61f0;
|
||||
border-radius: 5rpx;
|
||||
color: #3d61f0;
|
||||
font-size: 24rpx;
|
||||
height: 45rpx;
|
||||
line-height: 45rpx;
|
||||
text-align: center;
|
||||
width: 100rpx;
|
||||
}
|
||||
.page-view {
|
||||
background: linear-gradient(#3960fe, #4e71fc, #f8f8f8);
|
||||
height: 495rpx;
|
||||
width: 100%;
|
||||
}
|
||||
.top-title {
|
||||
color: #fff;
|
||||
padding-top: 30rpx;
|
||||
text-align: center;
|
||||
}
|
||||
.top-title-b {
|
||||
display: block;
|
||||
font-size: 50rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
.top-title-l {
|
||||
display: block;
|
||||
font-size: 25rpx;
|
||||
margin-bottom: 20rpx;
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
.top-box {
|
||||
background-color: #fff;
|
||||
border-radius: 14rpx;
|
||||
height: 230rpx;
|
||||
margin: 30rpx;
|
||||
padding: 30rpx;
|
||||
}
|
||||
.box-text {
|
||||
display: inline-block;
|
||||
width: 70%;
|
||||
}
|
||||
.brand-text {
|
||||
display: block;
|
||||
font-size: 36rpx;
|
||||
font-weight: 700;
|
||||
height: 46rpx;
|
||||
line-height: 46rpx;
|
||||
}
|
||||
.order-text {
|
||||
color: #999;
|
||||
margin: 20rpx 0;
|
||||
}
|
||||
.kilm-text,
|
||||
.order-text {
|
||||
display: block;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
.kilm-text {
|
||||
background-color: #e8f3ff;
|
||||
}
|
||||
.kilm-text,
|
||||
.none-text {
|
||||
border-radius: 5rpx;
|
||||
color: #3292ff;
|
||||
height: 42rpx;
|
||||
line-height: 42rpx;
|
||||
text-align: center;
|
||||
width: 200rpx;
|
||||
}
|
||||
.none-text {
|
||||
display: block;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
.pai-text,
|
||||
.type-text {
|
||||
color: #ff6412;
|
||||
display: inline-block;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
.type-text {
|
||||
height: auto;
|
||||
margin-right: 30rpx;
|
||||
margin-top: 20rpx;
|
||||
width: auto;
|
||||
}
|
||||
.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: 100%;
|
||||
}
|
||||
.tiaobiao {
|
||||
border-radius: 3rpx;
|
||||
color: #fa8c16;
|
||||
}
|
||||
254
packageA/pages/carjqx/incxjl.js
Normal file
254
packageA/pages/carjqx/incxjl.js
Normal file
@@ -0,0 +1,254 @@
|
||||
var e, a;
|
||||
(e = getApp()),
|
||||
(a = (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,
|
||||
page: 1,
|
||||
type: 5,
|
||||
},
|
||||
mileageChanage: function (e) {
|
||||
this.setData({ mileage: e.detail.value });
|
||||
},
|
||||
saoys: function (e) {
|
||||
wx.navigateTo({ url: "../xszsb/xszsb?type=1" });
|
||||
},
|
||||
queryVolation: function () {
|
||||
if (wx.getStorageSync("uid")) {
|
||||
var a = this;
|
||||
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: "../carjqx/carInfob" });
|
||||
}
|
||||
});
|
||||
},
|
||||
queryVinb: function (e) {
|
||||
console.log(this.data.mileage),
|
||||
a.default
|
||||
.getCarInfo({
|
||||
appType: "WECHAT",
|
||||
vin: this.data.mileage,
|
||||
queryType: 2,
|
||||
drivingLicense: "",
|
||||
})
|
||||
.then(function (e) {
|
||||
console.log(e),
|
||||
"1000" === e.error_code
|
||||
? (wx.setStorageSync("orderInfo", e.data),
|
||||
wx.navigateTo({ url: "../carjqx/carInfob" }))
|
||||
: 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: "../carjqx/carcxjl?orderid=D163748767606007237040",
|
||||
});
|
||||
},
|
||||
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"),
|
||||
this.getid(e.id);
|
||||
},
|
||||
getid: function (a) {
|
||||
var t = { id: a };
|
||||
e.getdata(t, "dhid").then((e) => {
|
||||
if ((console.log("页面回调数据:", e.data), e.data)) {
|
||||
this.setData({ dh: e.data, type: e.data.type });
|
||||
var a = [];
|
||||
for (let t = 0; t < e.data.dhbd.length; t++)
|
||||
(a[t] = e.data.dhbd[t].name),
|
||||
wx.setStorageSync(e.data.dhbd[t].name, "");
|
||||
let t = a.reduce((e, a) => ((e[a] = ""), e), {});
|
||||
this.setData({ postData: t }), console.log("post", t);
|
||||
}
|
||||
});
|
||||
},
|
||||
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/carjqx/carcxjl?orderid=" + a,
|
||||
success: function () {},
|
||||
});
|
||||
},
|
||||
});
|
||||
3
packageA/pages/carjqx/incxjl.json
Normal file
3
packageA/pages/carjqx/incxjl.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
37
packageA/pages/carjqx/incxjl.wxml
Normal file
37
packageA/pages/carjqx/incxjl.wxml
Normal file
@@ -0,0 +1,37 @@
|
||||
<view class="search-title">{{dh.name?dh.name:'车辆交强险日期查询'}}</view>
|
||||
<view class="search-text">{{dh.cxcontent?dh.cxcontent:'查询交强险信息,正常出报告有保险公司名称,保单号,如果保险过期将只出过期日期,人工查询时间早上9点-晚上11点,其他时间明早9点出,查询成功无法退款!'}}</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="saoys" class="help-wht">扫一扫识别更快</text>
|
||||
</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>
|
||||
148
packageA/pages/carjqx/incxjl.wxss
Normal file
148
packageA/pages/carjqx/incxjl.wxss
Normal file
@@ -0,0 +1,148 @@
|
||||
@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: #636364;
|
||||
font-size: 1rem;
|
||||
font-weight: 300;
|
||||
margin: 10px;
|
||||
width: 180px;
|
||||
}
|
||||
.top image {
|
||||
bottom: -1rem;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
width: 10rem;
|
||||
z-index: 10;
|
||||
}
|
||||
.search-title {
|
||||
font-size: 50rpx;
|
||||
font-weight: 700;
|
||||
margin-bottom: 60rpx;
|
||||
margin-top: 150rpx;
|
||||
text-align: center;
|
||||
}
|
||||
.search-text {
|
||||
border-radius: 10rpx;
|
||||
color: #86868b;
|
||||
font-size: 35rpx;
|
||||
font-size: 34rpx;
|
||||
line-height: 40rpx;
|
||||
margin: auto auto 120rpx;
|
||||
width: 89%;
|
||||
}
|
||||
.vin-input {
|
||||
background: #f2f2f2;
|
||||
display: inline-block;
|
||||
font-size: 46rpx;
|
||||
height: 80rpx;
|
||||
margin-left: 30rpx;
|
||||
padding: 10rpx 30rpx;
|
||||
width: 70%;
|
||||
}
|
||||
.search-button {
|
||||
background: #3d61f0 !important;
|
||||
border-radius: 10rpx;
|
||||
color: #fff !important;
|
||||
height: 100rpx !important;
|
||||
line-height: 100rpx !important;
|
||||
margin-top: 40rpx;
|
||||
padding: 0rpx !important;
|
||||
width: 93% !important;
|
||||
}
|
||||
.help-view {
|
||||
font-size: 31rpx;
|
||||
padding: 30rpx;
|
||||
}
|
||||
.help-example {
|
||||
color: #3d61f0;
|
||||
float: left;
|
||||
}
|
||||
.help-wht {
|
||||
color: #f0803e;
|
||||
float: right;
|
||||
}
|
||||
.camera-nav {
|
||||
display: inline-block;
|
||||
}
|
||||
.camera-img {
|
||||
height: 66rpx;
|
||||
margin-bottom: -14rpx;
|
||||
width: 75rpx;
|
||||
}
|
||||
.driver_mask {
|
||||
background: #000;
|
||||
height: 100%;
|
||||
left: 0;
|
||||
opacity: 0.5;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
z-index: 9000;
|
||||
}
|
||||
.driver_modalDlg {
|
||||
align-items: center;
|
||||
background-color: #fff;
|
||||
border-radius: 5px;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
left: 0;
|
||||
margin: 0 auto;
|
||||
position: fixed;
|
||||
right: 0;
|
||||
top: 25%;
|
||||
width: 80%;
|
||||
z-index: 9999;
|
||||
}
|
||||
.driver_ok {
|
||||
background: #3d61f0;
|
||||
border-radius: 8rpx;
|
||||
color: #fff;
|
||||
display: block;
|
||||
font-size: 15px;
|
||||
height: 35px;
|
||||
line-height: 35px;
|
||||
margin: 20px auto;
|
||||
text-align: center;
|
||||
width: 80px;
|
||||
}
|
||||
.driver_text {
|
||||
color: #666;
|
||||
display: block;
|
||||
font-size: 32rpx;
|
||||
line-height: 40rpx;
|
||||
margin: 30rpx;
|
||||
}
|
||||
.driver_ocr {
|
||||
margin: 0 auto;
|
||||
width: 80px;
|
||||
}
|
||||
.driver_ocr,
|
||||
.show_modal {
|
||||
display: block;
|
||||
}
|
||||
.hide_modal {
|
||||
display: none;
|
||||
}
|
||||
.driver_img {
|
||||
margin-left: 10%;
|
||||
width: 80%;
|
||||
}
|
||||
Reference in New Issue
Block a user