no message
This commit is contained in:
parent
242b3af3e9
commit
dac7df5af5
4
app.js
4
app.js
@ -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
|
||||
|
@ -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,
|
||||
|
@ -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;
|
||||
|
@ -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,
|
||||
|
@ -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;
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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,
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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;
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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;
|
||||
|
@ -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,
|
||||
|
@ -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;
|
||||
|
@ -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,
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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,
|
||||
|
@ -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;
|
||||
|
@ -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,
|
||||
|
@ -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;
|
||||
|
@ -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,
|
||||
|
@ -101,7 +101,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,
|
||||
@ -243,7 +243,7 @@ var a;
|
||||
})
|
||||
: s.data &&
|
||||
s.data.data &&
|
||||
!s.data.errno &&
|
||||
s.data.code != 200 &&
|
||||
wx.requestPayment({
|
||||
timeStamp: s.data.data.timeStamp,
|
||||
nonceStr: s.data.data.nonceStr,
|
||||
@ -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 () { },
|
||||
});
|
||||
|
@ -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,
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"appid": "wx7cd6452d5653d942",
|
||||
"compileType": "miniprogram",
|
||||
"libVersion": "3.3.3",
|
||||
"libVersion": "3.3.2",
|
||||
"packOptions": {
|
||||
"ignore": [],
|
||||
"include": []
|
||||
|
12
siteinfo.js
12
siteinfo.js
@ -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: '',
|
||||
};
|
||||
|
@ -9,7 +9,7 @@ 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 }));
|
||||
},
|
||||
@ -18,7 +18,7 @@ var e;
|
||||
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 });
|
||||
},
|
||||
});
|
||||
|
@ -80,14 +80,7 @@
|
||||
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] + "&"),
|
||||
@ -159,13 +152,13 @@
|
||||
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)
|
||||
(wx.hideNavigationBarLoading(), wx.hideLoading(), t.data.code)
|
||||
) {
|
||||
if ("41009" == t.data.errno)
|
||||
if ("401" == t.data.code)
|
||||
return (
|
||||
wx.setStorageSync("userInfo", ""),
|
||||
void util.getUserInfo(function () {
|
||||
@ -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,7 +227,7 @@
|
||||
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)),
|
||||
"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();
|
||||
@ -278,12 +266,12 @@
|
||||
"function" == typeof e && e(t);
|
||||
});
|
||||
},
|
||||
fail: function () {},
|
||||
fail: function () { },
|
||||
})
|
||||
: "function" == typeof e && e(n);
|
||||
}, n.code);
|
||||
},
|
||||
fail: function () {},
|
||||
fail: function () { },
|
||||
});
|
||||
},
|
||||
a = wx.getStorageSync("userInfo") || {};
|
||||
|
Loading…
x
Reference in New Issue
Block a user