更换版本

This commit is contained in:
2024-01-22 18:48:00 +08:00
parent 9f65ea8fd9
commit 00e6dcaec0
1158 changed files with 70609 additions and 51780 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,310 +0,0 @@
var e = require("../common/vendor.js"),
n = require("../service/index.js"),
r = require("../enums/index.js"),
t = require("./util.js");
require("../config/index.js");
var i = require("../hooks/useState.js"),
u = require("./navigate.js");
require("../constant/index.js");
var o = function (n) {
console.log("onEmit刷新", n),
e.index.$emit("refreshOrderDetail", n),
e.index.$emit("updateOrderDetail"),
e.index.$emit("refreshOrderNum"),
e.index.$emit("updateOrderList", n),
e.index.$emit("updateMyOrderList", n);
};
(exports.chooseDrivingLicense = function (e) {
var r = e.orderNo;
return t.choosePhoto().then(function (e) {
return (
t.showLoading(),
n.uploadDrivingLicense({ filePath: e, order_no: r }).then(function () {
o(r), t.hideLoading();
})
);
});
}),
(exports.getOrderStatus = function (n) {
var t = e._.find(n, function (e) {
return e.status === r.ProductStatusEnum.IN_QUERY;
}),
i = e._.find(n, function (e) {
return e.status === r.ProductStatusEnum.TO_BE_UPLOADED;
}),
u = e._.every(n, function (e) {
return (
e.status === r.ProductStatusEnum.SUCCESS ||
(e.status == e.status) === r.ProductStatusEnum.FAIL
);
});
return t ? ",查询中" : i ? ",待上传行驶证" : u ? ",查询完成" : "";
}),
(exports.getProduct = function (e) {
var n = i.useState(),
t = n.insuranceMaintainProduct,
u = n.accidentProduct,
o = n.vehicleFiveProduct,
a = n.saliProduct,
c = n.saliCheckProduct,
s = n.commercialInsuranceProduct,
d = n.violationProduct,
l = n.vehicleStatusProduct,
m = null;
return (
e.split(",").length > 1
? (m = { product_name: "综合车况" })
: e === r.ProductTypeEnum.INSURANCE_MAINTAIN
? (m = t.value)
: e === r.ProductTypeEnum.ACCIDENT
? (m = u.value)
: e === r.ProductTypeEnum.VEHICLE_FIVE
? (m = o.value)
: e === r.ProductTypeEnum.COMMERICAL_INSURANCE
? (m = s.value)
: e === r.ProductTypeEnum.VIOLATION
? (m = d.value)
: e === r.ProductTypeEnum.SALI
? (m = a.value)
: e === r.ProductTypeEnum.SALI_CHECK
? (m = c.value)
: e === r.ProductTypeEnum.VEHICLE_STATUS && (m = l.value),
m
);
}),
(exports.getVehicleInfoList = function (n) {
var r = [
"厂家名称",
"车型名称",
"版本",
"车型组名称",
"车型组ID",
"车ID",
"年款",
"上市日期",
"新车购置价格",
"市场价",
"发动机型号",
"排量",
"档位数",
"燃油类型",
"燃油标号",
"喷射方式",
"最大功率 KW",
"最大马力(Ps)",
"轴距",
"尺寸类型",
"车身型式",
"车体结构",
"变速箱类型",
"驱动方式",
"前轮胎尺寸",
"后轮胎尺寸",
"前制动类型",
"后制动类型",
"驻车制动类型",
"档位数",
"座位数",
"车门数",
"气缸数",
"长 mm",
"宽",
"高",
"整备质量 kg",
"是否是进口",
],
t = [];
return (
e._.each(r, function (r) {
var i = null,
u = [];
"发动机型号" === r
? (u = e._.filter(n, function (e) {
return "发动机" === e.name || "发动机型号" === e.name;
})).length > 0 && ((i = u[0]).name = "发动机型号")
: "排量" === r
? (u = e._.filter(n, function (e) {
return "排量 L" === e.name || "排量(mL)" === e.name;
})).length > 0 && ((i = u[0]).name = "排量")
: "变速箱类型" === r
? (u = e._.filter(n, function (e) {
return "变速箱" === e.name || "变速箱类型" === e.name;
})).length > 0 && ((i = u[0]).name = "变速箱类型")
: (i = e._.find(n, function (e) {
return e.name === r;
})),
i && t.push(i);
}),
(t = e._.concat(
t,
e._.filter(n, function (e) {
return (
r.indexOf(e.name) < 0 &&
[
"发动机",
"发动机型号",
"排量 L",
"排量(mL)",
"变速箱",
"变速箱类型",
].indexOf(e.name) < 0
);
})
))
);
}),
(exports.hasClickAgreement = function () {
return !(
!e.index.getStorageSync("hasClickAgreement") ||
e.index.getStorageSync("hasClickAgreement") < 1
);
}),
(exports.isSupportAliPay = function () {
i.useState();
return !1, !1;
}),
(exports.isSupportWeChatPay = function () {
i.useState();
return !0, !0;
}),
(exports.modifyVin = function (e) {
var r = e.orderNo,
i = e.vin;
return (
t.showLoading(),
n.modifyOrderVin({ order_no: r, vin: i }).then(function () {
t.showToast("修改成功"), o(r);
})
);
}),
(exports.ocrIdentifyVin = function () {
return t.choosePhoto().then(function (e) {
return (
t.showLoading(),
n.ocrUploadDrivingLicense({ filePath: e }).then(function (e) {
return t.showToast("识别成功,请核对"), e ? e.vin : null;
})
);
});
}),
(exports.openReport = function (e) {
var i = e.orderNo,
o = e.productId,
a = e.status;
t.showLoading();
var c = null;
o === r.ProductTypeEnum.INSURANCE_MAINTAIN &&
(c =
a === r.ProductStatusEnum.FAIL
? function () {
return Promise.resolve({
url: "/pages/insurance-maintain-blank/index",
});
}
: function () {
return Promise.resolve({
url: "/pages/insurance-maintain-detail/index",
});
}),
o === r.ProductTypeEnum.ACCIDENT &&
(c =
a === r.ProductStatusEnum.FAIL
? function () {
return Promise.resolve({ url: "/pages/accident-blank/index" });
}
: function () {
return n
.getReportDetail({ order_no: i, product_id: o })
.then(function (e) {
var n = e.report_url_our;
return {
url: n
? "/pages/accident-web-view/index"
: "/pages/accident-detail/index",
reportUrl: n,
};
});
}),
o === r.ProductTypeEnum.COMMERICAL_INSURANCE &&
(c = function () {
return Promise.resolve({
url: "/pages/commercial-insurance-detail/index",
});
}),
o === r.ProductTypeEnum.VEHICLE_FIVE &&
(c = function () {
return Promise.resolve({ url: "/pages/vehicle-five-detail/index" });
}),
o === r.ProductTypeEnum.SALI &&
(c = function () {
return Promise.resolve({ url: "/pages/sali-detail/index" });
}),
o === r.ProductTypeEnum.SALI_CHECK &&
(c = function () {
return Promise.resolve({ url: "/pages/sali-check-detail/index" });
}),
o === r.ProductTypeEnum.VEHICLE_STATUS &&
(c = function () {
return Promise.resolve({ url: "/pages/vehicle-status-detail/index" });
}),
c
? c().then(function (e) {
var n = e.url,
r = e.reportUrl;
t.hideLoading(),
u.navigateTo({
url: n,
params: { order_no: i, product_id: o, url: r },
});
})
: t.showToast("当前查询类型暂不支持");
}),
(exports.payForOrder = function (n) {
var i = n.payMethod,
u = n.data,
a = u.orderNo;
return (function (n) {
var t = n.payMethod,
i = n.data,
u = null;
return (
t === r.PayMethodEnum.WECHAT_PAY &&
(u = function () {
return e.index.requestPayment({
provider: "wxpay",
timeStamp: String(i.timestamp),
nonceStr: String(i.nonceStr),
package: String(i.package),
signType: String(i.signType),
paySign: String(i.paySign),
});
}),
t === r.PayMethodEnum.ALI_PAY &&
(u = function () {
return e.index.requestPayment({
provider: "alipay",
orderInfo: String(i.alipay),
});
}),
u()
);
})({ payMethod: i, data: u })
.then(function () {
return Promise.resolve({ orderNo: a });
})
.catch(function () {
return Promise.reject({ orderNo: a });
})
.finally(function () {
o(a), t.hideLoading();
});
}),
(exports.queryWithoutDrivingLicense = function (e) {
var r = e.orderNo;
return (
t.showLoading(),
n.noDrivingLicense({ order_no: r }).then(function () {
o(r);
})
);
});

