From d534334c5ce2b9b95f1d737b7b02dac6ed500b0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E9=99=8C?= Date: Wed, 24 Jan 2024 21:26:15 +0800 Subject: [PATCH] ... --- app.js | 70 ++-- packageA/pages/sfzhy/carcxjl.js | 16 +- packageA/pages/sfzhy/carcxjl.wxml | 22 +- packageA/pages/sfzhy/incxjl.js | 552 ++++++-------------------- packageA/pages/sfzhy/incxjl.wxml | 40 +- pages/index/chars.js | 6 +- pages/index/index.js | 18 +- pages/login/login.js | 108 ++--- pages/login/login.wxml | 2 +- pages/mine/fensi/fensi.js | 43 +- pages/mine/index.js | 23 +- pages/mine/index.wxml | 4 +- pages/mine/index.wxss | 2 +- pages/mine/info/index.js | 12 +- pages/mine/info/index.wxml | 2 +- pages/mine/publicity/index.js | 85 ++-- pages/mine/sale/index.js | 12 +- pages/mine/sale/index.wxml | 6 +- pages/mine/tixianjilu/tixianjilu.js | 43 +- pages/mine/yongjinjilu/yongjinjilu.js | 26 +- pages/reporlist/reporlist.wxml | 8 - project.private.config.json | 35 ++ we7/resource/js/util.js | 39 +- 23 files changed, 411 insertions(+), 763 deletions(-) diff --git a/app.js b/app.js index 5b350c8..c9688ca 100644 --- a/app.js +++ b/app.js @@ -44,15 +44,15 @@ xcxlogo: function (e) { console.log("uid", wx.getStorageSync("uid")), wx.getStorageSync("uid") || - wx.showModal({ - title: "温馨提示", - content: "请去个人中心授权登录用户信息", - success: function (e) { - e.confirm - ? wx.reLaunch({ url: "/pages/mine/index" }) - : console.log("点击取消回调"); - }, - }); + wx.showModal({ + title: "温馨提示", + content: "请去个人中心授权登录用户信息", + success: function (e) { + e.confirm + ? wx.reLaunch({ url: "/pages/mine/index" }) + : console.log("点击取消回调"); + }, + }); }, gengxin: function () { if (wx.canIUse("getUpdateManager")) { @@ -68,13 +68,13 @@ }, }); }), - e.onUpdateFailed(function () { - wx.showModal({ - title: "已经有新版本了哟~", - content: - "新版本已经上线啦~,请您删除当前小程序,重新搜索打开哟~", - }); - })); + e.onUpdateFailed(function () { + wx.showModal({ + title: "已经有新版本了哟~", + content: + "新版本已经上线啦~,请您删除当前小程序,重新搜索打开哟~", + }); + })); }); } else wx.showModal({ @@ -149,8 +149,8 @@ : (c++, (s[n] = o.data), c == i.length && - e.success && - "function" == typeof e.success + e.success && + "function" == typeof e.success ? (e.success(s), void wx.hideLoading()) : void 0); }, @@ -190,8 +190,8 @@ ? (t.util.message({ title: i.message, type: "error" }), void wx.hideLoading()) : i.data && e.success && "function" == typeof e.success - ? (e.success(i.data), void wx.hideLoading()) - : void 0; + ? (e.success(i.data), void wx.hideLoading()) + : void 0; }, fail: function (t) { console.log(t), wx.hideLoading(); @@ -214,13 +214,13 @@ }, }); }), - e.onUpdateFailed(function () { - wx.showModal({ - title: "已经有新版本了哟~", - content: - "新版本已经上线啦~,请您删除当前小程序,重新搜索打开哟~", - }); - })); + e.onUpdateFailed(function () { + wx.showModal({ + title: "已经有新版本了哟~", + content: + "新版本已经上线啦~,请您删除当前小程序,重新搜索打开哟~", + }); + })); }); } else wx.showModal({ @@ -242,7 +242,7 @@ success: function (e) { wx.hideLoading(), e && - ((t.globalData.picchack = e.data), i(t.globalData.picchack)); + ((t.globalData.picchack = e.data), i(t.globalData.picchack)); }, }); }) @@ -252,7 +252,7 @@ var n = this; return new Promise((i, a) => { n.util.request({ - url: "entry/wxapp/" + t, + url: "tool/" + t, data: e, dataType: "json", success: function (e) { @@ -266,21 +266,21 @@ if ("" == t) return ( e.fail && - "function" == typeof e.fail && - e.fail({ errno: 500, message: "请允许获取用户信息" }), + "function" == typeof e.fail && + e.fail({ errno: 500, message: "请允许获取用户信息" }), !1 ); var n = e.url ? e.url : ""; if ("" == n) return ( e.fail && - "function" == typeof e.fail && - e.fail({ errno: 500, message: "图片路径错误" }), + "function" == typeof e.fail && + e.fail({ errno: 500, message: "图片路径错误" }), !1 ); this.util.request({ url: "entry/wxapp/Api", - data: { uid: t, imgurl: n, r: "upimg.delImg" }, + data: { uid: t, imgurl: n, r: "upimg.delImg" }, cachetime: "0", success: function (t) { e.success && "function" == typeof e.success && e.success(); @@ -303,7 +303,7 @@ success: function (t) { e = t.platform; }, - fail: function () {}, + fail: function () { }, }), e ); diff --git a/packageA/pages/sfzhy/carcxjl.js b/packageA/pages/sfzhy/carcxjl.js index 6d16d3f..0b0ceb1 100644 --- a/packageA/pages/sfzhy/carcxjl.js +++ b/packageA/pages/sfzhy/carcxjl.js @@ -8,20 +8,18 @@ var a; getDetail: function (t) { var e = this, o = { orderid: t }; - a.getdata(o, "sfzhyid").then((a) => { + a.getdata(o, "sfzhy/order").then((a) => { if ((console.log("回调数据:", a), a)) { e.setData({ cardata: a.data, orderid: t }); - var o = JSON.parse(a.data.record); - console.log(o), e.setData({ records: o.result }); } }); }, - onReady: function () {}, - onShow: function () {}, - onHide: function () {}, - onUnload: function () {}, - onPullDownRefresh: function () {}, - onReachBottom: function () {}, + onReady: function () { }, + onShow: function () { }, + onHide: function () { }, + onUnload: function () { }, + onPullDownRefresh: function () { }, + onReachBottom: function () { }, onShareAppMessage: function () { return { title: this.data.cardata.name + "身份核验报告", diff --git a/packageA/pages/sfzhy/carcxjl.wxml b/packageA/pages/sfzhy/carcxjl.wxml index b00d484..1e410df 100644 --- a/packageA/pages/sfzhy/carcxjl.wxml +++ b/packageA/pages/sfzhy/carcxjl.wxml @@ -9,11 +9,11 @@ - {{records.result.idcard}} + {{cardata.cardNo}} 姓名:{{cardata.name}} - 身份证:{{records.result.idcard}} - 核验状况:{{records.result.isok==true?'身份证姓名一致':records.verifyResult==false?'身份证姓名核验不一致':'无法查验'}} + 身份证:{{cardata.cardNo}} + 核验状况:{{cardata.verifyresult==0?'待验验,请稍后..':cardata.verifyresult==1?'身份证信息一致,身份正确':'身份证信息核验不一致'}} @@ -21,7 +21,7 @@ - 车牌姓名情况 + 查询情况 * 数据来自第三方,仅作参考 @@ -33,15 +33,23 @@ 身份证号 - {{records.result.idcard}} + {{cardata.cardNo}} 姓名 {{cardata.name}} + + 开始日期 + {{cardata.start_date}} + + + 截止日期 + {{cardata.end_date}} + 身份核验 - {{records.result.isok==true?'身份证姓名一致,身份正确':records.verifyResult==false?'身份证姓名核验不一致':'无法查验'}} + {{cardata.verifyresult==0?'待验验,请稍后..':cardata.verifyresult==1?'身份证信息一致,身份正确':'身份证信息核验不一致'}} 核验时间 @@ -52,4 +60,4 @@ - + \ No newline at end of file diff --git a/packageA/pages/sfzhy/incxjl.js b/packageA/pages/sfzhy/incxjl.js index d17a4d5..65c6ae7 100644 --- a/packageA/pages/sfzhy/incxjl.js +++ b/packageA/pages/sfzhy/incxjl.js @@ -9,11 +9,24 @@ var t = this.data.query, a = e.detail.value, c = this.trim(a); - (t.license_plate = c), this.setData({ query: t }); + (t.cardNo = c), this.setData({ query: t }); }, name: function (e) { - var t = e.detail.value; - this.setData({ name: t }); + var t = this.data.query, + a = e.detail.value; + (t.name = a), this.setData({ query: t }); + }, + start_date: function (e) { + var t = this.data.query, + a = e.detail.value, + c = this.trim(a); + (t.start_date = c), this.setData({ query: t }); + }, + end_date: function (e) { + var t = this.data.query, + a = e.detail.value, + c = this.trim(a); + (t.end_date = c), this.setData({ query: t }); }, trim: function (e) { return (e = (e = e.replace(/\s+/gi, "")).replace( @@ -26,13 +39,13 @@ switch (a) { case 1: 1 == t - ? this.setData({ "query.license_plate_code": e.title }) + ? this.setData({ "query.cardNo_code": e.title }) : this.setData({ "query.province_small": e.province_small }); break; case 2: this.setData({ - "query.license_plate_type": e.id, - license_plate_type: e.title, + "query.cardNo_type": e.id, + cardNo_type: e.title, }); break; case 3: @@ -46,13 +59,13 @@ try { -1 != a[0][e].province_small.indexOf("粤") ? (c = c.filter(function (e) { - return "X" != e.title && "Y" != e.title; - })) + return "X" != e.title && "Y" != e.title; + })) : "Y" != c[c.length - 1].title && - (c = c.concat([ - { checked: !1, title: "X" }, - { checked: !1, title: "Y" }, - ])); + (c = c.concat([ + { checked: !1, title: "X" }, + { checked: !1, title: "Y" }, + ])); } catch (e) { "Y" != c[c.length - 1].title && (c = c.concat([ @@ -115,11 +128,12 @@ this.setData({ mileage: e.detail.value }); }, sumbin: function () { - this.tongzhi(); + + // this.tongzhi(); var t = this.data.query; - if (t.license_plate) - if (18 == t.license_plate.length) - if (this.data.name) + if (t.cardNo) + if (18 == t.cardNo.length) + if (t.name) if ("iosb" == e.getSystemPlatform()) wx.showModal({ title: "温馨提示", @@ -127,10 +141,10 @@ 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"), - }) + 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("点击取消回调"); }, }); @@ -138,29 +152,26 @@ var a = this, c = { content: - a.data.mileage + - a.data.engine + - a.data.chepai + - a.data.name + - a.data.query.license_plate, + a.data.query.name + + a.data.query.cardNo + + a.data.query.start_date + + a.data.query.end_date, }; e.getdata(c, "checkContent").then((e) => { console.log("文本回调数据:", e), - 0 == e.errcode - ? a.queryVin() - : wx.showModal({ - title: "温馨提示", - content: - "你输入的文本检测存在违规,请检测文本内容后重新输入。", - success: function (e) { - e.confirm || console.log("点击取消回调"); - }, - }); + 200 == e.code ? a.queryVin() : wx.showModal({ + title: "温馨提示", + content: + "你输入的文本检测存在违规,请检测文本内容后重新输入。", + success: function (e) { + e.confirm || console.log("点击取消回调"); + }, + }); }); } else wx.showToast({ - title: "请输入车主姓名", + title: "请输入姓名", icon: "none", duration: 2e3, }); @@ -186,76 +197,60 @@ if (wx.getStorageSync("uid")) { var e = this; e.orderid(), - console.log(wx.getStorageSync("uid")), wx.getStorageSync("uid") ? (console.log(wx.getStorageSync("uid")), t.util.request({ - url: "entry/wxapp/paynum", + url: "tool/sfzhy/createOrder", method: "post", dataType: "json", data: { - - type: "sfzhy_money", orderid: e.data.orderid, uid: wx.getStorageSync("uid"), - postcardata: JSON.stringify(e.data), + data: e.data.query, }, success: function (a) { - a.data && a.data.data && 1e3 == a.data.message - ? t.util.request({ - url: "entry/wxapp/Api", - data: { - uid: wx.getStorageSync("uid"), - r: "home.weizhang.paynum", - orderid: a.data.data.orderid, - }, - success: function (t) { - wx.showModal({ content: t.data.message }), - e.setData({ - weizhang_num: 1 * e.data.weizhang_num + 10, - }), - e.getDetailpay(); - }, - }) - : a.data && - a.data.data && - a.data.code!=200 && - wx.requestPayment({ - timeStamp: a.data.data.timeStamp, - nonceStr: a.data.data.nonceStr, - package: a.data.data.package, - signType: "MD5", - paySign: a.data.data.paySign, - success: function (c) { - t.util.request({ - url: "entry/wxapp/Api", - data: { + if (a.data && a.data.data) { - uid: wx.getStorageSync("uid"), - r: "home.weizhang.paynum", - orderid: a.data.data.orderid, - }, - success: function (t) { - e.setData({ - weizhang_num: 1 * e.data.weizhang_num + 10, - }), - wx.showModal({ content: t.data.message }), - e.getDetailpay(); - }, - }); - }, - }); + if (a.data.data.ispay && a.data.data.ispay == 1) { + e.getDetailpay(); + return true; + } + + a.data.data.config && wx.requestPayment({ + timeStamp: a.data.data.config.timeStamp, + nonceStr: a.data.data.config.nonceStr, + package: a.data.data.config.package, + signType: a.data.data.config.signType, + paySign: a.data.data.config.paySign, + success: function (c) { + t.util.request({ + url: "tool/pay/callback", + data: { + uid: wx.getStorageSync("uid"), + orderid: a.data.data.orderid, + }, + success: function (t) { + e.setData({ weizhang_num: 1 * e.data.weizhang_num + 10 }), + wx.showModal({ content: t.data.message }), + e.getDetailpay(); + }, + }); + }, + }); + return true; + } + wx.showModal({ content: a.data.message }); }, })) : wx.showModal({ - title: "温馨提醒", - content: "使用本功能请先登录后在使用~", - showCancel: !1, - success: function (e) { - e.confirm && wx.reLaunch({ url: "/pages/mine/index" }); - }, - }); + title: "温馨提醒", + content: "使用本功能请先登录后在使用~", + showCancel: !1, + success: function (e) { + e.confirm && wx.reLaunch({ url: "/pages/mine/index" }); + }, + }); } else wx.showModal({ title: "温馨提示", @@ -283,27 +278,26 @@ }, tongzhi: function (t) { e.getdata({ type: "4" }, "getdyxx").then((t) => { - console.log(t.data), - wx.requestSubscribeMessage({ - tmplIds: [t.data], - success(a) { - "accept" == a[t.data] - ? (wx.showToast({ title: "订阅成功" }), - e.util.request({ - url: "entry/wxapp/addtemplateid", - data: { templateid: t.data, uid: wx.getStorageSync("uid") }, - header: { "content-type": "application/json" }, - success: function (e) { - console.log(e); - }, - })) - : wx.showToast({ title: "订阅失败" }); - }, - }); + wx.requestSubscribeMessage({ + tmplIds: [t.data], + success(a) { + "accept" == a[t.data] + ? (wx.showToast({ title: "订阅成功" }), + e.util.request({ + url: "entry/wxapp/addtemplateid", + data: { templateid: t.data, uid: wx.getStorageSync("uid") }, + header: { "content-type": "application/json" }, + success: function (e) { + console.log(e); + }, + })) + : wx.showToast({ title: "订阅失败" }); + }, + }); }); }, toDetailExample: function () { - wx.navigateTo({ url: "../sfzhy/carcxjl?orderid=D167040592841545146692" }); + wx.navigateTo({ url: "../sfzhy/carcxjl?orderid=demo" }); }, toSelectCar: function () { wx.navigateTo({ url: "/pages/selectCar/selectCar" }); @@ -327,15 +321,15 @@ wx.removeStorageSync("cartime"), wx.removeStorageSync("cardatawx"); }, - onReady: function () {}, + onReady: function () { }, onShow: function () { e.appdengl(), this.getDetail(1); var t = wx.getStorageSync("cardata"); if ((console.log("行驶证数据", t), t)) { this.setData({ "query.province_small": t.号牌号码.words.substring(0, 1), - "query.license_plate_code": t.号牌号码.words.substring(1, 2), - "query.license_plate": t.号牌号码.words.substring(2, 8), + "query.cardNo_code": t.号牌号码.words.substring(1, 2), + "query.cardNo": t.号牌号码.words.substring(2, 8), }); for ( var a = t.车辆类型.words, c = this.data.carKind, i = 0; @@ -344,8 +338,8 @@ ) c[i].title == a && this.setData({ - license_plate_type: c[i].title, - "query.license_plate_type": c[i].id, + cardNo_type: c[i].title, + "query.cardNo_type": c[i].id, }); } var d = wx.getStorageSync("carvehicle"), @@ -356,9 +350,9 @@ "" != l && null != l && (o = n.name + "-" + l.name), console.log("" == d), "" != d && - "" != r && - parseInt(r.split("-")[0]) < parseInt(d.makeyear) && - (r = ""), + "" != r && + parseInt(r.split("-")[0]) < parseInt(d.makeyear) && + (r = ""), this.setData({ carName: d.salesdesc, cityName: o, @@ -379,318 +373,23 @@ provid: 0, carId: 0, banner: [], - carHeadList: [ - { - checked: !1, - license_plate_code: "A", - province_small: "云", - id: 1, - create_date: "2021-04-29 01:13:58", - update_date: "2021-04-29 01:13:58", - }, - { - checked: !1, - create_date: "2021-04-29 01:13:58", - id: 2, - license_plate_code: "A,C,E,F,H,J,K,L,M", - province_small: "京", - update_date: "2021-04-29 01:13:58", - }, - { - checked: !1, - create_date: "2021-04-29 01:13:58", - id: 3, - license_plate_code: "A,B,C,D,E,F,G,H,J,R,T", - province_small: "冀", - update_date: "2021-04-29 01:13:58", - }, - { - checked: !1, - create_date: "2021-04-29 01:13:58", - id: 4, - license_plate_code: "A,B,C,D,E,F,G,H,J,K,L,M", - province_small: "内蒙古", - update_date: "2021-04-29 01:13:58", - }, - { - checked: !1, - create_date: "2021-04-29 01:13:58", - id: 5, - license_plate_code: "A,B,C,D,E,F,G,H,J,K", - province_small: "吉", - update_date: "2021-04-29 01:13:58", - }, - { - checked: !1, - create_date: "2021-04-29 01:13:58", - id: 6, - license_plate_code: "A,B,C,D,E", - province_small: "宁", - update_date: "2021-04-29 01:13:58", - }, - { - checked: !1, - create_date: "2021-04-29 01:13:58", - id: 7, - license_plate_code: "A,B,C,D,E,F,H,J,K,L,M,Q,R,S,T,U,V,W,X,Y,Z", - province_small: "川", - update_date: "2021-04-29 01:13:58", - }, - { - checked: !1, - create_date: "2021-04-29 01:13:58", - id: 8, - license_plate_code: "A,B,C,D,E,F,J,K,L,M,N,Q", - province_small: "新", - update_date: "2021-04-29 01:13:58", - }, - { - checked: !1, - create_date: "2021-04-29 01:13:58", - id: 9, - license_plate_code: "A,B,C,D,E,F,G,J,K,L,M,N,P,R", - province_small: "桂", - update_date: "2021-04-29 01:13:58", - }, - { - checked: !1, - create_date: "2021-04-29 01:13:58", - id: 10, - license_plate_code: "A,B", - province_small: "沪", - update_date: "2021-04-29 01:13:58", - }, - { - checked: !1, - create_date: "2021-04-29 01:13:58", - id: 11, - license_plate_code: "A", - province_small: "津", - update_date: "2021-04-29 01:13:58", - }, - { - checked: !1, - create_date: "2021-04-29 01:13:58", - id: 12, - license_plate_code: "A,B,C,D,E,F,G,H,J,K,L", - province_small: "浙", - update_date: "2021-04-29 01:13:58", - }, - { - checked: !1, - create_date: "2021-04-29 01:13:58", - id: 13, - license_plate_code: "A,D", - province_small: "渝", - update_date: "2021-04-29 01:13:58", - }, - { - checked: !1, - create_date: "2021-04-29 01:13:58", - id: 14, - license_plate_code: "A,B,C,D,E,F,G,H,J,K,L,M,N,U", - province_small: "湘", - update_date: "2021-04-29 01:13:58", - }, - { - checked: !1, - create_date: "2021-04-29 01:13:58", - id: 15, - license_plate_code: "A,B", - province_small: "琼", - update_date: "2021-04-29 01:13:58", - }, - { - checked: !1, - create_date: "2021-04-29 01:13:58", - id: 16, - license_plate_code: "A,B,C,D,E,F,G,H,J,K,L,M,N,P", - province_small: "甘", - update_date: "2021-04-29 01:13:58", - }, - { - checked: !1, - create_date: "2021-04-29 01:13:58", - id: 17, - license_plate_code: "A,B,D,E,F,H,K,L,M,P,R", - province_small: "皖", - update_date: "2021-04-29 01:13:58", - }, - { - checked: !1, - create_date: "2021-04-29 01:13:58", - id: 18, - license_plate_code: "A,B,C,D,E,F,G,H,J,K,L,M,N,P,Q,R,S,T,U,V,W", - province_small: "粤", - update_date: "2021-04-29 01:13:58", - }, - { - checked: !1, - create_date: "2021-04-29 01:13:58", - id: 19, - license_plate_code: "A,B,C,D,E,F,G,H,J,K,L,M,N,U", - province_small: "苏", - update_date: "2021-04-29 01:13:58", - }, - { - checked: !1, - create_date: "2021-04-29 01:13:58", - id: 20, - license_plate_code: "A", - province_small: "藏", - update_date: "2021-04-29 01:13:58", - }, - { - checked: !1, - create_date: "2021-04-29 01:13:58", - id: 21, - license_plate_code: "A,B,C,D,E,F,G,H,J,K,L,M,N,P,Q,R", - province_small: "豫", - update_date: "2021-04-29 01:13:58", - }, - { - checked: !1, - create_date: "2021-04-29 01:13:58", - id: 22, - license_plate_code: "A,B,C,D,E,F,G,H,J", - province_small: "贵", - update_date: "2021-04-29 01:13:58", - }, - { - checked: !1, - create_date: "2021-04-29 01:13:58", - id: 23, - license_plate_code: "A,B,C,D,E,F,G,H,J,K,L", - province_small: "赣", - update_date: "2021-04-29 01:13:58", - }, - { - checked: !1, - create_date: "2021-04-29 01:13:58", - id: 24, - license_plate_code: "A,B,C,D,E,F,G,H,J,K,M,N", - province_small: "辽", - update_date: "2021-04-29 01:13:58", - }, - { - checked: !1, - create_date: "2021-04-29 01:13:58", - id: 25, - license_plate_code: "A,B,C,D,E,F,G,H,J,K,L,M,N,P,Q,R,S", - province_small: "鄂", - update_date: "2021-04-29 01:13:58", - }, - { - checked: !1, - create_date: "2021-04-29 01:13:58", - id: 26, - license_plate_code: "A,B,C,D,E,F,G", - province_small: "闽", - update_date: "2021-04-29 01:13:58", - }, - { - checked: !1, - create_date: "2021-04-29 01:13:58", - id: 27, - license_plate_code: "A,B,C,D,E,G,H,J,K,U", - province_small: "陕", - update_date: "2021-04-29 01:13:58", - }, - { - checked: !1, - create_date: "2021-04-29 01:13:58", - id: 28, - license_plate_code: "A,B,C,D,E,F,H", - province_small: "青", - update_date: "2021-04-29 01:13:58", - }, - { - checked: !1, - create_date: "2021-04-29 01:13:58", - id: 29, - license_plate_code: "A,B,C,D,E,F,G,H,J,K,L,M,N,P,Q,R,V", - province_small: "鲁", - update_date: "2021-04-29 01:13:58", - }, - { - checked: !1, - create_date: "2021-04-29 01:13:58", - id: 30, - license_plate_code: "A,B,C,D,E,F,G,H,J,K,M,N,P", - province_small: "黑", - update_date: "2021-04-29 01:13:58", - }, - ], - carKind: [ - { id: "02", checked: !1, title: "小型轿车" }, - { id: "02", checked: !1, title: "小型普通客车" }, - { id: "52", checked: !1, title: "新能源小型车" }, - { id: "01", checked: !1, title: "大型货车" }, - { id: "01", checked: !1, title: "中型客车" }, - ], - circular: 1500, - conditions: [{ checked: !1, title: "不含4" }], - hot_type: "任意号码", - isAuthorized: !0, - isHighBol: !1, - letter: [ - { checked: !1, title: "A" }, - { checked: !1, title: "B" }, - { checked: !1, title: "C" }, - { checked: !1, title: "D" }, - { checked: !1, title: "E" }, - { checked: !1, title: "F" }, - { checked: !1, title: "G" }, - { checked: !1, title: "H" }, - { checked: !1, title: "J" }, - { checked: !1, title: "K" }, - { checked: !1, title: "L" }, - { checked: !1, title: "M" }, - { checked: !1, title: "N" }, - { checked: !1, title: "P" }, - { checked: !1, title: "Q" }, - { checked: !1, title: "R" }, - { checked: !1, title: "S" }, - { checked: !1, title: "T" }, - { checked: !1, title: "U" }, - { checked: !1, title: "V" }, - { checked: !1, title: "W" }, - { checked: !1, title: "X" }, - { checked: !1, title: "Y" }, - ], - license_plate_type: "", + cardNo_type: "", pickerArray: [], pickerBol: !1, piclerNum: [], query: { - hot_type: "", - lazy_typ: 0, - license_plate: "", - license_plate_code: "", - license_plate_type: "", - not_four_type: 1, - pageIndex: 1, - pageSize: 10, - province_small: "", + name: "", + cardNo: "", + start_date: "", + end_date: "", }, - rules: [ - { checked: !1, id: "", title: "任意号码" }, - { checked: !1, id: "1", title: "豹子号,如:666、888" }, - { checked: !1, id: "2", title: "顺子号,如:123、789" }, - { checked: !1, id: "3", title: "规则AAAA,如:8888" }, - { checked: !1, id: "4", title: "规则AABB,如:6688" }, - { checked: !1, id: "5", title: "规则ABAB,如:1212" }, - { checked: !1, id: "6", title: "规则ABBA,如:8998" }, - { checked: !1, id: "7", title: "规则ABA,如:868" }, - { checked: !1, id: "8", title: "规则AA,如:88、99" }, - ], typeName: { num: 0, title: "" }, }, onPullDownRefresh: function () { this.clearCache(), this.getArticles(1); }, onReachBottom: function () { - console.log("加上"), this.getDetail(this.data.page); + // console.log("加上"), this.getDetail(this.data.page); }, clearCache: function () { this.setData({ repairList: [], page: 1 }); @@ -698,19 +397,14 @@ getDetail: function (t) { var a = this, c = { uid: wx.getStorageSync("uid"), type: a.data.type, page: t }; - e.getdata(c, "carqxcx").then((e) => { + e.getdata(c, "sfzhy").then((e) => { if ((console.log("回调数据:", e), e.data && 200 == e.code)) - if (1 == t) a.setData({ repairList: e.data, page: a.data.page + 1 }); - else { - var c = a.data.repairList; - c.push.apply(c, e.data), - a.setData({ repairList: c, page: a.data.page + 1 }); - } + a.setData({ repairList: e.data, page: a.data.page + 1 }); }); }, - onHide: function () {}, - onUnload: function () {}, - onShareAppMessage: function () {}, + onHide: function () { }, + onUnload: function () { }, + onShareAppMessage: function () { }, showRenMsg: function () { wx.showToast({ title: "人工查询中,请稍等", @@ -729,7 +423,7 @@ var t = e.currentTarget.dataset.orderid; wx.navigateTo({ url: "/packageA/pages/sfzhy/carcxjl?orderid=" + t, - success: function () {}, + success: function () { }, }); }, }); diff --git a/packageA/pages/sfzhy/incxjl.wxml b/packageA/pages/sfzhy/incxjl.wxml index a5bc624..a5a1de7 100644 --- a/packageA/pages/sfzhy/incxjl.wxml +++ b/packageA/pages/sfzhy/incxjl.wxml @@ -19,34 +19,25 @@ - {{isHighBol?'普通查询':'行驶证识别'}} + {{isHighBol?'普通查询':'身份证查询'}} 姓名 - + 身份证号 - - - - - - 查找规则 - {{hot_type?hot_type:'请选择查找规则'}} - + - 包含号码 - + 有效期开始日期 + - - 其他条件 - - {{item.title}} - + + 有效期截止日期 + @@ -57,24 +48,23 @@ 样例报告 - 扫一扫识别更快 + - 身份证验证记录{{repairList.length}}条 + 身份证验证记录{{ repairList.length ||0 }}条 订单编号:{{item.orderid}} - - + - {{item.name}} - {{item.queryStatus=='1'?'查询中...':item.queryStatus=='2'?'已出报告':item.queryStatus=='4'?'人工处理':'无记录'}} - {{item.hasRefund=='2'?'已退款':'退款中...'}} + {{item.data.name}} + {{item.status=='0'?'查询中...':item.status=='1'?'已出报告':item.status=='3'?'人工处理':'无记录'}} + {{item.status=='-2'?'已退款':'退款中...'}} 身份证:******************* - {{item.time}} + {{item.timestamp}} diff --git a/pages/index/chars.js b/pages/index/chars.js index 7b5bcf6..5d0370d 100644 --- a/pages/index/chars.js +++ b/pages/index/chars.js @@ -3,7 +3,7 @@ var t; Page({ data: { isShow: !1, - parent_uid: 0, + invitationcode: '', is_ok: !1, banner: [], indicatorDots: !0, @@ -69,7 +69,7 @@ var t; var e = this; a && a.scene && - (e.setData({ parent_uid: a.scene }), + (e.setData({ invitationcode: a.scene }), t.util.getUserInfo(function (t) { wx.setStorageSync("uid", t.memberInfo.uid), t.memberInfo ? e.firstin(t.memberInfo) : e.setData({ isShow: !0 }); @@ -108,7 +108,7 @@ var t; uid: a.uid, head_image: a.avatar, nickname: a.nickname, - parent_uid: this.data.parent_uid, + invitationcode: this.data.invitationcode, }, success: function (t) { }, }); diff --git a/pages/index/index.js b/pages/index/index.js index cd5fa0a..4f6d0cd 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -6,7 +6,7 @@ var a, t; ioskg: 1, phone: t.globalData.myDevice.platform, isShow: !1, - parent_uid: 0, + invitationcode: '', is_ok: !1, banner: [], indicatorDots: !0, @@ -78,12 +78,10 @@ var a, t; }); this.look(); var e = this; - a && a.scene && (e.setData({ parent_uid: a.scene }), - t.util.getUserInfo(function (a) { - wx.setStorageSync("uid", a.memberInfo.uid), - a.memberInfo ? e.firstin(a.memberInfo) : e.setData({ isShow: !0 }); - })), - // this._list(1), + a && a.scene && (e.setData({ invitationcode: a.scene }), t.util.getUserInfo(function (a) { + wx.setStorageSync("uid", a.memberInfo.uid), + a.memberInfo ? e.firstin(a.memberInfo) : e.setData({ isShow: !0 }); + })), wx.getPrivacySetting({ success: (a) => { console.log(a), @@ -136,13 +134,11 @@ var a, t; }, firstin: function (a) { t.util.request({ - url: "entry/wxapp/Api", + url: "auth/user/binding", data: { - r: "me.binding", uid: a.uid, - head_image: a.avatar, nickname: a.nickname, - parent_uid: this.data.parent_uid, + invitationcode: this.data.invitationcode, }, success: function (a) { }, }); diff --git a/pages/login/login.js b/pages/login/login.js index eb79701..12aeca0 100644 --- a/pages/login/login.js +++ b/pages/login/login.js @@ -6,10 +6,9 @@ var a, t; isShow: !1, canIUseGetUserProfile: !1, userInfo: [], - avatarUrl: - "https://pic.ym23.com/images/196/2022/11/u28R23VB4c92c2i4808JQc4C3Y82O5.png", - loginBanner: - "https://api.ym23.com/addons/czt_wxapp_zbsq/icon/weixin1.png", + avatarUrl: "", + loginBanner: "", + nickname: "", }, onLoad: function (a) { wx.getUserProfile && this.setData({ canIUseGetUserProfile: !0 }); @@ -28,22 +27,32 @@ var a, t; onShow: function () { this.userdata(); }, + updateNackname: function (nickname) { + var i = this; + a.util.request({ + url: "auth/user/updateNackname", + data: { + nickname: nickname, + }, + success: function (a) { + console.log(a) + wx.navigateBack({ delta: 0 }); + }, + }); + }, loginForm: function (a) { - console.log("bd", a.detail.value), - a.detail.value.nickname - ? this.setData({ nickname: a.detail.value.nickname }) - : wx.showModal({ content: "请输入昵称", showCancel: !1 }); + a.detail.value.nickname ? this.updateNackname(a.detail.value.nickname) : wx.showModal({ content: "请输入昵称", showCancel: !1 }); }, onChooseAvatar(a) { const { avatarUrl: e } = a.detail; + + + console.log('onChooseAvatar', a, e) + this.setData({ avatarUrl: e }); var i = [a.detail], n = { - url: - t.util.url("entry/wxapp/scqiniu") + - "&m=" + - t.siteInfo.m + - "&ids=uptp", + url: t.util.url("auth/avatar/upload"), path: i, }; this.uploadimgs(n); @@ -60,16 +69,11 @@ var a, t; filePath: a.path[i].avatarUrl, name: "file", formData: null, + header: { + 'token': wx.getStorageSync("userInfo").sessionid || '' + }, success: (a) => { n++, console.log(a), console.log(i); - var t = a.data.replace("\r\n", ""); - 1 != t - ? e.setData({ avatarUrl: t }) - : wx.showToast({ - title: "图片" + (i + 1) + "违规", - icon: "success", - duration: 2e3, - }); }, fail: (a) => { o++, console.log("fail:" + i + "fail:" + o), wx.hideLoading(); @@ -123,46 +127,12 @@ var a, t; }, t.detail); }, getUserProfile(t) { - if (this.data.nickname) - if ( - "https://pic.ym23.com/images/196/2022/11/u28R23VB4c92c2i4808JQc4C3Y82O5.png" != - this.data.avatarUrl - ) { - var e = this.data.avatarUrl, - i = this.data.nickname, - n = this; - console.log("用户数据", t), - wx.getUserProfile({ - desc: "用于完善会员资料", - lang: "zh_CN", - success: (t) => { - console.log("登录信息", t.userInfo), - n.setData({ userInfo: t.userInfo, hasUserInfo: !0 }), - a.util.getUserInfo(function (a) { - var t = { uid: a.memberInfo.uid, avatar: e, nickname: i }; - n.firstin(t, 1), - wx.showToast({ - icon: "none", - title: "登录成功", - duration: 2e3, - }), - wx.navigateBack({ delta: 0 }); - }); - }, - fail: (t) => { - a.util.getUserInfo(function (a) { - var t = { uid: a.memberInfo.uid, avatar: e, nickname: i }; - n.firstin(t, 1), - wx.showToast({ - icon: "none", - title: "登录成功", - duration: 2e3, - }), - wx.navigateBack({ delta: 0 }); - }); - }, - }); - } else wx.showModal({ content: "请先获取头像", showCancel: !1 }); + if (this.nickname) { + var e = this.avatarUrl, i = this.nickname, n = this; + + console.log(i) + } + console.log(t) }, noLogin: function (a) { wx.navigateBack({ delta: 0 }); @@ -180,11 +150,11 @@ var a, t; var t = this; a.util.request({ url: "entry/wxapp/Api", - data: { do: "sjtouxian" }, + data: { do: "sjtouxian" }, success: function (a) { console.log(a), 200 == a.data.data.code && - t.setData({ avatarUrl: a.data.data.imgurl }); + t.setData({ avatarUrl: a.data.data.imgurl }); }, }); }, @@ -192,25 +162,23 @@ var a, t; var i = this; console.log("提交数据", t), a.util.request({ - url: "entry/wxapp/Api", + url: "auth/user/detail", data: { - - r: "me.detail", uid: t.uid, type: e, - head_image: t.avatar, nickname: t.nickname, }, success: function (a) { console.log(a), i.setData({ detail: a.data.data, - is_member: a.data.data.user.is_member, - store_img: a.data.data.user.store_img, + avatarUrl: a.data.data.user.avatar, + is_member: a.data.data.is_member, + store_img: a.data.data.store_img, }), 1 == e && i.userdata(); }, }); }, - onReachBottom: function () {}, + onReachBottom: function () { }, }); diff --git a/pages/login/login.wxml b/pages/login/login.wxml index e0eaf9a..cdf0979 100644 --- a/pages/login/login.wxml +++ b/pages/login/login.wxml @@ -14,6 +14,6 @@ - + diff --git a/pages/mine/fensi/fensi.js b/pages/mine/fensi/fensi.js index c485281..72a188b 100644 --- a/pages/mine/fensi/fensi.js +++ b/pages/mine/fensi/fensi.js @@ -6,10 +6,8 @@ var a; var e = this; wx.setNavigationBarTitle({ title: "推广记录" }), a.util.request({ - url: "entry/wxapp/Api", + url: "entry/store/fans", data: { - - r: "store.fans", uid: wx.getStorageSync("uid"), }, success: function (a) { @@ -19,27 +17,22 @@ var a; }, onReachBottom: function () { var t = this; - t.data.is_last || - a.util.request({ - url: "entry/wxapp/Api", - data: { - - r: "store.fans", - uid: wx.getStorageSync("uid"), - page: t.data.page + 1, - }, - success: function (a) { - a.data.data || - (t.setData({ is_last: !0 }), - wx.showToast({ - title: "没有更多数据了", - icon: "success", - duration: 2e3, - })); - for (var e = t.data.list, s = 0; s < a.data.data.length; s++) - e.push(a.data.data[s]); - t.setData({ list: e, page: t.data.page + 1 }); - }, - }); + t.data.is_last || a.util.request({ + url: "entry/store/fans", + data: { + uid: wx.getStorageSync("uid"), + page: t.data.page + 1, + }, + success: function (a) { + a.data.data || (t.setData({ is_last: !0 }), wx.showToast({ + title: "没有更多数据了", + icon: "success", + duration: 2e3, + })); + for (var e = t.data.list, s = 0; s < a.data.data.length; s++) + e.push(a.data.data[s]); + t.setData({ list: e, page: t.data.page + 1 }); + }, + }); }, }); diff --git a/pages/mine/index.js b/pages/mine/index.js index b4b4933..14264a4 100644 --- a/pages/mine/index.js +++ b/pages/mine/index.js @@ -66,23 +66,16 @@ var e; var i = this; console.log("提交数据", n), e.util.request({ - url: "entry/wxapp/Api", + url: "auth/user/detail", data: { - - r: "me.detail", - uid: n.uid, - type: t, - head_image: n.avatar, - nickname: n.nickname, + uid: n.uid }, success: function (e) { - console.log(e), - i.setData({ - detail: e.data.data, - is_member: e.data.data.user.is_member, - store_img: e.data.data.user.store_img, - }), - 1 == t && i.userdata(); + i.setData({ + detail: e.data.data, + is_member: e.data.data.is_member, + store_img: e.data.data.store_img, + }), 1 == t && i.userdata(); }, }); }, @@ -110,5 +103,5 @@ var e; goPartOrder: function () { wx.navigateTo({ url: "/pages/part/apply/index" }); }, - onReachBottom: function () {}, + onReachBottom: function () { }, }); diff --git a/pages/mine/index.wxml b/pages/mine/index.wxml index d403fcb..f25befa 100644 --- a/pages/mine/index.wxml +++ b/pages/mine/index.wxml @@ -2,7 +2,7 @@