更换版本
This commit is contained in:
182
packageA/pages/carclzt/carInfo.js
Normal file
182
packageA/pages/carclzt/carInfo.js
Normal file
@@ -0,0 +1,182 @@
|
||||
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: "carclzt_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: "carclzt_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:
|
||||
"在早上9-下午11点查询结果将在10-30分钟查到,其他时间需要到次日早上统一出结果,不成功自动退款~",
|
||||
showCancel: !1,
|
||||
success: function (a) {
|
||||
a.confirm &&
|
||||
wx.reLaunch({ url: "/pages/reporlist/reporlist?type=9" });
|
||||
},
|
||||
});
|
||||
},
|
||||
getDetailb: 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,
|
||||
type: 1,
|
||||
};
|
||||
e.getdata(t, "carclztcx").then((e) => {
|
||||
console.log("回调数据:", e.data),
|
||||
wx.reLaunch({ url: "/pages/reporlist/reporlist?type=9" }),
|
||||
(e = e.data).data && a.setData({ order: e.data.result });
|
||||
});
|
||||
},
|
||||
queryVinb: function () {
|
||||
var e = this.data.orderInfo.seriousNo,
|
||||
t = this.data.orderInfo.queryType,
|
||||
n = this.data.orderInfo.name;
|
||||
console.log("queryType:" + t),
|
||||
a.default
|
||||
.wxPay({
|
||||
seriousNo: e,
|
||||
openId: wx.getStorageSync("openId"),
|
||||
money: this.data.orderInfo.money,
|
||||
})
|
||||
.then(function (a) {
|
||||
wx.requestPayment({
|
||||
timeStamp: a.data.timeStamp,
|
||||
nonceStr: a.data.nonceStr,
|
||||
package: a.data.package,
|
||||
signType: a.data.signType,
|
||||
paySign: a.data.sign,
|
||||
success: function (a) {
|
||||
wx.navigateTo({
|
||||
url:
|
||||
"/pages/successPage/successPage?seriousNo=" +
|
||||
e +
|
||||
"&queryType=" +
|
||||
t +
|
||||
"&name=" +
|
||||
n,
|
||||
});
|
||||
},
|
||||
fail: function (a) {
|
||||
console.log(a);
|
||||
},
|
||||
});
|
||||
});
|
||||
},
|
||||
toDisclaimers: function () {
|
||||
wx.navigateTo({ url: "/pages/disclaimers/disclaimers" });
|
||||
},
|
||||
onReady: function () {},
|
||||
onShow: function () {},
|
||||
onHide: function () {},
|
||||
onUnload: function () {},
|
||||
onPullDownRefresh: function () {},
|
||||
onReachBottom: function () {},
|
||||
onShareAppMessage: function () {},
|
||||
});
|
||||
3
packageA/pages/carclzt/carInfo.json
Normal file
3
packageA/pages/carclzt/carInfo.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
37
packageA/pages/carclzt/carInfo.wxml
Normal file
37
packageA/pages/carclzt/carInfo.wxml
Normal file
@@ -0,0 +1,37 @@
|
||||
<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 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/carclzt/carInfo.wxss
Normal file
82
packageA/pages/carclzt/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;
|
||||
}
|
||||
57
packageA/pages/carclzt/carcxjl.js
Normal file
57
packageA/pages/carclzt/carcxjl.js
Normal file
@@ -0,0 +1,57 @@
|
||||
var a;
|
||||
(a = getApp()),
|
||||
Page({
|
||||
data: { serviceSumCount: 0, serviceSumMoney: 0 },
|
||||
onLoad: function (a) {
|
||||
this.getDetail(a.orderid);
|
||||
},
|
||||
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 + "未生成段位卡");
|
||||
},
|
||||
getDetail: function (t) {
|
||||
var e = this,
|
||||
r = { orderid: t };
|
||||
a.getdata(r, "carclztid").then((a) => {
|
||||
if (
|
||||
(console.log("回调数据:", a),
|
||||
a &&
|
||||
(e.setData({ cardata: a.data, orderid: t }),
|
||||
a.data.recordimgs &&
|
||||
e.setData({ recordimgs: JSON.parse(a.data.recordimgs) }),
|
||||
a.data.record))
|
||||
) {
|
||||
var r = JSON.parse(a.data.record);
|
||||
console.log(r), e.setData({ records: r });
|
||||
}
|
||||
});
|
||||
},
|
||||
onReady: function () {},
|
||||
onShow: function () {},
|
||||
onHide: function () {},
|
||||
onUnload: function () {},
|
||||
onPullDownRefresh: function () {},
|
||||
onReachBottom: function () {},
|
||||
onShareAppMessage: function () {
|
||||
return {
|
||||
title: this.data.cardata.cars + "车辆状态报告",
|
||||
path: "/packageA/pages/carclzt/carcxjl?orderid=" + this.data.orderid,
|
||||
};
|
||||
},
|
||||
onShareTimeline: function () {
|
||||
return {
|
||||
title: this.data.cardata.cars + "车辆状态报告",
|
||||
path: "/packageA/pages/carclzt/carcxjl?orderid=" + this.data.orderid,
|
||||
};
|
||||
},
|
||||
});
|
||||
5
packageA/pages/carclzt/carcxjl.json
Normal file
5
packageA/pages/carclzt/carcxjl.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"usingComponents": {},
|
||||
"navigationBarBackgroundColor": "#3960FE",
|
||||
"navigationBarTitleText": ""
|
||||
}
|
||||
65
packageA/pages/carclzt/carcxjl.wxml
Normal file
65
packageA/pages/carclzt/carcxjl.wxml
Normal file
@@ -0,0 +1,65 @@
|
||||
<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-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 wx:for="{{records.words_result}}" wx:key="{{index}}">
|
||||
<text bindtap="deletewenzi" class="" data-index="{{index}}" data-words="{{item.words}}">{{item.words}}</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>
|
||||
232
packageA/pages/carclzt/carcxjl.wxss
Normal file
232
packageA/pages/carclzt/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;
|
||||
}
|
||||
236
packageA/pages/carclzt/incxjl.js
Normal file
236
packageA/pages/carclzt/incxjl.js
Normal file
@@ -0,0 +1,236 @@
|
||||
!(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,
|
||||
page: 1,
|
||||
type: 9,
|
||||
},
|
||||
mileageChanage: function (e) {
|
||||
this.setData({ mileage: e.detail.value });
|
||||
},
|
||||
chepaiChanage: function (e) {
|
||||
this.setData({ chepai: 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 if (a.data.imageUrl) {
|
||||
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.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: "../carclzt/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: "../carclzt/carcxjl?orderid=D164006758469794418284",
|
||||
});
|
||||
},
|
||||
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 });
|
||||
}
|
||||
});
|
||||
},
|
||||
showRenMsg: function () {
|
||||
wx.showToast({
|
||||
title: "人工查询中,请稍等",
|
||||
icon: "none",
|
||||
duration: 3e3,
|
||||
});
|
||||
},
|
||||
showGaoMsg: function () {
|
||||
wx.showToast({
|
||||
title: "查不到记录,建议使用高级出险查询。",
|
||||
icon: "none",
|
||||
duration: 3e3,
|
||||
});
|
||||
},
|
||||
getcarclztDetail: function (e) {
|
||||
var a = e.currentTarget.dataset.orderid;
|
||||
wx.navigateTo({
|
||||
url: "/packageA/pages/carclzt/carcxjl?orderid=" + a,
|
||||
success: function () {},
|
||||
});
|
||||
},
|
||||
onHide: function () {},
|
||||
onUnload: function () {},
|
||||
onShareAppMessage: function () {},
|
||||
});
|
||||
})();
|
||||
4
packageA/pages/carclzt/incxjl.json
Normal file
4
packageA/pages/carclzt/incxjl.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "车辆状态查询",
|
||||
"usingComponents": {}
|
||||
}
|
||||
55
packageA/pages/carclzt/incxjl.wxml
Normal file
55
packageA/pages/carclzt/incxjl.wxml
Normal file
@@ -0,0 +1,55 @@
|
||||
<view class="topbb" style="width: 750rpx; height: 333rpx; display: block; box-sizing: border-box; left: 0rpx; top: 47rpx">
|
||||
<view class="top">
|
||||
<view class="title">
|
||||
<view class="main">车辆状态查询</view>
|
||||
<view class="sub">查询车辆状态信息,车辆状态详细信息查询,是否被查封~查询时间:早上9点-晚上10点</view>
|
||||
</view>
|
||||
<image mode="widthFix" src="https://api.ym23.com/addons/monai_market/static/images/car/WechatIMG25.png" style="width: 251rpx; height: 139rpx; display: block; box-sizing: border-box; left: 500rpx; top: 159rpx; position: absolute"></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>
|
||||
<input bindinput="chepaiChanage" class="vin-input" maxlength="17" placeholder="车牌号" type="text" value="{{chepai}}"></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 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'?'getcarclztDetail':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>
|
||||
154
packageA/pages/carclzt/incxjl.wxss
Normal file
154
packageA/pages/carclzt/incxjl.wxss
Normal file
@@ -0,0 +1,154 @@
|
||||
@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;
|
||||
color: #000;
|
||||
font-size: 1rem;
|
||||
font-size: 35rpx;
|
||||
font-weight: 100;
|
||||
margin: 10px;
|
||||
width: 160px;
|
||||
width: 60%;
|
||||
}
|
||||
.top image {
|
||||
bottom: -1rem;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
width: 8rem;
|
||||
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;
|
||||
margin-top: 40rpx;
|
||||
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;
|
||||
}
|
||||
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%;
|
||||
}
|
||||
160
packageA/pages/carcxzx/carInfo.js
Normal file
160
packageA/pages/carcxzx/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: "chuxiana_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: "chuxiana_money",
|
||||
orderid: a.data.orderid,
|
||||
vin: a.data.cardatawx.vin,
|
||||
chepai: a.data.cardatawx.chepai,
|
||||
engine: a.data.cardatawx.engine,
|
||||
cpimg: a.data.cardatawx.imageUrl,
|
||||
uid: wx.getStorageSync("uid"),
|
||||
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/carcxzx/carInfo.json
Normal file
3
packageA/pages/carcxzx/carInfo.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
33
packageA/pages/carcxzx/carInfo.wxml
Normal file
33
packageA/pages/carcxzx/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/carcxzx/carInfo.wxss
Normal file
82
packageA/pages/carcxzx/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/carcxzx/carcxjl.js
Normal file
62
packageA/pages/carcxzx/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/carcxzx/carcxjl?orderid=" + this.data.orderid,
|
||||
};
|
||||
},
|
||||
onShareTimeline: function () {
|
||||
return {
|
||||
title: this.data.cardata.cars + "出险碰撞查询报告",
|
||||
path: "/packageA/pages/carcxzx/carcxjl?orderid=" + this.data.orderid,
|
||||
};
|
||||
},
|
||||
});
|
||||
5
packageA/pages/carcxzx/carcxjl.json
Normal file
5
packageA/pages/carcxzx/carcxjl.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"usingComponents": {},
|
||||
"navigationBarBackgroundColor": "#3960FE",
|
||||
"navigationBarTitleText": ""
|
||||
}
|
||||
86
packageA/pages/carcxzx/carcxjl.wxml
Normal file
86
packageA/pages/carcxzx/carcxjl.wxml
Normal file
@@ -0,0 +1,86 @@
|
||||
<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>
|
||||
232
packageA/pages/carcxzx/carcxjl.wxss
Normal file
232
packageA/pages/carcxzx/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;
|
||||
}
|
||||
188
packageA/pages/carcxzx/incxjl.js
Normal file
188
packageA/pages/carcxzx/incxjl.js
Normal file
@@ -0,0 +1,188 @@
|
||||
!(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 () {
|
||||
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 if (a.data.imageUrl) {
|
||||
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.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: "../carcxzx/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: "../carcxzx/carcxjl?orderid=D163902197008841214512",
|
||||
});
|
||||
},
|
||||
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 () {
|
||||
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/carcxzx/incxjl.json
Normal file
4
packageA/pages/carcxzx/incxjl.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "出险记录高级版查询",
|
||||
"usingComponents": {}
|
||||
}
|
||||
28
packageA/pages/carcxzx/incxjl.wxml
Normal file
28
packageA/pages/carcxzx/incxjl.wxml
Normal file
@@ -0,0 +1,28 @@
|
||||
<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">查询成功率高达%95以上,数据超级准确</view>
|
||||
</view>
|
||||
<image mode="widthFix" src="https://api.ym23.com/addons/monai_market/static/images/car/WechatIMG25.png" style="width: 317rpx; height: 172rpx; display: block; box-sizing: border-box; left: 422rpx; top: 158rpx; position: absolute"></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/carcxzx/incxjl.wxss
Normal file
151
packageA/pages/carcxzx/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: #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: #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;
|
||||
}
|
||||
183
packageA/pages/cardzbd/carInfo.js
Normal file
183
packageA/pages/cardzbd/carInfo.js
Normal file
@@ -0,0 +1,183 @@
|
||||
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: "cardzbd_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: "cardzbd_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: "结果将工作时间在10-50分钟通知你,不成功自动退款~",
|
||||
showCancel: !1,
|
||||
success: function (a) {
|
||||
a.confirm && wx.reLaunch({ url: "/pages/reporlist/reporlist" });
|
||||
},
|
||||
});
|
||||
},
|
||||
getDetailb: 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,
|
||||
cxtype: a.data.cardatawx.cxtype,
|
||||
daben: wx.getStorageSync("daben"),
|
||||
daben1: wx.getStorageSync("daben1"),
|
||||
daben2: wx.getStorageSync("daben2"),
|
||||
daben3: wx.getStorageSync("daben3"),
|
||||
money: a.data.fee,
|
||||
type: 1,
|
||||
};
|
||||
e.getdata(t, "dzbdcx").then((e) => {
|
||||
console.log("回调数据:", e.data), a.setData({ order: e.data.result });
|
||||
});
|
||||
},
|
||||
queryVinb: function () {
|
||||
var e = this.data.orderInfo.seriousNo,
|
||||
t = this.data.orderInfo.queryType,
|
||||
n = this.data.orderInfo.name;
|
||||
console.log("queryType:" + t),
|
||||
a.default
|
||||
.wxPay({
|
||||
seriousNo: e,
|
||||
openId: wx.getStorageSync("openId"),
|
||||
money: this.data.orderInfo.money,
|
||||
})
|
||||
.then(function (a) {
|
||||
wx.requestPayment({
|
||||
timeStamp: a.data.timeStamp,
|
||||
nonceStr: a.data.nonceStr,
|
||||
package: a.data.package,
|
||||
signType: a.data.signType,
|
||||
paySign: a.data.sign,
|
||||
success: function (a) {
|
||||
wx.navigateTo({
|
||||
url:
|
||||
"/pages/successPage/successPage?seriousNo=" +
|
||||
e +
|
||||
"&queryType=" +
|
||||
t +
|
||||
"&name=" +
|
||||
n,
|
||||
});
|
||||
},
|
||||
fail: function (a) {
|
||||
console.log(a);
|
||||
},
|
||||
});
|
||||
});
|
||||
},
|
||||
toDisclaimers: function () {
|
||||
wx.navigateTo({ url: "/pages/disclaimers/disclaimers" });
|
||||
},
|
||||
onReady: function () {},
|
||||
onShow: function () {},
|
||||
onHide: function () {},
|
||||
onUnload: function () {},
|
||||
onPullDownRefresh: function () {},
|
||||
onReachBottom: function () {},
|
||||
onShareAppMessage: function () {},
|
||||
});
|
||||
3
packageA/pages/cardzbd/carInfo.json
Normal file
3
packageA/pages/cardzbd/carInfo.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
34
packageA/pages/cardzbd/carInfo.wxml
Normal file
34
packageA/pages/cardzbd/carInfo.wxml
Normal file
@@ -0,0 +1,34 @@
|
||||
<view class="search-title">请确认以下信息</view>
|
||||
<view class="info-box">
|
||||
<view class="image-view">
|
||||
<image class="logo-iamge image-width" mode="heightFix" src="{{orderInfo.logo}}"></image>
|
||||
</view>
|
||||
<view class="text-view first-top">
|
||||
<text class="name-line">品牌</text>
|
||||
<text class="info-line">{{orderInfo.brand}}</text>
|
||||
<text class="special-text {{orderInfo.specialCar==1?'':'none-text'}}"> 特殊品牌</text>
|
||||
</view>
|
||||
<view class="text-view">
|
||||
<text class="name-line">VIN</text>
|
||||
<text class="info-line">{{orderInfo.vin}}</text>
|
||||
</view>
|
||||
<view class="text-view"> <text class="name-line">排放标准</text> <text class="info-line">{{orderInfo.environmentalstandards}}</text>
|
||||
</view>
|
||||
<view class="text-view"> <text class="name-line">种类</text> <text class="info-line">{{orderInfo.groupname}}</text>
|
||||
</view>
|
||||
<view class="text-view">
|
||||
<text class="name-line">厂商</text>
|
||||
<text class="info-line">{{orderInfo.manufacturer}}</text>
|
||||
</view>
|
||||
<view wx:if="{{phone!=ios}}">
|
||||
<view class="text-money">本次查询需要支付 <text class="free-money {{orderInfo.queryType==3?'':'none-text'}}">¥{{fee}}</text>
|
||||
<text class="info-money">¥{{fee}}</text>元 </view>
|
||||
</view>
|
||||
<view wx:if="{{phone==ios}}">
|
||||
<view class="text-money" wx:if="{{order.data.open==1}}">本次查询需要支付 <text class="free-money {{orderInfo.queryType==3?'':'none-text'}}">¥{{fee}}</text>
|
||||
<text class="info-money">¥{{fee}}</text>元 </view>
|
||||
</view>
|
||||
</view>
|
||||
<button bindtap="queryVin" class="search-button">确认查询</button>
|
||||
<view class="guite-info">默认支付同意<text bindtap="toDisclaimers" class="page-text">《平台免责声明》</text>
|
||||
</view>
|
||||
82
packageA/pages/cardzbd/carInfo.wxss
Normal file
82
packageA/pages/cardzbd/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/cardzbd/carcxjl.js
Normal file
62
packageA/pages/cardzbd/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, "dzbdid").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/cardzbd/carcxjl?orderid=" + this.data.orderid,
|
||||
};
|
||||
},
|
||||
onShareTimeline: function () {
|
||||
return {
|
||||
title: this.data.cardata.cars + "出险碰撞查询报告",
|
||||
path: "/packageA/pages/cardzbd/carcxjl?orderid=" + this.data.orderid,
|
||||
};
|
||||
},
|
||||
});
|
||||
5
packageA/pages/cardzbd/carcxjl.json
Normal file
5
packageA/pages/cardzbd/carcxjl.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"usingComponents": {},
|
||||
"navigationBarBackgroundColor": "#3960FE",
|
||||
"navigationBarTitleText": ""
|
||||
}
|
||||
89
packageA/pages/cardzbd/carcxjl.wxml
Normal file
89
packageA/pages/cardzbd/carcxjl.wxml
Normal file
@@ -0,0 +1,89 @@
|
||||
<view class="page-view" wx:if="{{cardata.url}}">
|
||||
<web-view src="{{cardata.url}}"></web-view>
|
||||
</view>
|
||||
<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>
|
||||
232
packageA/pages/cardzbd/carcxjl.wxss
Normal file
232
packageA/pages/cardzbd/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;
|
||||
}
|
||||
341
packageA/pages/cardzbd/incxjl.js
Normal file
341
packageA/pages/cardzbd/incxjl.js
Normal file
@@ -0,0 +1,341 @@
|
||||
!(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,
|
||||
daben: "",
|
||||
page: 1,
|
||||
type: 8,
|
||||
index: 0,
|
||||
bdtype: ["交强险查询", "商业保险查询"],
|
||||
cxtype: "交强险查询",
|
||||
},
|
||||
mileageChanage: function (e) {
|
||||
this.setData({ mileage: e.detail.value });
|
||||
},
|
||||
bindPickerChange: function (e) {
|
||||
console.log("picker发送选择改变,携带值为", e.detail.value),
|
||||
this.setData({
|
||||
index: e.detail.value,
|
||||
cxtype: this.data.bdtype[e.detail.value],
|
||||
});
|
||||
},
|
||||
saoys: function (e) {
|
||||
wx.navigateTo({ url: "../xszsb/xszsb?type=1" });
|
||||
},
|
||||
daben: function (a) {
|
||||
var t = this;
|
||||
wx.chooseImage({
|
||||
count: 1,
|
||||
sizeType: ["compressed"],
|
||||
sourceType: ["album", "camera"],
|
||||
success: function (a) {
|
||||
var n =
|
||||
e.util.url("entry/wxapp/scqiniu") + "&m=monai_market&ids=daben";
|
||||
wx.uploadFile({
|
||||
url: n,
|
||||
filePath: a.tempFilePaths[0],
|
||||
name: "file",
|
||||
success: function (e) {
|
||||
var a = (a = (a = e.data).replace("\n", "")).replace("\r", "");
|
||||
console.log(a),
|
||||
t.setData({ daben: a }),
|
||||
wx.setStorageSync("daben", a);
|
||||
},
|
||||
});
|
||||
},
|
||||
});
|
||||
},
|
||||
daben1: function (a) {
|
||||
var t = this;
|
||||
wx.chooseImage({
|
||||
count: 1,
|
||||
sizeType: ["compressed"],
|
||||
sourceType: ["album", "camera"],
|
||||
success: function (a) {
|
||||
var n =
|
||||
e.util.url("entry/wxapp/scqiniu") + "&m=monai_market&ids=daben";
|
||||
wx.uploadFile({
|
||||
url: n,
|
||||
filePath: a.tempFilePaths[0],
|
||||
name: "file",
|
||||
success: function (e) {
|
||||
var a = (a = (a = e.data).replace("\n", "")).replace("\r", "");
|
||||
console.log(a),
|
||||
t.setData({ daben1: a }),
|
||||
wx.setStorageSync("daben1", a);
|
||||
},
|
||||
});
|
||||
},
|
||||
});
|
||||
},
|
||||
daben2: function (a) {
|
||||
var t = this;
|
||||
wx.chooseImage({
|
||||
count: 1,
|
||||
sizeType: ["compressed"],
|
||||
sourceType: ["album", "camera"],
|
||||
success: function (a) {
|
||||
var n =
|
||||
e.util.url("entry/wxapp/scqiniu") + "&m=monai_market&ids=daben";
|
||||
wx.uploadFile({
|
||||
url: n,
|
||||
filePath: a.tempFilePaths[0],
|
||||
name: "file",
|
||||
success: function (e) {
|
||||
var a = (a = (a = e.data).replace("\n", "")).replace("\r", "");
|
||||
console.log(a),
|
||||
t.setData({ daben2: a }),
|
||||
wx.setStorageSync("daben2", a);
|
||||
},
|
||||
});
|
||||
},
|
||||
});
|
||||
},
|
||||
daben3: function (a) {
|
||||
var t = this;
|
||||
wx.chooseImage({
|
||||
count: 1,
|
||||
sizeType: ["compressed"],
|
||||
sourceType: ["album", "camera"],
|
||||
success: function (a) {
|
||||
var n =
|
||||
e.util.url("entry/wxapp/scqiniu") + "&m=monai_market&ids=daben";
|
||||
wx.uploadFile({
|
||||
url: n,
|
||||
filePath: a.tempFilePaths[0],
|
||||
name: "file",
|
||||
success: function (e) {
|
||||
var a = (a = (a = e.data).replace("\n", "")).replace("\r", "");
|
||||
console.log(a),
|
||||
t.setData({ daben3: a }),
|
||||
wx.setStorageSync("daben3", a);
|
||||
},
|
||||
});
|
||||
},
|
||||
});
|
||||
},
|
||||
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 if (a.data.imageUrl) {
|
||||
var t = this,
|
||||
n = { content: t.data.mileage + t.data.engine + t.data.chepai };
|
||||
e.getdata(n, "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.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 n = {
|
||||
vin: t.data.mileage,
|
||||
imageUrl: t.data.imageUrl,
|
||||
engine: t.data.engine,
|
||||
chepai: t.data.chepai,
|
||||
cxtype: t.data.cxtype,
|
||||
};
|
||||
wx.setStorageSync("cardatawx", n), console.log(t.data.daben);
|
||||
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: "../cardzbd/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: "../cardzbd/carcxjl?orderid=D164001170278907858681",
|
||||
});
|
||||
},
|
||||
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"),
|
||||
wx.removeStorageSync("daben"),
|
||||
wx.removeStorageSync("daben1"),
|
||||
wx.removeStorageSync("daben2"),
|
||||
wx.removeStorageSync("daben3");
|
||||
},
|
||||
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"),
|
||||
n = wx.getStorageSync("carprov"),
|
||||
o = wx.getStorageSync("carcity"),
|
||||
i = wx.getStorageSync("cartime"),
|
||||
c = "";
|
||||
"" != o && null != o && (c = n.name + "-" + o.name),
|
||||
console.log("" == t),
|
||||
"" != t &&
|
||||
"" != i &&
|
||||
parseInt(i.split("-")[0]) < parseInt(t.makeyear) &&
|
||||
(i = ""),
|
||||
this.setData({
|
||||
carName: t.salesdesc,
|
||||
cityName: c,
|
||||
regdate: i,
|
||||
cityid: o.id,
|
||||
provid: n.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,
|
||||
n = { uid: wx.getStorageSync("uid"), type: t.data.type, page: a };
|
||||
e.getdata(n, "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 n = t.data.repairList;
|
||||
n.push.apply(n, e.data),
|
||||
t.setData({ repairList: n, page: t.data.page + 1 });
|
||||
}
|
||||
});
|
||||
},
|
||||
showRenMsg: function () {
|
||||
wx.showToast({
|
||||
title: "人工查询中,请稍等",
|
||||
icon: "none",
|
||||
duration: 3e3,
|
||||
});
|
||||
},
|
||||
showGaoMsg: function () {
|
||||
wx.showToast({
|
||||
title: "查不到记录,建议使用高级出险查询。",
|
||||
icon: "none",
|
||||
duration: 3e3,
|
||||
});
|
||||
},
|
||||
getdzbdDetail: function (e) {
|
||||
var a = e.currentTarget.dataset.orderid;
|
||||
wx.navigateTo({
|
||||
url: "/packageA/pages/cardzbd/carcxjl?orderid=" + a,
|
||||
success: function () {},
|
||||
});
|
||||
},
|
||||
onHide: function () {},
|
||||
onUnload: function () {},
|
||||
onShareAppMessage: function () {},
|
||||
});
|
||||
})();
|
||||
4
packageA/pages/cardzbd/incxjl.json
Normal file
4
packageA/pages/cardzbd/incxjl.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "电子保单",
|
||||
"usingComponents": {}
|
||||
}
|
||||
66
packageA/pages/cardzbd/incxjl.wxml
Normal file
66
packageA/pages/cardzbd/incxjl.wxml
Normal file
@@ -0,0 +1,66 @@
|
||||
<view class="topbb" style="width: 750rpx; height: 350rpx; display: block; box-sizing: border-box; left: 0rpx; top: 47rpx">
|
||||
<view class="top">
|
||||
<view class="title">
|
||||
<view class="main"> 电子保单查询</view>
|
||||
<view class="sub">电子保单,查询需要时间,正常10-30分钟内出结果,查询时间:早上9点-晚上10点,其他时间次日~</view>
|
||||
</view>
|
||||
<image mode="widthFix" src="https://api.ym23.com/addons/monai_market/static/images/car/WechatIMG25.png" style="position: absolute; left: 450rpx; top: 162rpx"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view>
|
||||
<view class="vin-inputs">
|
||||
<picker bindchange="bindPickerChange" range="{{bdtype}}" value="{{index}}">
|
||||
<view class="picker">
|
||||
<text class="opt-name">点击选择类型</text>:<text style="color: rgb(26, 113, 253);">{{bdtype[index]}}</text>
|
||||
</view>
|
||||
</picker>
|
||||
</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>车牌号:{{chepai}},行驶证上传成功~</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>
|
||||
<text bindtap="daben" class="driver_text" wx:if="{{!daben}}">上传车辆大本查询成功率更高(选填,有大本请上传)</text>
|
||||
<text bindtap="daben" class="driver_text" wx:else>大本上传成功~</text>
|
||||
<image bindtap="daben" class="driver_img" mode="aspectFill" src="https://api.ym23.com/addons/monai_market/static/images/car/1.jpg" wx:if="{{!daben}}"></image>
|
||||
<image bindtap="daben" class="driver_img" mode="aspectFill" src="{{daben}}" wx:else></image>
|
||||
<image bindtap="daben1" class="driver_img" mode="aspectFill" src="https://api.ym23.com/addons/monai_market/static/images/car/2.jpg" wx:if="{{!daben1}}"></image>
|
||||
<image bindtap="daben1" class="driver_img" mode="aspectFill" src="{{daben1}}" wx:else></image>
|
||||
<image bindtap="daben2" class="driver_img" mode="aspectFill" src="https://api.ym23.com/addons/monai_market/static/images/car/3.jpg" wx:if="{{!daben2}}"></image>
|
||||
<image bindtap="daben2" class="driver_img" mode="aspectFill" src="{{daben2}}" wx:else></image>
|
||||
<image bindtap="daben3" class="driver_img" mode="aspectFill" src="https://api.ym23.com/addons/monai_market/static/images/car/4.jpg" wx:if="{{!daben3}}"></image>
|
||||
<image bindtap="daben3" class="driver_img" mode="aspectFill" src="{{daben3}}" 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: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'?'getdzbdDetail':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>
|
||||
165
packageA/pages/cardzbd/incxjl.wxss
Normal file
165
packageA/pages/cardzbd/incxjl.wxss
Normal file
@@ -0,0 +1,165 @@
|
||||
@import "/graceUI/reporlist.wxss";
|
||||
.topbb {
|
||||
height: 215px;
|
||||
margin: 10px;
|
||||
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;
|
||||
}
|
||||
.picker {
|
||||
color: #86868b;
|
||||
}
|
||||
.top .title .sub {
|
||||
color: #636364;
|
||||
font-size: 1rem;
|
||||
font-size: 35rpx;
|
||||
font-weight: 100;
|
||||
margin: 10px;
|
||||
width: 160px;
|
||||
width: 60%;
|
||||
}
|
||||
.top image {
|
||||
bottom: -1rem;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
width: 8rem;
|
||||
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 {
|
||||
width: 70%;
|
||||
}
|
||||
.vin-input,
|
||||
.vin-inputs {
|
||||
background: #f2f2f2;
|
||||
display: inline-block;
|
||||
font-size: 46rpx;
|
||||
height: 80rpx;
|
||||
margin-left: 30rpx;
|
||||
margin-top: 40rpx;
|
||||
padding: 10rpx 30rpx;
|
||||
}
|
||||
.vin-inputs {
|
||||
width: 84%;
|
||||
}
|
||||
.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: 100px;
|
||||
margin-left: 5%;
|
||||
width: 40%;
|
||||
}
|
||||
81
packageA/pages/caresgz/carpg/carpg.js
Normal file
81
packageA/pages/caresgz/carpg/carpg.js
Normal file
@@ -0,0 +1,81 @@
|
||||
var e;
|
||||
(e = getApp()),
|
||||
Page({
|
||||
data: { curs: 1 },
|
||||
onLoad: function (a) {
|
||||
this.getDetail(a.orderid);
|
||||
},
|
||||
getDetail: function (a) {
|
||||
var t = this,
|
||||
o = { orderid: a };
|
||||
e.getdata(o, "escgzid").then((e) => {
|
||||
if ((console.log("回调数据:", e), e)) {
|
||||
t.setData({
|
||||
orderid: a,
|
||||
cardata: e.data,
|
||||
salesdesc: e.data.carName,
|
||||
makeyear: e.data.regdate,
|
||||
carjson: JSON.parse(e.data.cardata),
|
||||
}),
|
||||
console.log("回调数据jsion:", JSON.parse(e.data.cardata));
|
||||
var o = JSON.parse(e.data.record);
|
||||
console.log(o);
|
||||
var d = o;
|
||||
t.setData({
|
||||
bad: d.retdata.car_normal,
|
||||
good: d.retdata.car_excellent,
|
||||
normal: d.retdata.car_good,
|
||||
}),
|
||||
t.data.cardata.carId;
|
||||
}
|
||||
});
|
||||
},
|
||||
getData: function (e) {
|
||||
var t = this;
|
||||
a.default.getValuation({ appType: "WECHAT", id: e }).then(function (a) {
|
||||
console.log(a),
|
||||
"1000" === a.error_code
|
||||
? t.setData({
|
||||
salesdesc: a.data.vehicle.salesdesc,
|
||||
brandname: a.data.vehicle.brandname,
|
||||
familyname: a.data.vehicle.familyname,
|
||||
factoryname: a.data.vehicle.factoryname,
|
||||
makeyear: a.data.vehicle.makeyear,
|
||||
geartype: a.data.vehicle.geartype,
|
||||
emission: a.data.vehicle.emission,
|
||||
output: a.data.vehicle.output,
|
||||
prov: a.data.bloBs.prov,
|
||||
city: a.data.bloBs.city,
|
||||
regdate: a.data.bloBs.regdate,
|
||||
mileage: a.data.bloBs.mileage,
|
||||
price: a.data.bloBs.price,
|
||||
bad: JSON.parse(a.data.bloBs.bad),
|
||||
good: JSON.parse(a.data.bloBs.good),
|
||||
normal: JSON.parse(a.data.bloBs.normal),
|
||||
})
|
||||
: wx.showToast({ title: a.message, icon: "none", duration: 3e3 });
|
||||
});
|
||||
},
|
||||
chenagestatus: function (a) {
|
||||
var e = a.currentTarget.dataset.status;
|
||||
this.setData({ curs: e });
|
||||
},
|
||||
onReady: function () {},
|
||||
onShow: function () {},
|
||||
onHide: function () {},
|
||||
onUnload: function () {},
|
||||
onPullDownRefresh: function () {},
|
||||
onReachBottom: function () {},
|
||||
onShareAppMessage: function () {
|
||||
return {
|
||||
title: this.data.salesdesc + "汽车估值报告",
|
||||
path: "/packageA/pages/caresgz/carpg/carpg?id=" + this.data.id,
|
||||
};
|
||||
},
|
||||
onShareTimeline: function () {
|
||||
return {
|
||||
title: this.data.salesdesc + "汽车估值报告",
|
||||
path: "/packageA/pages/caresgz/carpg/carpg?id=" + this.data.id,
|
||||
};
|
||||
},
|
||||
});
|
||||
3
packageA/pages/caresgz/carpg/carpg.json
Normal file
3
packageA/pages/caresgz/carpg/carpg.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
96
packageA/pages/caresgz/carpg/carpg.wxml
Normal file
96
packageA/pages/caresgz/carpg/carpg.wxml
Normal file
@@ -0,0 +1,96 @@
|
||||
<view class="page-view" wx:if="{{cardata.url}}">
|
||||
<web-view src="{{cardata.url}}"></web-view>
|
||||
</view>
|
||||
<view class="base_view">
|
||||
<view class="vehicle_title">{{salesdesc}}</view>
|
||||
<view class="lineview"></view>
|
||||
<view class="vehicle_set">
|
||||
<view class="vehicle-th">
|
||||
<text class="vehicle-td nnhui">购买时间</text>
|
||||
<text class="vehicle-td nnhui">上牌日期</text>
|
||||
<text class="vehicle-td nnhui">行驶里程</text>
|
||||
<text class="vehicle-td nnhui">指导价</text>
|
||||
</view>
|
||||
<view class="vehicle-th" style="margin-top: 10rpx;">
|
||||
<text class="vehicle-td">{{makeyear}}</text>
|
||||
<text class="vehicle-td">{{carjson.estimate_regdate}}</text>
|
||||
<text class="vehicle-td">{{carjson.estimate_miles}}</text>
|
||||
<text class="vehicle-td">{{carjson.g_price}}万</text>
|
||||
</view>
|
||||
<view class="vehicle-th" style="margin-top: 40rpx;">
|
||||
<text class="vehicle-td nnhui">排放标准</text>
|
||||
<text class="vehicle-td nnhui">年款</text>
|
||||
<text class="vehicle-td nnhui">变速箱</text>
|
||||
<text class="vehicle-td nnhui">排量</text>
|
||||
</view>
|
||||
<view class="vehicle-th" style="margin-top: 10rpx;">
|
||||
<text class="vehicle-td">{{carjson.c_environmentalstandards}}</text>
|
||||
<text class="vehicle-td">{{carjson.c_cyear}}</text>
|
||||
<text class="vehicle-td">{{carjson.c_bsxlx}}</text>
|
||||
<text class="vehicle-td">{{carjson.c_displacement}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="valuation_view">
|
||||
<view class="valuation_title">车辆估值</view>
|
||||
<view class="valuation_status">
|
||||
<view bindtap="chenagestatus" class="v_status {{curs=='1'?'s_active':''}}" data-status="1">车况一般</view>
|
||||
<view bindtap="chenagestatus" class="v_status {{curs=='2'?'s_active':''}}" data-status="2">车况较好</view>
|
||||
<view bindtap="chenagestatus" class="v_status {{curs=='3'?'s_active':''}}" data-status="3">车况优秀</view>
|
||||
</view>
|
||||
<view class="price_view">
|
||||
<view class="price_moyb">
|
||||
<text>当时新车指导价:{{carjson.g_price}}万</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="price_view {{curs=='1'?'':'noneview'}}">
|
||||
<view class="price_title">
|
||||
<text>车商零售价(万)</text>
|
||||
<text>个人零售价(万)</text>
|
||||
</view>
|
||||
<view class="price_moy">
|
||||
<text>{{bad.car_retail}}</text>
|
||||
<text>{{bad.car_personal}}</text>
|
||||
</view>
|
||||
<view class="c_price_title">车商收购价区间</view>
|
||||
<view class="c_price">
|
||||
<text>{{bad.car_purchase}}万元</text>
|
||||
<text>-</text>
|
||||
<text>{{bad.car_personal}}万元</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="price_view {{curs=='2'?'':'noneview'}}">
|
||||
<view class="price_title">
|
||||
<text>车商零售价(万)</text>
|
||||
<text>个人零售价(万)</text>
|
||||
</view>
|
||||
<view class="price_moy">
|
||||
<text>{{normal.car_retail}}</text>
|
||||
<text>{{normal.car_personal}}</text>
|
||||
</view>
|
||||
<view class="c_price_title">车商收购价区间</view>
|
||||
<view class="c_price">
|
||||
<text>{{normal.car_purchase}}万元</text>
|
||||
<text>-</text>
|
||||
<text>{{normal.car_personal}}万元</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="price_view {{curs=='3'?'':'noneview'}}">
|
||||
<view class="price_title">
|
||||
<text>车商零售价(万)</text>
|
||||
<text>个人零售价(万)</text>
|
||||
</view>
|
||||
<view class="price_moy">
|
||||
<text>{{good.car_retail}}</text>
|
||||
<text>{{good.car_personal}}</text>
|
||||
</view>
|
||||
<view class="c_price_title">车商收购价区间</view>
|
||||
<view class="c_price">
|
||||
<text>{{good.car_purchase}}万元</text>
|
||||
<text>-</text>
|
||||
<text>{{good.car_personal}}万元</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="memo">新车指导价:{{price}}万元</view>
|
||||
<view class="memo">*信息仅供参考,以实际交易为准!</view>
|
||||
</view>
|
||||
145
packageA/pages/caresgz/carpg/carpg.wxss
Normal file
145
packageA/pages/caresgz/carpg/carpg.wxss
Normal file
@@ -0,0 +1,145 @@
|
||||
page {
|
||||
background-color: #f1f5f6;
|
||||
height: auto;
|
||||
width: 100%;
|
||||
}
|
||||
.base_view {
|
||||
background-color: #fff;
|
||||
margin-top: 20rpx;
|
||||
width: 100%;
|
||||
}
|
||||
.vehicle_title {
|
||||
font-size: 32rpx;
|
||||
font-weight: 700;
|
||||
height: 100rpx;
|
||||
line-height: 100rpx;
|
||||
margin-left: 30rpx;
|
||||
}
|
||||
.lineview {
|
||||
background-color: #eee;
|
||||
height: 1rpx;
|
||||
width: 100%;
|
||||
}
|
||||
.vehicle_set {
|
||||
margin-top: 30rpx;
|
||||
padding-bottom: 20rpx;
|
||||
}
|
||||
.vehicle-th {
|
||||
width: 100%;
|
||||
}
|
||||
.vehicle-td {
|
||||
display: inline-block;
|
||||
font-size: 28rpx;
|
||||
text-align: center;
|
||||
width: 25%;
|
||||
}
|
||||
.nnhui {
|
||||
color: #aaa;
|
||||
}
|
||||
.valuation_view {
|
||||
background-color: #fff;
|
||||
margin-top: 20rpx;
|
||||
padding-bottom: 20rpx;
|
||||
width: 100%;
|
||||
}
|
||||
.valuation_title {
|
||||
font-size: 32rpx;
|
||||
font-weight: 700;
|
||||
height: 100rpx;
|
||||
line-height: 100rpx;
|
||||
text-align: center;
|
||||
}
|
||||
.valuation_status {
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
width: 100%;
|
||||
}
|
||||
.v_status {
|
||||
background-color: #eee;
|
||||
border-radius: 8rpx;
|
||||
color: #aaa;
|
||||
font-size: 30rpx;
|
||||
height: 60rpx;
|
||||
line-height: 60rpx;
|
||||
text-align: center;
|
||||
width: 180rpx;
|
||||
}
|
||||
.s_active {
|
||||
background-color: #3d61f0;
|
||||
color: #fff;
|
||||
}
|
||||
.price_view {
|
||||
background-color: #fafafa;
|
||||
border-radius: 8rpx;
|
||||
margin: 20rpx;
|
||||
}
|
||||
.noneview {
|
||||
display: none;
|
||||
}
|
||||
.price_title {
|
||||
width: 100%;
|
||||
}
|
||||
.price_title text {
|
||||
display: inline-block;
|
||||
font-size: 32rpx;
|
||||
height: 80rpx;
|
||||
line-height: 80rpx;
|
||||
text-align: center;
|
||||
width: 50%;
|
||||
}
|
||||
.price_moy {
|
||||
width: 100%;
|
||||
}
|
||||
.price_moy text {
|
||||
color: #ff4500;
|
||||
display: inline-block;
|
||||
font-size: 60rpx;
|
||||
font-weight: 700;
|
||||
height: 90rpx;
|
||||
line-height: 90rpx;
|
||||
text-align: center;
|
||||
width: 50%;
|
||||
}
|
||||
.price_moyb {
|
||||
width: 100%;
|
||||
}
|
||||
.price_moyb text {
|
||||
color: #ff4500;
|
||||
display: inline-block;
|
||||
font-size: 28rpx;
|
||||
font-weight: 19000;
|
||||
height: 90rpx;
|
||||
line-height: 90rpx;
|
||||
text-align: center;
|
||||
width: 50%;
|
||||
}
|
||||
.c_price_title {
|
||||
background-color: #fff;
|
||||
border: 1rpx solid #eee;
|
||||
border-radius: 8rpx;
|
||||
font-size: 32rpx;
|
||||
height: 80rpx;
|
||||
line-height: 80rpx;
|
||||
margin-left: 25%;
|
||||
margin-top: 10rpx;
|
||||
text-align: center;
|
||||
width: 50%;
|
||||
}
|
||||
.c_price {
|
||||
width: 100%;
|
||||
}
|
||||
.c_price text {
|
||||
display: inline-block;
|
||||
font-size: 32rpx;
|
||||
height: 60rpx;
|
||||
line-height: 60rpx;
|
||||
text-align: center;
|
||||
width: 33%;
|
||||
}
|
||||
.memo {
|
||||
color: #aaa;
|
||||
font-size: 30rpx;
|
||||
margin-left: 50rpx;
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
285
packageA/pages/caresgz/index.js
Normal file
285
packageA/pages/caresgz/index.js
Normal file
@@ -0,0 +1,285 @@
|
||||
var a, e;
|
||||
(a = getApp()),
|
||||
(e = getApp()),
|
||||
Page({
|
||||
data: {
|
||||
regdate: "",
|
||||
mileage: "",
|
||||
carName: "",
|
||||
cityName: "",
|
||||
cityid: 0,
|
||||
provid: 0,
|
||||
carId: 0,
|
||||
page: 1,
|
||||
type: 3,
|
||||
},
|
||||
mileageChanage: function (a) {
|
||||
this.setData({ mileage: a.detail.value });
|
||||
},
|
||||
queryVolation: function () {
|
||||
if (wx.getStorageSync("uid")) {
|
||||
var a = this;
|
||||
"" == a.data.carName
|
||||
? wx.showToast({ title: "车型不能为空", icon: "none", duration: 2e3 })
|
||||
: "" == a.data.regdate
|
||||
? wx.showToast({
|
||||
title: "上牌日期不能为空",
|
||||
icon: "none",
|
||||
duration: 2e3,
|
||||
})
|
||||
: "" == a.data.mileage
|
||||
? wx.showToast({ title: "里程不能为空", icon: "none", duration: 2e3 })
|
||||
: (wx.showLoading({ title: "请求中" }), a.queryVinb());
|
||||
} else
|
||||
wx.showModal({
|
||||
title: "温馨提示",
|
||||
content: "请去个人中心授权登录用户信息",
|
||||
success: function (a) {
|
||||
a.confirm
|
||||
? wx.reLaunch({ url: "/pages/mine/index" })
|
||||
: console.log("点击取消回调");
|
||||
},
|
||||
});
|
||||
},
|
||||
queryVinb: function () {
|
||||
var e = this,
|
||||
t = { content: e.data.mileage + e.data.engine + e.data.chepai };
|
||||
a.getdata(t, "checkContent").then((a) => {
|
||||
console.log("文本回调数据:", a),
|
||||
0 == a.errcode
|
||||
? e.queryVinc()
|
||||
: wx.showModal({
|
||||
title: "温馨提示",
|
||||
content: "你输入的文本检测存在违规,请检测文本内容后重新输入。",
|
||||
success: function (a) {
|
||||
a.confirm || console.log("点击取消回调");
|
||||
},
|
||||
});
|
||||
});
|
||||
},
|
||||
queryVinc: function () {
|
||||
"iosb" == a.getSystemPlatform()
|
||||
? wx.showModal({
|
||||
title: "温馨提示",
|
||||
content: "iOS不支持小程序,请使用公众号查询",
|
||||
success: function (a) {
|
||||
a.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("点击取消回调");
|
||||
},
|
||||
})
|
||||
: this.queryVin();
|
||||
},
|
||||
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")),
|
||||
e.util.request({
|
||||
url: "entry/wxapp/paynum",
|
||||
method: "post",
|
||||
dataType: "json",
|
||||
data: {
|
||||
m: "monai_market",
|
||||
type: "escgz_money",
|
||||
orderid: a.data.orderid,
|
||||
uid: wx.getStorageSync("uid"),
|
||||
postcardata: JSON.stringify(a.data),
|
||||
},
|
||||
success: function (t) {
|
||||
t.data && t.data.data && 1e3 == t.data.message
|
||||
? e.util.request({
|
||||
url: "entry/wxapp/Api",
|
||||
data: {
|
||||
m: "monai_market",
|
||||
uid: wx.getStorageSync("uid"),
|
||||
r: "home.weizhang.paynum",
|
||||
orderid: t.data.data.orderid,
|
||||
},
|
||||
success: function (e) {
|
||||
wx.showModal({ content: e.data.message }),
|
||||
a.setData({
|
||||
weizhang_num: 1 * a.data.weizhang_num + 10,
|
||||
}),
|
||||
a.getDetailpay();
|
||||
},
|
||||
})
|
||||
: t.data &&
|
||||
t.data.data &&
|
||||
!t.data.errno &&
|
||||
wx.requestPayment({
|
||||
timeStamp: t.data.data.timeStamp,
|
||||
nonceStr: t.data.data.nonceStr,
|
||||
package: t.data.data.package,
|
||||
signType: "MD5",
|
||||
paySign: t.data.data.paySign,
|
||||
success: function (n) {
|
||||
e.util.request({
|
||||
url: "entry/wxapp/Api",
|
||||
data: {
|
||||
m: "monai_market",
|
||||
uid: wx.getStorageSync("uid"),
|
||||
r: "home.weizhang.paynum",
|
||||
orderid: t.data.data.orderid,
|
||||
},
|
||||
success: function (e) {
|
||||
a.setData({
|
||||
weizhang_num: 1 * a.data.weizhang_num + 10,
|
||||
}),
|
||||
wx.showModal({ content: e.data.message }),
|
||||
a.getDetailpay();
|
||||
},
|
||||
});
|
||||
},
|
||||
});
|
||||
},
|
||||
}))
|
||||
: wx.showModal({
|
||||
title: "温馨提醒",
|
||||
content: "使用本功能请先登录后在使用~",
|
||||
showCancel: !1,
|
||||
success: function (a) {
|
||||
a.confirm && wx.reLaunch({ url: "/pages/mine/index" });
|
||||
},
|
||||
});
|
||||
},
|
||||
getDetailpay: function () {
|
||||
wx.showModal({
|
||||
title: "温馨提醒",
|
||||
content: "下单成功,点击确定后进入估值列表",
|
||||
showCancel: !1,
|
||||
success: function (a) {
|
||||
a.confirm &&
|
||||
wx.reLaunch({ url: "/pages/reporlist/reporlist?type=3" });
|
||||
},
|
||||
});
|
||||
},
|
||||
getDetailpayb: function (e) {
|
||||
var t = this,
|
||||
n = this.data,
|
||||
i = {
|
||||
cardata: t.data.cardata,
|
||||
uid: wx.getStorageSync("uid"),
|
||||
carName: n.carName,
|
||||
cityName: n.cityName,
|
||||
regdate: n.regdate,
|
||||
cityid: n.cityid,
|
||||
provid: n.provid,
|
||||
carId: n.carId,
|
||||
mileage: n.mileage,
|
||||
orderid: t.data.orderid,
|
||||
};
|
||||
a.getdata(i, "escgz").then((a) => {
|
||||
console.log("回调数据:", a),
|
||||
a &&
|
||||
wx.navigateTo({
|
||||
url:
|
||||
"/packageA/pages/caresgz/carpg/carpg?orderid=" + t.data.orderid,
|
||||
});
|
||||
});
|
||||
},
|
||||
toDetailExample: function () {
|
||||
wx.navigateTo({
|
||||
url: "../caresgz/carpg/carpg?orderid=D165026490694147402592",
|
||||
});
|
||||
},
|
||||
toSelectCar: function () {
|
||||
wx.navigateTo({ url: "../caresgz/selectCar/selectCar" });
|
||||
},
|
||||
toSelectCity: function () {
|
||||
wx.navigateTo({ url: "../caresgz/selectCity/selectCity" });
|
||||
},
|
||||
toSelectTime: function () {
|
||||
wx.navigateTo({ url: "../caresgz/selectTime/selectTime" });
|
||||
},
|
||||
onLoad: function (a) {
|
||||
wx.getStorageSync("uid") || getApp().wxlogin(),
|
||||
this.orderid(),
|
||||
wx.removeStorageSync("carvehicle"),
|
||||
wx.removeStorageSync("carprov"),
|
||||
wx.removeStorageSync("carcity"),
|
||||
wx.removeStorageSync("cartime"),
|
||||
wx.removeStorageSync("cardatawx");
|
||||
},
|
||||
onReady: function () {},
|
||||
onShow: function () {
|
||||
a.appdengl();
|
||||
var e = wx.getStorageSync("carvehicle"),
|
||||
t = wx.getStorageSync("carprov"),
|
||||
n = wx.getStorageSync("carcity"),
|
||||
i = wx.getStorageSync("cartime"),
|
||||
o = "";
|
||||
"" != n && null != n && (o = t.name + "-" + n.name),
|
||||
console.log("" == e),
|
||||
"" != e &&
|
||||
"" != i &&
|
||||
parseInt(i.split("-")[0]) < parseInt(e.makeyear) &&
|
||||
(i = ""),
|
||||
this.setData({
|
||||
cardata: e,
|
||||
carName: e.fullname,
|
||||
cityName: o,
|
||||
regdate: i,
|
||||
cityid: n.id,
|
||||
provid: t.id,
|
||||
carId: e.id,
|
||||
}),
|
||||
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 (e) {
|
||||
var t = this,
|
||||
n = { uid: wx.getStorageSync("uid"), type: t.data.type, page: e };
|
||||
a.getdata(n, "carqxcx").then((a) => {
|
||||
if ((console.log("回调数据:", a), a.data && 0 == a.errno))
|
||||
if (1 == e) t.setData({ repairList: a.data, page: t.data.page + 1 });
|
||||
else {
|
||||
var n = t.data.repairList;
|
||||
n.push.apply(n, a.data),
|
||||
t.setData({ repairList: n, 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 (a) {
|
||||
var e = a.currentTarget.dataset.orderid;
|
||||
wx.navigateTo({
|
||||
url: "/packageA/pages/caresgz/carpg/carpg?orderid=" + e,
|
||||
success: function () {},
|
||||
});
|
||||
},
|
||||
});
|
||||
3
packageA/pages/caresgz/index.json
Normal file
3
packageA/pages/caresgz/index.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
47
packageA/pages/caresgz/index.wxml
Normal file
47
packageA/pages/caresgz/index.wxml
Normal file
@@ -0,0 +1,47 @@
|
||||
<view class="search-title">二手车估值</view>
|
||||
<view class="search-text">根据车型和市场查询到市场行情,车商收车价,市场成交价。</view>
|
||||
<view class="vin-input">
|
||||
<text class="opt-name">车型</text>
|
||||
<block wx:if="{{carName==''}}">
|
||||
<text bindtap="toSelectCar" class="opt-input">请选择车型</text>
|
||||
<text class="arrow"></text>
|
||||
</block>
|
||||
<text bindtap="toSelectCar" class="opt-input suredata" wx:else>{{carName}}</text>
|
||||
</view>
|
||||
<view class="vin-input">
|
||||
<text class="opt-name">首次上牌</text>
|
||||
<block wx:if="{{regdate==''}}">
|
||||
<text bindtap="toSelectTime" class="opt-input">请选择上牌日期</text>
|
||||
<text class="arrow"></text>
|
||||
</block>
|
||||
<text bindtap="toSelectTime" class="opt-input suredata" wx:else>{{regdate}}</text>
|
||||
</view>
|
||||
<view class="vin-input">
|
||||
<text class="opt-name" style="width: 50%">里程(万公里)</text>
|
||||
<input bindinput="mileageChanage" class="opt-input" placeholder="请输入公里数" placeholderStyle="color:#b1b1b1" style="width: 40%;color:#000;margin-right:5%" type="digit" value="{{mileage}}"></input>
|
||||
</view>
|
||||
<button bindtap="queryVolation" class="search-button">开始估值</button>
|
||||
<view class="help-view">
|
||||
<text bindtap="toDetailExample" class="help-example">样例报告</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.carName}}</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">{{item.vin}}</text>
|
||||
<text class="hui-text">{{item.time}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
122
packageA/pages/caresgz/index.wxss
Normal file
122
packageA/pages/caresgz/index.wxss
Normal file
@@ -0,0 +1,122 @@
|
||||
@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: 120rpx;
|
||||
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: -webkit-flex;
|
||||
display: flex;
|
||||
height: 100rpx;
|
||||
margin-bottom: 20rpx;
|
||||
margin-left: 5%;
|
||||
width: 90%;
|
||||
}
|
||||
.opt-name {
|
||||
font-weight: 700;
|
||||
margin-left: 6%;
|
||||
width: 30%;
|
||||
}
|
||||
.opt-input,
|
||||
.opt-name {
|
||||
height: 100rpx;
|
||||
line-height: 100rpx;
|
||||
}
|
||||
.opt-input {
|
||||
color: #b1b1b1;
|
||||
margin-right: 7%;
|
||||
text-align: right;
|
||||
width: 60%;
|
||||
}
|
||||
.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;
|
||||
}
|
||||
.arrow {
|
||||
border-right: 1px solid #b1b1b1;
|
||||
border-top: 1px solid #b1b1b1;
|
||||
color: #b1b1b1;
|
||||
height: 10px;
|
||||
margin-top: 38rpx;
|
||||
position: absolute;
|
||||
right: 60rpx;
|
||||
transform: rotate(45deg);
|
||||
width: 10px;
|
||||
}
|
||||
.suredata {
|
||||
color: #000;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
185
packageA/pages/caresgz/selectCar/selectCar.js
Normal file
185
packageA/pages/caresgz/selectCar/selectCar.js
Normal file
@@ -0,0 +1,185 @@
|
||||
var t;
|
||||
(t = getApp()),
|
||||
Page({
|
||||
data: {
|
||||
showLetter: "",
|
||||
winHeight: 0,
|
||||
tHeight: 0,
|
||||
bHeight: 0,
|
||||
startPageY: 0,
|
||||
carList: [],
|
||||
isShowLetter: !1,
|
||||
scrollTop: 0,
|
||||
three_none: "none",
|
||||
two_none: "none",
|
||||
hasback: "none",
|
||||
car_series: [],
|
||||
car_ser: null,
|
||||
searchLetter: [
|
||||
"*",
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G",
|
||||
"H",
|
||||
"J",
|
||||
"K",
|
||||
"L",
|
||||
"M",
|
||||
"N",
|
||||
"P",
|
||||
"Q",
|
||||
"R",
|
||||
"S",
|
||||
"T",
|
||||
"W",
|
||||
"X",
|
||||
"Y",
|
||||
"Z",
|
||||
],
|
||||
car_vend_ser: [],
|
||||
},
|
||||
onLoad: function () {
|
||||
var e = this;
|
||||
wx.showLoading({ title: "请求中" }),
|
||||
t.getdata("", "carall").then((t) => {
|
||||
var a = t.data;
|
||||
console.log("回调数据汽车:", a),
|
||||
(a = JSON.parse(a)),
|
||||
e.crCarList(a.retdata);
|
||||
});
|
||||
for (
|
||||
var a = e.data.searchLetter,
|
||||
r = wx.getSystemInfoSync().windowHeight,
|
||||
n = r / a.length,
|
||||
o = [],
|
||||
s = 0;
|
||||
s < a.length;
|
||||
s++
|
||||
) {
|
||||
var i = {};
|
||||
(i.name = a[s]),
|
||||
(i.tHeight = s * n),
|
||||
(i.bHeight = (s + 1) * n),
|
||||
o.push(i);
|
||||
}
|
||||
e.setData({ winHeight: r, itemH: n, searchLetter: o });
|
||||
},
|
||||
searchStart: function (t) {
|
||||
var e = t.currentTarget.dataset.letter,
|
||||
a = t.touches[0].pageY;
|
||||
this.setScrollTop(this, e),
|
||||
this.nowLetter(a, this),
|
||||
this.setData({ showLetter: e, startPageY: a, isShowLetter: !0 });
|
||||
},
|
||||
searchMove: function (t) {
|
||||
var e = t.touches[0].pageY,
|
||||
a = this.data.startPageY,
|
||||
r = this.data.tHeight,
|
||||
n = this.data.bHeight;
|
||||
console.log(e),
|
||||
a - e > 0
|
||||
? e < r && this.nowLetter(e, this)
|
||||
: e > n && this.nowLetter(e, this);
|
||||
},
|
||||
searchEnd: function (t) {
|
||||
var e = this;
|
||||
setTimeout(function () {
|
||||
e.setData({ isShowLetter: !1 });
|
||||
}, 1e3);
|
||||
},
|
||||
nowLetter: function (t, e) {
|
||||
for (
|
||||
var a = this.data.searchLetter, r = 0, n = 0, o = "", s = 0;
|
||||
s < a.length;
|
||||
s++
|
||||
)
|
||||
if (a[s].tHeight <= t && t <= a[s].bHeight) {
|
||||
(r = a[s].bHeight), (n = a[s].tHeight), (o = a[s].name);
|
||||
break;
|
||||
}
|
||||
this.setScrollTop(e, o),
|
||||
e.setData({ bHeight: r, tHeight: n, showLetter: o, startPageY: t });
|
||||
},
|
||||
setScrollTop: function (t, e) {
|
||||
for (
|
||||
var a = 0, r = t.data.carList, n = 0, o = 0, s = 0;
|
||||
s < r.length;
|
||||
s++
|
||||
) {
|
||||
if (e == r[s].shou_zm) {
|
||||
a = 30 * o + 41 * n;
|
||||
break;
|
||||
}
|
||||
console.log("数字", s),
|
||||
console.log(r[s]),
|
||||
o++,
|
||||
(n += r[s].carInfo.length);
|
||||
}
|
||||
t.setData({ scrollTop: a });
|
||||
},
|
||||
btn_pinpai: function (e) {
|
||||
var a = this,
|
||||
r = { brandId: e.currentTarget.dataset.brand };
|
||||
t.getdata(r, "carbrandId").then((t) => {
|
||||
var e = t.data;
|
||||
console.log("回调数据汽车:", e),
|
||||
(e = JSON.parse(e)),
|
||||
a.setData({
|
||||
three_none: "none",
|
||||
two_none: "block",
|
||||
hasback: "block",
|
||||
car_series: e.retdata,
|
||||
});
|
||||
});
|
||||
},
|
||||
btn_name: function (e) {
|
||||
var a = this,
|
||||
r = { familyid: e.currentTarget.dataset.familyid };
|
||||
t.getdata(r, "caridcx").then((t) => {
|
||||
var e = t.data;
|
||||
console.log("回调数据汽车xiang:", e),
|
||||
(e = JSON.parse(e)),
|
||||
a.setData({
|
||||
three_none: "block",
|
||||
hasback: "block",
|
||||
car_vend_ser: e.retdata,
|
||||
});
|
||||
});
|
||||
},
|
||||
btn_sel_name: function (t) {
|
||||
var e = t.currentTarget.dataset.item;
|
||||
console.log(e),
|
||||
wx.setStorageSync("carvehicle", e),
|
||||
wx.navigateBack({ delta: 1 });
|
||||
},
|
||||
crCarList: function (t) {
|
||||
for (var e = this.data.searchLetter, a = [], r = 1; r < e.length; r++) {
|
||||
var n = e[r].name,
|
||||
o = [],
|
||||
s = {};
|
||||
s.shou_zm = n;
|
||||
for (var i = 0; i < t.length; i++) n == t[i].car_char && o.push(t[i]);
|
||||
(s.carInfo = o), a.push(s);
|
||||
}
|
||||
this.setData({ carList: a }), wx.hideLoading();
|
||||
},
|
||||
crFamilyList: function (t) {
|
||||
var e = {};
|
||||
for (var a in (console.log(t), t)) {
|
||||
var r = t[a].factory;
|
||||
null == e[r] ? (e[r] = [t[a]]) : e[r].push(t[a]);
|
||||
}
|
||||
console.log(e), this.setData({ car_series: e });
|
||||
},
|
||||
goback: function () {
|
||||
"block" == this.data.three_none
|
||||
? this.setData({ three_none: "none" })
|
||||
: "block" == this.data.two_none
|
||||
? this.setData({ two_none: "none", hasback: "none" })
|
||||
: this.setData({ hasback: "none" });
|
||||
},
|
||||
});
|
||||
3
packageA/pages/caresgz/selectCar/selectCar.json
Normal file
3
packageA/pages/caresgz/selectCar/selectCar.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
25
packageA/pages/caresgz/selectCar/selectCar.wxml
Normal file
25
packageA/pages/caresgz/selectCar/selectCar.wxml
Normal file
@@ -0,0 +1,25 @@
|
||||
<view>
|
||||
<view class="searchLetter touchClass">
|
||||
<view catchtouchend="searchEnd" catchtouchmove="searchMove" catchtouchstart="searchStart" data-letter="{{item.name}}" style="height:{{itemH}}px" wx:for="{{searchLetter}}" wx:key="index"> {{item.name}} </view>
|
||||
</view>
|
||||
<view class="showSlectedLetter" wx:if="{{isShowLetter}}"> {{showLetter}} </view>
|
||||
<scroll-view scrollTop="{{scrollTop}}" scrollY="true" style="height:{{winHeight}}px">
|
||||
<view class="selection" wx:if="{{carList.length>0}}" wx:for="{{carList}}" wx:key="index">
|
||||
<view class="item_letter">{{item.shou_zm}}</view>
|
||||
<view bindtap="btn_pinpai" class="item_city" data-brand="{{ct.brand_id}}" wx:for="{{item.carInfo}}" wx:for-item="ct" wx:key="index"> {{ct.car_name}} </view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
<scroll-view class="scoll_car_service" scrollY="true" style="height:{{car_type_hight}};display:{{two_none}}">
|
||||
<view class="selection" wx:for="{{car_series}}" wx:key="index">
|
||||
<label bindtap="btn_name" class="tab2" data-brandid="{{item.brand_id}}" data-familyid="{{item.series_id}}"> {{item.serials_name}} </label>
|
||||
</view>
|
||||
</scroll-view>
|
||||
<scroll-view class="scoll_vender_service" scrollY="true" style="height:{{car_type_hight}};display:{{three_none}}">
|
||||
<view wx:for="{{car_vend_ser}}" wx:key="index">
|
||||
<text bindtap="btn_sel_name" class="tab3" data-item="{{item}}">{{item.fullname}}</text>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
<view bindtap="goback" class="goback" style="display:{{hasback}}">
|
||||
<text class="arrow"></text>
|
||||
</view>
|
||||
125
packageA/pages/caresgz/selectCar/selectCar.wxss
Normal file
125
packageA/pages/caresgz/selectCar/selectCar.wxss
Normal file
@@ -0,0 +1,125 @@
|
||||
.searchLetter {
|
||||
color: #666;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
justify-content: center;
|
||||
position: fixed;
|
||||
right: 0;
|
||||
text-align: center;
|
||||
width: 40px;
|
||||
z-index: 1;
|
||||
}
|
||||
.tab2 {
|
||||
height: 70rpx;
|
||||
line-height: 70rpx;
|
||||
width: 560rpx;
|
||||
}
|
||||
.tab2,
|
||||
.tab3 {
|
||||
border-bottom: 1px solid #eaeaea;
|
||||
color: #2a2a2a;
|
||||
font-size: 30rpx;
|
||||
padding-left: 30rpx;
|
||||
}
|
||||
.tab3 {
|
||||
word-wrap: break-word;
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
padding-bottom: 20rpx;
|
||||
padding-top: 20rpx;
|
||||
}
|
||||
.scoll_car_service {
|
||||
left: 25%;
|
||||
width: 75%;
|
||||
z-index: 5;
|
||||
}
|
||||
.scoll_car_service,
|
||||
.scoll_vender_service {
|
||||
background-color: #f5f5f5;
|
||||
box-shadow: 0 0 3px 3px #999;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
height: 100%;
|
||||
position: fixed;
|
||||
top: 1px;
|
||||
}
|
||||
.scoll_vender_service {
|
||||
left: 50%;
|
||||
width: 50%;
|
||||
z-index: 10;
|
||||
}
|
||||
.searchLetter view {
|
||||
height: 70rpx;
|
||||
}
|
||||
.touchClass {
|
||||
color: #a56e0a;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
.showSlectedLetter {
|
||||
align-items: center;
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
border-radius: 10px;
|
||||
color: #fff;
|
||||
font-size: 26px;
|
||||
height: 100px;
|
||||
justify-content: center;
|
||||
left: 50%;
|
||||
margin: -50px;
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
width: 100px;
|
||||
z-index: 1;
|
||||
}
|
||||
.selection,
|
||||
.showSlectedLetter {
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
}
|
||||
.selection {
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
}
|
||||
.item_letter {
|
||||
align-items: center;
|
||||
background-color: #f8f8f8;
|
||||
color: #896a0d;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
font-size: 26rpx;
|
||||
height: 30px;
|
||||
padding-left: 10px;
|
||||
}
|
||||
.item_city {
|
||||
background-color: #f5f5f5;
|
||||
border-bottom: 1px solid #eaeaea;
|
||||
color: #2a2a2a;
|
||||
font-size: 30rpx;
|
||||
height: 40px;
|
||||
line-height: 40px;
|
||||
padding-left: 10px;
|
||||
}
|
||||
.car_img {
|
||||
height: 80rpx;
|
||||
width: 100rpx;
|
||||
}
|
||||
.goback {
|
||||
border: 2rpx solid #aaa;
|
||||
border-radius: 50%;
|
||||
bottom: 60rpx;
|
||||
height: 80rpx;
|
||||
position: fixed;
|
||||
right: 40rpx;
|
||||
width: 80rpx;
|
||||
z-index: 99;
|
||||
}
|
||||
.arrow {
|
||||
border-bottom: 3px solid #999;
|
||||
border-left: 3px solid #999;
|
||||
display: block;
|
||||
height: 14px;
|
||||
margin: 24rpx 30rpx;
|
||||
transform: rotate(45deg);
|
||||
width: 14px;
|
||||
}
|
||||
52
packageA/pages/caresgz/selectCity/selectCity.js
Normal file
52
packageA/pages/caresgz/selectCity/selectCity.js
Normal file
@@ -0,0 +1,52 @@
|
||||
var t;
|
||||
(t = getApp()),
|
||||
Page({
|
||||
data: {
|
||||
winHeight: 0,
|
||||
tHeight: 0,
|
||||
bHeight: 0,
|
||||
startPageY: 0,
|
||||
scrollTop: 0,
|
||||
two_none: "none",
|
||||
hasback: "none",
|
||||
prov_list: [],
|
||||
city_list: [],
|
||||
},
|
||||
onLoad: function () {
|
||||
var a = this;
|
||||
wx.showLoading({ title: "请求中" }),
|
||||
t.getdata("", "carcity").then((t) => {
|
||||
var e = t.data;
|
||||
console.log("回调数据汽车:", e),
|
||||
(e = JSON.parse(e)),
|
||||
a.setData({ prov_list: e.data });
|
||||
});
|
||||
var e = wx.getSystemInfoSync().windowHeight;
|
||||
a.setData({ winHeight: e });
|
||||
},
|
||||
btn_pinpai: function (a) {
|
||||
var e = this,
|
||||
n = a.currentTarget.dataset.item;
|
||||
wx.setStorageSync("carprov", n);
|
||||
var o = { provinceId: n.id };
|
||||
t.getdata(o, "carprovinceId").then((t) => {
|
||||
var a = t.data;
|
||||
console.log("回调数据汽车:", a),
|
||||
(a = JSON.parse(a)),
|
||||
e.setData({ two_none: "block", hasback: "block", city_list: a.data });
|
||||
});
|
||||
},
|
||||
btn_sel_name: function (t) {
|
||||
var a = t.currentTarget.dataset.item;
|
||||
console.log(a),
|
||||
wx.setStorageSync("carcity", a),
|
||||
wx.navigateBack({ delta: 1 });
|
||||
},
|
||||
goback: function () {
|
||||
"block" == this.data.three_none
|
||||
? this.setData({ three_none: "none" })
|
||||
: "block" == this.data.two_none
|
||||
? this.setData({ two_none: "none", hasback: "none" })
|
||||
: this.setData({ hasback: "none" });
|
||||
},
|
||||
});
|
||||
3
packageA/pages/caresgz/selectCity/selectCity.json
Normal file
3
packageA/pages/caresgz/selectCity/selectCity.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
15
packageA/pages/caresgz/selectCity/selectCity.wxml
Normal file
15
packageA/pages/caresgz/selectCity/selectCity.wxml
Normal file
@@ -0,0 +1,15 @@
|
||||
<view>
|
||||
<scroll-view scrollY="true" style="height:{{winHeight}}px">
|
||||
<view class="selection" wx:for="{{prov_list}}" wx:key="index">
|
||||
<view bindtap="btn_pinpai" class="item_city" data-item="{{item}}"> {{item.name}} </view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
<scroll-view class="scoll_car_service" scrollY="true" style="height:{{car_type_hight}};display:{{two_none}}">
|
||||
<view class="selection" wx:for="{{city_list}}" wx:key="index">
|
||||
<label bindtap="btn_sel_name" class="tab2" data-item="{{item}}"> {{item.name}} </label>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
<view bindtap="goback" class="goback" style="display:{{hasback}}">
|
||||
<text class="arrow"></text>
|
||||
</view>
|
||||
125
packageA/pages/caresgz/selectCity/selectCity.wxss
Normal file
125
packageA/pages/caresgz/selectCity/selectCity.wxss
Normal file
@@ -0,0 +1,125 @@
|
||||
.searchLetter {
|
||||
color: #666;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
justify-content: center;
|
||||
position: fixed;
|
||||
right: 0;
|
||||
text-align: center;
|
||||
width: 40px;
|
||||
z-index: 1;
|
||||
}
|
||||
.tab2 {
|
||||
height: 80rpx;
|
||||
line-height: 80rpx;
|
||||
width: 560rpx;
|
||||
}
|
||||
.tab2,
|
||||
.tab3 {
|
||||
border-bottom: 1px solid #eaeaea;
|
||||
color: #2a2a2a;
|
||||
font-size: 30rpx;
|
||||
padding-left: 30rpx;
|
||||
}
|
||||
.tab3 {
|
||||
word-wrap: break-word;
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
padding-bottom: 20rpx;
|
||||
padding-top: 20rpx;
|
||||
}
|
||||
.scoll_car_service {
|
||||
left: 25%;
|
||||
width: 75%;
|
||||
z-index: 5;
|
||||
}
|
||||
.scoll_car_service,
|
||||
.scoll_vender_service {
|
||||
background-color: #f5f5f5;
|
||||
box-shadow: 0 0 3px 3px #999;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
height: 100%;
|
||||
position: fixed;
|
||||
top: 1px;
|
||||
}
|
||||
.scoll_vender_service {
|
||||
left: 50%;
|
||||
width: 50%;
|
||||
z-index: 10;
|
||||
}
|
||||
.searchLetter view {
|
||||
height: 70rpx;
|
||||
}
|
||||
.touchClass {
|
||||
color: #a56e0a;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
.showSlectedLetter {
|
||||
align-items: center;
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
border-radius: 10px;
|
||||
color: #fff;
|
||||
font-size: 26px;
|
||||
height: 100px;
|
||||
justify-content: center;
|
||||
left: 50%;
|
||||
margin: -50px;
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
width: 100px;
|
||||
z-index: 1;
|
||||
}
|
||||
.selection,
|
||||
.showSlectedLetter {
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
}
|
||||
.selection {
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
}
|
||||
.item_letter {
|
||||
align-items: center;
|
||||
background-color: #f8f8f8;
|
||||
color: #896a0d;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
font-size: 26rpx;
|
||||
height: 30px;
|
||||
padding-left: 10px;
|
||||
}
|
||||
.item_city {
|
||||
background-color: #f5f5f5;
|
||||
border-bottom: 1px solid #eaeaea;
|
||||
color: #2a2a2a;
|
||||
font-size: 30rpx;
|
||||
height: 34px;
|
||||
line-height: 34px;
|
||||
padding-left: 10px;
|
||||
}
|
||||
.car_img {
|
||||
height: 80rpx;
|
||||
width: 100rpx;
|
||||
}
|
||||
.goback {
|
||||
border: 2rpx solid #aaa;
|
||||
border-radius: 50%;
|
||||
bottom: 60rpx;
|
||||
height: 80rpx;
|
||||
position: fixed;
|
||||
right: 40rpx;
|
||||
width: 80rpx;
|
||||
z-index: 99;
|
||||
}
|
||||
.arrow {
|
||||
border-bottom: 3px solid #999;
|
||||
border-left: 3px solid #999;
|
||||
display: block;
|
||||
height: 14px;
|
||||
margin: 24rpx 30rpx;
|
||||
transform: rotate(45deg);
|
||||
width: 14px;
|
||||
}
|
||||
56
packageA/pages/caresgz/selectTime/selectTime.js
Normal file
56
packageA/pages/caresgz/selectTime/selectTime.js
Normal file
@@ -0,0 +1,56 @@
|
||||
Page({
|
||||
data: {
|
||||
winHeight: 0,
|
||||
two_none: "none",
|
||||
hasback: "none",
|
||||
year_list: [],
|
||||
mouth_list: [
|
||||
"01",
|
||||
"02",
|
||||
"03",
|
||||
"04",
|
||||
"05",
|
||||
"06",
|
||||
"07",
|
||||
"08",
|
||||
"09",
|
||||
"10",
|
||||
"11",
|
||||
"12",
|
||||
],
|
||||
year: "",
|
||||
},
|
||||
onLoad: function () {
|
||||
var t = wx.getSystemInfoSync().windowHeight;
|
||||
this.setData({ winHeight: t, year_list: this.getsortyear() });
|
||||
},
|
||||
getsortyear: function () {
|
||||
var t = [],
|
||||
e = wx.getStorageSync("carvehicle"),
|
||||
a = new Date().getFullYear();
|
||||
if (null != e && "" != e && null != e.makeyear)
|
||||
for (var n = 0; n < a && a - n >= parseInt(e.makeyear); n++)
|
||||
t.push(a - n);
|
||||
else for (var o = 0; o < 18; o++) t.push(a--);
|
||||
return t;
|
||||
},
|
||||
btn_pinpai: function (t) {
|
||||
this.setData({
|
||||
two_none: "block",
|
||||
hasback: "block",
|
||||
year: t.currentTarget.dataset.year,
|
||||
});
|
||||
},
|
||||
btn_sel_name: function (t) {
|
||||
var e = t.currentTarget.dataset.mouth;
|
||||
wx.setStorageSync("cartime", this.data.year + "-" + e),
|
||||
wx.navigateBack({ delta: 1 });
|
||||
},
|
||||
goback: function () {
|
||||
"block" == this.data.three_none
|
||||
? this.setData({ three_none: "none" })
|
||||
: "block" == this.data.two_none
|
||||
? this.setData({ two_none: "none", hasback: "none" })
|
||||
: this.setData({ hasback: "none" });
|
||||
},
|
||||
});
|
||||
3
packageA/pages/caresgz/selectTime/selectTime.json
Normal file
3
packageA/pages/caresgz/selectTime/selectTime.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
15
packageA/pages/caresgz/selectTime/selectTime.wxml
Normal file
15
packageA/pages/caresgz/selectTime/selectTime.wxml
Normal file
@@ -0,0 +1,15 @@
|
||||
<view>
|
||||
<scroll-view scrollY="true" style="height:{{winHeight}}px">
|
||||
<view class="selection" wx:for="{{year_list}}" wx:key="index">
|
||||
<view bindtap="btn_pinpai" class="item_city" data-year="{{item}}"> {{item}} </view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
<scroll-view class="scoll_car_service" scrollY="true" style="height:{{car_type_hight}};display:{{two_none}}">
|
||||
<view class="selection" wx:for="{{mouth_list}}" wx:key="index">
|
||||
<label bindtap="btn_sel_name" class="tab2" data-mouth="{{item}}"> {{item}} </label>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
<view bindtap="goback" class="goback" style="display:{{hasback}}">
|
||||
<text class="arrow"></text>
|
||||
</view>
|
||||
125
packageA/pages/caresgz/selectTime/selectTime.wxss
Normal file
125
packageA/pages/caresgz/selectTime/selectTime.wxss
Normal file
@@ -0,0 +1,125 @@
|
||||
.searchLetter {
|
||||
color: #666;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
justify-content: center;
|
||||
position: fixed;
|
||||
right: 0;
|
||||
text-align: center;
|
||||
width: 40px;
|
||||
z-index: 1;
|
||||
}
|
||||
.tab2 {
|
||||
height: 80rpx;
|
||||
line-height: 80rpx;
|
||||
width: 560rpx;
|
||||
}
|
||||
.tab2,
|
||||
.tab3 {
|
||||
border-bottom: 1px solid #eaeaea;
|
||||
color: #2a2a2a;
|
||||
font-size: 30rpx;
|
||||
padding-left: 30rpx;
|
||||
}
|
||||
.tab3 {
|
||||
word-wrap: break-word;
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
padding-bottom: 20rpx;
|
||||
padding-top: 20rpx;
|
||||
}
|
||||
.scoll_car_service {
|
||||
left: 25%;
|
||||
width: 75%;
|
||||
z-index: 5;
|
||||
}
|
||||
.scoll_car_service,
|
||||
.scoll_vender_service {
|
||||
background-color: #f5f5f5;
|
||||
box-shadow: 0 0 3px 3px #999;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
height: 100%;
|
||||
position: fixed;
|
||||
top: 1px;
|
||||
}
|
||||
.scoll_vender_service {
|
||||
left: 50%;
|
||||
width: 50%;
|
||||
z-index: 10;
|
||||
}
|
||||
.searchLetter view {
|
||||
height: 70rpx;
|
||||
}
|
||||
.touchClass {
|
||||
color: #a56e0a;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
.showSlectedLetter {
|
||||
align-items: center;
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
border-radius: 10px;
|
||||
color: #fff;
|
||||
font-size: 26px;
|
||||
height: 100px;
|
||||
justify-content: center;
|
||||
left: 50%;
|
||||
margin: -50px;
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
width: 100px;
|
||||
z-index: 1;
|
||||
}
|
||||
.selection,
|
||||
.showSlectedLetter {
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
}
|
||||
.selection {
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
}
|
||||
.item_letter {
|
||||
align-items: center;
|
||||
background-color: #f8f8f8;
|
||||
color: #896a0d;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
font-size: 26rpx;
|
||||
height: 30px;
|
||||
padding-left: 10px;
|
||||
}
|
||||
.item_city {
|
||||
background-color: #f5f5f5;
|
||||
border-bottom: 1px solid #eaeaea;
|
||||
color: #2a2a2a;
|
||||
font-size: 30rpx;
|
||||
height: 34px;
|
||||
line-height: 34px;
|
||||
padding-left: 10px;
|
||||
}
|
||||
.car_img {
|
||||
height: 80rpx;
|
||||
width: 100rpx;
|
||||
}
|
||||
.goback {
|
||||
border: 2rpx solid #aaa;
|
||||
border-radius: 50%;
|
||||
bottom: 60rpx;
|
||||
height: 80rpx;
|
||||
position: fixed;
|
||||
right: 40rpx;
|
||||
width: 80rpx;
|
||||
z-index: 99;
|
||||
}
|
||||
.arrow {
|
||||
border-bottom: 3px solid #999;
|
||||
border-left: 3px solid #999;
|
||||
display: block;
|
||||
height: 14px;
|
||||
margin: 24rpx 30rpx;
|
||||
transform: rotate(45deg);
|
||||
width: 14px;
|
||||
}
|
||||
81
packageA/pages/caresgznew/carpg/carpg.js
Normal file
81
packageA/pages/caresgznew/carpg/carpg.js
Normal file
@@ -0,0 +1,81 @@
|
||||
var e;
|
||||
(e = getApp()),
|
||||
Page({
|
||||
data: { curs: 1 },
|
||||
onLoad: function (a) {
|
||||
this.getDetail(a.orderid);
|
||||
},
|
||||
getDetail: function (a) {
|
||||
var t = this,
|
||||
o = { orderid: a };
|
||||
e.getdata(o, "escgzid").then((e) => {
|
||||
if ((console.log("回调数据:", e), e)) {
|
||||
t.setData({
|
||||
orderid: a,
|
||||
cardata: e.data,
|
||||
salesdesc: e.data.carName,
|
||||
makeyear: e.data.regdate,
|
||||
carjson: JSON.parse(e.data.cardata),
|
||||
}),
|
||||
console.log("回调数据jsion:", JSON.parse(e.data.cardata));
|
||||
var o = JSON.parse(e.data.record);
|
||||
console.log(o);
|
||||
var d = o;
|
||||
t.setData({
|
||||
bad: d.retdata.car_normal,
|
||||
good: d.retdata.car_excellent,
|
||||
normal: d.retdata.car_good,
|
||||
}),
|
||||
t.data.cardata.carId;
|
||||
}
|
||||
});
|
||||
},
|
||||
getData: function (e) {
|
||||
var t = this;
|
||||
a.default.getValuation({ appType: "WECHAT", id: e }).then(function (a) {
|
||||
console.log(a),
|
||||
"1000" === a.error_code
|
||||
? t.setData({
|
||||
salesdesc: a.data.vehicle.salesdesc,
|
||||
brandname: a.data.vehicle.brandname,
|
||||
familyname: a.data.vehicle.familyname,
|
||||
factoryname: a.data.vehicle.factoryname,
|
||||
makeyear: a.data.vehicle.makeyear,
|
||||
geartype: a.data.vehicle.geartype,
|
||||
emission: a.data.vehicle.emission,
|
||||
output: a.data.vehicle.output,
|
||||
prov: a.data.bloBs.prov,
|
||||
city: a.data.bloBs.city,
|
||||
regdate: a.data.bloBs.regdate,
|
||||
mileage: a.data.bloBs.mileage,
|
||||
price: a.data.bloBs.price,
|
||||
bad: JSON.parse(a.data.bloBs.bad),
|
||||
good: JSON.parse(a.data.bloBs.good),
|
||||
normal: JSON.parse(a.data.bloBs.normal),
|
||||
})
|
||||
: wx.showToast({ title: a.message, icon: "none", duration: 3e3 });
|
||||
});
|
||||
},
|
||||
chenagestatus: function (a) {
|
||||
var e = a.currentTarget.dataset.status;
|
||||
this.setData({ curs: e });
|
||||
},
|
||||
onReady: function () {},
|
||||
onShow: function () {},
|
||||
onHide: function () {},
|
||||
onUnload: function () {},
|
||||
onPullDownRefresh: function () {},
|
||||
onReachBottom: function () {},
|
||||
onShareAppMessage: function () {
|
||||
return {
|
||||
title: this.data.salesdesc + "汽车估值报告",
|
||||
path: "/packageA/pages/caresgz/carpg/carpg?id=" + this.data.id,
|
||||
};
|
||||
},
|
||||
onShareTimeline: function () {
|
||||
return {
|
||||
title: this.data.salesdesc + "汽车估值报告",
|
||||
path: "/packageA/pages/caresgz/carpg/carpg?id=" + this.data.id,
|
||||
};
|
||||
},
|
||||
});
|
||||
3
packageA/pages/caresgznew/carpg/carpg.json
Normal file
3
packageA/pages/caresgznew/carpg/carpg.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
93
packageA/pages/caresgznew/carpg/carpg.wxml
Normal file
93
packageA/pages/caresgznew/carpg/carpg.wxml
Normal file
@@ -0,0 +1,93 @@
|
||||
<view class="base_view">
|
||||
<view class="vehicle_title">{{salesdesc}}</view>
|
||||
<view class="lineview"></view>
|
||||
<view class="vehicle_set">
|
||||
<view class="vehicle-th">
|
||||
<text class="vehicle-td nnhui">购买时间</text>
|
||||
<text class="vehicle-td nnhui">上牌日期</text>
|
||||
<text class="vehicle-td nnhui">行驶里程</text>
|
||||
<text class="vehicle-td nnhui">指导价</text>
|
||||
</view>
|
||||
<view class="vehicle-th" style="margin-top: 10rpx;">
|
||||
<text class="vehicle-td">{{makeyear}}</text>
|
||||
<text class="vehicle-td">{{carjson.estimate_regdate}}</text>
|
||||
<text class="vehicle-td">{{carjson.estimate_miles}}</text>
|
||||
<text class="vehicle-td">{{carjson.g_price}}万</text>
|
||||
</view>
|
||||
<view class="vehicle-th" style="margin-top: 40rpx;">
|
||||
<text class="vehicle-td nnhui">排放标准</text>
|
||||
<text class="vehicle-td nnhui">年款</text>
|
||||
<text class="vehicle-td nnhui">变速箱</text>
|
||||
<text class="vehicle-td nnhui">排量</text>
|
||||
</view>
|
||||
<view class="vehicle-th" style="margin-top: 10rpx;">
|
||||
<text class="vehicle-td">{{carjson.c_environmentalstandards}}</text>
|
||||
<text class="vehicle-td">{{carjson.c_cyear}}</text>
|
||||
<text class="vehicle-td">{{carjson.c_bsxlx}}</text>
|
||||
<text class="vehicle-td">{{carjson.c_displacement}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="valuation_view">
|
||||
<view class="valuation_title">车辆估值</view>
|
||||
<view class="valuation_status">
|
||||
<view bindtap="chenagestatus" class="v_status {{curs=='1'?'s_active':''}}" data-status="1">车况一般</view>
|
||||
<view bindtap="chenagestatus" class="v_status {{curs=='2'?'s_active':''}}" data-status="2">车况较好</view>
|
||||
<view bindtap="chenagestatus" class="v_status {{curs=='3'?'s_active':''}}" data-status="3">车况优秀</view>
|
||||
</view>
|
||||
<view class="price_view">
|
||||
<view class="price_moyb">
|
||||
<text>当时新车指导价:{{carjson.g_price}}万</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="price_view {{curs=='1'?'':'noneview'}}">
|
||||
<view class="price_title">
|
||||
<text>车商零售价(万)</text>
|
||||
<text>个人零售价(万)</text>
|
||||
</view>
|
||||
<view class="price_moy">
|
||||
<text>{{bad.car_retail}}</text>
|
||||
<text>{{bad.car_personal}}</text>
|
||||
</view>
|
||||
<view class="c_price_title">车商收购价区间</view>
|
||||
<view class="c_price">
|
||||
<text>{{bad.car_purchase}}万元</text>
|
||||
<text>-</text>
|
||||
<text>{{bad.car_personal}}万元</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="price_view {{curs=='2'?'':'noneview'}}">
|
||||
<view class="price_title">
|
||||
<text>车商零售价(万)</text>
|
||||
<text>个人零售价(万)</text>
|
||||
</view>
|
||||
<view class="price_moy">
|
||||
<text>{{normal.car_retail}}</text>
|
||||
<text>{{normal.car_personal}}</text>
|
||||
</view>
|
||||
<view class="c_price_title">车商收购价区间</view>
|
||||
<view class="c_price">
|
||||
<text>{{normal.car_purchase}}万元</text>
|
||||
<text>-</text>
|
||||
<text>{{normal.car_personal}}万元</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="price_view {{curs=='3'?'':'noneview'}}">
|
||||
<view class="price_title">
|
||||
<text>车商零售价(万)</text>
|
||||
<text>个人零售价(万)</text>
|
||||
</view>
|
||||
<view class="price_moy">
|
||||
<text>{{good.car_retail}}</text>
|
||||
<text>{{good.car_personal}}</text>
|
||||
</view>
|
||||
<view class="c_price_title">车商收购价区间</view>
|
||||
<view class="c_price">
|
||||
<text>{{good.car_purchase}}万元</text>
|
||||
<text>-</text>
|
||||
<text>{{good.car_personal}}万元</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="memo">新车指导价:{{price}}万元</view>
|
||||
<view class="memo">*信息仅供参考,以实际交易为准!</view>
|
||||
</view>
|
||||
145
packageA/pages/caresgznew/carpg/carpg.wxss
Normal file
145
packageA/pages/caresgznew/carpg/carpg.wxss
Normal file
@@ -0,0 +1,145 @@
|
||||
page {
|
||||
background-color: #f1f5f6;
|
||||
height: auto;
|
||||
width: 100%;
|
||||
}
|
||||
.base_view {
|
||||
background-color: #fff;
|
||||
margin-top: 20rpx;
|
||||
width: 100%;
|
||||
}
|
||||
.vehicle_title {
|
||||
font-size: 32rpx;
|
||||
font-weight: 700;
|
||||
height: 100rpx;
|
||||
line-height: 100rpx;
|
||||
margin-left: 30rpx;
|
||||
}
|
||||
.lineview {
|
||||
background-color: #eee;
|
||||
height: 1rpx;
|
||||
width: 100%;
|
||||
}
|
||||
.vehicle_set {
|
||||
margin-top: 30rpx;
|
||||
padding-bottom: 20rpx;
|
||||
}
|
||||
.vehicle-th {
|
||||
width: 100%;
|
||||
}
|
||||
.vehicle-td {
|
||||
display: inline-block;
|
||||
font-size: 28rpx;
|
||||
text-align: center;
|
||||
width: 25%;
|
||||
}
|
||||
.nnhui {
|
||||
color: #aaa;
|
||||
}
|
||||
.valuation_view {
|
||||
background-color: #fff;
|
||||
margin-top: 20rpx;
|
||||
padding-bottom: 20rpx;
|
||||
width: 100%;
|
||||
}
|
||||
.valuation_title {
|
||||
font-size: 32rpx;
|
||||
font-weight: 700;
|
||||
height: 100rpx;
|
||||
line-height: 100rpx;
|
||||
text-align: center;
|
||||
}
|
||||
.valuation_status {
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
width: 100%;
|
||||
}
|
||||
.v_status {
|
||||
background-color: #eee;
|
||||
border-radius: 8rpx;
|
||||
color: #aaa;
|
||||
font-size: 30rpx;
|
||||
height: 60rpx;
|
||||
line-height: 60rpx;
|
||||
text-align: center;
|
||||
width: 180rpx;
|
||||
}
|
||||
.s_active {
|
||||
background-color: #3d61f0;
|
||||
color: #fff;
|
||||
}
|
||||
.price_view {
|
||||
background-color: #fafafa;
|
||||
border-radius: 8rpx;
|
||||
margin: 20rpx;
|
||||
}
|
||||
.noneview {
|
||||
display: none;
|
||||
}
|
||||
.price_title {
|
||||
width: 100%;
|
||||
}
|
||||
.price_title text {
|
||||
display: inline-block;
|
||||
font-size: 32rpx;
|
||||
height: 80rpx;
|
||||
line-height: 80rpx;
|
||||
text-align: center;
|
||||
width: 50%;
|
||||
}
|
||||
.price_moy {
|
||||
width: 100%;
|
||||
}
|
||||
.price_moy text {
|
||||
color: #ff4500;
|
||||
display: inline-block;
|
||||
font-size: 60rpx;
|
||||
font-weight: 700;
|
||||
height: 90rpx;
|
||||
line-height: 90rpx;
|
||||
text-align: center;
|
||||
width: 50%;
|
||||
}
|
||||
.price_moyb {
|
||||
width: 100%;
|
||||
}
|
||||
.price_moyb text {
|
||||
color: #ff4500;
|
||||
display: inline-block;
|
||||
font-size: 28rpx;
|
||||
font-weight: 19000;
|
||||
height: 90rpx;
|
||||
line-height: 90rpx;
|
||||
text-align: center;
|
||||
width: 50%;
|
||||
}
|
||||
.c_price_title {
|
||||
background-color: #fff;
|
||||
border: 1rpx solid #eee;
|
||||
border-radius: 8rpx;
|
||||
font-size: 32rpx;
|
||||
height: 80rpx;
|
||||
line-height: 80rpx;
|
||||
margin-left: 25%;
|
||||
margin-top: 10rpx;
|
||||
text-align: center;
|
||||
width: 50%;
|
||||
}
|
||||
.c_price {
|
||||
width: 100%;
|
||||
}
|
||||
.c_price text {
|
||||
display: inline-block;
|
||||
font-size: 32rpx;
|
||||
height: 60rpx;
|
||||
line-height: 60rpx;
|
||||
text-align: center;
|
||||
width: 33%;
|
||||
}
|
||||
.memo {
|
||||
color: #aaa;
|
||||
font-size: 30rpx;
|
||||
margin-left: 50rpx;
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
258
packageA/pages/caresgznew/index.js
Normal file
258
packageA/pages/caresgznew/index.js
Normal file
@@ -0,0 +1,258 @@
|
||||
var a, e;
|
||||
(a = getApp()),
|
||||
(e = getApp()),
|
||||
Page({
|
||||
data: {
|
||||
regdate: "",
|
||||
mileage: "",
|
||||
carName: "",
|
||||
cityName: "",
|
||||
cityid: 0,
|
||||
provid: 0,
|
||||
carId: 0,
|
||||
page: 1,
|
||||
type: 3,
|
||||
},
|
||||
mileageChanage: function (a) {
|
||||
this.setData({ mileage: a.detail.value });
|
||||
},
|
||||
queryVolation: function () {
|
||||
if (wx.getStorageSync("uid")) {
|
||||
var a = this;
|
||||
"" == a.data.carName
|
||||
? wx.showToast({ title: "车型不能为空", icon: "none", duration: 2e3 })
|
||||
: "" == a.data.cityName
|
||||
? wx.showToast({ title: "地区不能为空", icon: "none", duration: 2e3 })
|
||||
: "" == a.data.regdate
|
||||
? wx.showToast({
|
||||
title: "上牌日期不能为空",
|
||||
icon: "none",
|
||||
duration: 2e3,
|
||||
})
|
||||
: "" == a.data.mileage
|
||||
? wx.showToast({ title: "里程不能为空", icon: "none", duration: 2e3 })
|
||||
: (wx.showLoading({ title: "请求中" }), a.queryVinb());
|
||||
} else
|
||||
wx.showModal({
|
||||
title: "温馨提示",
|
||||
content: "请去个人中心授权登录用户信息",
|
||||
success: function (a) {
|
||||
a.confirm
|
||||
? wx.reLaunch({ url: "/pages/mine/index" })
|
||||
: console.log("点击取消回调");
|
||||
},
|
||||
});
|
||||
},
|
||||
queryVinb: function () {
|
||||
"iosb" == a.getSystemPlatform()
|
||||
? wx.showModal({
|
||||
title: "温馨提示",
|
||||
content: "iOS不支持小程序,请使用公众号查询",
|
||||
success: function (a) {
|
||||
a.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("点击取消回调");
|
||||
},
|
||||
})
|
||||
: this.queryVin();
|
||||
},
|
||||
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")),
|
||||
e.util.request({
|
||||
url: "entry/wxapp/paynum",
|
||||
data: {
|
||||
m: "monai_market",
|
||||
type: "escgz_money",
|
||||
orderid: a.data.orderid,
|
||||
uid: wx.getStorageSync("uid"),
|
||||
},
|
||||
success: function (t) {
|
||||
t.data && t.data.data && 1e3 == t.data.message
|
||||
? e.util.request({
|
||||
url: "entry/wxapp/Api",
|
||||
data: {
|
||||
m: "monai_market",
|
||||
uid: wx.getStorageSync("uid"),
|
||||
r: "home.weizhang.paynum",
|
||||
orderid: t.data.data.orderid,
|
||||
},
|
||||
success: function (e) {
|
||||
wx.showModal({ content: e.data.message }),
|
||||
a.setData({
|
||||
weizhang_num: 1 * a.data.weizhang_num + 10,
|
||||
}),
|
||||
a.getDetailpay();
|
||||
},
|
||||
})
|
||||
: t.data &&
|
||||
t.data.data &&
|
||||
!t.data.errno &&
|
||||
wx.requestPayment({
|
||||
timeStamp: t.data.data.timeStamp,
|
||||
nonceStr: t.data.data.nonceStr,
|
||||
package: t.data.data.package,
|
||||
signType: "MD5",
|
||||
paySign: t.data.data.paySign,
|
||||
success: function (i) {
|
||||
e.util.request({
|
||||
url: "entry/wxapp/Api",
|
||||
data: {
|
||||
m: "monai_market",
|
||||
uid: wx.getStorageSync("uid"),
|
||||
r: "home.weizhang.paynum",
|
||||
orderid: t.data.data.orderid,
|
||||
},
|
||||
success: function (e) {
|
||||
a.setData({
|
||||
weizhang_num: 1 * a.data.weizhang_num + 10,
|
||||
}),
|
||||
wx.showModal({ content: e.data.message }),
|
||||
a.getDetailpay();
|
||||
},
|
||||
});
|
||||
},
|
||||
});
|
||||
},
|
||||
}))
|
||||
: wx.showModal({
|
||||
title: "温馨提醒",
|
||||
content: "使用本功能请先登录后在使用~",
|
||||
showCancel: !1,
|
||||
success: function (a) {
|
||||
a.confirm && wx.reLaunch({ url: "/pages/mine/index" });
|
||||
},
|
||||
});
|
||||
},
|
||||
getDetailpay: function (e) {
|
||||
var t = this,
|
||||
i = this.data,
|
||||
n = {
|
||||
cardata: t.data.cardata,
|
||||
uid: wx.getStorageSync("uid"),
|
||||
carName: i.carName,
|
||||
cityName: i.cityName,
|
||||
regdate: i.regdate,
|
||||
cityid: i.cityid,
|
||||
provid: i.provid,
|
||||
carId: i.carId,
|
||||
mileage: i.mileage,
|
||||
orderid: t.data.orderid,
|
||||
};
|
||||
a.getdata(n, "escgzapinew").then((a) => {
|
||||
console.log("回调数据:", a),
|
||||
a &&
|
||||
wx.navigateTo({
|
||||
url:
|
||||
"/packageA/pages/caresgznew/carpg/carpg?orderid=" +
|
||||
t.data.orderid,
|
||||
});
|
||||
});
|
||||
},
|
||||
toDetailExample: function () {
|
||||
wx.navigateTo({
|
||||
url: "../caresgznew/carpg/carpg?orderid=D165026490694147402592",
|
||||
});
|
||||
},
|
||||
toSelectCar: function () {
|
||||
wx.navigateTo({ url: "../caresgznew/selectCar/selectCar" });
|
||||
},
|
||||
toSelectCity: function () {
|
||||
wx.navigateTo({ url: "../caresgznew/selectCity/selectCity" });
|
||||
},
|
||||
toSelectTime: function () {
|
||||
wx.navigateTo({ url: "../caresgznew/selectTime/selectTime" });
|
||||
},
|
||||
onLoad: function (a) {
|
||||
wx.getStorageSync("uid") || getApp().wxlogin(),
|
||||
this.orderid(),
|
||||
wx.removeStorageSync("carvehicle"),
|
||||
wx.removeStorageSync("carprov"),
|
||||
wx.removeStorageSync("carcity"),
|
||||
wx.removeStorageSync("cartime"),
|
||||
wx.removeStorageSync("cardatawx");
|
||||
},
|
||||
onReady: function () {},
|
||||
onShow: function () {
|
||||
a.appdengl();
|
||||
var e = wx.getStorageSync("carvehicle"),
|
||||
t = wx.getStorageSync("carprov"),
|
||||
i = wx.getStorageSync("carcity"),
|
||||
n = wx.getStorageSync("cartime"),
|
||||
o = "";
|
||||
"" != i && null != i && (o = t.name + "-" + i.name),
|
||||
console.log("" == e),
|
||||
"" != e &&
|
||||
"" != n &&
|
||||
parseInt(n.split("-")[0]) < parseInt(e.makeyear) &&
|
||||
(n = ""),
|
||||
this.setData({
|
||||
cardata: e,
|
||||
carName: e.fullname,
|
||||
cityName: o,
|
||||
regdate: n,
|
||||
cityid: i.id,
|
||||
provid: t.id,
|
||||
carId: e.id,
|
||||
}),
|
||||
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 (e) {
|
||||
var t = this,
|
||||
i = { uid: wx.getStorageSync("uid"), type: t.data.type, page: e };
|
||||
a.getdata(i, "carqxcx").then((a) => {
|
||||
if ((console.log("回调数据:", a), a.data && 0 == a.errno))
|
||||
if (1 == e) t.setData({ repairList: a.data, page: t.data.page + 1 });
|
||||
else {
|
||||
var i = t.data.repairList;
|
||||
i.push.apply(i, a.data),
|
||||
t.setData({ repairList: i, 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 (a) {
|
||||
var e = a.currentTarget.dataset.orderid;
|
||||
wx.navigateTo({
|
||||
url: "/packageA/pages/caresgznew/carpg/carpg?orderid=" + e,
|
||||
success: function () {},
|
||||
});
|
||||
},
|
||||
});
|
||||
3
packageA/pages/caresgznew/index.json
Normal file
3
packageA/pages/caresgznew/index.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
56
packageA/pages/caresgznew/index.wxml
Normal file
56
packageA/pages/caresgznew/index.wxml
Normal file
@@ -0,0 +1,56 @@
|
||||
<view class="search-title">二手车估值</view>
|
||||
<view class="search-text">根据车型和市场查询到市场行情,车商收车价,市场成交价。</view>
|
||||
<view class="vin-input">
|
||||
<text class="opt-name">车型</text>
|
||||
<block wx:if="{{carName==''}}">
|
||||
<text bindtap="toSelectCar" class="opt-input">请选择车型</text>
|
||||
<text class="arrow"></text>
|
||||
</block>
|
||||
<text bindtap="toSelectCar" class="opt-input suredata" wx:else>{{carName}}</text>
|
||||
</view>
|
||||
<view class="vin-input">
|
||||
<text class="opt-name">所在地区</text>
|
||||
<block wx:if="{{cityName==''}}">
|
||||
<text bindtap="toSelectCity" class="opt-input">请选择地区</text>
|
||||
<text class="arrow"></text>
|
||||
</block>
|
||||
<text bindtap="toSelectCity" class="opt-input suredata" wx:else>{{cityName}}</text>
|
||||
</view>
|
||||
<view class="vin-input">
|
||||
<text class="opt-name">首次上牌</text>
|
||||
<block wx:if="{{regdate==''}}">
|
||||
<text bindtap="toSelectTime" class="opt-input">请选择上牌日期</text>
|
||||
<text class="arrow"></text>
|
||||
</block>
|
||||
<text bindtap="toSelectTime" class="opt-input suredata" wx:else>{{regdate}}</text>
|
||||
</view>
|
||||
<view class="vin-input">
|
||||
<text class="opt-name" style="width: 50%">里程(万公里)</text>
|
||||
<input bindinput="mileageChanage" class="opt-input" placeholder="请输入公里数" placeholderStyle="color:#b1b1b1" style="width: 40%;color:#000;margin-right:5%" type="digit" value="{{mileage}}"></input>
|
||||
</view>
|
||||
<button bindtap="queryVolation" class="search-button">开始估值</button>
|
||||
<view class="help-view">
|
||||
<text bindtap="toDetailExample" class="help-example">样例报告</text>
|
||||
</view>
|
||||
<view style="height:10rpx;"></view>
|
||||
<view class="topbb" wx:if="{{repairList.length>0}}">
|
||||
<view class="title">
|
||||
<view class="main">二手车估值查询记录</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.carName}}</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">{{item.vin}}</text>
|
||||
<text class="hui-text">{{item.time}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
125
packageA/pages/caresgznew/index.wxss
Normal file
125
packageA/pages/caresgznew/index.wxss
Normal file
@@ -0,0 +1,125 @@
|
||||
@import "/graceUI/reporlist.wxss";
|
||||
.topbb {
|
||||
height: 215px;
|
||||
margin: 10px;
|
||||
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: 120rpx;
|
||||
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: -webkit-flex;
|
||||
display: flex;
|
||||
height: 100rpx;
|
||||
margin-bottom: 20rpx;
|
||||
margin-left: 5%;
|
||||
width: 90%;
|
||||
}
|
||||
.opt-name {
|
||||
font-weight: 700;
|
||||
margin-left: 6%;
|
||||
width: 30%;
|
||||
}
|
||||
.opt-input,
|
||||
.opt-name {
|
||||
height: 100rpx;
|
||||
line-height: 100rpx;
|
||||
}
|
||||
.opt-input {
|
||||
color: #b1b1b1;
|
||||
margin-right: 7%;
|
||||
text-align: right;
|
||||
width: 60%;
|
||||
}
|
||||
.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;
|
||||
}
|
||||
.arrow {
|
||||
border-right: 1px solid #b1b1b1;
|
||||
border-top: 1px solid #b1b1b1;
|
||||
color: #b1b1b1;
|
||||
height: 10px;
|
||||
margin-top: 38rpx;
|
||||
position: absolute;
|
||||
right: 60rpx;
|
||||
transform: rotate(45deg);
|
||||
width: 10px;
|
||||
}
|
||||
.suredata {
|
||||
color: #000;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
177
packageA/pages/caresgznew/selectCar/selectCar.js
Normal file
177
packageA/pages/caresgznew/selectCar/selectCar.js
Normal file
@@ -0,0 +1,177 @@
|
||||
var t;
|
||||
(t = getApp()),
|
||||
Page({
|
||||
data: {
|
||||
showLetter: "",
|
||||
winHeight: 0,
|
||||
tHeight: 0,
|
||||
bHeight: 0,
|
||||
startPageY: 0,
|
||||
carList: [],
|
||||
isShowLetter: !1,
|
||||
scrollTop: 0,
|
||||
three_none: "none",
|
||||
two_none: "none",
|
||||
hasback: "none",
|
||||
car_series: [],
|
||||
car_ser: null,
|
||||
searchLetter: [
|
||||
"*",
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D",
|
||||
"E",
|
||||
"F",
|
||||
"G",
|
||||
"H",
|
||||
"J",
|
||||
"K",
|
||||
"L",
|
||||
"M",
|
||||
"N",
|
||||
"P",
|
||||
"Q",
|
||||
"R",
|
||||
"S",
|
||||
"T",
|
||||
"W",
|
||||
"X",
|
||||
"Y",
|
||||
"Z",
|
||||
],
|
||||
car_vend_ser: [],
|
||||
},
|
||||
onLoad: function () {
|
||||
var e = this;
|
||||
wx.showLoading({ title: "请求中" }),
|
||||
t.getdata({ type: 1, pid: 0 }, "carallnew").then((t) => {
|
||||
var a = t.data;
|
||||
console.log("回调数据汽车:", t), e.crCarList(a);
|
||||
});
|
||||
for (
|
||||
var a = e.data.searchLetter,
|
||||
n = wx.getSystemInfoSync().windowHeight,
|
||||
o = n / a.length,
|
||||
r = [],
|
||||
s = 0;
|
||||
s < a.length;
|
||||
s++
|
||||
) {
|
||||
var i = {};
|
||||
(i.name = a[s]),
|
||||
(i.tHeight = s * o),
|
||||
(i.bHeight = (s + 1) * o),
|
||||
r.push(i);
|
||||
}
|
||||
e.setData({ winHeight: n, itemH: o, searchLetter: r });
|
||||
},
|
||||
searchStart: function (t) {
|
||||
var e = t.currentTarget.dataset.letter,
|
||||
a = t.touches[0].pageY;
|
||||
this.setScrollTop(this, e),
|
||||
this.nowLetter(a, this),
|
||||
this.setData({ showLetter: e, startPageY: a, isShowLetter: !0 });
|
||||
},
|
||||
searchMove: function (t) {
|
||||
var e = t.touches[0].pageY,
|
||||
a = this.data.startPageY,
|
||||
n = this.data.tHeight,
|
||||
o = this.data.bHeight;
|
||||
console.log(e),
|
||||
a - e > 0
|
||||
? e < n && this.nowLetter(e, this)
|
||||
: e > o && this.nowLetter(e, this);
|
||||
},
|
||||
searchEnd: function (t) {
|
||||
var e = this;
|
||||
setTimeout(function () {
|
||||
e.setData({ isShowLetter: !1 });
|
||||
}, 1e3);
|
||||
},
|
||||
nowLetter: function (t, e) {
|
||||
for (
|
||||
var a = this.data.searchLetter, n = 0, o = 0, r = "", s = 0;
|
||||
s < a.length;
|
||||
s++
|
||||
)
|
||||
if (a[s].tHeight <= t && t <= a[s].bHeight) {
|
||||
(n = a[s].bHeight), (o = a[s].tHeight), (r = a[s].name);
|
||||
break;
|
||||
}
|
||||
this.setScrollTop(e, r),
|
||||
e.setData({ bHeight: n, tHeight: o, showLetter: r, startPageY: t });
|
||||
},
|
||||
setScrollTop: function (t, e) {
|
||||
for (
|
||||
var a = 0, n = t.data.carList, o = 0, r = 0, s = 0;
|
||||
s < n.length;
|
||||
s++
|
||||
) {
|
||||
if (e == n[s].shou_zm) {
|
||||
a = 30 * r + 41 * o;
|
||||
break;
|
||||
}
|
||||
console.log("数字", s),
|
||||
console.log(n[s]),
|
||||
r++,
|
||||
(o += n[s].carInfo.length);
|
||||
}
|
||||
t.setData({ scrollTop: a });
|
||||
},
|
||||
btn_pinpai: function (e) {
|
||||
var a = this,
|
||||
n = { type: 2, pid: e.currentTarget.dataset.brand };
|
||||
t.getdata(n, "carallnew").then((t) => {
|
||||
var e = t.data;
|
||||
console.log("回调数据汽车:", e),
|
||||
a.setData({
|
||||
three_none: "none",
|
||||
two_none: "block",
|
||||
hasback: "block",
|
||||
car_series: e,
|
||||
});
|
||||
});
|
||||
},
|
||||
btn_name: function (e) {
|
||||
var a = this,
|
||||
n = { type: 3, pid: e.currentTarget.dataset.familyid };
|
||||
t.getdata(n, "carallnew").then((t) => {
|
||||
var e = t.data;
|
||||
console.log("回调数据汽车xiang:", e),
|
||||
a.setData({ three_none: "block", hasback: "block", car_vend_ser: e });
|
||||
});
|
||||
},
|
||||
btn_sel_name: function (t) {
|
||||
var e = t.currentTarget.dataset.item;
|
||||
console.log(e),
|
||||
wx.setStorageSync("carvehicle", e),
|
||||
wx.navigateBack({ delta: 1 });
|
||||
},
|
||||
crCarList: function (t) {
|
||||
for (var e = this.data.searchLetter, a = [], n = 1; n < e.length; n++) {
|
||||
var o = e[n].name,
|
||||
r = [],
|
||||
s = {};
|
||||
s.shou_zm = o;
|
||||
for (var i = 0; i < t.length; i++) o == t[i].sort && r.push(t[i]);
|
||||
(s.carInfo = r), a.push(s);
|
||||
}
|
||||
this.setData({ carList: a }), wx.hideLoading();
|
||||
},
|
||||
crFamilyList: function (t) {
|
||||
var e = {};
|
||||
for (var a in (console.log(t), t)) {
|
||||
var n = t[a].factory;
|
||||
null == e[n] ? (e[n] = [t[a]]) : e[n].push(t[a]);
|
||||
}
|
||||
console.log(e), this.setData({ car_series: e });
|
||||
},
|
||||
goback: function () {
|
||||
"block" == this.data.three_none
|
||||
? this.setData({ three_none: "none" })
|
||||
: "block" == this.data.two_none
|
||||
? this.setData({ two_none: "none", hasback: "none" })
|
||||
: this.setData({ hasback: "none" });
|
||||
},
|
||||
});
|
||||
3
packageA/pages/caresgznew/selectCar/selectCar.json
Normal file
3
packageA/pages/caresgznew/selectCar/selectCar.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
25
packageA/pages/caresgznew/selectCar/selectCar.wxml
Normal file
25
packageA/pages/caresgznew/selectCar/selectCar.wxml
Normal file
@@ -0,0 +1,25 @@
|
||||
<view>
|
||||
<view class="searchLetter touchClass">
|
||||
<view catchtouchend="searchEnd" catchtouchmove="searchMove" catchtouchstart="searchStart" data-letter="{{item.name}}" style="height:{{itemH}}px" wx:for="{{searchLetter}}" wx:key="index"> {{item.name}} </view>
|
||||
</view>
|
||||
<view class="showSlectedLetter" wx:if="{{isShowLetter}}"> {{showLetter}} </view>
|
||||
<scroll-view scrollTop="{{scrollTop}}" scrollY="true" style="height:{{winHeight}}px">
|
||||
<view class="selection" wx:if="{{carList.length>0}}" wx:for="{{carList}}" wx:key="index">
|
||||
<view class="item_letter">{{item.shou_zm}}</view>
|
||||
<view bindtap="btn_pinpai" class="item_city" data-brand="{{ct.brand_id}}" wx:for="{{item.carInfo}}" wx:for-item="ct" wx:key="index"> {{ct.name}} </view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
<scroll-view class="scoll_car_service" scrollY="true" style="height:{{car_type_hight}};display:{{two_none}}">
|
||||
<view class="selection" wx:for="{{car_series}}" wx:key="index">
|
||||
<label bindtap="btn_name" class="tab2" data-brandid="{{item.brand_id}}" data-familyid="{{item.series_id}}"> {{item.series_name}} </label>
|
||||
</view>
|
||||
</scroll-view>
|
||||
<scroll-view class="scoll_vender_service" scrollY="true" style="height:{{car_type_hight}};display:{{three_none}}">
|
||||
<view wx:for="{{car_vend_ser}}" wx:key="index">
|
||||
<text bindtap="btn_sel_name" class="tab3" data-item="{{item}}">{{item.fullname}}</text>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
<view bindtap="goback" class="goback" style="display:{{hasback}}">
|
||||
<text class="arrow"></text>
|
||||
</view>
|
||||
125
packageA/pages/caresgznew/selectCar/selectCar.wxss
Normal file
125
packageA/pages/caresgznew/selectCar/selectCar.wxss
Normal file
@@ -0,0 +1,125 @@
|
||||
.searchLetter {
|
||||
color: #666;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
justify-content: center;
|
||||
position: fixed;
|
||||
right: 0;
|
||||
text-align: center;
|
||||
width: 40px;
|
||||
z-index: 1;
|
||||
}
|
||||
.tab2 {
|
||||
height: 70rpx;
|
||||
line-height: 70rpx;
|
||||
width: 560rpx;
|
||||
}
|
||||
.tab2,
|
||||
.tab3 {
|
||||
border-bottom: 1px solid #eaeaea;
|
||||
color: #2a2a2a;
|
||||
font-size: 30rpx;
|
||||
padding-left: 30rpx;
|
||||
}
|
||||
.tab3 {
|
||||
word-wrap: break-word;
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
padding-bottom: 20rpx;
|
||||
padding-top: 20rpx;
|
||||
}
|
||||
.scoll_car_service {
|
||||
left: 25%;
|
||||
width: 75%;
|
||||
z-index: 5;
|
||||
}
|
||||
.scoll_car_service,
|
||||
.scoll_vender_service {
|
||||
background-color: #f5f5f5;
|
||||
box-shadow: 0 0 3px 3px #999;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
height: 100%;
|
||||
position: fixed;
|
||||
top: 1px;
|
||||
}
|
||||
.scoll_vender_service {
|
||||
left: 50%;
|
||||
width: 50%;
|
||||
z-index: 10;
|
||||
}
|
||||
.searchLetter view {
|
||||
height: 70rpx;
|
||||
}
|
||||
.touchClass {
|
||||
color: #a56e0a;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
.showSlectedLetter {
|
||||
align-items: center;
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
border-radius: 10px;
|
||||
color: #fff;
|
||||
font-size: 26px;
|
||||
height: 100px;
|
||||
justify-content: center;
|
||||
left: 50%;
|
||||
margin: -50px;
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
width: 100px;
|
||||
z-index: 1;
|
||||
}
|
||||
.selection,
|
||||
.showSlectedLetter {
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
}
|
||||
.selection {
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
}
|
||||
.item_letter {
|
||||
align-items: center;
|
||||
background-color: #f8f8f8;
|
||||
color: #896a0d;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
font-size: 26rpx;
|
||||
height: 30px;
|
||||
padding-left: 10px;
|
||||
}
|
||||
.item_city {
|
||||
background-color: #f5f5f5;
|
||||
border-bottom: 1px solid #eaeaea;
|
||||
color: #2a2a2a;
|
||||
font-size: 30rpx;
|
||||
height: 40px;
|
||||
line-height: 40px;
|
||||
padding-left: 10px;
|
||||
}
|
||||
.car_img {
|
||||
height: 80rpx;
|
||||
width: 100rpx;
|
||||
}
|
||||
.goback {
|
||||
border: 2rpx solid #aaa;
|
||||
border-radius: 50%;
|
||||
bottom: 60rpx;
|
||||
height: 80rpx;
|
||||
position: fixed;
|
||||
right: 40rpx;
|
||||
width: 80rpx;
|
||||
z-index: 99;
|
||||
}
|
||||
.arrow {
|
||||
border-bottom: 3px solid #999;
|
||||
border-left: 3px solid #999;
|
||||
display: block;
|
||||
height: 14px;
|
||||
margin: 24rpx 30rpx;
|
||||
transform: rotate(45deg);
|
||||
width: 14px;
|
||||
}
|
||||
47
packageA/pages/caresgznew/selectCity/selectCity.js
Normal file
47
packageA/pages/caresgznew/selectCity/selectCity.js
Normal file
@@ -0,0 +1,47 @@
|
||||
var t;
|
||||
(t = getApp()),
|
||||
Page({
|
||||
data: {
|
||||
winHeight: 0,
|
||||
tHeight: 0,
|
||||
bHeight: 0,
|
||||
startPageY: 0,
|
||||
scrollTop: 0,
|
||||
two_none: "none",
|
||||
hasback: "none",
|
||||
prov_list: [],
|
||||
city_list: [],
|
||||
},
|
||||
onLoad: function () {
|
||||
var a = this;
|
||||
wx.showLoading({ title: "请求中" }),
|
||||
t.getdata("", "carcitynew").then((t) => {
|
||||
var e = t.data;
|
||||
console.log("回调数据汽车:", e), a.setData({ prov_list: e });
|
||||
});
|
||||
var e = wx.getSystemInfoSync().windowHeight;
|
||||
a.setData({ winHeight: e });
|
||||
},
|
||||
btn_pinpai: function (t) {
|
||||
var a = t.currentTarget.dataset.name;
|
||||
wx.setStorageSync("carprov", a),
|
||||
this.setData({
|
||||
two_none: "block",
|
||||
hasback: "block",
|
||||
city_list: t.currentTarget.dataset.item,
|
||||
});
|
||||
},
|
||||
btn_sel_name: function (t) {
|
||||
var a = t.currentTarget.dataset.item;
|
||||
console.log(a),
|
||||
wx.setStorageSync("carcity", a),
|
||||
wx.navigateBack({ delta: 1 });
|
||||
},
|
||||
goback: function () {
|
||||
"block" == this.data.three_none
|
||||
? this.setData({ three_none: "none" })
|
||||
: "block" == this.data.two_none
|
||||
? this.setData({ two_none: "none", hasback: "none" })
|
||||
: this.setData({ hasback: "none" });
|
||||
},
|
||||
});
|
||||
3
packageA/pages/caresgznew/selectCity/selectCity.json
Normal file
3
packageA/pages/caresgznew/selectCity/selectCity.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
15
packageA/pages/caresgznew/selectCity/selectCity.wxml
Normal file
15
packageA/pages/caresgznew/selectCity/selectCity.wxml
Normal file
@@ -0,0 +1,15 @@
|
||||
<view>
|
||||
<scroll-view scrollY="true" style="height:{{winHeight}}px">
|
||||
<view class="selection" wx:for="{{prov_list}}" wx:key="index">
|
||||
<view bindtap="btn_pinpai" class="item_city" data-item="{{item.child}}" data-name="{{item}}"> {{item.name}} </view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
<scroll-view class="scoll_car_service" scrollY="true" style="height:{{car_type_hight}};display:{{two_none}}">
|
||||
<view class="selection" wx:for="{{city_list}}" wx:key="index">
|
||||
<label bindtap="btn_sel_name" class="tab2" data-item="{{item}}"> {{item.name}} </label>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
<view bindtap="goback" class="goback" style="display:{{hasback}}">
|
||||
<text class="arrow"></text>
|
||||
</view>
|
||||
125
packageA/pages/caresgznew/selectCity/selectCity.wxss
Normal file
125
packageA/pages/caresgznew/selectCity/selectCity.wxss
Normal file
@@ -0,0 +1,125 @@
|
||||
.searchLetter {
|
||||
color: #666;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
justify-content: center;
|
||||
position: fixed;
|
||||
right: 0;
|
||||
text-align: center;
|
||||
width: 40px;
|
||||
z-index: 1;
|
||||
}
|
||||
.tab2 {
|
||||
height: 80rpx;
|
||||
line-height: 80rpx;
|
||||
width: 560rpx;
|
||||
}
|
||||
.tab2,
|
||||
.tab3 {
|
||||
border-bottom: 1px solid #eaeaea;
|
||||
color: #2a2a2a;
|
||||
font-size: 30rpx;
|
||||
padding-left: 30rpx;
|
||||
}
|
||||
.tab3 {
|
||||
word-wrap: break-word;
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
padding-bottom: 20rpx;
|
||||
padding-top: 20rpx;
|
||||
}
|
||||
.scoll_car_service {
|
||||
left: 25%;
|
||||
width: 75%;
|
||||
z-index: 5;
|
||||
}
|
||||
.scoll_car_service,
|
||||
.scoll_vender_service {
|
||||
background-color: #f5f5f5;
|
||||
box-shadow: 0 0 3px 3px #999;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
height: 100%;
|
||||
position: fixed;
|
||||
top: 1px;
|
||||
}
|
||||
.scoll_vender_service {
|
||||
left: 50%;
|
||||
width: 50%;
|
||||
z-index: 10;
|
||||
}
|
||||
.searchLetter view {
|
||||
height: 70rpx;
|
||||
}
|
||||
.touchClass {
|
||||
color: #a56e0a;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
.showSlectedLetter {
|
||||
align-items: center;
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
border-radius: 10px;
|
||||
color: #fff;
|
||||
font-size: 26px;
|
||||
height: 100px;
|
||||
justify-content: center;
|
||||
left: 50%;
|
||||
margin: -50px;
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
width: 100px;
|
||||
z-index: 1;
|
||||
}
|
||||
.selection,
|
||||
.showSlectedLetter {
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
}
|
||||
.selection {
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
}
|
||||
.item_letter {
|
||||
align-items: center;
|
||||
background-color: #f8f8f8;
|
||||
color: #896a0d;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
font-size: 26rpx;
|
||||
height: 30px;
|
||||
padding-left: 10px;
|
||||
}
|
||||
.item_city {
|
||||
background-color: #f5f5f5;
|
||||
border-bottom: 1px solid #eaeaea;
|
||||
color: #2a2a2a;
|
||||
font-size: 30rpx;
|
||||
height: 34px;
|
||||
line-height: 34px;
|
||||
padding-left: 10px;
|
||||
}
|
||||
.car_img {
|
||||
height: 80rpx;
|
||||
width: 100rpx;
|
||||
}
|
||||
.goback {
|
||||
border: 2rpx solid #aaa;
|
||||
border-radius: 50%;
|
||||
bottom: 60rpx;
|
||||
height: 80rpx;
|
||||
position: fixed;
|
||||
right: 40rpx;
|
||||
width: 80rpx;
|
||||
z-index: 99;
|
||||
}
|
||||
.arrow {
|
||||
border-bottom: 3px solid #999;
|
||||
border-left: 3px solid #999;
|
||||
display: block;
|
||||
height: 14px;
|
||||
margin: 24rpx 30rpx;
|
||||
transform: rotate(45deg);
|
||||
width: 14px;
|
||||
}
|
||||
56
packageA/pages/caresgznew/selectTime/selectTime.js
Normal file
56
packageA/pages/caresgznew/selectTime/selectTime.js
Normal file
@@ -0,0 +1,56 @@
|
||||
Page({
|
||||
data: {
|
||||
winHeight: 0,
|
||||
two_none: "none",
|
||||
hasback: "none",
|
||||
year_list: [],
|
||||
mouth_list: [
|
||||
"01",
|
||||
"02",
|
||||
"03",
|
||||
"04",
|
||||
"05",
|
||||
"06",
|
||||
"07",
|
||||
"08",
|
||||
"09",
|
||||
"10",
|
||||
"11",
|
||||
"12",
|
||||
],
|
||||
year: "",
|
||||
},
|
||||
onLoad: function () {
|
||||
var t = wx.getSystemInfoSync().windowHeight;
|
||||
this.setData({ winHeight: t, year_list: this.getsortyear() });
|
||||
},
|
||||
getsortyear: function () {
|
||||
var t = [],
|
||||
e = wx.getStorageSync("carvehicle"),
|
||||
a = new Date().getFullYear();
|
||||
if (null != e && "" != e && null != e.makeyear)
|
||||
for (var n = 0; n < a && a - n >= parseInt(e.makeyear); n++)
|
||||
t.push(a - n);
|
||||
else for (var o = 0; o < 18; o++) t.push(a--);
|
||||
return t;
|
||||
},
|
||||
btn_pinpai: function (t) {
|
||||
this.setData({
|
||||
two_none: "block",
|
||||
hasback: "block",
|
||||
year: t.currentTarget.dataset.year,
|
||||
});
|
||||
},
|
||||
btn_sel_name: function (t) {
|
||||
var e = t.currentTarget.dataset.mouth;
|
||||
wx.setStorageSync("cartime", this.data.year + "-" + e),
|
||||
wx.navigateBack({ delta: 1 });
|
||||
},
|
||||
goback: function () {
|
||||
"block" == this.data.three_none
|
||||
? this.setData({ three_none: "none" })
|
||||
: "block" == this.data.two_none
|
||||
? this.setData({ two_none: "none", hasback: "none" })
|
||||
: this.setData({ hasback: "none" });
|
||||
},
|
||||
});
|
||||
3
packageA/pages/caresgznew/selectTime/selectTime.json
Normal file
3
packageA/pages/caresgznew/selectTime/selectTime.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
15
packageA/pages/caresgznew/selectTime/selectTime.wxml
Normal file
15
packageA/pages/caresgznew/selectTime/selectTime.wxml
Normal file
@@ -0,0 +1,15 @@
|
||||
<view>
|
||||
<scroll-view scrollY="true" style="height:{{winHeight}}px">
|
||||
<view class="selection" wx:for="{{year_list}}" wx:key="index">
|
||||
<view bindtap="btn_pinpai" class="item_city" data-year="{{item}}"> {{item}} </view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
<scroll-view class="scoll_car_service" scrollY="true" style="height:{{car_type_hight}};display:{{two_none}}">
|
||||
<view class="selection" wx:for="{{mouth_list}}" wx:key="index">
|
||||
<label bindtap="btn_sel_name" class="tab2" data-mouth="{{item}}"> {{item}} </label>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
<view bindtap="goback" class="goback" style="display:{{hasback}}">
|
||||
<text class="arrow"></text>
|
||||
</view>
|
||||
125
packageA/pages/caresgznew/selectTime/selectTime.wxss
Normal file
125
packageA/pages/caresgznew/selectTime/selectTime.wxss
Normal file
@@ -0,0 +1,125 @@
|
||||
.searchLetter {
|
||||
color: #666;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
justify-content: center;
|
||||
position: fixed;
|
||||
right: 0;
|
||||
text-align: center;
|
||||
width: 40px;
|
||||
z-index: 1;
|
||||
}
|
||||
.tab2 {
|
||||
height: 80rpx;
|
||||
line-height: 80rpx;
|
||||
width: 560rpx;
|
||||
}
|
||||
.tab2,
|
||||
.tab3 {
|
||||
border-bottom: 1px solid #eaeaea;
|
||||
color: #2a2a2a;
|
||||
font-size: 30rpx;
|
||||
padding-left: 30rpx;
|
||||
}
|
||||
.tab3 {
|
||||
word-wrap: break-word;
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
padding-bottom: 20rpx;
|
||||
padding-top: 20rpx;
|
||||
}
|
||||
.scoll_car_service {
|
||||
left: 25%;
|
||||
width: 75%;
|
||||
z-index: 5;
|
||||
}
|
||||
.scoll_car_service,
|
||||
.scoll_vender_service {
|
||||
background-color: #f5f5f5;
|
||||
box-shadow: 0 0 3px 3px #999;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
height: 100%;
|
||||
position: fixed;
|
||||
top: 1px;
|
||||
}
|
||||
.scoll_vender_service {
|
||||
left: 50%;
|
||||
width: 50%;
|
||||
z-index: 10;
|
||||
}
|
||||
.searchLetter view {
|
||||
height: 70rpx;
|
||||
}
|
||||
.touchClass {
|
||||
color: #a56e0a;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
.showSlectedLetter {
|
||||
align-items: center;
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
border-radius: 10px;
|
||||
color: #fff;
|
||||
font-size: 26px;
|
||||
height: 100px;
|
||||
justify-content: center;
|
||||
left: 50%;
|
||||
margin: -50px;
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
width: 100px;
|
||||
z-index: 1;
|
||||
}
|
||||
.selection,
|
||||
.showSlectedLetter {
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
}
|
||||
.selection {
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
}
|
||||
.item_letter {
|
||||
align-items: center;
|
||||
background-color: #f8f8f8;
|
||||
color: #896a0d;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
font-size: 26rpx;
|
||||
height: 30px;
|
||||
padding-left: 10px;
|
||||
}
|
||||
.item_city {
|
||||
background-color: #f5f5f5;
|
||||
border-bottom: 1px solid #eaeaea;
|
||||
color: #2a2a2a;
|
||||
font-size: 30rpx;
|
||||
height: 34px;
|
||||
line-height: 34px;
|
||||
padding-left: 10px;
|
||||
}
|
||||
.car_img {
|
||||
height: 80rpx;
|
||||
width: 100rpx;
|
||||
}
|
||||
.goback {
|
||||
border: 2rpx solid #aaa;
|
||||
border-radius: 50%;
|
||||
bottom: 60rpx;
|
||||
height: 80rpx;
|
||||
position: fixed;
|
||||
right: 40rpx;
|
||||
width: 80rpx;
|
||||
z-index: 99;
|
||||
}
|
||||
.arrow {
|
||||
border-bottom: 3px solid #999;
|
||||
border-left: 3px solid #999;
|
||||
display: block;
|
||||
height: 14px;
|
||||
margin: 24rpx 30rpx;
|
||||
transform: rotate(45deg);
|
||||
width: 14px;
|
||||
}
|
||||
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;
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user