diff --git a/pageD/logistics/logistics.vue b/pageD/logistics/logistics.vue index f7c7e12..7eabb61 100644 --- a/pageD/logistics/logistics.vue +++ b/pageD/logistics/logistics.vue @@ -10,7 +10,7 @@ {{item.title}} - + {{item.summary}} @@ -41,9 +41,15 @@ } }) }, - viewLogistics(id) { - this.$u.route('/pageE/order/Logistics', { - oid: id, + viewLogistics(item) { + let url; + if(item.takeawayer_phone) { + url = '/pageE/order/Details'; + } else { + url = '/pageE/order/Logistics'; + } + this.$u.route(url, { + oid: item.order_id, }); } }, diff --git a/pageE/order/Details.vue b/pageE/order/Details.vue index 4c8d77d..448e13e 100644 --- a/pageE/order/Details.vue +++ b/pageE/order/Details.vue @@ -76,7 +76,7 @@ 取消支付 查看物流 - + 联系骑手 @@ -153,7 +153,6 @@ export default { clearInterval(this.timer); }, methods: { - viewStoreDetails(id) { this.$u.route('pageC/merchant/index', { id: id @@ -201,7 +200,7 @@ export default { this.$u.api.getOrderInfo({ order_id: id, }).then(res => { - console.log(res) + // console.log(res) if(res.errCode == 0) { this.orderInfo = res.data; this.setTitle(this.orderInfo.view_type);