645
utils/data.js Normal file
View File

@@ -0,0 +1,645 @@
module.exports = {
index: [
{
api: "1",
appid: "",
bg: "https://api.ym23.com/addons/monai_market/static/icon/module_back.png",
brand_icon: "",
cid: "1",
content: "查询事故车,出险记录,保险记录",
cxcontent: "",
cximg: "",
id: "2",
logo: "https://pic.ym23.com/images/77/2023/11/IhcHcnH5CjNjhchrvhcHdHchDUCcZH.png",
moneytype: "",
name: "出险记录查询",
nbpage: "/packageA/pages/carcx/index",
ocph: "0",
ofdj: "0",
ovin: "0",
oxsz: "0",
sort: "20",
tb: "1",
type: "0",
tzpage: "",
uniacid: "77",
url: "",
},
{
api: "",
appid: "",
bg: "https://api.ym23.com/addons/monai_market/static/icon/module_back.png",
brand_icon: "",
cid: "1",
content: "查询车辆最新的状态信息",
cxcontent: "",
cximg: "",
id: "4",
logo: "https://pic.ym23.com/images/77/2023/11/qjR0jzObhR900RJPEBvr490zZR1T99.png",
moneytype: "",
name: "车辆状态查询",
nbpage: "/packageA/pages/carclzt/incxjl",
ocph: "0",
ofdj: "0",
ovin: "0",
oxsz: "0",
sort: "18",
tb: "1",
type: "0",
tzpage: "",
uniacid: "77",
url: "",
},
{
api: "",
appid: "",
bg: "https://api.ym23.com/addons/monai_market/static/icon/module_back.png",
brand_icon: "",
cid: "1",
content: "查询交强险投保日期和状态",
cxcontent: "",
cximg: "",
id: "5",
logo: "https://pic.ym23.com/images/77/2023/11/v70iOARiIZ78lIl7UzST0Pu3sP8uiI.png",
moneytype: "",
name: "交强险查询",
nbpage: "/packageA/pages/carjqx/incxjl",
ocph: "0",
ofdj: "0",
ovin: "0",
oxsz: "0",
sort: "17",
tb: "1",
type: "0",
tzpage: "",
uniacid: "77",
url: "",
},
{
api: "",
appid: "",
bg: "https://api.ym23.com/addons/monai_market/static/icon/module_back.png",
brand_icon: "",
cid: "2",
content: "开启查询结果通知,查询成功通知",
cxcontent: "",
cximg: "",
id: "12",
logo: "https://pic.ym23.com/images/77/2023/11/Xc497KwPce4OzC4pIewp24444c2een.png",
moneytype: "",
name: "开启短信通知",
nbpage: "/pages/mine/info/index",
ocph: "0",
ofdj: "0",
ovin: "0",
oxsz: "0",
sort: "10",
tb: "1",
type: "0",
tzpage: "",
uniacid: "77",
url: "",
},
{
api: "",
appid: "",
bg: "https://api.ym23.com/addons/monai_market/static/icon/module_back.png",
brand_icon: "",
cid: "1",
content: "商业险信息查询,公司,单号",
cxcontent: "",
cximg: "",
id: "1021",
logo: "https://pic.ym23.com/images/77/2023/11/f41Iy1ba3A3JbV4j8vB8VeWJbs888G.png",
moneytype: "",
name: "商业险查询",
nbpage: "/packageA/pages/carsyx/incxjl",
ocph: "0",
ofdj: "0",
ovin: "0",
oxsz: "0",
sort: "1",
tb: "1",
type: "0",
tzpage: "",
uniacid: "77",
url: "",
},
{
api: "",
appid: "",
bg: "https://api.ym23.com/addons/monai_market/static/icon/module_back.png",
brand_icon: "",
cid: "0",
content: "查询电子保单信息的功能",
cxcontent: "",
cximg: "",
id: "3",
logo: "",
moneytype: "",
name: "电子保单查询",
nbpage: "/packageA/pages/cardzbd/incxjl",
ocph: "0",
ofdj: "0",
ovin: "0",
oxsz: "0",
sort: "0",
tb: "1",
type: "0",
tzpage: "",
uniacid: "77",
url: "",
},
{
api: "",
appid: "",
bg: "https://api.ym23.com/addons/monai_market/static/icon/module_back.png",
brand_icon: "",
cid: "1",
content: "根据车牌号查询年检日期和状态",
cxcontent: "",
cximg: "",
id: "6",
logo: "https://pic.ym23.com/images/77/2023/11/hMV1l3T13HdTEE3334Yt3HEtxVeH3i.png",
moneytype: "",
name: "车辆年检查询",
nbpage: "/packageA/pages/carnj/incxjl",
ocph: "0",
ofdj: "0",
ovin: "0",
oxsz: "0",
sort: "0",
tb: "1",
type: "0",
tzpage: "",
uniacid: "77",
url: "",
},
{
api: "",
appid: "",
bg: "https://api.ym23.com/addons/monai_market/static/icon/module_back.png",
brand_icon: "",
cid: "1",
content: "查询你的汽车回收价,避免被坑",
cxcontent: "",
cximg: "",
id: "7",
logo: "https://pic.ym23.com/images/77/2023/11/OWZxBbKfcW8b3kBQOBSMGBBbVW8gCw.png",
moneytype: "",
name: "二手汽车估值",
nbpage: "/packageA/pages/caresgz/index",
ocph: "0",
ofdj: "0",
ovin: "0",
oxsz: "0",
sort: "0",
tb: "1",
type: "0",
tzpage: "",
uniacid: "77",
url: "",
},
{
api: "",
appid: "",
bg: "https://api.ym23.com/addons/monai_market/static/icon/module_back.png",
brand_icon: "",
cid: "1",
content: "核验车主和车牌是否一致",
cxcontent: "",
cximg: "",
id: "8",
logo: "https://pic.ym23.com/images/77/2023/11/pBcvp3wtwCtTeBW342giv7D8PVu2C4.png",
moneytype: "",
name: "车牌车辆核验",
nbpage: "/packageA/pages/cphy/incxjl",
ocph: "0",
ofdj: "0",
ovin: "0",
oxsz: "0",
sort: "0",
tb: "1",
type: "0",
tzpage: "",
uniacid: "77",
url: "",
},
{
api: "",
appid: "",
bg: "https://api.ym23.com/addons/monai_market/static/icon/module_back.png",
brand_icon: "",
cid: "1",
content: "车辆查车辆发动机号和年检日期数据",
cxcontent: "",
cximg: "",
id: "9",
logo: "https://pic.ym23.com/images/77/2023/11/pBcvp3wtwCtTeBW342giv7D8PVu2C4.png",
moneytype: "",
name: "车牌查车辆",
nbpage: "/packageA/pages/cpcx/incxjl",
ocph: "0",
ofdj: "0",
ovin: "0",
oxsz: "0",
sort: "0",
tb: "1",
type: "0",
tzpage: "",
uniacid: "77",
url: "",
},
{
api: "",
appid: "",
bg: "https://api.ym23.com/addons/monai_market/static/icon/module_back.png",
brand_icon: "",
cid: "1",
content: "核验身份证名字和号码是否一致",
cxcontent: "",
cximg: "",
id: "10",
logo: "https://pic.ym23.com/images/77/2023/11/aI226NyH6Lo22wUDEG2yMr2y3ZU236.png",
moneytype: "",
name: "身份证核验",
nbpage: "/packageA/pages/sfzhy/incxjl",
ocph: "0",
ofdj: "0",
ovin: "0",
oxsz: "0",
sort: "0",
tb: "1",
type: "0",
tzpage: "",
uniacid: "77",
url: "",
},
{
api: "",
appid: "",
bg: "https://api.ym23.com/addons/monai_market/static/icon/module_back.png",
brand_icon: "",
cid: "0",
content: "根据车架号查询汽车详情信息",
cxcontent: "",
cximg: "",
id: "11",
logo: "https://pic.ym23.com/images/77/2023/11/pBcvp3wtwCtTeBW342giv7D8PVu2C4.png",
moneytype: "",
name: "车架号查询",
nbpage: "/packageA/pages/carvin/incxjl",
ocph: "0",
ofdj: "0",
ovin: "0",
oxsz: "0",
sort: "0",
tb: "1",
type: "0",
tzpage: "",
uniacid: "77",
url: "",
},
{
api: "",
appid: "",
bg: "https://api.ym23.com/addons/monai_market/static/icon/module_back.png",
brand_icon: "",
cid: "0",
content: "快速查询个人报告,检测自己的身份和手机是否安全",
cxcontent: "",
cximg: "",
id: "13",
logo: "https://pic.ym23.com/images/77/2023/11/ZY9UdzEhi992hIRU47AAHRErr7KW7S.png",
moneytype: "",
name: "个人报告查询",
nbpage: "/packageA/pages/zxbg/incxjl",
ocph: "0",
ofdj: "0",
ovin: "0",
oxsz: "0",
sort: "0",
tb: "1",
type: "0",
tzpage: "",
uniacid: "77",
url: "",
},
{
api: "",
appid: "",
bg: "https://api.ym23.com/addons/monai_market/static/icon/module_back.png",
brand_icon: "",
cid: "1",
content: "输入vin查询汽车详细",
cxcontent: "",
cximg: "",
id: "14",
logo: "https://pic.ym23.com/images/77/2023/11/pBcvp3wtwCtTeBW342giv7D8PVu2C4.png",
moneytype: "",
name: "汽车信息查询",
nbpage: "/packageA/pages/carvin/incxjl",
ocph: "0",
ofdj: "0",
ovin: "0",
oxsz: "0",
sort: "0",
tb: "1",
type: "0",
tzpage: "",
uniacid: "77",
url: "",
},
{
api: "",
appid: "",
bg: "https://api.ym23.com/addons/monai_market/static/icon/module_back.png",
brand_icon: "",
cid: "2",
content: "查询公司详细情况",
cxcontent: "",
cximg: "",
id: "15",
logo: "https://pic.ym23.com/images/77/2023/11/MOYpy5h7z5ZxomKOuMZM4owoh7Fi4i.png",
moneytype: "",
name: "公司查询报告",
nbpage: "/packageA/pages/gscx/incxjl",
ocph: "0",
ofdj: "0",
ovin: "0",
oxsz: "0",
sort: "0",
tb: "1",
type: "0",
tzpage: "",
uniacid: "77",
url: "",
},
{
api: "",
appid: "",
bg: "https://api.ym23.com/addons/monai_market/static/icon/module_back.png",
brand_icon: "",
cid: "2",
content: "拍图识别车架号",
cxcontent: "",
cximg: "",
id: "16",
logo: "https://pic.ym23.com/images/77/2023/11/pBcvp3wtwCtTeBW342giv7D8PVu2C4.png",
moneytype: "",
name: "车架号识别",
nbpage: "/packageA/pages/vinsb/vinsb",
ocph: "0",
ofdj: "0",
ovin: "0",
oxsz: "0",
sort: "0",
tb: "1",
type: "0",
tzpage: "",
uniacid: "77",
url: "",
},
{
api: "",
appid: "",
bg: "https://api.ym23.com/addons/monai_market/static/icon/module_back.png",
brand_icon: "",
cid: "2",
content: "拍照上传识别驾驶证",
cxcontent: "",
cximg: "",
id: "17",
logo: "https://pic.ym23.com/images/77/2023/11/vSr26t6Jjzl658r6r8y7ZrrRjY6jYf.png",
moneytype: "",
name: "驾驶证识别",
nbpage: "/packageA/pages/jszsb/jszsb",
ocph: "0",
ofdj: "0",
ovin: "0",
oxsz: "0",
sort: "0",
tb: "1",
type: "0",
tzpage: "",
uniacid: "77",
url: "",
},
{
api: "",
appid: "",
bg: "https://api.ym23.com/addons/monai_market/static/icon/module_back.png",
brand_icon: "",
cid: "2",
content: "快速一键行驶证识别",
cxcontent: "",
cximg: "",
id: "18",
logo: "https://pic.ym23.com/images/77/2023/11/vSr26t6Jjzl658r6r8y7ZrrRjY6jYf.png",
moneytype: "",
name: "行驶证识别",
nbpage: "/packageA/pages/xszsb/xszsb",
ocph: "0",
ofdj: "0",
ovin: "0",
oxsz: "0",
sort: "0",
tb: "1",
type: "0",
tzpage: "",
uniacid: "77",
url: "",
},
{
api: "",
appid: "",
bg: "https://api.ym23.com/addons/monai_market/static/icon/module_back.png",
brand_icon: "",
cid: "2",
content: "快速一键车牌识别",
cxcontent: "",
cximg: "",
id: "19",
logo: "https://pic.ym23.com/images/77/2023/11/vSr26t6Jjzl658r6r8y7ZrrRjY6jYf.png",
moneytype: "",
name: "车牌识别",
nbpage: "/packageA/pages/cphsb/cphsb",
ocph: "0",
ofdj: "0",
ovin: "0",
oxsz: "0",
sort: "0",
tb: "1",
type: "0",
tzpage: "",
uniacid: "77",
url: "",
},
{
api: "",
appid: "",
bg: "https://api.ym23.com/addons/monai_market/static/icon/module_back.png",
brand_icon: "",
cid: "2",
content: "如何查看报告教程",
cxcontent: "",
cximg: "",
id: "21",
logo: "https://pic.ym23.com/images/77/2023/11/ZY9UdzEhi992hIRU47AAHRErr7KW7S.png",
moneytype: "",
name: "报告查看教程",
nbpage: "",
ocph: "0",
ofdj: "0",
ovin: "0",
oxsz: "0",
sort: "0",
tb: "1",
type: "0",
tzpage: "",
uniacid: "77",
url: "https://api.ym23.com/addons/monai_market/lib/video/$?id=1",
},
{
api: "",
appid: "",
bg: "https://api.ym23.com/addons/monai_market/static/icon/module_back.png",
brand_icon: "",
cid: "2",
content: "实时查询在线油价",
cxcontent: "",
cximg: "",
id: "784",
logo: "https://pic.ym23.com/images/77/2023/11/aia1f7eqDSssC2iVd5Zb2tLdTii5s2.png",
moneytype: "",
name: "油价查询",
nbpage: "",
ocph: "0",
ofdj: "0",
ovin: "0",
oxsz: "0",
sort: "0",
tb: "1",
type: "0",
tzpage: "",
uniacid: "77",
url: "https://api.ym23.com/addons/monai_market/lib/yjcx/$?id=1",
},
{
api: "",
appid: "",
bg: "https://api.ym23.com/addons/monai_market/static/icon/module_back.png",
brand_icon: "",
cid: "0",
content: "查询电车电池健康报告",
cxcontent: "",
cximg: "",
id: "1010",
logo: "",
moneytype: "",
name: "电车电池报告",
nbpage: "/packageA/pages/dcbg/incxjl",
ocph: "0",
ofdj: "0",
ovin: "0",
oxsz: "0",
sort: "0",
tb: "1",
type: "0",
tzpage: "",
uniacid: "77",
url: "",
},
{
api: "",
appid: "",
bg: "https://api.ym23.com/addons/monai_market/static/icon/module_back.png",
brand_icon: "",
cid: "1",
content: "查询汽车归属公司联系方式",
cxcontent: "",
cximg: "",
id: "1039",
logo: "https://pic.ym23.com/images/77/2023/11/KBomw799T4Z17e4b7maZeWpPPI7kZ7.png",
moneytype: "",
name: "公司联系方式",
nbpage: "/packageA/pages/gslxcx/incxjl",
ocph: "0",
ofdj: "0",
ovin: "0",
oxsz: "0",
sort: "0",
tb: "1",
type: "0",
tzpage: "",
uniacid: "77",
url: "",
},
{
api: "",
appid: "",
bg: "https://api.ym23.com/addons/monai_market/static/icon/module_back.png",
brand_icon: "",
cid: "0",
content: "查询调表里程是否有问题",
cxcontent: "调表里程查询查询调表里程是否有问题",
cximg:
"https://pic.ym23.com/images/77/2023/09/nQrjlAqkXTWlUvWvc7wzl5fqLVBIWt.png",
id: "1152",
logo: "",
moneytype: "tblc_money",
name: "调表里程查询",
nbpage: "/packageA/pages/wannen/incxjl",
ocph: "1",
ofdj: "1",
ovin: "1",
oxsz: "1",
sort: "0",
tb: "1",
type: "27",
tzpage: "",
uniacid: "77",
url: "",
},
{
api: "",
appid: "",
bg: "https://api.ym23.com/addons/monai_market/static/icon/module_back.png",
brand_icon: "",
cid: "2",
content: "获取最新通知",
cxcontent: "",
cximg: "",
id: "1230",
logo: "https://pic.ym23.com/images/77/2023/11/HAGEFFg20bZ6pX0Ze2JAeQ702eLkP2.png",
moneytype: "",
name: "关注公众号",
nbpage: "/pages/gzh/gzh",
ocph: "0",
ofdj: "0",
ovin: "0",
oxsz: "0",
sort: "0",
tb: "1",
type: "0",
tzpage: "",
uniacid: "77",
url: "",
},
],
banner: [
{
id: "111",
sort: "",
type: "1",
uniacid: "77",
car_id: null,
product_id: "0",
img_patch:
"https://pic.ym23.com/images/77/2023/11/DGOlm5CZ6FmWcbfFTmcmLGRhUzO61K.png",
create_time: "1630933811",
car_title: "",
intro: null,
},
],
};

