no message
This commit is contained in:
parent
242b3af3e9
commit
dac7df5af5
4
app.js
4
app.js
@ -143,7 +143,7 @@
|
|||||||
formData: { names: a },
|
formData: { names: a },
|
||||||
success: function (a) {
|
success: function (a) {
|
||||||
var o = JSON.parse(a.data);
|
var o = JSON.parse(a.data);
|
||||||
return 0 != o.errno
|
return 201 == o.code
|
||||||
? (t.util.message({ title: o.message, type: "error" }),
|
? (t.util.message({ title: o.message, type: "error" }),
|
||||||
void wx.hideLoading())
|
void wx.hideLoading())
|
||||||
: (c++,
|
: (c++,
|
||||||
@ -186,7 +186,7 @@
|
|||||||
success: function (n) {
|
success: function (n) {
|
||||||
console.log(n);
|
console.log(n);
|
||||||
var i = JSON.parse(n.data);
|
var i = JSON.parse(n.data);
|
||||||
return 0 != i.errno
|
return 200 != i.code
|
||||||
? (t.util.message({ title: i.message, type: "error" }),
|
? (t.util.message({ title: i.message, type: "error" }),
|
||||||
void wx.hideLoading())
|
void wx.hideLoading())
|
||||||
: i.data && e.success && "function" == typeof e.success
|
: i.data && e.success && "function" == typeof e.success
|
||||||
|
@ -64,7 +64,7 @@ var a, e, t;
|
|||||||
})
|
})
|
||||||
: e.data &&
|
: e.data &&
|
||||||
e.data.data &&
|
e.data.data &&
|
||||||
!e.data.errno &&
|
e.data.code!=200 &&
|
||||||
wx.requestPayment({
|
wx.requestPayment({
|
||||||
timeStamp: e.data.data.timeStamp,
|
timeStamp: e.data.data.timeStamp,
|
||||||
nonceStr: e.data.data.nonceStr,
|
nonceStr: e.data.data.nonceStr,
|
||||||
|
@ -199,7 +199,7 @@
|
|||||||
var t = this,
|
var t = this,
|
||||||
o = { uid: wx.getStorageSync("uid"), type: t.data.type, page: a };
|
o = { uid: wx.getStorageSync("uid"), type: t.data.type, page: a };
|
||||||
e.getdata(o, "carqxcx").then((e) => {
|
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 });
|
if (1 == a) t.setData({ repairList: e.data, page: t.data.page + 1 });
|
||||||
else {
|
else {
|
||||||
var o = t.data.repairList;
|
var o = t.data.repairList;
|
||||||
|
@ -64,7 +64,7 @@ var a, e, t;
|
|||||||
})
|
})
|
||||||
: e.data &&
|
: e.data &&
|
||||||
e.data.data &&
|
e.data.data &&
|
||||||
!e.data.errno &&
|
e.data.code!=200 &&
|
||||||
wx.requestPayment({
|
wx.requestPayment({
|
||||||
timeStamp: e.data.data.timeStamp,
|
timeStamp: e.data.data.timeStamp,
|
||||||
nonceStr: e.data.data.nonceStr,
|
nonceStr: e.data.data.nonceStr,
|
||||||
|
@ -174,7 +174,7 @@ var e;
|
|||||||
var t = this,
|
var t = this,
|
||||||
o = { uid: wx.getStorageSync("uid"), type: t.data.type, page: a };
|
o = { uid: wx.getStorageSync("uid"), type: t.data.type, page: a };
|
||||||
e.getdata(o, "carqxcx").then((e) => {
|
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 });
|
if (1 == a) t.setData({ repairList: e.data, page: t.data.page + 1 });
|
||||||
else {
|
else {
|
||||||
var o = t.data.repairList;
|
var o = t.data.repairList;
|
||||||
|
@ -64,7 +64,7 @@ var a, e, t;
|
|||||||
})
|
})
|
||||||
: e.data &&
|
: e.data &&
|
||||||
e.data.data &&
|
e.data.data &&
|
||||||
!e.data.errno &&
|
e.data.code!=200 &&
|
||||||
wx.requestPayment({
|
wx.requestPayment({
|
||||||
timeStamp: e.data.data.timeStamp,
|
timeStamp: e.data.data.timeStamp,
|
||||||
nonceStr: e.data.data.nonceStr,
|
nonceStr: e.data.data.nonceStr,
|
||||||
|
@ -64,7 +64,7 @@ var a, e, t;
|
|||||||
})
|
})
|
||||||
: e.data &&
|
: e.data &&
|
||||||
e.data.data &&
|
e.data.data &&
|
||||||
!e.data.errno &&
|
e.data.code!=200 &&
|
||||||
wx.requestPayment({
|
wx.requestPayment({
|
||||||
timeStamp: e.data.data.timeStamp,
|
timeStamp: e.data.data.timeStamp,
|
||||||
nonceStr: e.data.data.nonceStr,
|
nonceStr: e.data.data.nonceStr,
|
||||||
|
@ -304,7 +304,7 @@
|
|||||||
var t = this,
|
var t = this,
|
||||||
n = { uid: wx.getStorageSync("uid"), type: t.data.type, page: a };
|
n = { uid: wx.getStorageSync("uid"), type: t.data.type, page: a };
|
||||||
e.getdata(n, "carqxcx").then((e) => {
|
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 });
|
if (1 == a) t.setData({ repairList: e.data, page: t.data.page + 1 });
|
||||||
else {
|
else {
|
||||||
var n = t.data.repairList;
|
var n = t.data.repairList;
|
||||||
|
@ -116,7 +116,7 @@ var a, e;
|
|||||||
})
|
})
|
||||||
: t.data &&
|
: t.data &&
|
||||||
t.data.data &&
|
t.data.data &&
|
||||||
!t.data.errno &&
|
t.data.code != 200&&
|
||||||
wx.requestPayment({
|
wx.requestPayment({
|
||||||
timeStamp: t.data.data.timeStamp,
|
timeStamp: t.data.data.timeStamp,
|
||||||
nonceStr: t.data.data.nonceStr,
|
nonceStr: t.data.data.nonceStr,
|
||||||
@ -249,7 +249,7 @@ var a, e;
|
|||||||
var t = this,
|
var t = this,
|
||||||
n = { uid: wx.getStorageSync("uid"), type: t.data.type, page: e };
|
n = { uid: wx.getStorageSync("uid"), type: t.data.type, page: e };
|
||||||
a.getdata(n, "carqxcx").then((a) => {
|
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 });
|
if (1 == e) t.setData({ repairList: a.data, page: t.data.page + 1 });
|
||||||
else {
|
else {
|
||||||
var n = t.data.repairList;
|
var n = t.data.repairList;
|
||||||
|
@ -99,7 +99,7 @@ var a, e;
|
|||||||
})
|
})
|
||||||
: t.data &&
|
: t.data &&
|
||||||
t.data.data &&
|
t.data.data &&
|
||||||
!t.data.errno &&
|
t.data.code != 200&&
|
||||||
wx.requestPayment({
|
wx.requestPayment({
|
||||||
timeStamp: t.data.data.timeStamp,
|
timeStamp: t.data.data.timeStamp,
|
||||||
nonceStr: t.data.data.nonceStr,
|
nonceStr: t.data.data.nonceStr,
|
||||||
@ -222,7 +222,7 @@ var a, e;
|
|||||||
var t = this,
|
var t = this,
|
||||||
i = { uid: wx.getStorageSync("uid"), type: t.data.type, page: e };
|
i = { uid: wx.getStorageSync("uid"), type: t.data.type, page: e };
|
||||||
a.getdata(i, "carqxcx").then((a) => {
|
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 });
|
if (1 == e) t.setData({ repairList: a.data, page: t.data.page + 1 });
|
||||||
else {
|
else {
|
||||||
var i = t.data.repairList;
|
var i = t.data.repairList;
|
||||||
|
@ -64,7 +64,7 @@
|
|||||||
})
|
})
|
||||||
: e.data &&
|
: e.data &&
|
||||||
e.data.data &&
|
e.data.data &&
|
||||||
!e.data.errno &&
|
e.data.code!=200 &&
|
||||||
wx.requestPayment({
|
wx.requestPayment({
|
||||||
timeStamp: e.data.data.timeStamp,
|
timeStamp: e.data.data.timeStamp,
|
||||||
nonceStr: e.data.data.nonceStr,
|
nonceStr: e.data.data.nonceStr,
|
||||||
|
@ -218,7 +218,7 @@ var e, a;
|
|||||||
var t = this,
|
var t = this,
|
||||||
o = { uid: wx.getStorageSync("uid"), type: t.data.type, page: a };
|
o = { uid: wx.getStorageSync("uid"), type: t.data.type, page: a };
|
||||||
e.getdata(o, "carqxcx").then((e) => {
|
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 });
|
if (1 == a) t.setData({ repairList: e.data, page: t.data.page + 1 });
|
||||||
else {
|
else {
|
||||||
var o = t.data.repairList;
|
var o = t.data.repairList;
|
||||||
|
@ -240,7 +240,7 @@ var e, t, a;
|
|||||||
})
|
})
|
||||||
: a.data &&
|
: a.data &&
|
||||||
a.data.data &&
|
a.data.data &&
|
||||||
!a.data.errno &&
|
a.data.code!=200 &&
|
||||||
wx.requestPayment({
|
wx.requestPayment({
|
||||||
timeStamp: a.data.data.timeStamp,
|
timeStamp: a.data.data.timeStamp,
|
||||||
nonceStr: a.data.data.nonceStr,
|
nonceStr: a.data.data.nonceStr,
|
||||||
@ -404,7 +404,7 @@ var e, t, a;
|
|||||||
var a = this,
|
var a = this,
|
||||||
i = { uid: wx.getStorageSync("uid"), type: a.data.type, page: t };
|
i = { uid: wx.getStorageSync("uid"), type: a.data.type, page: t };
|
||||||
e.getdata(i, "carqxcx").then((e) => {
|
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 });
|
if (1 == t) a.setData({ repairList: e.data, page: a.data.page + 1 });
|
||||||
else {
|
else {
|
||||||
var i = a.data.repairList;
|
var i = a.data.repairList;
|
||||||
|
@ -19,7 +19,7 @@ var a, e;
|
|||||||
success(e) {
|
success(e) {
|
||||||
e.data &&
|
e.data &&
|
||||||
e.data.data &&
|
e.data.data &&
|
||||||
!e.data.errno &&
|
e.data.code!=200 &&
|
||||||
(console.log(e.data),
|
(console.log(e.data),
|
||||||
wx.requestPayment({
|
wx.requestPayment({
|
||||||
timeStamp: e.data.data.timeStamp,
|
timeStamp: e.data.data.timeStamp,
|
||||||
|
@ -64,7 +64,7 @@
|
|||||||
})
|
})
|
||||||
: e.data &&
|
: e.data &&
|
||||||
e.data.data &&
|
e.data.data &&
|
||||||
!e.data.errno &&
|
e.data.code!=200 &&
|
||||||
wx.requestPayment({
|
wx.requestPayment({
|
||||||
timeStamp: e.data.data.timeStamp,
|
timeStamp: e.data.data.timeStamp,
|
||||||
nonceStr: e.data.data.nonceStr,
|
nonceStr: e.data.data.nonceStr,
|
||||||
|
@ -216,7 +216,7 @@ var e, a;
|
|||||||
var t = this,
|
var t = this,
|
||||||
o = { uid: wx.getStorageSync("uid"), type: t.data.type, page: a };
|
o = { uid: wx.getStorageSync("uid"), type: t.data.type, page: a };
|
||||||
e.getdata(o, "carqxcx").then((e) => {
|
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 });
|
if (1 == a) t.setData({ repairList: e.data, page: t.data.page + 1 });
|
||||||
else {
|
else {
|
||||||
var o = t.data.repairList;
|
var o = t.data.repairList;
|
||||||
|
@ -106,7 +106,7 @@
|
|||||||
})
|
})
|
||||||
: t.data &&
|
: t.data &&
|
||||||
t.data.data &&
|
t.data.data &&
|
||||||
!t.data.errno &&
|
t.data.code != 200&&
|
||||||
wx.requestPayment({
|
wx.requestPayment({
|
||||||
timeStamp: t.data.data.timeStamp,
|
timeStamp: t.data.data.timeStamp,
|
||||||
nonceStr: t.data.data.nonceStr,
|
nonceStr: t.data.data.nonceStr,
|
||||||
@ -237,7 +237,7 @@
|
|||||||
var t = this,
|
var t = this,
|
||||||
n = { uid: wx.getStorageSync("uid"), type: t.data.type, page: e };
|
n = { uid: wx.getStorageSync("uid"), type: t.data.type, page: e };
|
||||||
a.getdata(n, "carqxcx").then((a) => {
|
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 });
|
if (1 == e) t.setData({ repairList: a.data, page: t.data.page + 1 });
|
||||||
else {
|
else {
|
||||||
var n = t.data.repairList;
|
var n = t.data.repairList;
|
||||||
|
@ -56,7 +56,7 @@ var a, e, t;
|
|||||||
})
|
})
|
||||||
: e.data &&
|
: e.data &&
|
||||||
e.data.data &&
|
e.data.data &&
|
||||||
!e.data.errno &&
|
e.data.code!=200 &&
|
||||||
wx.requestPayment({
|
wx.requestPayment({
|
||||||
timeStamp: e.data.data.timeStamp,
|
timeStamp: e.data.data.timeStamp,
|
||||||
nonceStr: e.data.data.nonceStr,
|
nonceStr: e.data.data.nonceStr,
|
||||||
|
@ -71,7 +71,7 @@ var a, e, t;
|
|||||||
})
|
})
|
||||||
: e.data &&
|
: e.data &&
|
||||||
e.data.data &&
|
e.data.data &&
|
||||||
!e.data.errno &&
|
e.data.code!=200 &&
|
||||||
wx.requestPayment({
|
wx.requestPayment({
|
||||||
timeStamp: e.data.data.timeStamp,
|
timeStamp: e.data.data.timeStamp,
|
||||||
nonceStr: e.data.data.nonceStr,
|
nonceStr: e.data.data.nonceStr,
|
||||||
|
@ -197,7 +197,7 @@ var a, t;
|
|||||||
})
|
})
|
||||||
: t.data &&
|
: t.data &&
|
||||||
t.data.data &&
|
t.data.data &&
|
||||||
!t.data.errno &&
|
t.data.code != 200&&
|
||||||
wx.requestPayment({
|
wx.requestPayment({
|
||||||
timeStamp: t.data.data.timeStamp,
|
timeStamp: t.data.data.timeStamp,
|
||||||
nonceStr: t.data.data.nonceStr,
|
nonceStr: t.data.data.nonceStr,
|
||||||
|
@ -208,7 +208,7 @@ var e;
|
|||||||
var t = this,
|
var t = this,
|
||||||
n = { uid: wx.getStorageSync("uid"), type: t.data.type, page: a };
|
n = { uid: wx.getStorageSync("uid"), type: t.data.type, page: a };
|
||||||
e.getdata(n, "carqxcx").then((e) => {
|
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 });
|
if (1 == a) t.setData({ repairList: e.data, page: t.data.page + 1 });
|
||||||
else {
|
else {
|
||||||
var n = t.data.repairList;
|
var n = t.data.repairList;
|
||||||
|
@ -56,7 +56,7 @@ var e, a, t;
|
|||||||
})
|
})
|
||||||
: a.data &&
|
: a.data &&
|
||||||
a.data.data &&
|
a.data.data &&
|
||||||
!a.data.errno &&
|
a.data.code!=200 &&
|
||||||
wx.requestPayment({
|
wx.requestPayment({
|
||||||
timeStamp: a.data.data.timeStamp,
|
timeStamp: a.data.data.timeStamp,
|
||||||
nonceStr: a.data.data.nonceStr,
|
nonceStr: a.data.data.nonceStr,
|
||||||
|
@ -186,7 +186,7 @@
|
|||||||
success(e) {
|
success(e) {
|
||||||
e.data &&
|
e.data &&
|
||||||
e.data.data &&
|
e.data.data &&
|
||||||
!e.data.errno &&
|
e.data.code!=200 &&
|
||||||
(console.log(e.data),
|
(console.log(e.data),
|
||||||
wx.requestPayment({
|
wx.requestPayment({
|
||||||
timeStamp: e.data.data.timeStamp,
|
timeStamp: e.data.data.timeStamp,
|
||||||
|
@ -19,7 +19,7 @@ var a, e;
|
|||||||
success(e) {
|
success(e) {
|
||||||
e.data &&
|
e.data &&
|
||||||
e.data.data &&
|
e.data.data &&
|
||||||
!e.data.errno &&
|
e.data.code!=200 &&
|
||||||
(console.log(e.data),
|
(console.log(e.data),
|
||||||
wx.requestPayment({
|
wx.requestPayment({
|
||||||
timeStamp: e.data.data.timeStamp,
|
timeStamp: e.data.data.timeStamp,
|
||||||
|
@ -252,7 +252,7 @@ var e, t, a;
|
|||||||
})
|
})
|
||||||
: a.data &&
|
: a.data &&
|
||||||
a.data.data &&
|
a.data.data &&
|
||||||
!a.data.errno &&
|
a.data.code!=200 &&
|
||||||
wx.requestPayment({
|
wx.requestPayment({
|
||||||
timeStamp: a.data.data.timeStamp,
|
timeStamp: a.data.data.timeStamp,
|
||||||
nonceStr: a.data.data.nonceStr,
|
nonceStr: a.data.data.nonceStr,
|
||||||
@ -415,7 +415,7 @@ var e, t, a;
|
|||||||
var a = this,
|
var a = this,
|
||||||
i = { uid: wx.getStorageSync("uid"), type: a.data.type, page: t };
|
i = { uid: wx.getStorageSync("uid"), type: a.data.type, page: t };
|
||||||
e.getdata(i, "carqxcx").then((e) => {
|
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 });
|
if (1 == t) a.setData({ repairList: e.data, page: a.data.page + 1 });
|
||||||
else {
|
else {
|
||||||
var i = a.data.repairList;
|
var i = a.data.repairList;
|
||||||
|
@ -66,7 +66,7 @@ var a, e, t;
|
|||||||
})
|
})
|
||||||
: e.data &&
|
: e.data &&
|
||||||
e.data.data &&
|
e.data.data &&
|
||||||
!e.data.errno &&
|
e.data.code!=200 &&
|
||||||
wx.requestPayment({
|
wx.requestPayment({
|
||||||
timeStamp: e.data.data.timeStamp,
|
timeStamp: e.data.data.timeStamp,
|
||||||
nonceStr: e.data.data.nonceStr,
|
nonceStr: e.data.data.nonceStr,
|
||||||
|
@ -217,7 +217,7 @@ var e, t, a;
|
|||||||
})
|
})
|
||||||
: a.data &&
|
: a.data &&
|
||||||
a.data.data &&
|
a.data.data &&
|
||||||
!a.data.errno &&
|
a.data.code!=200 &&
|
||||||
wx.requestPayment({
|
wx.requestPayment({
|
||||||
timeStamp: a.data.data.timeStamp,
|
timeStamp: a.data.data.timeStamp,
|
||||||
nonceStr: a.data.data.nonceStr,
|
nonceStr: a.data.data.nonceStr,
|
||||||
@ -417,7 +417,7 @@ var e, t, a;
|
|||||||
var a = this,
|
var a = this,
|
||||||
i = { uid: wx.getStorageSync("uid"), type: a.data.type, page: t };
|
i = { uid: wx.getStorageSync("uid"), type: a.data.type, page: t };
|
||||||
e.getdata(i, "carqxcx").then((e) => {
|
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 });
|
if (1 == t) a.setData({ repairList: e.data, page: a.data.page + 1 });
|
||||||
else {
|
else {
|
||||||
var i = a.data.repairList;
|
var i = a.data.repairList;
|
||||||
|
@ -61,7 +61,7 @@ var a, t;
|
|||||||
})
|
})
|
||||||
: e.data &&
|
: e.data &&
|
||||||
e.data.data &&
|
e.data.data &&
|
||||||
!e.data.errno &&
|
e.data.code!=200 &&
|
||||||
wx.requestPayment({
|
wx.requestPayment({
|
||||||
timeStamp: e.data.data.timeStamp,
|
timeStamp: e.data.data.timeStamp,
|
||||||
nonceStr: e.data.data.nonceStr,
|
nonceStr: e.data.data.nonceStr,
|
||||||
|
@ -83,7 +83,7 @@
|
|||||||
var t = this,
|
var t = this,
|
||||||
o = { uid: wx.getStorageSync("uid"), type: t.data.type, page: a };
|
o = { uid: wx.getStorageSync("uid"), type: t.data.type, page: a };
|
||||||
e.getdata(o, "carqxcx").then((e) => {
|
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 });
|
if (1 == a) t.setData({ repairList: e.data, page: t.data.page + 1 });
|
||||||
else {
|
else {
|
||||||
var o = t.data.repairList;
|
var o = t.data.repairList;
|
||||||
|
@ -197,7 +197,7 @@ var e, t;
|
|||||||
})
|
})
|
||||||
: a.data &&
|
: a.data &&
|
||||||
a.data.data &&
|
a.data.data &&
|
||||||
!a.data.errno &&
|
a.data.code!=200 &&
|
||||||
wx.requestPayment({
|
wx.requestPayment({
|
||||||
timeStamp: a.data.data.timeStamp,
|
timeStamp: a.data.data.timeStamp,
|
||||||
nonceStr: a.data.data.nonceStr,
|
nonceStr: a.data.data.nonceStr,
|
||||||
@ -369,7 +369,7 @@ var e, t;
|
|||||||
var a = this,
|
var a = this,
|
||||||
i = { uid: wx.getStorageSync("uid"), type: a.data.type, page: t };
|
i = { uid: wx.getStorageSync("uid"), type: a.data.type, page: t };
|
||||||
e.getdata(i, "carqxcx").then((e) => {
|
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 });
|
if (1 == t) a.setData({ repairList: e.data, page: a.data.page + 1 });
|
||||||
else {
|
else {
|
||||||
var i = a.data.repairList;
|
var i = a.data.repairList;
|
||||||
|
@ -197,7 +197,7 @@ var e, t;
|
|||||||
})
|
})
|
||||||
: a.data &&
|
: a.data &&
|
||||||
a.data.data &&
|
a.data.data &&
|
||||||
!a.data.errno &&
|
a.data.code!=200 &&
|
||||||
wx.requestPayment({
|
wx.requestPayment({
|
||||||
timeStamp: a.data.data.timeStamp,
|
timeStamp: a.data.data.timeStamp,
|
||||||
nonceStr: a.data.data.nonceStr,
|
nonceStr: a.data.data.nonceStr,
|
||||||
@ -369,7 +369,7 @@ var e, t;
|
|||||||
var a = this,
|
var a = this,
|
||||||
i = { uid: wx.getStorageSync("uid"), type: a.data.type, page: t };
|
i = { uid: wx.getStorageSync("uid"), type: a.data.type, page: t };
|
||||||
e.getdata(i, "carqxcx").then((e) => {
|
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 });
|
if (1 == t) a.setData({ repairList: e.data, page: a.data.page + 1 });
|
||||||
else {
|
else {
|
||||||
var i = a.data.repairList;
|
var i = a.data.repairList;
|
||||||
|
@ -220,7 +220,7 @@
|
|||||||
})
|
})
|
||||||
: a.data &&
|
: a.data &&
|
||||||
a.data.data &&
|
a.data.data &&
|
||||||
!a.data.errno &&
|
a.data.code!=200 &&
|
||||||
wx.requestPayment({
|
wx.requestPayment({
|
||||||
timeStamp: a.data.data.timeStamp,
|
timeStamp: a.data.data.timeStamp,
|
||||||
nonceStr: a.data.data.nonceStr,
|
nonceStr: a.data.data.nonceStr,
|
||||||
@ -699,7 +699,7 @@
|
|||||||
var a = this,
|
var a = this,
|
||||||
c = { uid: wx.getStorageSync("uid"), type: a.data.type, page: t };
|
c = { uid: wx.getStorageSync("uid"), type: a.data.type, page: t };
|
||||||
e.getdata(c, "carqxcx").then((e) => {
|
e.getdata(c, "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 });
|
if (1 == t) a.setData({ repairList: e.data, page: a.data.page + 1 });
|
||||||
else {
|
else {
|
||||||
var c = a.data.repairList;
|
var c = a.data.repairList;
|
||||||
|
@ -76,7 +76,7 @@
|
|||||||
})
|
})
|
||||||
: e.data &&
|
: e.data &&
|
||||||
e.data.data &&
|
e.data.data &&
|
||||||
!e.data.errno &&
|
e.data.code!=200 &&
|
||||||
wx.requestPayment({
|
wx.requestPayment({
|
||||||
timeStamp: e.data.data.timeStamp,
|
timeStamp: e.data.data.timeStamp,
|
||||||
nonceStr: e.data.data.nonceStr,
|
nonceStr: e.data.data.nonceStr,
|
||||||
|
@ -285,7 +285,7 @@ var a, t;
|
|||||||
})
|
})
|
||||||
: e.data &&
|
: e.data &&
|
||||||
e.data.data &&
|
e.data.data &&
|
||||||
!e.data.errno &&
|
e.data.code!=200 &&
|
||||||
wx.requestPayment({
|
wx.requestPayment({
|
||||||
timeStamp: e.data.data.timeStamp,
|
timeStamp: e.data.data.timeStamp,
|
||||||
nonceStr: e.data.data.nonceStr,
|
nonceStr: e.data.data.nonceStr,
|
||||||
@ -427,7 +427,7 @@ var a, t;
|
|||||||
page: t,
|
page: t,
|
||||||
};
|
};
|
||||||
a.getdata(i, "wncxlist").then((a) => {
|
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 });
|
if (1 == t) e.setData({ repairList: a.data, page: e.data.page + 1 });
|
||||||
else {
|
else {
|
||||||
var i = e.data.repairList;
|
var i = e.data.repairList;
|
||||||
|
@ -19,7 +19,7 @@ var a, e;
|
|||||||
success(e) {
|
success(e) {
|
||||||
e.data &&
|
e.data &&
|
||||||
e.data.data &&
|
e.data.data &&
|
||||||
!e.data.errno &&
|
e.data.code!=200 &&
|
||||||
(console.log(e.data),
|
(console.log(e.data),
|
||||||
wx.requestPayment({
|
wx.requestPayment({
|
||||||
timeStamp: e.data.data.timeStamp,
|
timeStamp: e.data.data.timeStamp,
|
||||||
|
@ -245,7 +245,7 @@
|
|||||||
})
|
})
|
||||||
: a.data &&
|
: a.data &&
|
||||||
a.data.data &&
|
a.data.data &&
|
||||||
!a.data.errno &&
|
a.data.code!=200 &&
|
||||||
wx.requestPayment({
|
wx.requestPayment({
|
||||||
timeStamp: a.data.data.timeStamp,
|
timeStamp: a.data.data.timeStamp,
|
||||||
nonceStr: a.data.data.nonceStr,
|
nonceStr: a.data.data.nonceStr,
|
||||||
@ -397,7 +397,7 @@
|
|||||||
var a = this,
|
var a = this,
|
||||||
i = { uid: wx.getStorageSync("uid"), type: a.data.type, page: t };
|
i = { uid: wx.getStorageSync("uid"), type: a.data.type, page: t };
|
||||||
e.getdata(i, "carqxcx").then((e) => {
|
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 });
|
if (1 == t) a.setData({ repairList: e.data, page: a.data.page + 1 });
|
||||||
else {
|
else {
|
||||||
var i = a.data.repairList;
|
var i = a.data.repairList;
|
||||||
|
@ -28,7 +28,7 @@ var a;
|
|||||||
1 != a.data.data
|
1 != a.data.data
|
||||||
? a.data &&
|
? a.data &&
|
||||||
a.data.data &&
|
a.data.data &&
|
||||||
!a.data.errno &&
|
a.data.code!=200 &&
|
||||||
wx.requestPayment({
|
wx.requestPayment({
|
||||||
timeStamp: a.data.data.timeStamp,
|
timeStamp: a.data.data.timeStamp,
|
||||||
nonceStr: a.data.data.nonceStr,
|
nonceStr: a.data.data.nonceStr,
|
||||||
|
@ -58,23 +58,23 @@ var a;
|
|||||||
3 == t.data.carslist[e].status
|
3 == t.data.carslist[e].status
|
||||||
? t.data.settopfee > 0
|
? t.data.settopfee > 0
|
||||||
? wx.showModal({
|
? wx.showModal({
|
||||||
content:
|
content:
|
||||||
"需要支付" +
|
"需要支付" +
|
||||||
t.data.settopfee +
|
t.data.settopfee +
|
||||||
"元后会置顶" +
|
"元后会置顶" +
|
||||||
t.data.settoptime +
|
t.data.settoptime +
|
||||||
"天",
|
"天",
|
||||||
success: function (a) {
|
success: function (a) {
|
||||||
a.confirm
|
a.confirm
|
||||||
? t.dosettoppay(s)
|
? t.dosettoppay(s)
|
||||||
: a.cancel && console.log("用户点击取消");
|
: a.cancel && console.log("用户点击取消");
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
: t.dosettoppay(s)
|
: t.dosettoppay(s)
|
||||||
: wx.showModal({
|
: wx.showModal({
|
||||||
content: "此商品未上架,请在上架后再进行置顶操作",
|
content: "此商品未上架,请在上架后再进行置顶操作",
|
||||||
showCancel: !1,
|
showCancel: !1,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
dosettoppay: function (t) {
|
dosettoppay: function (t) {
|
||||||
a.util.request({
|
a.util.request({
|
||||||
@ -83,52 +83,52 @@ var a;
|
|||||||
success: function (e) {
|
success: function (e) {
|
||||||
e.data && e.data.data && 1e3 == e.data.message
|
e.data && e.data.data && 1e3 == e.data.message
|
||||||
? a.util.request({
|
? a.util.request({
|
||||||
url: "entry/wxapp/Api",
|
url: "entry/wxapp/Api",
|
||||||
data: {
|
data: {
|
||||||
m: "monai_market",
|
m: "monai_market",
|
||||||
uid: a.getuid(),
|
uid: a.getuid(),
|
||||||
car: t,
|
car: t,
|
||||||
r: "sale.salelist.maketop",
|
r: "sale.salelist.maketop",
|
||||||
},
|
},
|
||||||
success: function (a) {
|
success: function (a) {
|
||||||
wx.showModal({
|
wx.showModal({
|
||||||
content: a.data.message,
|
content: a.data.message,
|
||||||
success: function (a) {
|
success: function (a) {
|
||||||
wx.reLaunch({ url: "/pages/index/index" });
|
wx.reLaunch({ url: "/pages/index/index" });
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
: e.data &&
|
: e.data &&
|
||||||
e.data.data &&
|
e.data.data &&
|
||||||
!e.data.errno &&
|
e.data.code != 200 &&
|
||||||
wx.requestPayment({
|
wx.requestPayment({
|
||||||
timeStamp: e.data.data.timeStamp,
|
timeStamp: e.data.data.timeStamp,
|
||||||
nonceStr: e.data.data.nonceStr,
|
nonceStr: e.data.data.nonceStr,
|
||||||
package: e.data.data.package,
|
package: e.data.data.package,
|
||||||
signType: "MD5",
|
signType: "MD5",
|
||||||
paySign: e.data.data.paySign,
|
paySign: e.data.data.paySign,
|
||||||
success: function (s) {
|
success: function (s) {
|
||||||
a.util.request({
|
a.util.request({
|
||||||
url: "entry/wxapp/Api",
|
url: "entry/wxapp/Api",
|
||||||
data: {
|
data: {
|
||||||
m: "monai_market",
|
m: "monai_market",
|
||||||
uid: a.getuid(),
|
uid: a.getuid(),
|
||||||
car: t,
|
car: t,
|
||||||
orderid: e.data.data.orderid,
|
orderid: e.data.data.orderid,
|
||||||
r: "sale.salelist.maketop",
|
r: "sale.salelist.maketop",
|
||||||
},
|
},
|
||||||
success: function (a) {
|
success: function (a) {
|
||||||
wx.showModal({
|
wx.showModal({
|
||||||
content: a.data.message,
|
content: a.data.message,
|
||||||
success: function (a) {
|
success: function (a) {
|
||||||
wx.reLaunch({ url: "/pages/index/index" });
|
wx.reLaunch({ url: "/pages/index/index" });
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -137,24 +137,24 @@ var a;
|
|||||||
e = t.data.carslist;
|
e = t.data.carslist;
|
||||||
2 != t.data.dropdown &&
|
2 != t.data.dropdown &&
|
||||||
((t.data.dropdown = 2),
|
((t.data.dropdown = 2),
|
||||||
a.util.request({
|
a.util.request({
|
||||||
url: "entry/wxapp/Api",
|
url: "entry/wxapp/Api",
|
||||||
data: {
|
data: {
|
||||||
m: "monai_market",
|
m: "monai_market",
|
||||||
uid: a.getuid(),
|
uid: a.getuid(),
|
||||||
leftid: t.data.page + 1,
|
leftid: t.data.page + 1,
|
||||||
types: t.data.activeIndex,
|
types: t.data.activeIndex,
|
||||||
r: "sale.salelist.getlist",
|
r: "sale.salelist.getlist",
|
||||||
},
|
},
|
||||||
success: function (a) {
|
success: function (a) {
|
||||||
var s = a.data.data.cars.length;
|
var s = a.data.data.cars.length;
|
||||||
if (s > 0) for (var n = 0; n < s; n++) e.push(a.data.data.cars[n]);
|
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 });
|
t.setData({ carslist: e, page: t.data.page + 1 });
|
||||||
},
|
},
|
||||||
complete: function () {
|
complete: function () {
|
||||||
t.data.dropdown = 1;
|
t.data.dropdown = 1;
|
||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
},
|
},
|
||||||
makeshelf: function (t) {
|
makeshelf: function (t) {
|
||||||
var e = this,
|
var e = this,
|
||||||
@ -166,44 +166,19 @@ var a;
|
|||||||
? i.status < 2 && 1 != e.data.userinfo.is_vip
|
? i.status < 2 && 1 != e.data.userinfo.is_vip
|
||||||
? e.data.onshelffee > 0
|
? e.data.onshelffee > 0
|
||||||
? wx.showModal({
|
? wx.showModal({
|
||||||
content: "需要支付" + e.data.onshelffee + "元后才能上架哦",
|
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: "是否更改当前状态",
|
|
||||||
confirmColor: "#3d61f0",
|
confirmColor: "#3d61f0",
|
||||||
confirmText: "上架",
|
confirmText: "去支付",
|
||||||
success: function (t) {
|
success: function (a) {
|
||||||
t.confirm &&
|
a.confirm && e.dopay(e, n);
|
||||||
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" });
|
|
||||||
},
|
|
||||||
});
|
|
||||||
},
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
: wx.showModal({
|
: e.dopay(e, n)
|
||||||
|
: (2 != i.status && 1 != e.data.userinfo.is_vip) ||
|
||||||
|
wx.showModal({
|
||||||
content: "是否更改当前状态",
|
content: "是否更改当前状态",
|
||||||
confirmColor: "#3d61f0",
|
confirmColor: "#3d61f0",
|
||||||
confirmText: "下架",
|
confirmText: "上架",
|
||||||
success: function (t) {
|
success: function (t) {
|
||||||
t.confirm &&
|
t.confirm &&
|
||||||
a.util.request({
|
a.util.request({
|
||||||
@ -212,15 +187,40 @@ var a;
|
|||||||
m: "monai_market",
|
m: "monai_market",
|
||||||
uid: a.getuid(),
|
uid: a.getuid(),
|
||||||
car: n,
|
car: n,
|
||||||
r: "sale.salelist.downshelf",
|
r: "sale.salelist.onshelf",
|
||||||
},
|
},
|
||||||
success: function (a) {
|
success: function (a) {
|
||||||
wx.showModal({ content: a.data.message }),
|
wx.showModal({
|
||||||
e.getcarslist(e, e.data.activeIndex);
|
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) {
|
dopay: function (t, e) {
|
||||||
a.util.request({
|
a.util.request({
|
||||||
@ -229,43 +229,43 @@ var a;
|
|||||||
success: function (s) {
|
success: function (s) {
|
||||||
s.data && s.data.data && 1e3 == s.data.message
|
s.data && s.data.data && 1e3 == s.data.message
|
||||||
? a.util.request({
|
? a.util.request({
|
||||||
url: "entry/wxapp/Api",
|
url: "entry/wxapp/Api",
|
||||||
data: {
|
data: {
|
||||||
m: "monai_market",
|
m: "monai_market",
|
||||||
uid: a.getuid(),
|
uid: a.getuid(),
|
||||||
car: e,
|
car: e,
|
||||||
r: "sale.salelist.onshelf",
|
r: "sale.salelist.onshelf",
|
||||||
},
|
},
|
||||||
success: function (a) {
|
success: function (a) {
|
||||||
wx.showModal({ content: a.data.message }),
|
wx.showModal({ content: a.data.message }),
|
||||||
t.getcarslist(t, t.data.activeIndex);
|
t.getcarslist(t, t.data.activeIndex);
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
: s.data &&
|
: s.data &&
|
||||||
s.data.data &&
|
s.data.data &&
|
||||||
!s.data.errno &&
|
s.data.code != 200 &&
|
||||||
wx.requestPayment({
|
wx.requestPayment({
|
||||||
timeStamp: s.data.data.timeStamp,
|
timeStamp: s.data.data.timeStamp,
|
||||||
nonceStr: s.data.data.nonceStr,
|
nonceStr: s.data.data.nonceStr,
|
||||||
package: s.data.data.package,
|
package: s.data.data.package,
|
||||||
signType: "MD5",
|
signType: "MD5",
|
||||||
paySign: s.data.data.paySign,
|
paySign: s.data.data.paySign,
|
||||||
success: function (s) {
|
success: function (s) {
|
||||||
a.util.request({
|
a.util.request({
|
||||||
url: "entry/wxapp/Api",
|
url: "entry/wxapp/Api",
|
||||||
data: {
|
data: {
|
||||||
m: "monai_market",
|
m: "monai_market",
|
||||||
uid: a.getuid(),
|
uid: a.getuid(),
|
||||||
car: e,
|
car: e,
|
||||||
r: "sale.salelist.onshelf",
|
r: "sale.salelist.onshelf",
|
||||||
},
|
},
|
||||||
success: function (a) {
|
success: function (a) {
|
||||||
wx.showModal({ content: a.data.message }),
|
wx.showModal({ content: a.data.message }),
|
||||||
t.getcarslist(t, t.data.activeIndex);
|
t.getcarslist(t, t.data.activeIndex);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -305,9 +305,9 @@ var a;
|
|||||||
var e = a.getAttr(t, "id");
|
var e = a.getAttr(t, "id");
|
||||||
wx.navigateTo({ url: "/pages/home/carMessage/carMessage?id=" + e });
|
wx.navigateTo({ url: "/pages/home/carMessage/carMessage?id=" + e });
|
||||||
},
|
},
|
||||||
onReady: function () {},
|
onReady: function () { },
|
||||||
onHide: function () {},
|
onHide: function () { },
|
||||||
onUnload: function () {},
|
onUnload: function () { },
|
||||||
onPullDownRefresh: function () {},
|
onPullDownRefresh: function () { },
|
||||||
onShareAppMessage: function () {},
|
onShareAppMessage: function () { },
|
||||||
});
|
});
|
||||||
|
@ -77,7 +77,7 @@ var a;
|
|||||||
})
|
})
|
||||||
: e.data &&
|
: e.data &&
|
||||||
e.data.data &&
|
e.data.data &&
|
||||||
!e.data.errno &&
|
e.data.code!=200 &&
|
||||||
wx.requestPayment({
|
wx.requestPayment({
|
||||||
timeStamp: e.data.data.timeStamp,
|
timeStamp: e.data.data.timeStamp,
|
||||||
nonceStr: e.data.data.nonceStr,
|
nonceStr: e.data.data.nonceStr,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"appid": "wx7cd6452d5653d942",
|
"appid": "wx7cd6452d5653d942",
|
||||||
"compileType": "miniprogram",
|
"compileType": "miniprogram",
|
||||||
"libVersion": "3.3.3",
|
"libVersion": "3.3.2",
|
||||||
"packOptions": {
|
"packOptions": {
|
||||||
"ignore": [],
|
"ignore": [],
|
||||||
"include": []
|
"include": []
|
||||||
|
12
siteinfo.js
12
siteinfo.js
@ -1,9 +1,9 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
uniacid: "62",
|
uniacid: '',
|
||||||
acid: "253",
|
acid: '',
|
||||||
multiid: "0",
|
multiid: '',
|
||||||
version: "v1.0",
|
version: '',
|
||||||
m: "monai_market",
|
m: '',
|
||||||
siteroot: "https://cheapi.xiaoapi.com/api.html",
|
siteroot: "https://cheapi.xiaoapi.com/api.html",
|
||||||
method_design: "77",
|
method_design: '',
|
||||||
};
|
};
|
||||||
|
@ -9,16 +9,16 @@ var e;
|
|||||||
url: "wxapp/home/nav",
|
url: "wxapp/home/nav",
|
||||||
cachetime: "30",
|
cachetime: "30",
|
||||||
success: function (e) {
|
success: function (e) {
|
||||||
e.data.message.errno ||
|
e.data.message.code == 200 ||
|
||||||
(console.log(e.data.message.message),
|
(console.log(e.data.message.message),
|
||||||
a.setData({ navs: e.data.message.message }));
|
a.setData({ navs: e.data.message.message }));
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
e.util.request({
|
e.util.request({
|
||||||
url: "wxapp/home/slide",
|
url: "wxapp/home/slide",
|
||||||
cachetime: "30",
|
cachetime: "30",
|
||||||
success: function (e) {
|
success: function (e) {
|
||||||
e.data.message.errno ||
|
e.data.message.code == 200 ||
|
||||||
a.setData({ slide: e.data.message.message });
|
a.setData({ slide: e.data.message.message });
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
@ -26,7 +26,7 @@ var e;
|
|||||||
url: "wxapp/home/commend",
|
url: "wxapp/home/commend",
|
||||||
cachetime: "30",
|
cachetime: "30",
|
||||||
success: function (e) {
|
success: function (e) {
|
||||||
e.data.message.errno ||
|
e.data.message.code == 200 ||
|
||||||
a.setData({ commend: e.data.message.message });
|
a.setData({ commend: e.data.message.message });
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
@ -6,11 +6,11 @@
|
|||||||
return (
|
return (
|
||||||
t in e
|
t in e
|
||||||
? Object.defineProperty(e, t, {
|
? Object.defineProperty(e, t, {
|
||||||
value: n,
|
value: n,
|
||||||
enumerable: !0,
|
enumerable: !0,
|
||||||
configurable: !0,
|
configurable: !0,
|
||||||
writable: !0,
|
writable: !0,
|
||||||
})
|
})
|
||||||
: (e[t] = n),
|
: (e[t] = n),
|
||||||
e
|
e
|
||||||
);
|
);
|
||||||
@ -52,18 +52,18 @@
|
|||||||
return r(c + (n = n || getApp().siteInfo.token));
|
return r(c + (n = n || getApp().siteInfo.token));
|
||||||
}
|
}
|
||||||
var _typeof =
|
var _typeof =
|
||||||
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
|
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
|
||||||
? function (e) {
|
? function (e) {
|
||||||
return typeof e;
|
return typeof e;
|
||||||
}
|
}
|
||||||
: function (e) {
|
: function (e) {
|
||||||
return e &&
|
return e &&
|
||||||
"function" == typeof Symbol &&
|
"function" == typeof Symbol &&
|
||||||
e.constructor === Symbol &&
|
e.constructor === Symbol &&
|
||||||
e !== Symbol.prototype
|
e !== Symbol.prototype
|
||||||
? "symbol"
|
? "symbol"
|
||||||
: typeof e;
|
: typeof e;
|
||||||
},
|
},
|
||||||
_base = require("base64"),
|
_base = require("base64"),
|
||||||
_md = require("md5"),
|
_md = require("md5"),
|
||||||
_md2 = _interopRequireDefault(_md),
|
_md2 = _interopRequireDefault(_md),
|
||||||
@ -80,20 +80,13 @@
|
|||||||
url: function (e, t) {
|
url: function (e, t) {
|
||||||
var n = getApp(),
|
var n = getApp(),
|
||||||
a =
|
a =
|
||||||
n.siteInfo.siteroot +
|
n.siteInfo.siteroot + "?from=wxapp&";
|
||||||
"?i=" +
|
|
||||||
n.siteInfo.uniacid +
|
|
||||||
"&t=" +
|
|
||||||
n.siteInfo.multiid +
|
|
||||||
"&v=" +
|
|
||||||
n.siteInfo.version +
|
|
||||||
"&from=wxapp&";
|
|
||||||
if (
|
if (
|
||||||
(e &&
|
(e &&
|
||||||
((e = e.split("/"))[0] && (a += "c=" + e[0] + "&"),
|
((e = e.split("/"))[0] && (a += "c=" + e[0] + "&"),
|
||||||
e[1] && (a += "a=" + e[1] + "&"),
|
e[1] && (a += "a=" + e[1] + "&"),
|
||||||
e[2] && (a += "do=" + e[2] + "&")),
|
e[2] && (a += "do=" + e[2] + "&")),
|
||||||
t && "object" === (void 0 === t ? "undefined" : _typeof(t)))
|
t && "object" === (void 0 === t ? "undefined" : _typeof(t)))
|
||||||
)
|
)
|
||||||
for (var r in t)
|
for (var r in t)
|
||||||
r && t.hasOwnProperty(r) && t[r] && (a += r + "=" + t[r] + "&");
|
r && t.hasOwnProperty(r) && t[r] && (a += r + "=" + t[r] + "&");
|
||||||
@ -115,11 +108,11 @@
|
|||||||
(-1 == i.indexOf("http://") &&
|
(-1 == i.indexOf("http://") &&
|
||||||
-1 == i.indexOf("https://") &&
|
-1 == i.indexOf("https://") &&
|
||||||
(i = util.url(i)),
|
(i = util.url(i)),
|
||||||
getUrlParam(i, "state") ||
|
getUrlParam(i, "state") ||
|
||||||
(e.data && e.data.state) ||
|
(e.data && e.data.state) ||
|
||||||
!r ||
|
!r ||
|
||||||
(i = i + "&state=we7sid-" + r),
|
(i = i + "&state=we7sid-" + r),
|
||||||
!e.data || !e.data.m)
|
!e.data || !e.data.m)
|
||||||
) {
|
) {
|
||||||
var o = getCurrentPages();
|
var o = getCurrentPages();
|
||||||
o.length &&
|
o.length &&
|
||||||
@ -131,8 +124,8 @@
|
|||||||
if ((s && (i = i + "&sign=" + s), !i)) return !1;
|
if ((s && (i = i + "&sign=" + s), !i)) return !1;
|
||||||
if (
|
if (
|
||||||
(wx.showNavigationBarLoading(),
|
(wx.showNavigationBarLoading(),
|
||||||
e.showLoading && util.showLoading(),
|
e.showLoading && util.showLoading(),
|
||||||
e.cachetime)
|
e.cachetime)
|
||||||
) {
|
) {
|
||||||
var u = n(i),
|
var u = n(i),
|
||||||
c = wx.getStorageSync(u),
|
c = wx.getStorageSync(u),
|
||||||
@ -159,50 +152,50 @@
|
|||||||
method: e.method ? e.method : "GET",
|
method: e.method ? e.method : "GET",
|
||||||
}),
|
}),
|
||||||
"header",
|
"header",
|
||||||
{ "content-type": "application/x-www-form-urlencoded" }
|
{ "content-type": "application/json" }
|
||||||
),
|
),
|
||||||
_defineProperty(t, "success", function (t) {
|
_defineProperty(t, "success", function (t) {
|
||||||
if (
|
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 (
|
return (
|
||||||
wx.setStorageSync("userInfo", ""),
|
wx.setStorageSync("userInfo", ""),
|
||||||
void util.getUserInfo(function () {
|
void util.getUserInfo(function () {
|
||||||
util.request(e);
|
util.request(e);
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
if (e.fail && "function" == typeof e.fail) e.fail(t);
|
if (e.fail && "function" == typeof e.fail) e.fail(t);
|
||||||
else if (t.data.message) {
|
else if (t.data.message) {
|
||||||
if (null != t.data.data && t.data.data.redirect)
|
if (null != t.data.data && t.data.data.redirect)
|
||||||
n = t.data.data.redirect;
|
n = t.data.data.redirect;
|
||||||
else var n = "";
|
else var n = "";
|
||||||
a.util.message(t.data.message, n, "error");
|
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),
|
_defineProperty(t, "fail", function (t) {
|
||||||
e.cachetime)
|
wx.hideNavigationBarLoading(), wx.hideLoading();
|
||||||
) {
|
var n = require("md5.js")(i),
|
||||||
var r = { data: t.data, expire: f + 1e3 * e.cachetime };
|
a = wx.getStorageSync(n);
|
||||||
wx.setStorageSync(u, r);
|
if (a && a.data)
|
||||||
}
|
return (
|
||||||
}),
|
e.success && "function" == typeof e.success && e.success(a),
|
||||||
_defineProperty(t, "fail", function (t) {
|
console.log("failreadcache:" + i),
|
||||||
wx.hideNavigationBarLoading(), wx.hideLoading();
|
!0
|
||||||
var n = require("md5.js")(i),
|
);
|
||||||
a = wx.getStorageSync(n);
|
e.fail && "function" == typeof e.fail && e.fail(t);
|
||||||
if (a && a.data)
|
}),
|
||||||
return (
|
_defineProperty(t, "complete", function (t) {
|
||||||
e.success && "function" == typeof e.success && e.success(a),
|
e.complete && "function" == typeof e.complete && e.complete(t);
|
||||||
console.log("failreadcache:" + i),
|
}),
|
||||||
!0
|
t)
|
||||||
);
|
|
||||||
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) {
|
getWe7User: function (e, t) {
|
||||||
@ -213,10 +206,7 @@
|
|||||||
cachetime: 0,
|
cachetime: 0,
|
||||||
showLoading: !1,
|
showLoading: !1,
|
||||||
success: function (t) {
|
success: function (t) {
|
||||||
t.data.errno ||
|
t.data.code == 200 || ((n.sessionid = t.data.data.sessionid), (n.memberInfo = t.data.data.userinfo), wx.setStorageSync("userInfo", n)),
|
||||||
((n.sessionid = t.data.data.sessionid),
|
|
||||||
(n.memberInfo = t.data.data.userinfo),
|
|
||||||
wx.setStorageSync("userInfo", n)),
|
|
||||||
"function" == typeof e && e(n);
|
"function" == typeof e && e(n);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@ -237,9 +227,9 @@
|
|||||||
header: { "content-type": "application/x-www-form-urlencoded" },
|
header: { "content-type": "application/x-www-form-urlencoded" },
|
||||||
cachetime: 0,
|
cachetime: 0,
|
||||||
success: function (e) {
|
success: function (e) {
|
||||||
e.data.errno ||
|
e.data.code == 200 ||
|
||||||
((n.memberInfo = e.data.data),
|
((n.memberInfo = e.data.data),
|
||||||
wx.setStorageSync("userInfo", n)),
|
wx.setStorageSync("userInfo", n)),
|
||||||
"function" == typeof t && t(n);
|
"function" == typeof t && t(n);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@ -251,9 +241,7 @@
|
|||||||
cachetime: 0,
|
cachetime: 0,
|
||||||
showLoading: !1,
|
showLoading: !1,
|
||||||
success: function (t) {
|
success: function (t) {
|
||||||
t.data.errno
|
t.data.code == 201 ? "function" == typeof e.fail && e.fail() : "function" == typeof e.success && e.success();
|
||||||
? "function" == typeof e.fail && e.fail()
|
|
||||||
: "function" == typeof e.success && e.success();
|
|
||||||
},
|
},
|
||||||
fail: function () {
|
fail: function () {
|
||||||
"function" == typeof e.fail && e.fail();
|
"function" == typeof e.fail && e.fail();
|
||||||
@ -262,47 +250,47 @@
|
|||||||
},
|
},
|
||||||
getUserInfo: function (e, t) {
|
getUserInfo: function (e, t) {
|
||||||
var n = function () {
|
var n = function () {
|
||||||
console.log("start login"),
|
console.log("start login"),
|
||||||
wx.login({
|
wx.login({
|
||||||
success: function (n) {
|
success: function (n) {
|
||||||
util.getWe7User(function (n) {
|
util.getWe7User(function (n) {
|
||||||
t
|
t
|
||||||
? util.upadteUser(t, function (t) {
|
? util.upadteUser(t, function (t) {
|
||||||
"function" == typeof e && e(t);
|
"function" == typeof e && e(t);
|
||||||
})
|
})
|
||||||
: wx.canIUse("getUserInfo")
|
: wx.canIUse("getUserInfo")
|
||||||
? wx.getUserInfo({
|
? wx.getUserInfo({
|
||||||
withCredentials: !0,
|
withCredentials: !0,
|
||||||
success: function (t) {
|
success: function (t) {
|
||||||
util.upadteUser(t, function (t) {
|
util.upadteUser(t, function (t) {
|
||||||
"function" == typeof e && e(t);
|
"function" == typeof e && e(t);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
fail: function () {},
|
fail: function () { },
|
||||||
})
|
})
|
||||||
: "function" == typeof e && e(n);
|
: "function" == typeof e && e(n);
|
||||||
}, n.code);
|
}, n.code);
|
||||||
},
|
},
|
||||||
fail: function () {},
|
fail: function () { },
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
a = wx.getStorageSync("userInfo") || {};
|
a = wx.getStorageSync("userInfo") || {};
|
||||||
a.sessionid
|
a.sessionid
|
||||||
? util.checkSession({
|
? util.checkSession({
|
||||||
success: function () {
|
success: function () {
|
||||||
t
|
t
|
||||||
? util.upadteUser(t, function (t) {
|
? util.upadteUser(t, function (t) {
|
||||||
"function" == typeof e && e(t);
|
"function" == typeof e && e(t);
|
||||||
})
|
})
|
||||||
: "function" == typeof e && e(a);
|
: "function" == typeof e && e(a);
|
||||||
},
|
},
|
||||||
fail: function () {
|
fail: function () {
|
||||||
(a.sessionid = ""),
|
(a.sessionid = ""),
|
||||||
console.log("relogin"),
|
console.log("relogin"),
|
||||||
wx.removeStorageSync("userInfo"),
|
wx.removeStorageSync("userInfo"),
|
||||||
n();
|
n();
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
: n();
|
: n();
|
||||||
},
|
},
|
||||||
navigateBack: function (e) {
|
navigateBack: function (e) {
|
||||||
@ -337,7 +325,7 @@
|
|||||||
if (
|
if (
|
||||||
("object" == (void 0 === e ? "undefined" : _typeof(e)) &&
|
("object" == (void 0 === e ? "undefined" : _typeof(e)) &&
|
||||||
((t = e.redirect), (n = e.type), (e = e.title)),
|
((t = e.redirect), (n = e.type), (e = e.title)),
|
||||||
t)
|
t)
|
||||||
) {
|
) {
|
||||||
var a = t.substring(0, 9),
|
var a = t.substring(0, 9),
|
||||||
r = "",
|
r = "",
|
||||||
@ -345,33 +333,33 @@
|
|||||||
"navigate:" == a
|
"navigate:" == a
|
||||||
? ((i = "navigateTo"), (r = t.substring(9)))
|
? ((i = "navigateTo"), (r = t.substring(9)))
|
||||||
: "redirect:" == a
|
: "redirect:" == a
|
||||||
? ((i = "redirectTo"), (r = t.substring(9)))
|
? ((i = "redirectTo"), (r = t.substring(9)))
|
||||||
: ((r = t), (i = "redirectTo"));
|
: ((r = t), (i = "redirectTo"));
|
||||||
}
|
}
|
||||||
console.log(r),
|
console.log(r),
|
||||||
n || (n = "success"),
|
n || (n = "success"),
|
||||||
"success" == n
|
"success" == n
|
||||||
? wx.showToast({
|
? wx.showToast({
|
||||||
title: e,
|
title: e,
|
||||||
icon: "success",
|
icon: "success",
|
||||||
duration: 2e3,
|
duration: 2e3,
|
||||||
mask: !!r,
|
mask: !!r,
|
||||||
complete: function () {
|
complete: function () {
|
||||||
r &&
|
r &&
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
wx[i]({ url: r });
|
wx[i]({ url: r });
|
||||||
}, 1800);
|
}, 1800);
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
: "error" == n &&
|
: "error" == n &&
|
||||||
wx.showModal({
|
wx.showModal({
|
||||||
title: "温馨提醒",
|
title: "温馨提醒",
|
||||||
content: e,
|
content: e,
|
||||||
showCancel: !1,
|
showCancel: !1,
|
||||||
complete: function () {
|
complete: function () {
|
||||||
r && wx[i]({ url: r });
|
r && wx[i]({ url: r });
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
(util.user = util.getUserInfo),
|
(util.user = util.getUserInfo),
|
||||||
@ -427,33 +415,33 @@
|
|||||||
a = ["日", "一", "二", "三", "四", "五", "六"];
|
a = ["日", "一", "二", "三", "四", "五", "六"];
|
||||||
return (n = (n = (n = (n = (n = (n = (n = (n = (n = (n = (n = (n =
|
return (n = (n = (n = (n = (n = (n = (n = (n = (n = (n = (n = (n =
|
||||||
n.replace(/yyyy|YYYY/, t.getFullYear())).replace(
|
n.replace(/yyyy|YYYY/, t.getFullYear())).replace(
|
||||||
/yy|YY/,
|
/yy|YY/,
|
||||||
t.getYear() % 100 > 9
|
t.getYear() % 100 > 9
|
||||||
? (t.getYear() % 100).toString()
|
? (t.getYear() % 100).toString()
|
||||||
: "0" + (t.getYear() % 100)
|
: "0" + (t.getYear() % 100)
|
||||||
)).replace(
|
)).replace(
|
||||||
/MM/,
|
/MM/,
|
||||||
t.getMonth() > 9 ? t.getMonth() + 1 : "0" + (t.getMonth() + 1)
|
t.getMonth() > 9 ? t.getMonth() + 1 : "0" + (t.getMonth() + 1)
|
||||||
)).replace(/M/g, t.getMonth())).replace(
|
)).replace(/M/g, t.getMonth())).replace(
|
||||||
/w|W/g,
|
/w|W/g,
|
||||||
a[t.getDay()]
|
a[t.getDay()]
|
||||||
)).replace(
|
)).replace(
|
||||||
/dd|DD/,
|
/dd|DD/,
|
||||||
t.getDate() > 9 ? t.getDate().toString() : "0" + t.getDate()
|
t.getDate() > 9 ? t.getDate().toString() : "0" + t.getDate()
|
||||||
)).replace(/d|D/g, t.getDate())).replace(
|
)).replace(/d|D/g, t.getDate())).replace(
|
||||||
/hh|HH/,
|
/hh|HH/,
|
||||||
t.getHours() > 9 ? t.getHours().toString() : "0" + t.getHours()
|
t.getHours() > 9 ? t.getHours().toString() : "0" + t.getHours()
|
||||||
)).replace(/h|H/g, t.getHours())).replace(
|
)).replace(/h|H/g, t.getHours())).replace(
|
||||||
/mm/,
|
/mm/,
|
||||||
t.getMinutes() > 9
|
t.getMinutes() > 9
|
||||||
? t.getMinutes().toString()
|
? t.getMinutes().toString()
|
||||||
: "0" + t.getMinutes()
|
: "0" + t.getMinutes()
|
||||||
)).replace(/m/g, t.getMinutes())).replace(
|
)).replace(/m/g, t.getMinutes())).replace(
|
||||||
/ss|SS/,
|
/ss|SS/,
|
||||||
t.getSeconds() > 9
|
t.getSeconds() > 9
|
||||||
? t.getSeconds().toString()
|
? t.getSeconds().toString()
|
||||||
: "0" + t.getSeconds()
|
: "0" + t.getSeconds()
|
||||||
)).replace(/s|S/g, t.getSeconds());
|
)).replace(/s|S/g, t.getSeconds());
|
||||||
}),
|
}),
|
||||||
(this.dateAdd = function (e, t, n) {
|
(this.dateAdd = function (e, t, n) {
|
||||||
switch (((n = arguments[2] || new Date()), e)) {
|
switch (((n = arguments[2] || new Date()), e)) {
|
||||||
@ -573,10 +561,10 @@
|
|||||||
return 4 == t || 6 == t || 9 == t || 11 == t
|
return 4 == t || 6 == t || 9 == t || 11 == t
|
||||||
? "30"
|
? "30"
|
||||||
: 2 == t
|
: 2 == t
|
||||||
? (e % 4 == 0 && e % 100 != 0) || e % 400 == 0
|
? (e % 4 == 0 && e % 100 != 0) || e % 400 == 0
|
||||||
? "29"
|
? "29"
|
||||||
: "28"
|
: "28"
|
||||||
: "31";
|
: "31";
|
||||||
}),
|
}),
|
||||||
(this.isNumber = function (e) {
|
(this.isNumber = function (e) {
|
||||||
return /^\d+$/g.test(e);
|
return /^\d+$/g.test(e);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user