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