File diff suppressed because it is too large Load Diff

View File

@@ -1,20 +0,0 @@
var r = require("../common/vendor.js"),
n = function (r, n) {
return n
? "".concat(r, "?params=").concat(encodeURIComponent(JSON.stringify(n)))
: r;
};
(exports.navigateTo = function (e) {
var t = e.url,
o = e.params;
r.index.navigateTo({ url: n(t, o) });
}),
(exports.redirectTo = function (e) {
var t = e.url,
o = e.params;
r.index.redirectTo({ url: n(t, o) });
}),
(exports.switchTab = function (n) {
var e = n.url;
r.index.switchTab({ url: e });
});

View File

@@ -1,136 +0,0 @@
var e = require("../common/vendor.js"),
n = require("../hooks/useState.js"),
o = require("../config/index.js"),
t = require("../service/index.js"),
r = require("./util.js");
require("../constant/index.js");
(exports.request = function a(c) {
var s = c.url,
i = c.method,
u = c.formData,
l = c.needToast,
d = void 0 === l || l,
m = c.count,
h = void 0 === m ? 0 : m,
g = n.useState(),
f = g.channelName,
p =
(g.userLogout,
{
version: o.appVersion,
token: e.index.getStorageSync("token"),
channel: f.value ? f.value : o.defaultChannelName,
phoneType: e.index.getSystemInfoSync().deviceModel,
}),
v = r.encrypt(e._.cloneDeep(u), p.channel);
return (
console.log("[请求开始] -- ", {
渠道来源: p.channel,
请求地址: "".concat(o.baseUrl).concat(s),
请求参数: v || null,
token: p.token || "",
count: h,
}),
e.index
.request({
url: "".concat(o.baseUrl).concat(s),
method: i,
data: v,
header: p,
timeout: 1e4,
dataType: "json",
})
.then(function (n) {
var o = n.statusCode,
c = n.data,
d = c.code,
m = c.message || '',
g = c.data;
if ((console.log("[请求结束] -- ", g, m, d), 200 === o)) {
if (200 === d) return Promise.resolve(g);
if (301 === d) {
return (function () {
return e.index
.login({ provider: "weixin" })
.then(function (e) {
var n = e.code;
return t.loginForMpWeixin({ code: n });
})
.then(function (n) {
var o = n.token,
t = n.openId;
return (
e.index.setStorageSync("token", o),
e.index.setStorageSync("openId", t),
a({ url: s, method: i, formData: u, needToast: !1 })
);
});
})();
}
return h < 3
? a({ url: s, method: i, formData: u, needToast: !1, count: h + 1 })
: Promise.reject({ msg: m });
}
return Promise.reject({ msg: m });
})
.catch(function (e) {
return (
console.error("[请求报错] -- ", e),
d && r.showToast(e.msg ? e.msg : "接口请求失败,请重新加载"),
Promise.reject()
);
})
);
}),
(exports.upload = function (t) {
var a = t.url,
c = t.name,
s = t.filePath,
i = t.formData,
u = t.needToast,
l = void 0 === u || u,
d = n.useState().channelName,
m = {
version: o.appVersion,
token: e.index.getStorageSync("token"),
channel: d.value ? d.value : o.defaultChannelName,
phoneType: e.index.getSystemInfoSync().deviceModel,
},
h = r.encrypt(e._.cloneDeep(i), m.channel);
return (
console.log("[请求开始] -- ", {
渠道来源: m.channel,
请求地址: "".concat(o.baseUrl).concat(a),
请求参数: h || null,
token: m.token || "",
}),
e.index
.uploadFile({
url: "".concat(o.baseUrl).concat(a),
filePath: s,
name: c,
formData: h,
header: m,
})
.then(function (e) {
var n = e.statusCode,
c = n.data,
a = c.code,
c = c.message || '',
s = c.data;
return (
console.log("[请求结束] -- ", s, c, a),
200 === n && 200 === a
? Promise.resolve(s)
: Promise.reject({ msg: c })
);
})
.catch(function (e) {
return (
console.error("[请求报错] -- ", e),
l && r.showToast(e.msg ? e.msg : "上传失败,请重新上传"),
Promise.reject()
);
})
);
});

