|
@@ -19,7 +19,9 @@ Page({
|
|
|
device_no: "",
|
|
|
order_num: "",
|
|
|
is_deposit: 1,
|
|
|
- netwrok_id: 0
|
|
|
+ netwrok_id: 0,
|
|
|
+ order_type: 0,
|
|
|
+
|
|
|
|
|
|
|
|
|
},
|
|
@@ -37,10 +39,11 @@ Page({
|
|
|
console.log(options);
|
|
|
this.setData({
|
|
|
logisticsStatus: app.globalData.logisticsStatus,
|
|
|
- order_num: is_deposit==1?0:order_num,
|
|
|
+ order_num: order_num,
|
|
|
netwrok_id: netwrok_id,
|
|
|
is_deposit: is_deposit,
|
|
|
- device_id:device_id
|
|
|
+ device_id:device_id,
|
|
|
+ order_type: order_type
|
|
|
})
|
|
|
|
|
|
|
|
@@ -124,6 +127,7 @@ Page({
|
|
|
order_type: order_type,
|
|
|
order_num: this.data.order_num,
|
|
|
logistics_status: that.data.is_deposit == 1 ? 1 : 6,
|
|
|
+ is_deposit: that.data.is_deposit
|
|
|
}
|
|
|
console.log(data);
|
|
|
|
|
@@ -171,21 +175,21 @@ Page({
|
|
|
that.setData({
|
|
|
device_no: res.message.data.device_no,
|
|
|
})
|
|
|
-
|
|
|
wx.showToast({
|
|
|
title: res.message.msg,
|
|
|
})
|
|
|
+ console.log(res.message.msg)
|
|
|
// wx.setTimeout(() => {
|
|
|
// wx.hideLoading();
|
|
|
// }, 1000);
|
|
|
|
|
|
|
|
|
setTimeout(function () {
|
|
|
- wx.hideLoading();
|
|
|
+ // wx.hideLoading();
|
|
|
that.setData({
|
|
|
show: !that.data.show
|
|
|
})
|
|
|
- }, 1000)
|
|
|
+ }, 3000)
|
|
|
|
|
|
} else {
|
|
|
console.log(res);
|
|
@@ -194,6 +198,7 @@ Page({
|
|
|
spot_id: res.message.data.spot_id,
|
|
|
device_no: res.message.data.device_id
|
|
|
})
|
|
|
+
|
|
|
if (type == 1) {
|
|
|
that.storeClothes()
|
|
|
} else {
|
|
@@ -202,7 +207,7 @@ Page({
|
|
|
|
|
|
}
|
|
|
|
|
|
- wx.hideLoading();
|
|
|
+ // wx.hideLoading();
|
|
|
|
|
|
}).catch(function (err) {
|
|
|
console.log(err.message)
|
|
@@ -232,6 +237,7 @@ Page({
|
|
|
}, 1000);
|
|
|
|
|
|
} else {
|
|
|
+ that.getorderList(that.data.order_type, that.data.netwrok_id);
|
|
|
console.log(res);
|
|
|
if (is_deposit == 1) {
|
|
|
that.storeClothes()
|
|
@@ -265,6 +271,7 @@ Page({
|
|
|
}, 1000);
|
|
|
|
|
|
} else {
|
|
|
+ that.getorderList(that.data.order_type, that.data.netwrok_id);
|
|
|
console.log(res);
|
|
|
if (type == 1) {
|
|
|
that.storeClothes()
|
|
@@ -335,7 +342,6 @@ Page({
|
|
|
|
|
|
} else {
|
|
|
console.log(res);
|
|
|
-
|
|
|
if (that.is_deposit == 1) {
|
|
|
that.storeClothes()
|
|
|
} else {
|