|
@@ -5,7 +5,7 @@
|
|
|
<img :src="`${constant.imgUrl}/retail/order/bg.png`" mode="widthFix" />
|
|
<img :src="`${constant.imgUrl}/retail/order/bg.png`" mode="widthFix" />
|
|
|
</view>
|
|
</view>
|
|
|
<view class="page-top-det">
|
|
<view class="page-top-det">
|
|
|
- <view> <view class="page-status">{{ orderInfo.status | constantfilter('ORDER_STATUS') }}</view> </view>
|
|
|
|
|
|
|
+ <view> <view class="page-status">{{orderInfo.status == 1?'待付款':orderInfo.status==2?'待配送':orderInfo.status == 3?'配送中':orderInfo.status ==4?'已完成':orderInfo.status == 5?'已取消':'待付款'}}</view> </view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="page-det">
|
|
<view class="page-det">
|
|
@@ -59,7 +59,7 @@
|
|
|
<view class="module-com order-msg">
|
|
<view class="module-com order-msg">
|
|
|
<view class="module-tit">
|
|
<view class="module-tit">
|
|
|
<text>订单信息</text>
|
|
<text>订单信息</text>
|
|
|
- <text style="float:right;color: #3385ff;font-weight:normal;" @click.stop="goRefund()">发起退款</text>
|
|
|
|
|
|
|
+ <text style="float:right;color: #3385ff;font-weight:normal;" v-if="orderInfo.payStatus == 1 && orderInfo.onlinePay == 2" @click.stop="goRefund()">发起退款</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="module-det">
|
|
<view class="module-det">
|
|
|
<view class="order-msg-blo">
|
|
<view class="order-msg-blo">
|
|
@@ -71,6 +71,10 @@
|
|
|
<view class="label">时间:</view>
|
|
<view class="label">时间:</view>
|
|
|
<view class="value">{{ orderInfo.addTime ? orderInfo.addTime.substr(5,11) : ''}}</view>
|
|
<view class="value">{{ orderInfo.addTime ? orderInfo.addTime.substr(5,11) : ''}}</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <view class="msg-list" v-if="orderInfo.status == 1">
|
|
|
|
|
+ <view class="label">过期:</view>
|
|
|
|
|
+ <view class="value">{{ orderInfo.deadline?orderInfo.deadline:''}}</view>
|
|
|
|
|
+ </view>
|
|
|
<view class="msg-list" v-if="Number(orderInfo.sendCost)>0">
|
|
<view class="msg-list" v-if="Number(orderInfo.sendCost)>0">
|
|
|
<view class="label">运费:</view>
|
|
<view class="label">运费:</view>
|
|
|
<view class="value">¥{{ orderInfo.sendCost ? parseFloat(orderInfo.sendCost) : 0 }}</view>
|
|
<view class="value">¥{{ orderInfo.sendCost ? parseFloat(orderInfo.sendCost) : 0 }}</view>
|
|
@@ -112,6 +116,7 @@ import AppCoupon from "@/components/app-coupon-sel";
|
|
|
import ModalModule from "@/components/plugin/modal";
|
|
import ModalModule from "@/components/plugin/modal";
|
|
|
import RateModule from "@/components/plugin/rate";
|
|
import RateModule from "@/components/plugin/rate";
|
|
|
import { getDetB} from "@/api/order";
|
|
import { getDetB} from "@/api/order";
|
|
|
|
|
+const commonUtil = require("@/utils/common.js");
|
|
|
export default {
|
|
export default {
|
|
|
name: "detail",
|
|
name: "detail",
|
|
|
components: { detailGoods, AppCoupon, ModalModule, RateModule,detailItem },
|
|
components: { detailGoods, AppCoupon, ModalModule, RateModule,detailItem },
|
|
@@ -137,6 +142,7 @@ export default {
|
|
|
getDetailInfo() {
|
|
getDetailInfo() {
|
|
|
return getDetB({ id: this.option.id }).then(res => {
|
|
return getDetB({ id: this.option.id }).then(res => {
|
|
|
this.orderInfo = res.data;
|
|
this.orderInfo = res.data;
|
|
|
|
|
+ this.orderInfo.deadline = commonUtil.getFormatDate(this.orderInfo.deadline,'MM-dd hh:mm')
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|