View File

@@ -1,81 +0,0 @@
var e = require("../common/vendor.js"),
t = require("../constant/index.js"),
n = function () {
e.index.hideLoading();
};
(exports.checkForUpdate = function () {
var t = e.index.getUpdateManager();
t.onUpdateReady(function () {
e.index.showModal({
title: "更新提示",
content: "新版本已经准备好,是否重启应用?",
success: function (e) {
e.confirm && t.applyUpdate();
},
});
});
}),
(exports.choosePhoto = function () {
return e.index
.showActionSheet({
title: "请拍摄或上传行驶证",
itemList: ["拍摄行驶证", "从相册选择"],
})
.then(function (t) {
var n = t.tapIndex;
return (function () {
return e.index
.chooseMedia({
count: 1,
mediaType: ["image"],
sourceType: [0 === n ? "camera" : "album"],
})
.then(function (e) {
return e.tempFiles[0].tempFilePath;
});
})();
});
}),
(exports.decrypt = function (n) {
var o = e.CryptoJS.enc.Utf8.parse(t.decryptKey),
r = e.CryptoJS.enc.Utf8.parse(t.decryptIV),
i = e.CryptoJS.enc.Base64.parse(n),
c = e.CryptoJS.enc.Base64.stringify(i),
a = e.CryptoJS.AES.decrypt(c, o, {
iv: r,
mode: e.CryptoJS.mode.CBC,
padding: e.CryptoJS.pad.Pkcs7,
});
return JSON.parse(a.toString(e.CryptoJS.enc.Utf8));
}),
(exports.encrypt = function (n, o) {
var r = {};
e._.isEmpty(n) || (r = e._.cloneDeep(n)), (r.channel = o);
var i = {};
Object.keys(r)
.sort()
.forEach(function (e) {
i[e] = r[e];
});
var c = [];
for (var a in i)
i.hasOwnProperty(a) &&
c.push(
"".concat(encodeURIComponent(a), "=").concat(encodeURIComponent(i[a]))
);
var p = c.join("&") + t.encryptKey,
s = e.CryptoJS.MD5(p).toString();
return e._.assign(n, { secret: s });
}),
(exports.hideLoading = n),
(exports.showLoading = function () {
var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "";
e.index.showLoading({ title: t, mask: !0 });
}),
(exports.showToast = function () {
var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "";
n(), e.index.showToast({ icon: "none", title: t });
}),
(exports.vibrate = function () {
e.wx$1.vibrateShort({ type: "light" });
});

