Authored by 郝肖肖

个人中心,订单取消,不显示物流信息

@@ -381,7 +381,7 @@ const getCancelOrderReason = () => { @@ -381,7 +381,7 @@ const getCancelOrderReason = () => {
381 */ 381 */
382 const getExpressInfo = (uid, code) => { 382 const getExpressInfo = (uid, code) => {
383 return api.get('', { 383 return api.get('', {
384 - method: 'app.express.get', 384 + method: 'app.express.li',
385 uid: uid, 385 uid: uid,
386 order_code: code 386 order_code: code
387 }); 387 });
@@ -543,6 +543,10 @@ const getOrderDetail = (uid, code) => { @@ -543,6 +543,10 @@ const getOrderDetail = (uid, code) => {
543 } else { 543 } else {
544 detail.statusStr = statusMap[st].valueStr; 544 detail.statusStr = statusMap[st].valueStr;
545 } 545 }
  546 +
  547 + //取消不显示物流信息
  548 + detail.expressInfo = express;
  549 + detail.expressInfo.addressList = _convertAddress(express.express_detail, detail.create_time);
546 } 550 }
547 551
548 552
@@ -557,9 +561,6 @@ const getOrderDetail = (uid, code) => { @@ -557,9 +561,6 @@ const getOrderDetail = (uid, code) => {
557 561
558 detail.allAddress = detail.area + detail.address; 562 detail.allAddress = detail.area + detail.address;
559 563
560 - detail.expressInfo = express;  
561 - detail.expressInfo.addressList = _convertAddress(express.express_detail, detail.create_time);  
562 -  
563 return { 564 return {
564 orderDetail: Object.assign(basicData, detail) 565 orderDetail: Object.assign(basicData, detail)
565 }; 566 };