|
@@ -714,6 +714,7 @@ import MxDatePicker from '@/components/mx-datepicker/mx-datepicker.vue';
|
|
|
import { getCgExpressTrack,expressDetail } from "@/api/express"
|
|
import { getCgExpressTrack,expressDetail } from "@/api/express"
|
|
|
import { cancelCallExpressOrder,mockNotify } from '@/api/shop/shop-express'
|
|
import { cancelCallExpressOrder,mockNotify } from '@/api/shop/shop-express'
|
|
|
import { cancelDeliveryOrder, getCancelReason, addTip as addTipApi } from '@/api/express/delivery'
|
|
import { cancelDeliveryOrder, getCancelReason, addTip as addTipApi } from '@/api/express/delivery'
|
|
|
|
|
+import { buildOrderShareTitle } from '@/utils/orderShare'
|
|
|
export default {
|
|
export default {
|
|
|
name: "orderDetail",
|
|
name: "orderDetail",
|
|
|
components: {
|
|
components: {
|
|
@@ -1831,15 +1832,8 @@ export default {
|
|
|
id: this.option.id
|
|
id: this.option.id
|
|
|
});
|
|
});
|
|
|
this.detailInfo = res.data;
|
|
this.detailInfo = res.data;
|
|
|
- let customName = this.detailInfo.customName ? this.detailInfo.customName : ''
|
|
|
|
|
- let actPrice = this.detailInfo.actPrice ? parseFloat(this.detailInfo.actPrice) : 0
|
|
|
|
|
- this.title = customName+' '+this.detailInfo.addTime.substr(5,11)+' ¥'+actPrice
|
|
|
|
|
- if(this.detailInfo.payTime!='0000-00-00 00:00:00'){
|
|
|
|
|
- this.title = customName+' '+this.detailInfo.payTime.substr(5,11)+' ¥'+actPrice
|
|
|
|
|
- }
|
|
|
|
|
- if(this.detailInfo.tkPrice && Number(this.detailInfo.tkPrice)>0){
|
|
|
|
|
- this.title = this.title+' 已退¥'+parseFloat(this.detailInfo.tkPrice)
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // 分享标题日期用发货日,与订单列表 buildOrderShareTitle 一致
|
|
|
|
|
+ this.title = buildOrderShareTitle(this.detailInfo)
|
|
|
if(this.detailInfo.status == 1){
|
|
if(this.detailInfo.status == 1){
|
|
|
this.title = this.title+' 点击付款,10分钟后失效'
|
|
this.title = this.title+' 点击付款,10分钟后失效'
|
|
|
}
|
|
}
|