no message
This commit is contained in:
@@ -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,
|
||||
|
@@ -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 () { },
|
||||
});
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user