...
This commit is contained in:
parent
efc4bff1e0
commit
d534334c5c
70
app.js
70
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
|
||||
);
|
||||
|
@ -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 + "身份核验报告",
|
||||
|
@ -9,11 +9,11 @@
|
||||
<view class="top-box">
|
||||
<view class="box-text">
|
||||
<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>
|
||||
<text class="order-text">姓名:{{cardata.name}}</text>
|
||||
<text class="order-text">身份证:{{records.result.idcard}}</text>
|
||||
<text class="type-text">核验状况:{{records.result.isok==true?'身份证姓名一致':records.verifyResult==false?'身份证姓名核验不一致':'无法查验'}}</text>
|
||||
<text class="order-text">身份证:{{cardata.cardNo}}</text>
|
||||
<text class="type-text">核验状况:{{cardata.verifyresult==0?'待验验,请稍后..':cardata.verifyresult==1?'身份证信息一致,身份正确':'身份证信息核验不一致'}}</text>
|
||||
</view>
|
||||
<view class="box-img">
|
||||
<image class="logo-img" mode="widthFix" src="{{cardata.logo}}"></image>
|
||||
@ -21,7 +21,7 @@
|
||||
</view>
|
||||
<view class="content-view">
|
||||
<view class="content-desc">
|
||||
<text class="content-title">车牌姓名情况</text>
|
||||
<text class="content-title">查询情况</text>
|
||||
<text class="content-shuo">* 数据来自第三方,仅作参考</text>
|
||||
</view>
|
||||
<view data-index="{{index}}">
|
||||
@ -33,15 +33,23 @@
|
||||
<view class="veibao-text">
|
||||
<view class="veibao-xiangmu">
|
||||
<text class="xiangmu-title">身份证号</text>
|
||||
<text class="xiangmu-detail">{{records.result.idcard}}</text>
|
||||
<text class="xiangmu-detail">{{cardata.cardNo}}</text>
|
||||
</view>
|
||||
<view class="veibao-xiangmu">
|
||||
<text class="xiangmu-title">姓名</text>
|
||||
<text class="xiangmu-detail">{{cardata.name}}</text>
|
||||
</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">
|
||||
<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 class="veibao-xiangmu">
|
||||
<text class="xiangmu-title">核验时间</text>
|
||||
|
@ -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 () { },
|
||||
});
|
||||
},
|
||||
});
|
||||
|
@ -19,34 +19,25 @@
|
||||
<view class="select-white-wrap">
|
||||
<view class="title">
|
||||
<text></text>
|
||||
<view bindtap="saoys" class="select-type">{{isHighBol?'普通查询':'行驶证识别'}}</view>
|
||||
<view class="select-type">{{isHighBol?'普通查询':'身份证查询'}}</view>
|
||||
</view>
|
||||
<view class="ul-wrap">
|
||||
<view class="primary" wx:if="{{!isHighBol}}">
|
||||
<view class="li">
|
||||
<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 class="li">
|
||||
<text>身份证号</text>
|
||||
<input bindinput="change" class="number" controlled="{{true}}" maxlength="18" placeholder="输入查询身份证" value="{{query.license_plate}}"></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>
|
||||
<input bindinput="change" class="number" controlled="{{true}}" maxlength="18" placeholder="输入查询身份证" value="{{query.cardNo}}"></input>
|
||||
</view>
|
||||
<view class="li">
|
||||
<text>包含号码</text>
|
||||
<input bindinput="change" class="number" controlled="{{true}}" maxlength="5" placeholder="输入包含的号码,选填" value="{{query.license_plate}}"></input>
|
||||
<text>有效期开始日期</text>
|
||||
<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 class="li">
|
||||
<text>有效期截止日期</text>
|
||||
<input bindinput="end_date" class="number" controlled="{{true}}" maxlength="18" placeholder="格式:20230101" value="{{query.end_date}}"></input>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -57,24 +48,23 @@
|
||||
</view>
|
||||
<view class="help-view">
|
||||
<text bindtap="toDetailExample" class="help-example">样例报告</text>
|
||||
<text bindtap="saoys" class="help-wht">扫一扫识别更快</text>
|
||||
<!-- <text bindtap="saoys" class="help-wht">扫一扫识别更快</text> -->
|
||||
</view>
|
||||
<view class="topbb">
|
||||
<view class="title">
|
||||
<view class="main">身份证验证记录{{repairList.length}}条</view>
|
||||
<view class="main">身份证验证记录{{ repairList.length ||0 }}条</view>
|
||||
</view>
|
||||
<view data-index="{{index}}" wx:for="{{repairList}}" wx:key="index">
|
||||
<view class="contentView">
|
||||
<text bindtap="copyText" class="orderNum" data-text="{{item.vin}}">订单编号:{{item.orderid}}</text>
|
||||
<view class="lineView"></view>
|
||||
<view bindtap="{{item.queryStatus=='2'?'getDangerDetail':item.queryStatus=='4'?'showRenMsg':item.queryStatus=='3'?'showGaoMsg':''}}" data-brand="{{item.car}}" data-logo="{{item.logo}}" data-orderid="{{item.orderid}}" data-querytype="{{item.queryType}}" data-time="{{item.queryTimeStr}}" data-version="{{item.queryVersion}}">
|
||||
<image class="logo-img" mode="widthFix" src="{{item.logo}}"></image>
|
||||
<view 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}}">
|
||||
<view class="text-view">
|
||||
<text class="name-text">{{item.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="{{item.hasRefund=='2'?'refundView successView':'noneView'}}">{{item.hasRefund=='2'?'已退款':'退款中...'}}</text>
|
||||
<text class="name-text">{{item.data.name}}</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.status=='-2'?'refundView successView':'noneView'}}">{{item.status=='-2'?'已退款':'退款中...'}}</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>
|
||||
|
@ -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) { },
|
||||
});
|
||||
|
@ -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) { },
|
||||
});
|
||||
|
@ -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 () { },
|
||||
});
|
||||
|
@ -14,6 +14,6 @@
|
||||
</view>
|
||||
<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 bindtap="noLogin" class="search-buttonbh" hoverClass="changestyle">暂不登录</button>
|
||||
<!-- <button bindtap="noLogin" class="search-buttonbh" hoverClass="changestyle">暂不登录</button> -->
|
||||
</form>
|
||||
</view>
|
||||
|
@ -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 });
|
||||
},
|
||||
});
|
||||
},
|
||||
});
|
||||
|
@ -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 () { },
|
||||
});
|
||||
|
@ -2,7 +2,7 @@
|
||||
<view class="banner"></view>
|
||||
<view class="banner_modle_a">
|
||||
<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">
|
||||
<image class="shezhi_img" src="../image/shezhi_icon.png"></image>
|
||||
</button>
|
||||
@ -44,7 +44,7 @@
|
||||
<image class="shezhi_img1" src="../image/shezhi_icon1.png"></image>
|
||||
</button>
|
||||
<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>
|
||||
<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>
|
||||
|
@ -235,7 +235,7 @@ button::after {
|
||||
display: inline-block;
|
||||
height: 137rpx;
|
||||
vertical-align: top;
|
||||
width: 187rpx;
|
||||
width: 186rpx;
|
||||
}
|
||||
.banner_modle_down_modle_top1 {
|
||||
color: #000;
|
||||
|
@ -5,10 +5,8 @@ var a;
|
||||
onLoad: function (e) {
|
||||
var t = this;
|
||||
a.util.request({
|
||||
url: "entry/wxapp/Api",
|
||||
url: "auth/user/info",
|
||||
data: {
|
||||
|
||||
r: "me.info",
|
||||
uid: wx.getStorageSync("uid"),
|
||||
},
|
||||
success: function (a) {
|
||||
@ -26,10 +24,8 @@ var a;
|
||||
getPhoneNumber: function (e) {
|
||||
var t = this;
|
||||
a.util.request({
|
||||
url: "entry/wxapp/Api",
|
||||
url: "auth/user/userphone",
|
||||
data: {
|
||||
r: "sale.index.userphone",
|
||||
|
||||
iv: e.detail.iv,
|
||||
encryptedData: e.detail.encryptedData,
|
||||
},
|
||||
@ -81,10 +77,8 @@ var a;
|
||||
},
|
||||
fromsubmit: function (e) {
|
||||
a.util.request({
|
||||
url: "entry/wxapp/Api",
|
||||
url: "auth/user/updateinfo",
|
||||
data: {
|
||||
|
||||
r: "me.updateinfo",
|
||||
uid: wx.getStorageSync("uid"),
|
||||
nickname: e.detail.value.nickname,
|
||||
phone: e.detail.value.phone,
|
||||
|
@ -2,7 +2,7 @@
|
||||
<view class="modle"> 我的名称: <input class="modle_right" name="nickname" placeholder="请输入我的名称" placeholderStyle="color: #9295A8;" type="text" value="{{detail.nickname}}"></input>
|
||||
</view>
|
||||
<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 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>
|
||||
|
@ -13,7 +13,7 @@ var a;
|
||||
propaganda1: "我正在使用“小程序”",
|
||||
propaganda11: "平台交易车",
|
||||
propaganda2: "快来看看我要买卖的车辆吧!",
|
||||
qrstr: "扫描上方二维码,进入小程序买卖二手车!",
|
||||
qrstr: "扫描上方二维码,进入小程序查车吧!",
|
||||
makeinnum: 1,
|
||||
enddelimg: [],
|
||||
loaddata: "",
|
||||
@ -34,33 +34,31 @@ var a;
|
||||
a.memberInfo ? e.reload() : e.setData({ isShow: !0 });
|
||||
});
|
||||
},
|
||||
onShow: function () {},
|
||||
onShow: function () { },
|
||||
reload: function () {
|
||||
var t = this,
|
||||
e = t.data.loaddata;
|
||||
a.util.request({
|
||||
url: "entry/wxapp/Api",
|
||||
url: "entry/store/getcarimg",
|
||||
data: {
|
||||
|
||||
carid: e.id,
|
||||
uid: wx.getStorageSync("uid"),
|
||||
r: "sale.index.getcarimg",
|
||||
},
|
||||
cachetime: "0",
|
||||
success: function (a) {
|
||||
"" != a.data.data.carimg
|
||||
? wx.downloadFile({
|
||||
url: t.backimg(a.data.data.carimg),
|
||||
success: function (a) {
|
||||
console.log(a), (t.data.carstemp = a.tempFilePath);
|
||||
},
|
||||
fail: function () {
|
||||
t.data.carstemp = "/pages/image/store_bg.png";
|
||||
},
|
||||
})
|
||||
url: a.data.data.carimg,
|
||||
success: function (a) {
|
||||
console.log(a), (t.data.carstemp = a.tempFilePath);
|
||||
},
|
||||
fail: function () {
|
||||
t.data.carstemp = "/pages/image/store_bg.png";
|
||||
},
|
||||
})
|
||||
: (t.data.carstemp = "/pages/image/store_bg.png"),
|
||||
wx.downloadFile({
|
||||
url: t.backimg(a.data.data.qrcode),
|
||||
url: a.data.data.qrcode,
|
||||
success: function (a) {
|
||||
console.log(a), (t.data.qrcodetemp = a.tempFilePath);
|
||||
},
|
||||
@ -69,12 +67,11 @@ var a;
|
||||
},
|
||||
}),
|
||||
t.setData({
|
||||
propaganda1: "我正在使用“" + a.data.data.info.name,
|
||||
propaganda1: "我正在使用“" + a.data.data.name,
|
||||
qrstr: a.data.data.qrstr || "小程序”平台交易车",
|
||||
propaganda11: "小程序”平台交易车",
|
||||
headimg: a.data.data.headimg,
|
||||
carsimg: a.data.data.carimg
|
||||
? a.data.data.carimg
|
||||
: "/pages/image/store_bg.png",
|
||||
carsimg: a.data.data.carimg ? a.data.data.carimg : "/pages/image/store_bg.png",
|
||||
qrcodeimg: a.data.data.qrcode,
|
||||
});
|
||||
},
|
||||
@ -90,10 +87,8 @@ var a;
|
||||
});
|
||||
},
|
||||
backimg: function (t) {
|
||||
return a.util.url("entry/wxapp/Api", {
|
||||
|
||||
return a.util.url("entry/store/getthecarimg", {
|
||||
img: t,
|
||||
r: "sale.index.getthecarimg",
|
||||
});
|
||||
},
|
||||
makeinimg: function () {
|
||||
@ -101,23 +96,23 @@ var a;
|
||||
var a = this;
|
||||
a.data.makeinnum > 1 ||
|
||||
((a.data.makeinnum = 2),
|
||||
wx.canvasToTempFilePath({
|
||||
canvasId: "show",
|
||||
success: function (t) {
|
||||
wx.saveImageToPhotosAlbum({
|
||||
filePath: t.tempFilePath,
|
||||
success: function () {
|
||||
(a.data.makeinnum = 1), console.log("成功");
|
||||
},
|
||||
fail: function () {
|
||||
(a.data.makeinnum = 1), console.log("shibai ");
|
||||
},
|
||||
});
|
||||
},
|
||||
}),
|
||||
setTimeout(function () {
|
||||
wx.hideLoading();
|
||||
}, 1e3));
|
||||
wx.canvasToTempFilePath({
|
||||
canvasId: "show",
|
||||
success: function (t) {
|
||||
wx.saveImageToPhotosAlbum({
|
||||
filePath: t.tempFilePath,
|
||||
success: function () {
|
||||
(a.data.makeinnum = 1), console.log("成功");
|
||||
},
|
||||
fail: function () {
|
||||
(a.data.makeinnum = 1), console.log("shibai ");
|
||||
},
|
||||
});
|
||||
},
|
||||
}),
|
||||
setTimeout(function () {
|
||||
wx.hideLoading();
|
||||
}, 1e3));
|
||||
},
|
||||
makeimg: function (a) {
|
||||
var t = this,
|
||||
@ -128,7 +123,7 @@ var a;
|
||||
y: 0,
|
||||
width: 375,
|
||||
height: 530,
|
||||
success: function (a) {},
|
||||
success: function (a) { },
|
||||
}),
|
||||
e.setFillStyle("#DDDDDD"),
|
||||
e.fillRect(0, 0, 370, 530),
|
||||
@ -160,10 +155,10 @@ var a;
|
||||
t.setData({ cvtype: !0 }),
|
||||
wx.drawCanvas({ canvasId: "show", actions: e.getActions() });
|
||||
},
|
||||
onReady: function () {},
|
||||
onHide: function () {},
|
||||
onUnload: function () {},
|
||||
onPullDownRefresh: function () {},
|
||||
onReachBottom: function () {},
|
||||
onShareAppMessage: function () {},
|
||||
onReady: function () { },
|
||||
onHide: function () { },
|
||||
onUnload: function () { },
|
||||
onPullDownRefresh: function () { },
|
||||
onReachBottom: function () { },
|
||||
onShareAppMessage: function () { },
|
||||
});
|
||||
|
@ -15,13 +15,9 @@ var t;
|
||||
firstin: function (a) {
|
||||
var e = this;
|
||||
t.util.request({
|
||||
url: "entry/wxapp/Api",
|
||||
url: "auth/user/detail",
|
||||
data: {
|
||||
|
||||
r: "me.detail",
|
||||
uid: a.uid,
|
||||
head_image: a.avatar,
|
||||
nickname: a.nickname,
|
||||
uid: a.uid
|
||||
},
|
||||
success: function (t) {
|
||||
e.setData({
|
||||
@ -32,8 +28,8 @@ var t;
|
||||
},
|
||||
}),
|
||||
t.util.request({
|
||||
url: "entry/wxapp/Api",
|
||||
data: { r: "store.getSaleinfo", uid: a.uid },
|
||||
url: "entry/store/getSaleinfo",
|
||||
data: { uid: a.uid },
|
||||
success: function (t) {
|
||||
e.setData({ total: t.data.data });
|
||||
},
|
||||
|
@ -2,8 +2,8 @@
|
||||
<view class="banner"></view>
|
||||
<view class="banner_modle">
|
||||
<view class="banner_modle_top">
|
||||
<image class="banner_modle_top_img" src="{{detail.user.head_image?detail.user.head_image:memberInfo.avatar}}"></image>
|
||||
<view class="banner_modle_top_title">{{memberInfo.nickname}} </view>
|
||||
<image class="banner_modle_top_img" src="{{detail.user.avatar}}"></image>
|
||||
<view class="banner_modle_top_title">{{detail.user.nickname}} </view>
|
||||
<view bindtap="binding" class="banner_modle_top_btn">提现</view>
|
||||
</view>
|
||||
<view class="banner_modle_down">
|
||||
@ -18,7 +18,7 @@
|
||||
</navigator>
|
||||
<view class="banner_modle_down_border"></view>
|
||||
<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>
|
||||
</navigator>
|
||||
<view class="banner_modle_down_border"></view>
|
||||
|
@ -6,10 +6,8 @@ var a;
|
||||
var e = this;
|
||||
wx.setNavigationBarTitle({ title: "提现明细" }),
|
||||
a.util.request({
|
||||
url: "entry/wxapp/Api",
|
||||
url: "entry/store/getWithdraw",
|
||||
data: {
|
||||
|
||||
r: "store.getWithdraw",
|
||||
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.getWithdraw",
|
||||
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, i = 0; i < a.data.data.length; i++)
|
||||
e.push(a.data.data[i]);
|
||||
t.setData({ list: e, page: t.data.page + 1 });
|
||||
},
|
||||
});
|
||||
t.data.is_last || a.util.request({
|
||||
url: "entry/store/getWithdraw",
|
||||
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, i = 0; i < a.data.data.length; i++)
|
||||
e.push(a.data.data[i]);
|
||||
t.setData({ list: e, page: t.data.page + 1 });
|
||||
},
|
||||
});
|
||||
},
|
||||
});
|
||||
|
@ -6,23 +6,19 @@ var a;
|
||||
var e = this;
|
||||
wx.setNavigationBarTitle({ title: "佣金记录" }),
|
||||
a.util.request({
|
||||
url: "entry/wxapp/Api",
|
||||
url: "entry/store/getAccount",
|
||||
data: {
|
||||
|
||||
r: "store.getAccount",
|
||||
uid: wx.getStorageSync("uid"),
|
||||
},
|
||||
success: function (a) {
|
||||
console.log("输出", a),
|
||||
a.data.data &&
|
||||
e.setData({ list: a.data.data, todayuser: a.data.message });
|
||||
e.setData({ list: a.data.data, todayuser: a.data.message });
|
||||
},
|
||||
}),
|
||||
a.util.request({
|
||||
url: "entry/wxapp/Api",
|
||||
url: "entry/store/getAccountTotal",
|
||||
data: {
|
||||
|
||||
r: "store.getAccountTotal",
|
||||
uid: wx.getStorageSync("uid"),
|
||||
},
|
||||
success: function (a) {
|
||||
@ -34,21 +30,17 @@ var a;
|
||||
var t = this;
|
||||
t.data.is_last ||
|
||||
a.util.request({
|
||||
url: "entry/wxapp/Api",
|
||||
url: "entry/store/getAccount",
|
||||
data: {
|
||||
|
||||
r: "store.getAccount",
|
||||
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,
|
||||
}));
|
||||
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 });
|
||||
|
@ -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="privacy-dialog" wx:if="{{showPrivacy}}">
|
||||
<view class="privacy-dialog__title">报告查看教程</view>
|
||||
|
@ -8,6 +8,41 @@
|
||||
"condition": {
|
||||
"miniprogram": {
|
||||
"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": "",
|
||||
"pathName": "pages/pdd/",
|
||||
|
@ -90,6 +90,15 @@
|
||||
getSign: function (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) {
|
||||
require("underscore.js");
|
||||
var t,
|
||||
@ -118,9 +127,21 @@
|
||||
wx.removeStorageSync(u);
|
||||
}
|
||||
}
|
||||
|
||||
var userInfo = wx.getStorageSync("userInfo") || {};
|
||||
if (!userInfo.sessionid) {
|
||||
userInfo.sessionid = util.generateSecureSessionId(32);
|
||||
wx.setStorageSync("userInfo", userInfo);
|
||||
}
|
||||
|
||||
|
||||
|
||||
wx.request(
|
||||
(_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) {
|
||||
|
||||
@ -189,10 +210,7 @@
|
||||
method: "POST",
|
||||
cachetime: 0,
|
||||
success: function (e) {
|
||||
e.data.code == 200 ||
|
||||
((n.memberInfo = e.data.data),
|
||||
wx.setStorageSync("userInfo", n)),
|
||||
"function" == typeof t && t(n);
|
||||
e.data.code == 200 || ((n.memberInfo = e.data.data), wx.setStorageSync("userInfo", n)), "function" == typeof t && t(n);
|
||||
},
|
||||
});
|
||||
},
|
||||
@ -239,17 +257,10 @@
|
||||
a = wx.getStorageSync("userInfo") || {};
|
||||
a.sessionid ? util.checkSession({
|
||||
success: function () {
|
||||
t
|
||||
? util.upadteUser(t, function (t) {
|
||||
"function" == typeof e && e(t);
|
||||
})
|
||||
: "function" == typeof e && e(a);
|
||||
t ? util.upadteUser(t, function (t) { "function" == typeof e && e(t); }) : "function" == typeof e && e(a);
|
||||
},
|
||||
fail: function () {
|
||||
(a.sessionid = ""),
|
||||
console.log("relogin"),
|
||||
wx.removeStorageSync("userInfo"),
|
||||
n();
|
||||
(a.sessionid = ""), console.log("relogin"), wx.removeStorageSync("userInfo"), n();
|
||||
},
|
||||
}) : n();
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user