|
@@ -302,7 +302,7 @@ export default {
|
|
|
this.$http
|
|
this.$http
|
|
|
.get('/orderInfo/get/' + this.$mp.query.id)
|
|
.get('/orderInfo/get/' + this.$mp.query.id)
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
- // console.log(res);
|
|
|
|
|
|
|
+ console.log(res);
|
|
|
this.hideLoading();
|
|
this.hideLoading();
|
|
|
this.caseId = res.caseId;
|
|
this.caseId = res.caseId;
|
|
|
this.status = res;
|
|
this.status = res;
|
|
@@ -337,6 +337,23 @@ export default {
|
|
|
this.status.name = '宝贝正在飞奔到你的怀中!';
|
|
this.status.name = '宝贝正在飞奔到你的怀中!';
|
|
|
this.showTimeTab = true;
|
|
this.showTimeTab = true;
|
|
|
}
|
|
}
|
|
|
|
|
+ if (this.status.orderStatus == 'COMPETED' || this.status.orderStatus == 'SEND') {
|
|
|
|
|
+ // console.log(this.status.orderStatus);
|
|
|
|
|
+ this.$http.get('/orderInfo/checkLogistic', { orderInfoId: this.$mp.query.id }).then(res => {
|
|
|
|
|
+ this.hideLoading();
|
|
|
|
|
+ this.logisTics = res.logistic.result;
|
|
|
|
|
+ let steps = [];
|
|
|
|
|
+ res.logistic.result.list.forEach(item => {
|
|
|
|
|
+ let newStep = {
|
|
|
|
|
+ desc: item.status,
|
|
|
|
|
+ text: item.time
|
|
|
|
|
+ };
|
|
|
|
|
+ steps.push(newStep);
|
|
|
|
|
+ });
|
|
|
|
|
+ this.stepsList = steps;
|
|
|
|
|
+ this.stepsShow = res.logistic.result.list[0];
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
})
|
|
})
|
|
|
.catch(e => {
|
|
.catch(e => {
|
|
|
this.hideLoading();
|
|
this.hideLoading();
|
|
@@ -345,25 +362,6 @@ export default {
|
|
|
title: '请返回首页操作'
|
|
title: '请返回首页操作'
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
|
- // setTimeout(() => {
|
|
|
|
|
- // if (this.status.orderStatus == 'COMPETED' || this.status.orderStatus == 'SEND') {
|
|
|
|
|
- // console.log(this.status.orderStatus);
|
|
|
|
|
- this.$http.get('/orderInfo/checkLogistic', { orderInfoId: this.$mp.query.id }).then(res => {
|
|
|
|
|
- this.hideLoading();
|
|
|
|
|
- this.logisTics = res.logistic.result;
|
|
|
|
|
- let steps = [];
|
|
|
|
|
- res.logistic.result.list.forEach(item => {
|
|
|
|
|
- let newStep = {
|
|
|
|
|
- desc: item.status,
|
|
|
|
|
- text: item.time
|
|
|
|
|
- };
|
|
|
|
|
- steps.push(newStep);
|
|
|
|
|
- });
|
|
|
|
|
- this.stepsList = steps;
|
|
|
|
|
- this.stepsShow = res.logistic.result.list[0];
|
|
|
|
|
- });
|
|
|
|
|
- // }
|
|
|
|
|
- // }, 1000);
|
|
|
|
|
},
|
|
},
|
|
|
again() {
|
|
again() {
|
|
|
this.navigateTo('/pages/details?id=' + this.caseId);
|
|
this.navigateTo('/pages/details?id=' + this.caseId);
|
|
@@ -418,6 +416,11 @@ export default {
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
sales() {
|
|
sales() {
|
|
|
|
|
+ let userId = this.$store.state.userInfo.id;
|
|
|
|
|
+ if (userId == this.store.userId) {
|
|
|
|
|
+ this.toast('此商品是你店铺所有');
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
this.navigateTo('/pages/chat?toUserId=' + this.store.userId + '&toName=' + this.store.storeName);
|
|
this.navigateTo('/pages/chat?toUserId=' + this.store.userId + '&toName=' + this.store.storeName);
|
|
|
},
|
|
},
|
|
|
Apply() {
|
|
Apply() {
|