no message

This commit is contained in:
小陌 2024-01-22 23:40:19 +08:00
parent 242b3af3e9
commit dac7df5af5
43 changed files with 377 additions and 389 deletions

4
app.js
View File

@ -143,7 +143,7 @@
formData: { names: a },
success: function (a) {
var o = JSON.parse(a.data);
return 0 != o.errno
return 201 == o.code
? (t.util.message({ title: o.message, type: "error" }),
void wx.hideLoading())
: (c++,
@ -186,7 +186,7 @@
success: function (n) {
console.log(n);
var i = JSON.parse(n.data);
return 0 != i.errno
return 200 != i.code
? (t.util.message({ title: i.message, type: "error" }),
void wx.hideLoading())
: i.data && e.success && "function" == typeof e.success

View File

@ -64,7 +64,7 @@ var a, e, t;
})
: e.data &&
e.data.data &&
!e.data.errno &&
e.data.code!=200 &&
wx.requestPayment({
timeStamp: e.data.data.timeStamp,
nonceStr: e.data.data.nonceStr,

View File

@ -199,7 +199,7 @@
var t = this,
o = { uid: wx.getStorageSync("uid"), type: t.data.type, page: a };
e.getdata(o, "carqxcx").then((e) => {
if ((console.log("回调数据:", e), e.data && 0 == e.errno))
if ((console.log("回调数据:", e), e.data && 200 == e.code))
if (1 == a) t.setData({ repairList: e.data, page: t.data.page + 1 });
else {
var o = t.data.repairList;

View File

@ -64,7 +64,7 @@ var a, e, t;
})
: e.data &&
e.data.data &&
!e.data.errno &&
e.data.code!=200 &&
wx.requestPayment({
timeStamp: e.data.data.timeStamp,
nonceStr: e.data.data.nonceStr,

View File

@ -174,7 +174,7 @@ var e;
var t = this,
o = { uid: wx.getStorageSync("uid"), type: t.data.type, page: a };
e.getdata(o, "carqxcx").then((e) => {
if ((console.log("回调数据:", e), e.data && 0 == e.errno))
if ((console.log("回调数据:", e), e.data && 200 == e.code))
if (1 == a) t.setData({ repairList: e.data, page: t.data.page + 1 });
else {
var o = t.data.repairList;

View File

@ -64,7 +64,7 @@ var a, e, t;
})
: e.data &&
e.data.data &&
!e.data.errno &&
e.data.code!=200 &&
wx.requestPayment({
timeStamp: e.data.data.timeStamp,
nonceStr: e.data.data.nonceStr,

View File

@ -64,7 +64,7 @@ var a, e, t;
})
: e.data &&
e.data.data &&
!e.data.errno &&
e.data.code!=200 &&
wx.requestPayment({
timeStamp: e.data.data.timeStamp,
nonceStr: e.data.data.nonceStr,

View File

@ -304,7 +304,7 @@
var t = this,
n = { uid: wx.getStorageSync("uid"), type: t.data.type, page: a };
e.getdata(n, "carqxcx").then((e) => {
if ((console.log("回调数据:", e), e.data && 0 == e.errno))
if ((console.log("回调数据:", e), e.data && 200 == e.code))
if (1 == a) t.setData({ repairList: e.data, page: t.data.page + 1 });
else {
var n = t.data.repairList;

View File

@ -116,7 +116,7 @@ var a, e;
})
: t.data &&
t.data.data &&
!t.data.errno &&
t.data.code != 200&&
wx.requestPayment({
timeStamp: t.data.data.timeStamp,
nonceStr: t.data.data.nonceStr,
@ -249,7 +249,7 @@ var a, e;
var t = this,
n = { uid: wx.getStorageSync("uid"), type: t.data.type, page: e };
a.getdata(n, "carqxcx").then((a) => {
if ((console.log("回调数据:", a), a.data && 0 == a.errno))
if ((console.log("回调数据:", a), a.data && 200 == a.code))
if (1 == e) t.setData({ repairList: a.data, page: t.data.page + 1 });
else {
var n = t.data.repairList;

View File

@ -99,7 +99,7 @@ var a, e;
})
: t.data &&
t.data.data &&
!t.data.errno &&
t.data.code != 200&&
wx.requestPayment({
timeStamp: t.data.data.timeStamp,
nonceStr: t.data.data.nonceStr,
@ -222,7 +222,7 @@ var a, e;
var t = this,
i = { uid: wx.getStorageSync("uid"), type: t.data.type, page: e };
a.getdata(i, "carqxcx").then((a) => {
if ((console.log("回调数据:", a), a.data && 0 == a.errno))
if ((console.log("回调数据:", a), a.data && 200 == a.code))
if (1 == e) t.setData({ repairList: a.data, page: t.data.page + 1 });
else {
var i = t.data.repairList;

View File

@ -64,7 +64,7 @@
})
: e.data &&
e.data.data &&
!e.data.errno &&
e.data.code!=200 &&
wx.requestPayment({
timeStamp: e.data.data.timeStamp,
nonceStr: e.data.data.nonceStr,

View File

@ -218,7 +218,7 @@ var e, a;
var t = this,
o = { uid: wx.getStorageSync("uid"), type: t.data.type, page: a };
e.getdata(o, "carqxcx").then((e) => {
if ((console.log("回调数据:", e), e.data && 0 == e.errno))
if ((console.log("回调数据:", e), e.data && 200 == e.code))
if (1 == a) t.setData({ repairList: e.data, page: t.data.page + 1 });
else {
var o = t.data.repairList;

View File

@ -240,7 +240,7 @@ var e, t, a;
})
: a.data &&
a.data.data &&
!a.data.errno &&
a.data.code!=200 &&
wx.requestPayment({
timeStamp: a.data.data.timeStamp,
nonceStr: a.data.data.nonceStr,
@ -404,7 +404,7 @@ var e, t, a;
var a = this,
i = { uid: wx.getStorageSync("uid"), type: a.data.type, page: t };
e.getdata(i, "carqxcx").then((e) => {
if ((console.log("回调数据:", e), e.data && 0 == e.errno))
if ((console.log("回调数据:", e), e.data && 200 == e.code))
if (1 == t) a.setData({ repairList: e.data, page: a.data.page + 1 });
else {
var i = a.data.repairList;

View File

@ -19,7 +19,7 @@ var a, e;
success(e) {
e.data &&
e.data.data &&
!e.data.errno &&
e.data.code!=200 &&
(console.log(e.data),
wx.requestPayment({
timeStamp: e.data.data.timeStamp,

View File

@ -64,7 +64,7 @@
})
: e.data &&
e.data.data &&
!e.data.errno &&
e.data.code!=200 &&
wx.requestPayment({
timeStamp: e.data.data.timeStamp,
nonceStr: e.data.data.nonceStr,

View File

@ -216,7 +216,7 @@ var e, a;
var t = this,
o = { uid: wx.getStorageSync("uid"), type: t.data.type, page: a };
e.getdata(o, "carqxcx").then((e) => {
if ((console.log("回调数据:", e), e.data && 0 == e.errno))
if ((console.log("回调数据:", e), e.data && 200 == e.code))
if (1 == a) t.setData({ repairList: e.data, page: t.data.page + 1 });
else {
var o = t.data.repairList;

View File

@ -106,7 +106,7 @@
})
: t.data &&
t.data.data &&
!t.data.errno &&
t.data.code != 200&&
wx.requestPayment({
timeStamp: t.data.data.timeStamp,
nonceStr: t.data.data.nonceStr,
@ -237,7 +237,7 @@
var t = this,
n = { uid: wx.getStorageSync("uid"), type: t.data.type, page: e };
a.getdata(n, "carqxcx").then((a) => {
if ((console.log("回调数据:", a), a.data && 0 == a.errno))
if ((console.log("回调数据:", a), a.data && 200 == a.code))
if (1 == e) t.setData({ repairList: a.data, page: t.data.page + 1 });
else {
var n = t.data.repairList;

View File

@ -56,7 +56,7 @@ var a, e, t;
})
: e.data &&
e.data.data &&
!e.data.errno &&
e.data.code!=200 &&
wx.requestPayment({
timeStamp: e.data.data.timeStamp,
nonceStr: e.data.data.nonceStr,

View File

@ -71,7 +71,7 @@ var a, e, t;
})
: e.data &&
e.data.data &&
!e.data.errno &&
e.data.code!=200 &&
wx.requestPayment({
timeStamp: e.data.data.timeStamp,
nonceStr: e.data.data.nonceStr,

View File

@ -197,7 +197,7 @@ var a, t;
})
: t.data &&
t.data.data &&
!t.data.errno &&
t.data.code != 200&&
wx.requestPayment({
timeStamp: t.data.data.timeStamp,
nonceStr: t.data.data.nonceStr,

View File

@ -208,7 +208,7 @@ var e;
var t = this,
n = { uid: wx.getStorageSync("uid"), type: t.data.type, page: a };
e.getdata(n, "carqxcx").then((e) => {
if ((console.log("回调数据:", e), e.data && 0 == e.errno))
if ((console.log("回调数据:", e), e.data && 200 == e.code))
if (1 == a) t.setData({ repairList: e.data, page: t.data.page + 1 });
else {
var n = t.data.repairList;

View File

@ -56,7 +56,7 @@ var e, a, t;
})
: a.data &&
a.data.data &&
!a.data.errno &&
a.data.code!=200 &&
wx.requestPayment({
timeStamp: a.data.data.timeStamp,
nonceStr: a.data.data.nonceStr,

View File

@ -186,7 +186,7 @@
success(e) {
e.data &&
e.data.data &&
!e.data.errno &&
e.data.code!=200 &&
(console.log(e.data),
wx.requestPayment({
timeStamp: e.data.data.timeStamp,

View File

@ -19,7 +19,7 @@ var a, e;
success(e) {
e.data &&
e.data.data &&
!e.data.errno &&
e.data.code!=200 &&
(console.log(e.data),
wx.requestPayment({
timeStamp: e.data.data.timeStamp,

View File

@ -252,7 +252,7 @@ var e, t, a;
})
: a.data &&
a.data.data &&
!a.data.errno &&
a.data.code!=200 &&
wx.requestPayment({
timeStamp: a.data.data.timeStamp,
nonceStr: a.data.data.nonceStr,
@ -415,7 +415,7 @@ var e, t, a;
var a = this,
i = { uid: wx.getStorageSync("uid"), type: a.data.type, page: t };
e.getdata(i, "carqxcx").then((e) => {
if ((console.log("回调数据:", e), e.data && 0 == e.errno))
if ((console.log("回调数据:", e), e.data && 200 == e.code))
if (1 == t) a.setData({ repairList: e.data, page: a.data.page + 1 });
else {
var i = a.data.repairList;

View File

@ -66,7 +66,7 @@ var a, e, t;
})
: e.data &&
e.data.data &&
!e.data.errno &&
e.data.code!=200 &&
wx.requestPayment({
timeStamp: e.data.data.timeStamp,
nonceStr: e.data.data.nonceStr,

View File

@ -217,7 +217,7 @@ var e, t, a;
})
: a.data &&
a.data.data &&
!a.data.errno &&
a.data.code!=200 &&
wx.requestPayment({
timeStamp: a.data.data.timeStamp,
nonceStr: a.data.data.nonceStr,
@ -417,7 +417,7 @@ var e, t, a;
var a = this,
i = { uid: wx.getStorageSync("uid"), type: a.data.type, page: t };
e.getdata(i, "carqxcx").then((e) => {
if ((console.log("回调数据:", e), e.data && 0 == e.errno))
if ((console.log("回调数据:", e), e.data && 200 == e.code))
if (1 == t) a.setData({ repairList: e.data, page: a.data.page + 1 });
else {
var i = a.data.repairList;

View File

@ -61,7 +61,7 @@ var a, t;
})
: e.data &&
e.data.data &&
!e.data.errno &&
e.data.code!=200 &&
wx.requestPayment({
timeStamp: e.data.data.timeStamp,
nonceStr: e.data.data.nonceStr,

View File

@ -83,7 +83,7 @@
var t = this,
o = { uid: wx.getStorageSync("uid"), type: t.data.type, page: a };
e.getdata(o, "carqxcx").then((e) => {
if ((console.log("回调数据:", e), e.data && 0 == e.errno))
if ((console.log("回调数据:", e), e.data && 200 == e.code))
if (1 == a) t.setData({ repairList: e.data, page: t.data.page + 1 });
else {
var o = t.data.repairList;

View File

@ -197,7 +197,7 @@ var e, t;
})
: a.data &&
a.data.data &&
!a.data.errno &&
a.data.code!=200 &&
wx.requestPayment({
timeStamp: a.data.data.timeStamp,
nonceStr: a.data.data.nonceStr,
@ -369,7 +369,7 @@ var e, t;
var a = this,
i = { uid: wx.getStorageSync("uid"), type: a.data.type, page: t };
e.getdata(i, "carqxcx").then((e) => {
if ((console.log("回调数据:", e), e.data && 0 == e.errno))
if ((console.log("回调数据:", e), e.data && 200 == e.code))
if (1 == t) a.setData({ repairList: e.data, page: a.data.page + 1 });
else {
var i = a.data.repairList;

View File

@ -197,7 +197,7 @@ var e, t;
})
: a.data &&
a.data.data &&
!a.data.errno &&
a.data.code!=200 &&
wx.requestPayment({
timeStamp: a.data.data.timeStamp,
nonceStr: a.data.data.nonceStr,
@ -369,7 +369,7 @@ var e, t;
var a = this,
i = { uid: wx.getStorageSync("uid"), type: a.data.type, page: t };
e.getdata(i, "carqxcx").then((e) => {
if ((console.log("回调数据:", e), e.data && 0 == e.errno))
if ((console.log("回调数据:", e), e.data && 200 == e.code))
if (1 == t) a.setData({ repairList: e.data, page: a.data.page + 1 });
else {
var i = a.data.repairList;

View File

@ -220,7 +220,7 @@
})
: a.data &&
a.data.data &&
!a.data.errno &&
a.data.code!=200 &&
wx.requestPayment({
timeStamp: a.data.data.timeStamp,
nonceStr: a.data.data.nonceStr,
@ -699,7 +699,7 @@
var a = this,
c = { uid: wx.getStorageSync("uid"), type: a.data.type, page: t };
e.getdata(c, "carqxcx").then((e) => {
if ((console.log("回调数据:", e), e.data && 0 == e.errno))
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;

View File

@ -76,7 +76,7 @@
})
: e.data &&
e.data.data &&
!e.data.errno &&
e.data.code!=200 &&
wx.requestPayment({
timeStamp: e.data.data.timeStamp,
nonceStr: e.data.data.nonceStr,

View File

@ -285,7 +285,7 @@ var a, t;
})
: e.data &&
e.data.data &&
!e.data.errno &&
e.data.code!=200 &&
wx.requestPayment({
timeStamp: e.data.data.timeStamp,
nonceStr: e.data.data.nonceStr,
@ -427,7 +427,7 @@ var a, t;
page: t,
};
a.getdata(i, "wncxlist").then((a) => {
if ((console.log("回调数据:", a), a.data && 0 == a.errno))
if ((console.log("回调数据:", a), a.data && 200 == a.code))
if (1 == t) e.setData({ repairList: a.data, page: e.data.page + 1 });
else {
var i = e.data.repairList;

View File

@ -19,7 +19,7 @@ var a, e;
success(e) {
e.data &&
e.data.data &&
!e.data.errno &&
e.data.code!=200 &&
(console.log(e.data),
wx.requestPayment({
timeStamp: e.data.data.timeStamp,

View File

@ -245,7 +245,7 @@
})
: a.data &&
a.data.data &&
!a.data.errno &&
a.data.code!=200 &&
wx.requestPayment({
timeStamp: a.data.data.timeStamp,
nonceStr: a.data.data.nonceStr,
@ -397,7 +397,7 @@
var a = this,
i = { uid: wx.getStorageSync("uid"), type: a.data.type, page: t };
e.getdata(i, "carqxcx").then((e) => {
if ((console.log("回调数据:", e), e.data && 0 == e.errno))
if ((console.log("回调数据:", e), e.data && 200 == e.code))
if (1 == t) a.setData({ repairList: e.data, page: a.data.page + 1 });
else {
var i = a.data.repairList;

View File

@ -28,7 +28,7 @@ var a;
1 != a.data.data
? a.data &&
a.data.data &&
!a.data.errno &&
a.data.code!=200 &&
wx.requestPayment({
timeStamp: a.data.data.timeStamp,
nonceStr: a.data.data.nonceStr,

View File

@ -58,23 +58,23 @@ var a;
3 == t.data.carslist[e].status
? t.data.settopfee > 0
? wx.showModal({
content:
"需要支付" +
t.data.settopfee +
"元后会置顶" +
t.data.settoptime +
"天",
success: function (a) {
a.confirm
? t.dosettoppay(s)
: a.cancel && console.log("用户点击取消");
},
})
content:
"需要支付" +
t.data.settopfee +
"元后会置顶" +
t.data.settoptime +
"天",
success: function (a) {
a.confirm
? t.dosettoppay(s)
: a.cancel && console.log("用户点击取消");
},
})
: t.dosettoppay(s)
: wx.showModal({
content: "此商品未上架,请在上架后再进行置顶操作",
showCancel: !1,
});
content: "此商品未上架,请在上架后再进行置顶操作",
showCancel: !1,
});
},
dosettoppay: function (t) {
a.util.request({
@ -83,52 +83,52 @@ var a;
success: function (e) {
e.data && e.data.data && 1e3 == e.data.message
? a.util.request({
url: "entry/wxapp/Api",
data: {
m: "monai_market",
uid: a.getuid(),
car: t,
r: "sale.salelist.maketop",
},
success: function (a) {
wx.showModal({
content: a.data.message,
success: function (a) {
wx.reLaunch({ url: "/pages/index/index" });
},
});
},
})
url: "entry/wxapp/Api",
data: {
m: "monai_market",
uid: a.getuid(),
car: t,
r: "sale.salelist.maketop",
},
success: function (a) {
wx.showModal({
content: a.data.message,
success: function (a) {
wx.reLaunch({ url: "/pages/index/index" });
},
});
},
})
: e.data &&
e.data.data &&
!e.data.errno &&
wx.requestPayment({
timeStamp: e.data.data.timeStamp,
nonceStr: e.data.data.nonceStr,
package: e.data.data.package,
signType: "MD5",
paySign: e.data.data.paySign,
success: function (s) {
a.util.request({
url: "entry/wxapp/Api",
data: {
m: "monai_market",
uid: a.getuid(),
car: t,
orderid: e.data.data.orderid,
r: "sale.salelist.maketop",
},
success: function (a) {
wx.showModal({
content: a.data.message,
success: function (a) {
wx.reLaunch({ url: "/pages/index/index" });
},
});
},
});
},
});
e.data.data &&
e.data.code != 200 &&
wx.requestPayment({
timeStamp: e.data.data.timeStamp,
nonceStr: e.data.data.nonceStr,
package: e.data.data.package,
signType: "MD5",
paySign: e.data.data.paySign,
success: function (s) {
a.util.request({
url: "entry/wxapp/Api",
data: {
m: "monai_market",
uid: a.getuid(),
car: t,
orderid: e.data.data.orderid,
r: "sale.salelist.maketop",
},
success: function (a) {
wx.showModal({
content: a.data.message,
success: function (a) {
wx.reLaunch({ url: "/pages/index/index" });
},
});
},
});
},
});
},
});
},
@ -137,24 +137,24 @@ var a;
e = t.data.carslist;
2 != t.data.dropdown &&
((t.data.dropdown = 2),
a.util.request({
url: "entry/wxapp/Api",
data: {
m: "monai_market",
uid: a.getuid(),
leftid: t.data.page + 1,
types: t.data.activeIndex,
r: "sale.salelist.getlist",
},
success: function (a) {
var s = a.data.data.cars.length;
if (s > 0) for (var n = 0; n < s; n++) e.push(a.data.data.cars[n]);
t.setData({ carslist: e, page: t.data.page + 1 });
},
complete: function () {
t.data.dropdown = 1;
},
}));
a.util.request({
url: "entry/wxapp/Api",
data: {
m: "monai_market",
uid: a.getuid(),
leftid: t.data.page + 1,
types: t.data.activeIndex,
r: "sale.salelist.getlist",
},
success: function (a) {
var s = a.data.data.cars.length;
if (s > 0) for (var n = 0; n < s; n++) e.push(a.data.data.cars[n]);
t.setData({ carslist: e, page: t.data.page + 1 });
},
complete: function () {
t.data.dropdown = 1;
},
}));
},
makeshelf: function (t) {
var e = this,
@ -166,44 +166,19 @@ var a;
? i.status < 2 && 1 != e.data.userinfo.is_vip
? e.data.onshelffee > 0
? wx.showModal({
content: "需要支付" + e.data.onshelffee + "元后才能上架哦",
confirmColor: "#3d61f0",
confirmText: "去支付",
success: function (a) {
a.confirm && e.dopay(e, n);
},
})
: e.dopay(e, n)
: (2 != i.status && 1 != e.data.userinfo.is_vip) ||
wx.showModal({
content: "是否更改当前状态",
content: "需要支付" + e.data.onshelffee + "元后才能上架哦",
confirmColor: "#3d61f0",
confirmText: "上架",
success: function (t) {
t.confirm &&
a.util.request({
url: "entry/wxapp/Api",
data: {
m: "monai_market",
uid: a.getuid(),
car: n,
r: "sale.salelist.onshelf",
},
success: function (a) {
wx.showModal({
content: a.data.message,
success: function () {
wx.reLaunch({ url: "/pages/index/index" });
},
});
},
});
confirmText: "去支付",
success: function (a) {
a.confirm && e.dopay(e, n);
},
})
: wx.showModal({
: e.dopay(e, n)
: (2 != i.status && 1 != e.data.userinfo.is_vip) ||
wx.showModal({
content: "是否更改当前状态",
confirmColor: "#3d61f0",
confirmText: "架",
confirmText: "上架",
success: function (t) {
t.confirm &&
a.util.request({
@ -212,15 +187,40 @@ var a;
m: "monai_market",
uid: a.getuid(),
car: n,
r: "sale.salelist.downshelf",
r: "sale.salelist.onshelf",
},
success: function (a) {
wx.showModal({ content: a.data.message }),
e.getcarslist(e, e.data.activeIndex);
wx.showModal({
content: a.data.message,
success: function () {
wx.reLaunch({ url: "/pages/index/index" });
},
});
},
});
},
});
})
: wx.showModal({
content: "是否更改当前状态",
confirmColor: "#3d61f0",
confirmText: "下架",
success: function (t) {
t.confirm &&
a.util.request({
url: "entry/wxapp/Api",
data: {
m: "monai_market",
uid: a.getuid(),
car: n,
r: "sale.salelist.downshelf",
},
success: function (a) {
wx.showModal({ content: a.data.message }),
e.getcarslist(e, e.data.activeIndex);
},
});
},
});
},
dopay: function (t, e) {
a.util.request({
@ -229,43 +229,43 @@ var a;
success: function (s) {
s.data && s.data.data && 1e3 == s.data.message
? a.util.request({
url: "entry/wxapp/Api",
data: {
m: "monai_market",
uid: a.getuid(),
car: e,
r: "sale.salelist.onshelf",
},
success: function (a) {
wx.showModal({ content: a.data.message }),
t.getcarslist(t, t.data.activeIndex);
},
})
url: "entry/wxapp/Api",
data: {
m: "monai_market",
uid: a.getuid(),
car: e,
r: "sale.salelist.onshelf",
},
success: function (a) {
wx.showModal({ content: a.data.message }),
t.getcarslist(t, t.data.activeIndex);
},
})
: s.data &&
s.data.data &&
!s.data.errno &&
wx.requestPayment({
timeStamp: s.data.data.timeStamp,
nonceStr: s.data.data.nonceStr,
package: s.data.data.package,
signType: "MD5",
paySign: s.data.data.paySign,
success: function (s) {
a.util.request({
url: "entry/wxapp/Api",
data: {
m: "monai_market",
uid: a.getuid(),
car: e,
r: "sale.salelist.onshelf",
},
success: function (a) {
wx.showModal({ content: a.data.message }),
t.getcarslist(t, t.data.activeIndex);
},
});
},
});
s.data.data &&
s.data.code != 200 &&
wx.requestPayment({
timeStamp: s.data.data.timeStamp,
nonceStr: s.data.data.nonceStr,
package: s.data.data.package,
signType: "MD5",
paySign: s.data.data.paySign,
success: function (s) {
a.util.request({
url: "entry/wxapp/Api",
data: {
m: "monai_market",
uid: a.getuid(),
car: e,
r: "sale.salelist.onshelf",
},
success: function (a) {
wx.showModal({ content: a.data.message }),
t.getcarslist(t, t.data.activeIndex);
},
});
},
});
},
});
},
@ -305,9 +305,9 @@ var a;
var e = a.getAttr(t, "id");
wx.navigateTo({ url: "/pages/home/carMessage/carMessage?id=" + e });
},
onReady: function () {},
onHide: function () {},
onUnload: function () {},
onPullDownRefresh: function () {},
onShareAppMessage: function () {},
onReady: function () { },
onHide: function () { },
onUnload: function () { },
onPullDownRefresh: function () { },
onShareAppMessage: function () { },
});

View File

@ -77,7 +77,7 @@ var a;
})
: e.data &&
e.data.data &&
!e.data.errno &&
e.data.code!=200 &&
wx.requestPayment({
timeStamp: e.data.data.timeStamp,
nonceStr: e.data.data.nonceStr,

View File

@ -1,7 +1,7 @@
{
"appid": "wx7cd6452d5653d942",
"compileType": "miniprogram",
"libVersion": "3.3.3",
"libVersion": "3.3.2",
"packOptions": {
"ignore": [],
"include": []

View File

@ -1,9 +1,9 @@
module.exports = {
uniacid: "62",
acid: "253",
multiid: "0",
version: "v1.0",
m: "monai_market",
uniacid: '',
acid: '',
multiid: '',
version: '',
m: '',
siteroot: "https://cheapi.xiaoapi.com/api.html",
method_design: "77",
method_design: '',
};

View File

@ -9,16 +9,16 @@ var e;
url: "wxapp/home/nav",
cachetime: "30",
success: function (e) {
e.data.message.errno ||
e.data.message.code == 200 ||
(console.log(e.data.message.message),
a.setData({ navs: e.data.message.message }));
a.setData({ navs: e.data.message.message }));
},
}),
e.util.request({
url: "wxapp/home/slide",
cachetime: "30",
success: function (e) {
e.data.message.errno ||
e.data.message.code == 200 ||
a.setData({ slide: e.data.message.message });
},
}),
@ -26,7 +26,7 @@ var e;
url: "wxapp/home/commend",
cachetime: "30",
success: function (e) {
e.data.message.errno ||
e.data.message.code == 200 ||
a.setData({ commend: e.data.message.message });
},
});

View File

@ -6,11 +6,11 @@
return (
t in e
? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0,
})
value: n,
enumerable: !0,
configurable: !0,
writable: !0,
})
: (e[t] = n),
e
);
@ -52,18 +52,18 @@
return r(c + (n = n || getApp().siteInfo.token));
}
var _typeof =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function (e) {
return typeof e;
}
: function (e) {
return e &&
"function" == typeof Symbol &&
e.constructor === Symbol &&
e !== Symbol.prototype
? "symbol"
: typeof e;
},
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function (e) {
return typeof e;
}
: function (e) {
return e &&
"function" == typeof Symbol &&
e.constructor === Symbol &&
e !== Symbol.prototype
? "symbol"
: typeof e;
},
_base = require("base64"),
_md = require("md5"),
_md2 = _interopRequireDefault(_md),
@ -80,20 +80,13 @@
url: function (e, t) {
var n = getApp(),
a =
n.siteInfo.siteroot +
"?i=" +
n.siteInfo.uniacid +
"&t=" +
n.siteInfo.multiid +
"&v=" +
n.siteInfo.version +
"&from=wxapp&";
n.siteInfo.siteroot + "?from=wxapp&";
if (
(e &&
((e = e.split("/"))[0] && (a += "c=" + e[0] + "&"),
e[1] && (a += "a=" + e[1] + "&"),
e[2] && (a += "do=" + e[2] + "&")),
t && "object" === (void 0 === t ? "undefined" : _typeof(t)))
e[1] && (a += "a=" + e[1] + "&"),
e[2] && (a += "do=" + e[2] + "&")),
t && "object" === (void 0 === t ? "undefined" : _typeof(t)))
)
for (var r in t)
r && t.hasOwnProperty(r) && t[r] && (a += r + "=" + t[r] + "&");
@ -115,11 +108,11 @@
(-1 == i.indexOf("http://") &&
-1 == i.indexOf("https://") &&
(i = util.url(i)),
getUrlParam(i, "state") ||
getUrlParam(i, "state") ||
(e.data && e.data.state) ||
!r ||
(i = i + "&state=we7sid-" + r),
!e.data || !e.data.m)
!e.data || !e.data.m)
) {
var o = getCurrentPages();
o.length &&
@ -131,8 +124,8 @@
if ((s && (i = i + "&sign=" + s), !i)) return !1;
if (
(wx.showNavigationBarLoading(),
e.showLoading && util.showLoading(),
e.cachetime)
e.showLoading && util.showLoading(),
e.cachetime)
) {
var u = n(i),
c = wx.getStorageSync(u),
@ -159,50 +152,50 @@
method: e.method ? e.method : "GET",
}),
"header",
{ "content-type": "application/x-www-form-urlencoded" }
{ "content-type": "application/json" }
),
_defineProperty(t, "success", function (t) {
if (
(wx.hideNavigationBarLoading(), wx.hideLoading(), t.data.errno)
) {
if ("41009" == t.data.errno)
return (
wx.setStorageSync("userInfo", ""),
void util.getUserInfo(function () {
util.request(e);
})
);
if (e.fail && "function" == typeof e.fail) e.fail(t);
else if (t.data.message) {
if (null != t.data.data && t.data.data.redirect)
n = t.data.data.redirect;
else var n = "";
a.util.message(t.data.message, n, "error");
_defineProperty(t, "success", function (t) {
if (
(wx.hideNavigationBarLoading(), wx.hideLoading(), t.data.code)
) {
if ("401" == t.data.code)
return (
wx.setStorageSync("userInfo", ""),
void util.getUserInfo(function () {
util.request(e);
})
);
if (e.fail && "function" == typeof e.fail) e.fail(t);
else if (t.data.message) {
if (null != t.data.data && t.data.data.redirect)
n = t.data.data.redirect;
else var n = "";
a.util.message(t.data.message, n, "error");
}
} else if (
(e.success && "function" == typeof e.success && e.success(t),
e.cachetime)
) {
var r = { data: t.data, expire: f + 1e3 * e.cachetime };
wx.setStorageSync(u, r);
}
} else if (
(e.success && "function" == typeof e.success && e.success(t),
e.cachetime)
) {
var r = { data: t.data, expire: f + 1e3 * e.cachetime };
wx.setStorageSync(u, r);
}
}),
_defineProperty(t, "fail", function (t) {
wx.hideNavigationBarLoading(), wx.hideLoading();
var n = require("md5.js")(i),
a = wx.getStorageSync(n);
if (a && a.data)
return (
e.success && "function" == typeof e.success && e.success(a),
console.log("failreadcache:" + i),
!0
);
e.fail && "function" == typeof e.fail && e.fail(t);
}),
_defineProperty(t, "complete", function (t) {
e.complete && "function" == typeof e.complete && e.complete(t);
}),
t)
}),
_defineProperty(t, "fail", function (t) {
wx.hideNavigationBarLoading(), wx.hideLoading();
var n = require("md5.js")(i),
a = wx.getStorageSync(n);
if (a && a.data)
return (
e.success && "function" == typeof e.success && e.success(a),
console.log("failreadcache:" + i),
!0
);
e.fail && "function" == typeof e.fail && e.fail(t);
}),
_defineProperty(t, "complete", function (t) {
e.complete && "function" == typeof e.complete && e.complete(t);
}),
t)
);
},
getWe7User: function (e, t) {
@ -213,10 +206,7 @@
cachetime: 0,
showLoading: !1,
success: function (t) {
t.data.errno ||
((n.sessionid = t.data.data.sessionid),
(n.memberInfo = t.data.data.userinfo),
wx.setStorageSync("userInfo", n)),
t.data.code == 200 || ((n.sessionid = t.data.data.sessionid), (n.memberInfo = t.data.data.userinfo), wx.setStorageSync("userInfo", n)),
"function" == typeof e && e(n);
},
});
@ -237,9 +227,9 @@
header: { "content-type": "application/x-www-form-urlencoded" },
cachetime: 0,
success: function (e) {
e.data.errno ||
e.data.code == 200 ||
((n.memberInfo = e.data.data),
wx.setStorageSync("userInfo", n)),
wx.setStorageSync("userInfo", n)),
"function" == typeof t && t(n);
},
});
@ -251,9 +241,7 @@
cachetime: 0,
showLoading: !1,
success: function (t) {
t.data.errno
? "function" == typeof e.fail && e.fail()
: "function" == typeof e.success && e.success();
t.data.code == 201 ? "function" == typeof e.fail && e.fail() : "function" == typeof e.success && e.success();
},
fail: function () {
"function" == typeof e.fail && e.fail();
@ -262,47 +250,47 @@
},
getUserInfo: function (e, t) {
var n = function () {
console.log("start login"),
wx.login({
success: function (n) {
util.getWe7User(function (n) {
t
? util.upadteUser(t, function (t) {
"function" == typeof e && e(t);
})
: wx.canIUse("getUserInfo")
console.log("start login"),
wx.login({
success: function (n) {
util.getWe7User(function (n) {
t
? util.upadteUser(t, function (t) {
"function" == typeof e && e(t);
})
: wx.canIUse("getUserInfo")
? wx.getUserInfo({
withCredentials: !0,
success: function (t) {
util.upadteUser(t, function (t) {
"function" == typeof e && e(t);
});
},
fail: function () {},
})
withCredentials: !0,
success: function (t) {
util.upadteUser(t, function (t) {
"function" == typeof e && e(t);
});
},
fail: function () { },
})
: "function" == typeof e && e(n);
}, n.code);
},
fail: function () {},
});
},
}, n.code);
},
fail: function () { },
});
},
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);
},
fail: function () {
(a.sessionid = ""),
console.log("relogin"),
wx.removeStorageSync("userInfo"),
n();
},
})
success: function () {
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();
},
})
: n();
},
navigateBack: function (e) {
@ -337,7 +325,7 @@
if (
("object" == (void 0 === e ? "undefined" : _typeof(e)) &&
((t = e.redirect), (n = e.type), (e = e.title)),
t)
t)
) {
var a = t.substring(0, 9),
r = "",
@ -345,33 +333,33 @@
"navigate:" == a
? ((i = "navigateTo"), (r = t.substring(9)))
: "redirect:" == a
? ((i = "redirectTo"), (r = t.substring(9)))
: ((r = t), (i = "redirectTo"));
? ((i = "redirectTo"), (r = t.substring(9)))
: ((r = t), (i = "redirectTo"));
}
console.log(r),
n || (n = "success"),
"success" == n
? wx.showToast({
title: e,
icon: "success",
duration: 2e3,
mask: !!r,
complete: function () {
r &&
setTimeout(function () {
wx[i]({ url: r });
}, 1800);
},
})
title: e,
icon: "success",
duration: 2e3,
mask: !!r,
complete: function () {
r &&
setTimeout(function () {
wx[i]({ url: r });
}, 1800);
},
})
: "error" == n &&
wx.showModal({
title: "温馨提醒",
content: e,
showCancel: !1,
complete: function () {
r && wx[i]({ url: r });
},
});
wx.showModal({
title: "温馨提醒",
content: e,
showCancel: !1,
complete: function () {
r && wx[i]({ url: r });
},
});
},
};
(util.user = util.getUserInfo),
@ -427,33 +415,33 @@
a = ["日", "一", "二", "三", "四", "五", "六"];
return (n = (n = (n = (n = (n = (n = (n = (n = (n = (n = (n = (n =
n.replace(/yyyy|YYYY/, t.getFullYear())).replace(
/yy|YY/,
t.getYear() % 100 > 9
? (t.getYear() % 100).toString()
: "0" + (t.getYear() % 100)
)).replace(
/MM/,
t.getMonth() > 9 ? t.getMonth() + 1 : "0" + (t.getMonth() + 1)
)).replace(/M/g, t.getMonth())).replace(
/w|W/g,
a[t.getDay()]
)).replace(
/dd|DD/,
t.getDate() > 9 ? t.getDate().toString() : "0" + t.getDate()
)).replace(/d|D/g, t.getDate())).replace(
/hh|HH/,
t.getHours() > 9 ? t.getHours().toString() : "0" + t.getHours()
)).replace(/h|H/g, t.getHours())).replace(
/mm/,
t.getMinutes() > 9
? t.getMinutes().toString()
: "0" + t.getMinutes()
)).replace(/m/g, t.getMinutes())).replace(
/ss|SS/,
t.getSeconds() > 9
? t.getSeconds().toString()
: "0" + t.getSeconds()
)).replace(/s|S/g, t.getSeconds());
/yy|YY/,
t.getYear() % 100 > 9
? (t.getYear() % 100).toString()
: "0" + (t.getYear() % 100)
)).replace(
/MM/,
t.getMonth() > 9 ? t.getMonth() + 1 : "0" + (t.getMonth() + 1)
)).replace(/M/g, t.getMonth())).replace(
/w|W/g,
a[t.getDay()]
)).replace(
/dd|DD/,
t.getDate() > 9 ? t.getDate().toString() : "0" + t.getDate()
)).replace(/d|D/g, t.getDate())).replace(
/hh|HH/,
t.getHours() > 9 ? t.getHours().toString() : "0" + t.getHours()
)).replace(/h|H/g, t.getHours())).replace(
/mm/,
t.getMinutes() > 9
? t.getMinutes().toString()
: "0" + t.getMinutes()
)).replace(/m/g, t.getMinutes())).replace(
/ss|SS/,
t.getSeconds() > 9
? t.getSeconds().toString()
: "0" + t.getSeconds()
)).replace(/s|S/g, t.getSeconds());
}),
(this.dateAdd = function (e, t, n) {
switch (((n = arguments[2] || new Date()), e)) {
@ -573,10 +561,10 @@
return 4 == t || 6 == t || 9 == t || 11 == t
? "30"
: 2 == t
? (e % 4 == 0 && e % 100 != 0) || e % 400 == 0
? "29"
: "28"
: "31";
? (e % 4 == 0 && e % 100 != 0) || e % 400 == 0
? "29"
: "28"
: "31";
}),
(this.isNumber = function (e) {
return /^\d+$/g.test(e);