This commit is contained in:
小陌 2024-01-24 21:26:15 +08:00
parent efc4bff1e0
commit d534334c5c
23 changed files with 411 additions and 763 deletions

2
app.js
View File

@ -252,7 +252,7 @@
var n = this; var n = this;
return new Promise((i, a) => { return new Promise((i, a) => {
n.util.request({ n.util.request({
url: "entry/wxapp/" + t, url: "tool/" + t,
data: e, data: e,
dataType: "json", dataType: "json",
success: function (e) { success: function (e) {

View File

@ -8,11 +8,9 @@ var a;
getDetail: function (t) { getDetail: function (t) {
var e = this, var e = this,
o = { orderid: t }; o = { orderid: t };
a.getdata(o, "sfzhyid").then((a) => { a.getdata(o, "sfzhy/order").then((a) => {
if ((console.log("回调数据:", a), a)) { if ((console.log("回调数据:", a), a)) {
e.setData({ cardata: a.data, orderid: t }); e.setData({ cardata: a.data, orderid: t });
var o = JSON.parse(a.data.record);
console.log(o), e.setData({ records: o.result });
} }
}); });
}, },

View File

@ -9,11 +9,11 @@
<view class="top-box"> <view class="top-box">
<view class="box-text"> <view class="box-text">
<view style="width: 130%;"> <view style="width: 130%;">
<text class="brand-text" style="display: inline;">{{records.result.idcard}}</text> <text class="brand-text" style="display: inline;">{{cardata.cardNo}}</text>
</view> </view>
<text class="order-text">姓名:{{cardata.name}}</text> <text class="order-text">姓名:{{cardata.name}}</text>
<text class="order-text">身份证:{{records.result.idcard}}</text> <text class="order-text">身份证:{{cardata.cardNo}}</text>
<text class="type-text">核验状况:{{records.result.isok==true?'身份证姓名一致':records.verifyResult==false?'身份证姓名核验不一致':'无法查验'}}</text> <text class="type-text">核验状况:{{cardata.verifyresult==0?'待验验,请稍后..':cardata.verifyresult==1?'身份证信息一致,身份正确':'身份证信息核验不一致'}}</text>
</view> </view>
<view class="box-img"> <view class="box-img">
<image class="logo-img" mode="widthFix" src="{{cardata.logo}}"></image> <image class="logo-img" mode="widthFix" src="{{cardata.logo}}"></image>
@ -21,7 +21,7 @@
</view> </view>
<view class="content-view"> <view class="content-view">
<view class="content-desc"> <view class="content-desc">
<text class="content-title">车牌姓名情况</text> <text class="content-title">查询情况</text>
<text class="content-shuo">* 数据来自第三方,仅作参考</text> <text class="content-shuo">* 数据来自第三方,仅作参考</text>
</view> </view>
<view data-index="{{index}}"> <view data-index="{{index}}">
@ -33,15 +33,23 @@
<view class="veibao-text"> <view class="veibao-text">
<view class="veibao-xiangmu"> <view class="veibao-xiangmu">
<text class="xiangmu-title">身份证号</text> <text class="xiangmu-title">身份证号</text>
<text class="xiangmu-detail">{{records.result.idcard}}</text> <text class="xiangmu-detail">{{cardata.cardNo}}</text>
</view> </view>
<view class="veibao-xiangmu"> <view class="veibao-xiangmu">
<text class="xiangmu-title">姓名</text> <text class="xiangmu-title">姓名</text>
<text class="xiangmu-detail">{{cardata.name}}</text> <text class="xiangmu-detail">{{cardata.name}}</text>
</view> </view>
<view class="veibao-xiangmu">
<text class="xiangmu-title">开始日期</text>
<text class="xiangmu-detail">{{cardata.start_date}}</text>
</view>
<view class="veibao-xiangmu">
<text class="xiangmu-title">截止日期</text>
<text class="xiangmu-detail">{{cardata.end_date}}</text>
</view>
<view class="veibao-xiangmu"> <view class="veibao-xiangmu">
<text class="xiangmu-title">身份核验</text> <text class="xiangmu-title">身份核验</text>
<text class="xiangmu-detail">{{records.result.isok==true?'身份证姓名一致,身份正确':records.verifyResult==false?'身份证姓名核验不一致':'无法查验'}}</text> <text class="xiangmu-detail">{{cardata.verifyresult==0?'待验验,请稍后..':cardata.verifyresult==1?'身份证信息一致,身份正确':'身份证信息核验不一致'}}</text>
</view> </view>
<view class="veibao-xiangmu"> <view class="veibao-xiangmu">
<text class="xiangmu-title">核验时间</text> <text class="xiangmu-title">核验时间</text>

View File

@ -9,11 +9,24 @@
var t = this.data.query, var t = this.data.query,
a = e.detail.value, a = e.detail.value,
c = this.trim(a); c = this.trim(a);
(t.license_plate = c), this.setData({ query: t }); (t.cardNo = c), this.setData({ query: t });
}, },
name: function (e) { name: function (e) {
var t = e.detail.value; var t = this.data.query,
this.setData({ name: t }); 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) { trim: function (e) {
return (e = (e = e.replace(/\s+/gi, "")).replace( return (e = (e = e.replace(/\s+/gi, "")).replace(
@ -26,13 +39,13 @@
switch (a) { switch (a) {
case 1: case 1:
1 == t 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 }); : this.setData({ "query.province_small": e.province_small });
break; break;
case 2: case 2:
this.setData({ this.setData({
"query.license_plate_type": e.id, "query.cardNo_type": e.id,
license_plate_type: e.title, cardNo_type: e.title,
}); });
break; break;
case 3: case 3:
@ -115,11 +128,12 @@
this.setData({ mileage: e.detail.value }); this.setData({ mileage: e.detail.value });
}, },
sumbin: function () { sumbin: function () {
this.tongzhi();
// this.tongzhi();
var t = this.data.query; var t = this.data.query;
if (t.license_plate) if (t.cardNo)
if (18 == t.license_plate.length) if (18 == t.cardNo.length)
if (this.data.name) if (t.name)
if ("iosb" == e.getSystemPlatform()) if ("iosb" == e.getSystemPlatform())
wx.showModal({ wx.showModal({
title: "温馨提示", title: "温馨提示",
@ -138,17 +152,14 @@
var a = this, var a = this,
c = { c = {
content: content:
a.data.mileage + a.data.query.name +
a.data.engine + a.data.query.cardNo +
a.data.chepai + a.data.query.start_date +
a.data.name + a.data.query.end_date,
a.data.query.license_plate,
}; };
e.getdata(c, "checkContent").then((e) => { e.getdata(c, "checkContent").then((e) => {
console.log("文本回调数据:", e), console.log("文本回调数据:", e),
0 == e.errcode 200 == e.code ? a.queryVin() : wx.showModal({
? a.queryVin()
: wx.showModal({
title: "温馨提示", title: "温馨提示",
content: content:
"你输入的文本检测存在违规,请检测文本内容后重新输入。", "你输入的文本检测存在违规,请检测文本内容后重新输入。",
@ -160,7 +171,7 @@
} }
else else
wx.showToast({ wx.showToast({
title: "请输入车主姓名", title: "请输入姓名",
icon: "none", icon: "none",
duration: 2e3, duration: 2e3,
}); });
@ -186,66 +197,50 @@
if (wx.getStorageSync("uid")) { if (wx.getStorageSync("uid")) {
var e = this; var e = this;
e.orderid(), e.orderid(),
console.log(wx.getStorageSync("uid")),
wx.getStorageSync("uid") wx.getStorageSync("uid")
? (console.log(wx.getStorageSync("uid")), ? (console.log(wx.getStorageSync("uid")),
t.util.request({ t.util.request({
url: "entry/wxapp/paynum", url: "tool/sfzhy/createOrder",
method: "post", method: "post",
dataType: "json", dataType: "json",
data: { data: {
type: "sfzhy_money",
orderid: e.data.orderid, orderid: e.data.orderid,
uid: wx.getStorageSync("uid"), uid: wx.getStorageSync("uid"),
postcardata: JSON.stringify(e.data), data: e.data.query,
}, },
success: function (a) { success: function (a) {
a.data && a.data.data && 1e3 == a.data.message
? t.util.request({
url: "entry/wxapp/Api",
data: {
uid: wx.getStorageSync("uid"), if (a.data && a.data.data) {
r: "home.weizhang.paynum",
orderid: a.data.data.orderid, if (a.data.data.ispay && a.data.data.ispay == 1) {
},
success: function (t) {
wx.showModal({ content: t.data.message }),
e.setData({
weizhang_num: 1 * e.data.weizhang_num + 10,
}),
e.getDetailpay(); e.getDetailpay();
}, return true;
}) }
: a.data &&
a.data.data && a.data.data.config && wx.requestPayment({
a.data.code!=200 && timeStamp: a.data.data.config.timeStamp,
wx.requestPayment({ nonceStr: a.data.data.config.nonceStr,
timeStamp: a.data.data.timeStamp, package: a.data.data.config.package,
nonceStr: a.data.data.nonceStr, signType: a.data.data.config.signType,
package: a.data.data.package, paySign: a.data.data.config.paySign,
signType: "MD5",
paySign: a.data.data.paySign,
success: function (c) { success: function (c) {
t.util.request({ t.util.request({
url: "entry/wxapp/Api", url: "tool/pay/callback",
data: { data: {
uid: wx.getStorageSync("uid"), uid: wx.getStorageSync("uid"),
r: "home.weizhang.paynum",
orderid: a.data.data.orderid, orderid: a.data.data.orderid,
}, },
success: function (t) { success: function (t) {
e.setData({ e.setData({ weizhang_num: 1 * e.data.weizhang_num + 10 }),
weizhang_num: 1 * e.data.weizhang_num + 10,
}),
wx.showModal({ content: t.data.message }), wx.showModal({ content: t.data.message }),
e.getDetailpay(); e.getDetailpay();
}, },
}); });
}, },
}); });
return true;
}
wx.showModal({ content: a.data.message });
}, },
})) }))
: wx.showModal({ : wx.showModal({
@ -283,7 +278,6 @@
}, },
tongzhi: function (t) { tongzhi: function (t) {
e.getdata({ type: "4" }, "getdyxx").then((t) => { e.getdata({ type: "4" }, "getdyxx").then((t) => {
console.log(t.data),
wx.requestSubscribeMessage({ wx.requestSubscribeMessage({
tmplIds: [t.data], tmplIds: [t.data],
success(a) { success(a) {
@ -303,7 +297,7 @@
}); });
}, },
toDetailExample: function () { toDetailExample: function () {
wx.navigateTo({ url: "../sfzhy/carcxjl?orderid=D167040592841545146692" }); wx.navigateTo({ url: "../sfzhy/carcxjl?orderid=demo" });
}, },
toSelectCar: function () { toSelectCar: function () {
wx.navigateTo({ url: "/pages/selectCar/selectCar" }); wx.navigateTo({ url: "/pages/selectCar/selectCar" });
@ -334,8 +328,8 @@
if ((console.log("行驶证数据", t), t)) { if ((console.log("行驶证数据", t), t)) {
this.setData({ this.setData({
"query.province_small": t.号牌号码.words.substring(0, 1), "query.province_small": t.号牌号码.words.substring(0, 1),
"query.license_plate_code": t.号牌号码.words.substring(1, 2), "query.cardNo_code": t.号牌号码.words.substring(1, 2),
"query.license_plate": t.号牌号码.words.substring(2, 8), "query.cardNo": t.号牌号码.words.substring(2, 8),
}); });
for ( for (
var a = t.车辆类型.words, c = this.data.carKind, i = 0; var a = t.车辆类型.words, c = this.data.carKind, i = 0;
@ -344,8 +338,8 @@
) )
c[i].title == a && c[i].title == a &&
this.setData({ this.setData({
license_plate_type: c[i].title, cardNo_type: c[i].title,
"query.license_plate_type": c[i].id, "query.cardNo_type": c[i].id,
}); });
} }
var d = wx.getStorageSync("carvehicle"), var d = wx.getStorageSync("carvehicle"),
@ -379,318 +373,23 @@
provid: 0, provid: 0,
carId: 0, carId: 0,
banner: [], banner: [],
carHeadList: [ cardNo_type: "",
{
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: "",
pickerArray: [], pickerArray: [],
pickerBol: !1, pickerBol: !1,
piclerNum: [], piclerNum: [],
query: { query: {
hot_type: "", name: "",
lazy_typ: 0, cardNo: "",
license_plate: "", start_date: "",
license_plate_code: "", end_date: "",
license_plate_type: "",
not_four_type: 1,
pageIndex: 1,
pageSize: 10,
province_small: "",
}, },
rules: [
{ checked: !1, id: "", title: "任意号码" },
{ checked: !1, id: "1", title: "豹子号666、888" },
{ checked: !1, id: "2", title: "顺子号123、789" },
{ checked: !1, id: "3", title: "规则AAAA8888" },
{ checked: !1, id: "4", title: "规则AABB6688" },
{ checked: !1, id: "5", title: "规则ABAB1212" },
{ checked: !1, id: "6", title: "规则ABBA8998" },
{ checked: !1, id: "7", title: "规则ABA868" },
{ checked: !1, id: "8", title: "规则AA88、99" },
],
typeName: { num: 0, title: "" }, typeName: { num: 0, title: "" },
}, },
onPullDownRefresh: function () { onPullDownRefresh: function () {
this.clearCache(), this.getArticles(1); this.clearCache(), this.getArticles(1);
}, },
onReachBottom: function () { onReachBottom: function () {
console.log("加上"), this.getDetail(this.data.page); // console.log("加上"), this.getDetail(this.data.page);
}, },
clearCache: function () { clearCache: function () {
this.setData({ repairList: [], page: 1 }); this.setData({ repairList: [], page: 1 });
@ -698,14 +397,9 @@
getDetail: function (t) { getDetail: function (t) {
var a = this, var a = this,
c = { uid: wx.getStorageSync("uid"), type: a.data.type, page: t }; 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 ((console.log("回调数据:", e), e.data && 200 == e.code))
if (1 == t) a.setData({ repairList: e.data, page: a.data.page + 1 }); 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 });
}
}); });
}, },
onHide: function () { }, onHide: function () { },

View File

@ -19,34 +19,25 @@
<view class="select-white-wrap"> <view class="select-white-wrap">
<view class="title"> <view class="title">
<text></text> <text></text>
<view bindtap="saoys" class="select-type">{{isHighBol?'普通查询':'行驶证识别'}}</view> <view class="select-type">{{isHighBol?'普通查询':'身份证查询'}}</view>
</view> </view>
<view class="ul-wrap"> <view class="ul-wrap">
<view class="primary" wx:if="{{!isHighBol}}"> <view class="primary" wx:if="{{!isHighBol}}">
<view class="li"> <view class="li">
<text>姓名</text> <text>姓名</text>
<input bindinput="name" class="number" controlled="{{true}}" maxlength="20" placeholder="输入车主姓名" value="{{name}}"></input> <input bindinput="name" class="number" controlled="{{true}}" maxlength="20" placeholder="输入车主姓名" value="{{query.name}}"></input>
</view> </view>
<view class="li"> <view class="li">
<text>身份证号</text> <text>身份证号</text>
<input bindinput="change" class="number" controlled="{{true}}" maxlength="18" placeholder="输入查询身份证" value="{{query.license_plate}}"></input> <input bindinput="change" class="number" controlled="{{true}}" maxlength="18" placeholder="输入查询身份证" value="{{query.cardNo}}"></input>
</view>
</view>
<view class="primary" wx:if="{{isHighBol}}">
<view bindtap="openPick" class="li" data-index="3">
<text>查找规则</text>
<view class="result {{hot_type?'checked':''}}">{{hot_type?hot_type:'请选择查找规则'}} <image mode="scaleToFill" src="/assets/icon/right-icon.png"></image>
</view>
</view> </view>
<view class="li"> <view class="li">
<text>包含号码</text> <text>有效期开始日期</text>
<input bindinput="change" class="number" controlled="{{true}}" maxlength="5" placeholder="输入包含的号码,选填" value="{{query.license_plate}}"></input> <input bindinput="start_date" class="number" controlled="{{true}}" maxlength="18" placeholder="格式:20230101" value="{{query.start_date}}"></input>
</view>
<view class="condition">
<view class="tit">其他条件</view>
<view class="list-wrap">
<view bindtap="selectRules" class="{{item.checked?'active':''}}" data-num="{{index}}" wx:for="{{conditions}}" wx:key="index">{{item.title}}</view>
</view> </view>
<view class="li">
<text>有效期截止日期</text>
<input bindinput="end_date" class="number" controlled="{{true}}" maxlength="18" placeholder="格式:20230101" value="{{query.end_date}}"></input>
</view> </view>
</view> </view>
</view> </view>
@ -57,24 +48,23 @@
</view> </view>
<view class="help-view"> <view class="help-view">
<text bindtap="toDetailExample" class="help-example">样例报告</text> <text bindtap="toDetailExample" class="help-example">样例报告</text>
<text bindtap="saoys" class="help-wht">扫一扫识别更快</text> <!-- <text bindtap="saoys" class="help-wht">扫一扫识别更快</text> -->
</view> </view>
<view class="topbb"> <view class="topbb">
<view class="title"> <view class="title">
<view class="main">身份证验证记录{{repairList.length}}条</view> <view class="main">身份证验证记录{{ repairList.length ||0 }}条</view>
</view> </view>
<view data-index="{{index}}" wx:for="{{repairList}}" wx:key="index"> <view data-index="{{index}}" wx:for="{{repairList}}" wx:key="index">
<view class="contentView"> <view class="contentView">
<text bindtap="copyText" class="orderNum" data-text="{{item.vin}}">订单编号:{{item.orderid}}</text> <text bindtap="copyText" class="orderNum" data-text="{{item.vin}}">订单编号:{{item.orderid}}</text>
<view class="lineView"></view> <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}}"> <view bindtap="{{item.status=='1'?'getDangerDetail':item.status=='3'?'showRenMsg':item.status=='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"> <view class="text-view">
<text class="name-text">{{item.name}}</text> <text class="name-text">{{item.data.name}}</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="statusView {{item.status=='0'?'underwayView':item.status=='1'?'ingView':item.status=='3'?'underwayView':'successView'}}">{{item.status=='0'?'查询中...':item.status=='1'?'已出报告':item.status=='3'?'人工处理':'无记录'}}</text>
<text class="{{item.hasRefund=='2'?'refundView successView':'noneView'}}">{{item.hasRefund=='2'?'已退款':'退款中...'}}</text> <text class="{{item.status=='-2'?'refundView successView':'noneView'}}">{{item.status=='-2'?'已退款':'退款中...'}}</text>
<text class="hui-text" style="width: 480rpx;">身份证:*******************</text> <text class="hui-text" style="width: 480rpx;">身份证:*******************</text>
<text class="hui-text">{{item.time}}</text> <text class="hui-text">{{item.timestamp}}</text>
</view> </view>
</view> </view>
</view> </view>

View File

@ -3,7 +3,7 @@ var t;
Page({ Page({
data: { data: {
isShow: !1, isShow: !1,
parent_uid: 0, invitationcode: '',
is_ok: !1, is_ok: !1,
banner: [], banner: [],
indicatorDots: !0, indicatorDots: !0,
@ -69,7 +69,7 @@ var t;
var e = this; var e = this;
a && a &&
a.scene && a.scene &&
(e.setData({ parent_uid: a.scene }), (e.setData({ invitationcode: a.scene }),
t.util.getUserInfo(function (t) { t.util.getUserInfo(function (t) {
wx.setStorageSync("uid", t.memberInfo.uid), wx.setStorageSync("uid", t.memberInfo.uid),
t.memberInfo ? e.firstin(t.memberInfo) : e.setData({ isShow: !0 }); t.memberInfo ? e.firstin(t.memberInfo) : e.setData({ isShow: !0 });
@ -108,7 +108,7 @@ var t;
uid: a.uid, uid: a.uid,
head_image: a.avatar, head_image: a.avatar,
nickname: a.nickname, nickname: a.nickname,
parent_uid: this.data.parent_uid, invitationcode: this.data.invitationcode,
}, },
success: function (t) { }, success: function (t) { },
}); });

View File

@ -6,7 +6,7 @@ var a, t;
ioskg: 1, ioskg: 1,
phone: t.globalData.myDevice.platform, phone: t.globalData.myDevice.platform,
isShow: !1, isShow: !1,
parent_uid: 0, invitationcode: '',
is_ok: !1, is_ok: !1,
banner: [], banner: [],
indicatorDots: !0, indicatorDots: !0,
@ -78,12 +78,10 @@ var a, t;
}); });
this.look(); this.look();
var e = this; var e = this;
a && a.scene && (e.setData({ parent_uid: a.scene }), a && a.scene && (e.setData({ invitationcode: a.scene }), t.util.getUserInfo(function (a) {
t.util.getUserInfo(function (a) {
wx.setStorageSync("uid", a.memberInfo.uid), wx.setStorageSync("uid", a.memberInfo.uid),
a.memberInfo ? e.firstin(a.memberInfo) : e.setData({ isShow: !0 }); a.memberInfo ? e.firstin(a.memberInfo) : e.setData({ isShow: !0 });
})), })),
// this._list(1),
wx.getPrivacySetting({ wx.getPrivacySetting({
success: (a) => { success: (a) => {
console.log(a), console.log(a),
@ -136,13 +134,11 @@ var a, t;
}, },
firstin: function (a) { firstin: function (a) {
t.util.request({ t.util.request({
url: "entry/wxapp/Api", url: "auth/user/binding",
data: { data: {
r: "me.binding",
uid: a.uid, uid: a.uid,
head_image: a.avatar,
nickname: a.nickname, nickname: a.nickname,
parent_uid: this.data.parent_uid, invitationcode: this.data.invitationcode,
}, },
success: function (a) { }, success: function (a) { },
}); });

View File

@ -6,10 +6,9 @@ var a, t;
isShow: !1, isShow: !1,
canIUseGetUserProfile: !1, canIUseGetUserProfile: !1,
userInfo: [], userInfo: [],
avatarUrl: avatarUrl: "",
"https://pic.ym23.com/images/196/2022/11/u28R23VB4c92c2i4808JQc4C3Y82O5.png", loginBanner: "",
loginBanner: nickname: "",
"https://api.ym23.com/addons/czt_wxapp_zbsq/icon/weixin1.png",
}, },
onLoad: function (a) { onLoad: function (a) {
wx.getUserProfile && this.setData({ canIUseGetUserProfile: !0 }); wx.getUserProfile && this.setData({ canIUseGetUserProfile: !0 });
@ -28,22 +27,32 @@ var a, t;
onShow: function () { onShow: function () {
this.userdata(); 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) { loginForm: function (a) {
console.log("bd", a.detail.value), a.detail.value.nickname ? this.updateNackname(a.detail.value.nickname) : wx.showModal({ content: "请输入昵称", showCancel: !1 });
a.detail.value.nickname
? this.setData({ nickname: a.detail.value.nickname })
: wx.showModal({ content: "请输入昵称", showCancel: !1 });
}, },
onChooseAvatar(a) { onChooseAvatar(a) {
const { avatarUrl: e } = a.detail; const { avatarUrl: e } = a.detail;
console.log('onChooseAvatar', a, e)
this.setData({ avatarUrl: e }); this.setData({ avatarUrl: e });
var i = [a.detail], var i = [a.detail],
n = { n = {
url: url: t.util.url("auth/avatar/upload"),
t.util.url("entry/wxapp/scqiniu") +
"&m=" +
t.siteInfo.m +
"&ids=uptp",
path: i, path: i,
}; };
this.uploadimgs(n); this.uploadimgs(n);
@ -60,16 +69,11 @@ var a, t;
filePath: a.path[i].avatarUrl, filePath: a.path[i].avatarUrl,
name: "file", name: "file",
formData: null, formData: null,
header: {
'token': wx.getStorageSync("userInfo").sessionid || ''
},
success: (a) => { success: (a) => {
n++, console.log(a), console.log(i); 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) => { fail: (a) => {
o++, console.log("fail:" + i + "fail:" + o), wx.hideLoading(); o++, console.log("fail:" + i + "fail:" + o), wx.hideLoading();
@ -123,46 +127,12 @@ var a, t;
}, t.detail); }, t.detail);
}, },
getUserProfile(t) { getUserProfile(t) {
if (this.data.nickname) if (this.nickname) {
if ( var e = this.avatarUrl, i = this.nickname, n = this;
"https://pic.ym23.com/images/196/2022/11/u28R23VB4c92c2i4808JQc4C3Y82O5.png" !=
this.data.avatarUrl console.log(i)
) { }
var e = this.data.avatarUrl, console.log(t)
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 });
}, },
noLogin: function (a) { noLogin: function (a) {
wx.navigateBack({ delta: 0 }); wx.navigateBack({ delta: 0 });
@ -192,21 +162,19 @@ var a, t;
var i = this; var i = this;
console.log("提交数据", t), console.log("提交数据", t),
a.util.request({ a.util.request({
url: "entry/wxapp/Api", url: "auth/user/detail",
data: { data: {
r: "me.detail",
uid: t.uid, uid: t.uid,
type: e, type: e,
head_image: t.avatar,
nickname: t.nickname, nickname: t.nickname,
}, },
success: function (a) { success: function (a) {
console.log(a), console.log(a),
i.setData({ i.setData({
detail: a.data.data, detail: a.data.data,
is_member: a.data.data.user.is_member, avatarUrl: a.data.data.user.avatar,
store_img: a.data.data.user.store_img, is_member: a.data.data.is_member,
store_img: a.data.data.store_img,
}), }),
1 == e && i.userdata(); 1 == e && i.userdata();
}, },

View File

@ -14,6 +14,6 @@
</view> </view>
<button bindtap="getUserProfile" class="search-buttonbb" formType="submit" style="background: #3d61f0;" wx:if="{{canIUseGetUserProfile}}"> 同步头像昵称 </button> <button bindtap="getUserProfile" class="search-buttonbb" formType="submit" style="background: #3d61f0;" wx:if="{{canIUseGetUserProfile}}"> 同步头像昵称 </button>
<button bindgetuserinfo="authorLogin" class="search-buttonbb" formType="submit" openType="getUserInfo" style="background: #3d61f0;" wx:else>授权登录</button> <button bindgetuserinfo="authorLogin" class="search-buttonbb" formType="submit" openType="getUserInfo" style="background: #3d61f0;" wx:else>授权登录</button>
<button bindtap="noLogin" class="search-buttonbh" hoverClass="changestyle">暂不登录</button> <!-- <button bindtap="noLogin" class="search-buttonbh" hoverClass="changestyle">暂不登录</button> -->
</form> </form>
</view> </view>

View File

@ -6,10 +6,8 @@ var a;
var e = this; var e = this;
wx.setNavigationBarTitle({ title: "推广记录" }), wx.setNavigationBarTitle({ title: "推广记录" }),
a.util.request({ a.util.request({
url: "entry/wxapp/Api", url: "entry/store/fans",
data: { data: {
r: "store.fans",
uid: wx.getStorageSync("uid"), uid: wx.getStorageSync("uid"),
}, },
success: function (a) { success: function (a) {
@ -19,19 +17,14 @@ var a;
}, },
onReachBottom: function () { onReachBottom: function () {
var t = this; var t = this;
t.data.is_last || t.data.is_last || a.util.request({
a.util.request({ url: "entry/store/fans",
url: "entry/wxapp/Api",
data: { data: {
r: "store.fans",
uid: wx.getStorageSync("uid"), uid: wx.getStorageSync("uid"),
page: t.data.page + 1, page: t.data.page + 1,
}, },
success: function (a) { success: function (a) {
a.data.data || a.data.data || (t.setData({ is_last: !0 }), wx.showToast({
(t.setData({ is_last: !0 }),
wx.showToast({
title: "没有更多数据了", title: "没有更多数据了",
icon: "success", icon: "success",
duration: 2e3, duration: 2e3,

View File

@ -66,23 +66,16 @@ var e;
var i = this; var i = this;
console.log("提交数据", n), console.log("提交数据", n),
e.util.request({ e.util.request({
url: "entry/wxapp/Api", url: "auth/user/detail",
data: { data: {
uid: n.uid
r: "me.detail",
uid: n.uid,
type: t,
head_image: n.avatar,
nickname: n.nickname,
}, },
success: function (e) { success: function (e) {
console.log(e),
i.setData({ i.setData({
detail: e.data.data, detail: e.data.data,
is_member: e.data.data.user.is_member, is_member: e.data.data.is_member,
store_img: e.data.data.user.store_img, store_img: e.data.data.store_img,
}), }), 1 == t && i.userdata();
1 == t && i.userdata();
}, },
}); });
}, },

View File

@ -2,7 +2,7 @@
<view class="banner"></view> <view class="banner"></view>
<view class="banner_modle_a"> <view class="banner_modle_a">
<view class="banner_modle_top"> <view class="banner_modle_top">
<image bindtap="goset" class="banner_modle_top_img" src="{{detail.user.head_image?detail.user.head_image:memberInfo.avatar}}"></image> <image bindtap="goset" class="banner_modle_top_img" src="{{detail.user.avatar}}"></image>
<view class="banner_modle_top_title" wx:if="{{detail.user.uid}}">{{detail.user.nickname}} UID:{{detail.user.uid}} <button bindtap="goset" class="shezhi"> <view class="banner_modle_top_title" wx:if="{{detail.user.uid}}">{{detail.user.nickname}} UID:{{detail.user.uid}} <button bindtap="goset" class="shezhi">
<image class="shezhi_img" src="../image/shezhi_icon.png"></image> <image class="shezhi_img" src="../image/shezhi_icon.png"></image>
</button> </button>
@ -44,7 +44,7 @@
<image class="shezhi_img1" src="../image/shezhi_icon1.png"></image> <image class="shezhi_img1" src="../image/shezhi_icon1.png"></image>
</button> </button>
<view class="banner_message1"> <view class="banner_message1">
<image bindtap="goset" class="banner_message_headImg1" src="{{detail.user.head_image?detail.user.head_image:memberInfo.avatar}}"></image> <image bindtap="gotologo" class="banner_message_headImg1" src="{{detail.user.avatar}}"></image>
<image class="banner_message_img1" src="../image/yuanhu_icn.png"></image> <image class="banner_message_img1" src="../image/yuanhu_icn.png"></image>
<view class="banner_message_name1">{{detail.user.nickname}} UID:{{detail.user.uid}}</view> <view class="banner_message_name1">{{detail.user.nickname}} UID:{{detail.user.uid}}</view>
<view class="banner_message_huiyuan1">尊贵会员 <image class="banner_message_huiyuan_img1" src="../image/zuanshi_icn.png"></image> <view class="banner_message_huiyuan1">尊贵会员 <image class="banner_message_huiyuan_img1" src="../image/zuanshi_icn.png"></image>

View File

@ -235,7 +235,7 @@ button::after {
display: inline-block; display: inline-block;
height: 137rpx; height: 137rpx;
vertical-align: top; vertical-align: top;
width: 187rpx; width: 186rpx;
} }
.banner_modle_down_modle_top1 { .banner_modle_down_modle_top1 {
color: #000; color: #000;

View File

@ -5,10 +5,8 @@ var a;
onLoad: function (e) { onLoad: function (e) {
var t = this; var t = this;
a.util.request({ a.util.request({
url: "entry/wxapp/Api", url: "auth/user/info",
data: { data: {
r: "me.info",
uid: wx.getStorageSync("uid"), uid: wx.getStorageSync("uid"),
}, },
success: function (a) { success: function (a) {
@ -26,10 +24,8 @@ var a;
getPhoneNumber: function (e) { getPhoneNumber: function (e) {
var t = this; var t = this;
a.util.request({ a.util.request({
url: "entry/wxapp/Api", url: "auth/user/userphone",
data: { data: {
r: "sale.index.userphone",
iv: e.detail.iv, iv: e.detail.iv,
encryptedData: e.detail.encryptedData, encryptedData: e.detail.encryptedData,
}, },
@ -81,10 +77,8 @@ var a;
}, },
fromsubmit: function (e) { fromsubmit: function (e) {
a.util.request({ a.util.request({
url: "entry/wxapp/Api", url: "auth/user/updateinfo",
data: { data: {
r: "me.updateinfo",
uid: wx.getStorageSync("uid"), uid: wx.getStorageSync("uid"),
nickname: e.detail.value.nickname, nickname: e.detail.value.nickname,
phone: e.detail.value.phone, phone: e.detail.value.phone,

View File

@ -2,7 +2,7 @@
<view class="modle"> 我的名称: <input class="modle_right" name="nickname" placeholder="请输入我的名称" placeholderStyle="color: #9295A8;" type="text" value="{{detail.nickname}}"></input> <view class="modle"> 我的名称: <input class="modle_right" name="nickname" placeholder="请输入我的名称" placeholderStyle="color: #9295A8;" type="text" value="{{detail.nickname}}"></input>
</view> </view>
<view bindtap="selectbrand" class="modle"> 短信通知: <button bindgetphonenumber="getPhoneNumber" class="modle_btn" openType="getPhoneNumber">电话授权</button> <view bindtap="selectbrand" class="modle"> 短信通知: <button bindgetphonenumber="getPhoneNumber" class="modle_btn" openType="getPhoneNumber">电话授权</button>
<input bindblur="checkPhone" class="modle_right" maxlength="11" name="phone" placeholder="请输入查询结果通知电话号码" placeholderStyle="color: #9295A8;" type="number" value="{{phone}}"></input> <input bindblur="checkPhone" class="modle_right" maxlength="11" name="mobile" placeholder="请输入查询结果通知电话号码" placeholderStyle="color: #9295A8;" type="number" value="{{mobile}}"></input>
</view> </view>
<view class="modle" wx:if="{{detail.is_vip==1}}"> 看车地址: <button bindtap="tomap" class="modle_btn">获取位置</button> <view class="modle" wx:if="{{detail.is_vip==1}}"> 看车地址: <button bindtap="tomap" class="modle_btn">获取位置</button>
<input class="modle_right" name="address" placeholder="请输入试车地址" placeholderStyle="color: #9295A8;" type="text" value="{{address?address:''}}"></input> <input class="modle_right" name="address" placeholder="请输入试车地址" placeholderStyle="color: #9295A8;" type="text" value="{{address?address:''}}"></input>

View File

@ -13,7 +13,7 @@ var a;
propaganda1: "我正在使用“小程序”", propaganda1: "我正在使用“小程序”",
propaganda11: "平台交易车", propaganda11: "平台交易车",
propaganda2: "快来看看我要买卖的车辆吧!", propaganda2: "快来看看我要买卖的车辆吧!",
qrstr: "扫描上方二维码,进入小程序买卖二手车!", qrstr: "扫描上方二维码,进入小程序查车吧!",
makeinnum: 1, makeinnum: 1,
enddelimg: [], enddelimg: [],
loaddata: "", loaddata: "",
@ -39,18 +39,16 @@ var a;
var t = this, var t = this,
e = t.data.loaddata; e = t.data.loaddata;
a.util.request({ a.util.request({
url: "entry/wxapp/Api", url: "entry/store/getcarimg",
data: { data: {
carid: e.id, carid: e.id,
uid: wx.getStorageSync("uid"), uid: wx.getStorageSync("uid"),
r: "sale.index.getcarimg",
}, },
cachetime: "0", cachetime: "0",
success: function (a) { success: function (a) {
"" != a.data.data.carimg "" != a.data.data.carimg
? wx.downloadFile({ ? wx.downloadFile({
url: t.backimg(a.data.data.carimg), url: a.data.data.carimg,
success: function (a) { success: function (a) {
console.log(a), (t.data.carstemp = a.tempFilePath); console.log(a), (t.data.carstemp = a.tempFilePath);
}, },
@ -60,7 +58,7 @@ var a;
}) })
: (t.data.carstemp = "/pages/image/store_bg.png"), : (t.data.carstemp = "/pages/image/store_bg.png"),
wx.downloadFile({ wx.downloadFile({
url: t.backimg(a.data.data.qrcode), url: a.data.data.qrcode,
success: function (a) { success: function (a) {
console.log(a), (t.data.qrcodetemp = a.tempFilePath); console.log(a), (t.data.qrcodetemp = a.tempFilePath);
}, },
@ -69,12 +67,11 @@ var a;
}, },
}), }),
t.setData({ t.setData({
propaganda1: "我正在使用“" + a.data.data.info.name, propaganda1: "我正在使用“" + a.data.data.name,
qrstr: a.data.data.qrstr || "小程序”平台交易车",
propaganda11: "小程序”平台交易车", propaganda11: "小程序”平台交易车",
headimg: a.data.data.headimg, headimg: a.data.data.headimg,
carsimg: a.data.data.carimg carsimg: a.data.data.carimg ? a.data.data.carimg : "/pages/image/store_bg.png",
? a.data.data.carimg
: "/pages/image/store_bg.png",
qrcodeimg: a.data.data.qrcode, qrcodeimg: a.data.data.qrcode,
}); });
}, },
@ -90,10 +87,8 @@ var a;
}); });
}, },
backimg: function (t) { backimg: function (t) {
return a.util.url("entry/wxapp/Api", { return a.util.url("entry/store/getthecarimg", {
img: t, img: t,
r: "sale.index.getthecarimg",
}); });
}, },
makeinimg: function () { makeinimg: function () {

View File

@ -15,13 +15,9 @@ var t;
firstin: function (a) { firstin: function (a) {
var e = this; var e = this;
t.util.request({ t.util.request({
url: "entry/wxapp/Api", url: "auth/user/detail",
data: { data: {
uid: a.uid
r: "me.detail",
uid: a.uid,
head_image: a.avatar,
nickname: a.nickname,
}, },
success: function (t) { success: function (t) {
e.setData({ e.setData({
@ -32,8 +28,8 @@ var t;
}, },
}), }),
t.util.request({ t.util.request({
url: "entry/wxapp/Api", url: "entry/store/getSaleinfo",
data: { r: "store.getSaleinfo", uid: a.uid }, data: { uid: a.uid },
success: function (t) { success: function (t) {
e.setData({ total: t.data.data }); e.setData({ total: t.data.data });
}, },

View File

@ -2,8 +2,8 @@
<view class="banner"></view> <view class="banner"></view>
<view class="banner_modle"> <view class="banner_modle">
<view class="banner_modle_top"> <view class="banner_modle_top">
<image class="banner_modle_top_img" src="{{detail.user.head_image?detail.user.head_image:memberInfo.avatar}}"></image> <image class="banner_modle_top_img" src="{{detail.user.avatar}}"></image>
<view class="banner_modle_top_title">{{memberInfo.nickname}} </view> <view class="banner_modle_top_title">{{detail.user.nickname}} </view>
<view bindtap="binding" class="banner_modle_top_btn">提现</view> <view bindtap="binding" class="banner_modle_top_btn">提现</view>
</view> </view>
<view class="banner_modle_down"> <view class="banner_modle_down">
@ -18,7 +18,7 @@
</navigator> </navigator>
<view class="banner_modle_down_border"></view> <view class="banner_modle_down_border"></view>
<navigator class="banner_modle_down_modle" url="/pages/mine/tixian/tixian"> <navigator class="banner_modle_down_modle" url="/pages/mine/tixian/tixian">
<view class="banner_modle_down_modle_top">{{filters.toFix2(total.brokerage-total.withdraw)}}</view> <view class="banner_modle_down_modle_top">{{filters.toFix2(total.withdrawable)}}</view>
<view class="banner_modle_down_modle_down">可提现</view> <view class="banner_modle_down_modle_down">可提现</view>
</navigator> </navigator>
<view class="banner_modle_down_border"></view> <view class="banner_modle_down_border"></view>

View File

@ -6,10 +6,8 @@ var a;
var e = this; var e = this;
wx.setNavigationBarTitle({ title: "提现明细" }), wx.setNavigationBarTitle({ title: "提现明细" }),
a.util.request({ a.util.request({
url: "entry/wxapp/Api", url: "entry/store/getWithdraw",
data: { data: {
r: "store.getWithdraw",
uid: wx.getStorageSync("uid"), uid: wx.getStorageSync("uid"),
}, },
success: function (a) { success: function (a) {
@ -19,19 +17,14 @@ var a;
}, },
onReachBottom: function () { onReachBottom: function () {
var t = this; var t = this;
t.data.is_last || t.data.is_last || a.util.request({
a.util.request({ url: "entry/store/getWithdraw",
url: "entry/wxapp/Api",
data: { data: {
r: "store.getWithdraw",
uid: wx.getStorageSync("uid"), uid: wx.getStorageSync("uid"),
page: t.data.page + 1, page: t.data.page + 1,
}, },
success: function (a) { success: function (a) {
a.data.data || a.data.data || (t.setData({ is_last: !0 }), wx.showToast({
(t.setData({ is_last: !0 }),
wx.showToast({
title: "没有更多数据了", title: "没有更多数据了",
icon: "success", icon: "success",
duration: 2e3, duration: 2e3,

View File

@ -6,10 +6,8 @@ var a;
var e = this; var e = this;
wx.setNavigationBarTitle({ title: "佣金记录" }), wx.setNavigationBarTitle({ title: "佣金记录" }),
a.util.request({ a.util.request({
url: "entry/wxapp/Api", url: "entry/store/getAccount",
data: { data: {
r: "store.getAccount",
uid: wx.getStorageSync("uid"), uid: wx.getStorageSync("uid"),
}, },
success: function (a) { success: function (a) {
@ -19,10 +17,8 @@ var a;
}, },
}), }),
a.util.request({ a.util.request({
url: "entry/wxapp/Api", url: "entry/store/getAccountTotal",
data: { data: {
r: "store.getAccountTotal",
uid: wx.getStorageSync("uid"), uid: wx.getStorageSync("uid"),
}, },
success: function (a) { success: function (a) {
@ -34,17 +30,13 @@ var a;
var t = this; var t = this;
t.data.is_last || t.data.is_last ||
a.util.request({ a.util.request({
url: "entry/wxapp/Api", url: "entry/store/getAccount",
data: { data: {
r: "store.getAccount",
uid: wx.getStorageSync("uid"), uid: wx.getStorageSync("uid"),
page: t.data.page + 1, page: t.data.page + 1,
}, },
success: function (a) { success: function (a) {
a.data.data || a.data.data || (t.setData({ is_last: !0 }), wx.showToast({
(t.setData({ is_last: !0 }),
wx.showToast({
title: "没有更多数据了", title: "没有更多数据了",
icon: "success", icon: "success",
duration: 2e3, duration: 2e3,

View File

@ -1,11 +1,3 @@
<view class="xiaoxi">
<view class="xiaoxi_zhezhao"></view>
<image class="xiaoxi_leftImg" src="../image/shouchedj_btn.png"></image>
<swiper autoplay="{{autoplay}}" circular="{{true}}" class="update_scroll_modle" duration="1500" indicatorDots="{{false}}" interval="2000" vertical="{{true}}">
<swiper-item style="color:#3688FF;"> 下面导航点击切换查询类型,按照您付款的类型 </swiper-item>
</swiper>
<view bindtap="info_notice" class="xiaoxi_right_btn">教程</view>
</view>
<view class="page__mask" wx:if="{{showPrivacy}}"></view> <view class="page__mask" wx:if="{{showPrivacy}}"></view>
<view class="privacy-dialog" wx:if="{{showPrivacy}}"> <view class="privacy-dialog" wx:if="{{showPrivacy}}">
<view class="privacy-dialog__title">报告查看教程</view> <view class="privacy-dialog__title">报告查看教程</view>

View File

@ -8,6 +8,41 @@
"condition": { "condition": {
"miniprogram": { "miniprogram": {
"list": [ "list": [
{
"name": "packageA/pages/sfzhy/carcxjl",
"pathName": "packageA/pages/sfzhy/carcxjl",
"query": "orderid=D170608510791664361930",
"launchMode": "default",
"scene": null
},
{
"name": "packageA/pages/sfzhy/incxjl",
"pathName": "packageA/pages/sfzhy/incxjl",
"query": "id=2",
"launchMode": "default",
"scene": null
},
{
"name": "pages/mine/info/index",
"pathName": "pages/mine/info/index",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "pages/login/login",
"pathName": "pages/login/login",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "pages/mine/index",
"pathName": "pages/mine/index",
"query": "",
"launchMode": "default",
"scene": null
},
{ {
"name": "", "name": "",
"pathName": "pages/pdd/", "pathName": "pages/pdd/",

View File

@ -90,6 +90,15 @@
getSign: function (e, t, n) { getSign: function (e, t, n) {
return getSign(e, t, n); return getSign(e, t, n);
}, },
generateSecureSessionId: function (length) {
var result = '';
var characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
var charactersLength = characters.length;
for (var i = 0; i < length; i++) {
result += characters.charAt(Math.floor(Math.random() * charactersLength));
}
return result;
},
request: function (e) { request: function (e) {
require("underscore.js"); require("underscore.js");
var t, var t,
@ -118,9 +127,21 @@
wx.removeStorageSync(u); wx.removeStorageSync(u);
} }
} }
var userInfo = wx.getStorageSync("userInfo") || {};
if (!userInfo.sessionid) {
userInfo.sessionid = util.generateSecureSessionId(32);
wx.setStorageSync("userInfo", userInfo);
}
wx.request( wx.request(
(_defineProperty((t = { url: i, data: e.data ? e.data : {}, header: e.header ? e.header : {}, method: e.method ? e.method : "GET", }), (_defineProperty((t = { url: i, data: e.data ? e.data : {}, header: e.header ? e.header : {}, method: e.method ? e.method : "GET", }),
"header", { "content-type": "application/json", "token": wx.getStorageSync("userInfo").sessionid } "header", {
"content-type": "application/json",
"token": userInfo.sessionid
}
), ),
_defineProperty(t, "success", function (t) { _defineProperty(t, "success", function (t) {
@ -189,10 +210,7 @@
method: "POST", method: "POST",
cachetime: 0, cachetime: 0,
success: function (e) { success: function (e) {
e.data.code == 200 || e.data.code == 200 || ((n.memberInfo = e.data.data), wx.setStorageSync("userInfo", n)), "function" == typeof t && t(n);
((n.memberInfo = e.data.data),
wx.setStorageSync("userInfo", n)),
"function" == typeof t && t(n);
}, },
}); });
}, },
@ -239,17 +257,10 @@
a = wx.getStorageSync("userInfo") || {}; a = wx.getStorageSync("userInfo") || {};
a.sessionid ? util.checkSession({ a.sessionid ? util.checkSession({
success: function () { success: function () {
t t ? util.upadteUser(t, function (t) { "function" == typeof e && e(t); }) : "function" == typeof e && e(a);
? util.upadteUser(t, function (t) {
"function" == typeof e && e(t);
})
: "function" == typeof e && e(a);
}, },
fail: function () { fail: function () {
(a.sessionid = ""), (a.sessionid = ""), console.log("relogin"), wx.removeStorageSync("userInfo"), n();
console.log("relogin"),
wx.removeStorageSync("userInfo"),
n();
}, },
}) : n(); }) : n();
}, },