diff --git a/common/api/order.js b/common/api/order.js index cf4085d..f67f408 100644 --- a/common/api/order.js +++ b/common/api/order.js @@ -2,7 +2,7 @@ * @Author: ch * @Date: 2022-03-29 17:38:17 * @LastEditors: ch - * @LastEditTime: 2022-04-18 11:04:14 + * @LastEditTime: 2022-04-18 15:37:05 * @Description: file content */ import {ToAsyncAwait, MsbRequestTk} from '@/common/utils'; @@ -41,6 +41,13 @@ export const ApiGetOrderDetail = (id) => */ export const ApiGetOrderProductDetail = ({orderProductId}) => ToAsyncAwait(MsbRequestTk.get(`${BASE_URL}/app/tradeOrder/product/${orderProductId}`)); + +/** + * 获取物流信息 + * @param {*} orderProductId + */ +export const ApiGetOrderLogistics = ({orderId}) => + ToAsyncAwait(MsbRequestTk.get(`${BASE_URL}/app/tradeOrder/logistics/${orderId}`)); /** * 提交订单 * @param {*} data diff --git a/pages.json b/pages.json index 933101c..ae74b09 100644 --- a/pages.json +++ b/pages.json @@ -154,6 +154,14 @@ "navigationBarBackgroundColor" : "#F8F8F8" } }, + { + "path": "pages/order/logisitcsInfo", + "aliasPath" : "/logisitcsInfo", + "style": { + "navigationBarTitleText": "物流详情", + "navigationBarBackgroundColor" : "#F8F8F8" + } + }, { "path": "pages/order/paySuccess", "aliasPath" : "/paySuccess", diff --git a/pages/order/detail/components/LogisitcsInfo.vue b/pages/order/detail/components/LogisitcsInfo.vue index c099b21..6fe1dac 100644 --- a/pages/order/detail/components/LogisitcsInfo.vue +++ b/pages/order/detail/components/LogisitcsInfo.vue @@ -2,14 +2,28 @@ * @Author: ch * @Date: 2022-04-15 16:36:02 * @LastEditors: ch - * @LastEditTime: 2022-04-15 17:00:16 + * @LastEditTime: 2022-04-18 16:31:12 * @Description: file content --> @@ -22,15 +36,47 @@ export default { type : Object, defalut : () => ({}) } + }, + computed : { + lastLogisitcs (){ + const list = this.logisitcsInfo && this.logisitcsInfo.logisticsDataList + if(list && list.length > 0){ + return list[0] + }else{ + return null + } + + } } } \ No newline at end of file diff --git a/pages/order/detail/components/Operation.vue b/pages/order/detail/components/Operation.vue index 8231321..4d2419a 100644 --- a/pages/order/detail/components/Operation.vue +++ b/pages/order/detail/components/Operation.vue @@ -2,15 +2,23 @@ * @Author: ch * @Date: 2022-04-15 17:46:10 * @LastEditors: ch - * @LastEditTime: 2022-04-15 18:02:18 + * @LastEditTime: 2022-04-18 16:16:26 * @Description: file content -->