View File

@@ -1,80 +0,0 @@
var r = new Array(),
t = new Array();
(r.A = 1),
(r.B = 2),
(r.C = 3),
(r.D = 4),
(r.E = 5),
(r.F = 6),
(r.G = 7),
(r.H = 8),
(r.J = 1),
(r.K = 2),
(r.L = 3),
(r.M = 4),
(r.N = 5),
(r.P = 7),
(r.R = 9),
(r.S = 2),
(r.T = 3),
(r.U = 4),
(r.V = 5),
(r.W = 6),
(r.X = 7),
(r.Y = 8),
(r.Z = 9),
(r[1] = 1),
(r[2] = 2),
(r[3] = 3),
(r[4] = 4),
(r[5] = 5),
(r[6] = 6),
(r[7] = 7),
(r[8] = 8),
(r[9] = 9),
(r[0] = 0),
(t[1] = 8),
(t[2] = 7),
(t[3] = 6),
(t[4] = 5),
(t[5] = 4),
(t[6] = 3),
(t[7] = 2),
(t[8] = 10),
(t[9] = 0),
(t[10] = 9),
(t[11] = 8),
(t[12] = 7),
(t[13] = 6),
(t[14] = 5),
(t[15] = 4),
(t[16] = 3),
(t[17] = 2),
(exports.validateVIN = function (a) {
var e = !1,
s = !1;
if (isNaN(a) && 17 == a.length) {
var n = 0,
i = 0,
u = r,
f = t;
try {
for (var v = 0; v < a.length; v++) {
if (
-1 == "ABCDEFGHJKLMNPRSTUVWXYZ1234567890".indexOf(a.substr(v, 1))
) {
s = !1;
break;
}
(s = !0), (n += parseInt(u[a.substr(v, 1)]) * parseInt(f[v + 1]));
}
s
? (10 == (i = n % 11) ? "X" : i.toString()) == a.substr(8, 1) &&
(e = !0)
: (e = !1);
} catch (r) {
e = !1;
}
}
return e;
});