|
|
@@ -7,8 +7,6 @@
|
|
|
<div class="page-top-det">
|
|
|
<div>
|
|
|
<div class="page-status">{{ data.status | constantfilter('ORDER_STATUS') }}</div>
|
|
|
- <div class="page-prompt" v-if="data.status == 0">请尽快支付哟~</div>
|
|
|
- <div class="page-prompt" v-if="data.status == 1 || data.status == 2">请耐心等待~</div>
|
|
|
</div>
|
|
|
<div class="page-status-img">
|
|
|
<img :src="statusImg" alt />
|
|
|
@@ -22,6 +20,11 @@
|
|
|
<block v-if="!$util.isEmpty(data.goodsInfoList)">
|
|
|
<list-module v-for="(items, subIndex) in data.goodsInfoList" :key="subIndex" :info="items" />
|
|
|
</block>
|
|
|
+
|
|
|
+ <block v-if="!$util.isEmpty(data.itemList)">
|
|
|
+ <orderItem v-for="(info, idx) in data.itemList" :key="idx" :info="info" ></orderItem>
|
|
|
+ </block>
|
|
|
+
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="module-com order-msg">
|
|
|
@@ -124,16 +127,14 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import { mapGetters } from "vuex";
|
|
|
+import orderItem from "@/components/module/app-order-item";
|
|
|
import ListModule from "@/components/module/app-order-list";
|
|
|
import AppCouponSel from "@/components/app-coupon-sel";
|
|
|
import { getDetail } from "@/api/order";
|
|
|
import { getShopUser } from "@/utils/auth";
|
|
|
export default {
|
|
|
name: "order-detail",
|
|
|
- components: {
|
|
|
- ListModule,
|
|
|
- AppCouponSel
|
|
|
- },
|
|
|
+ components: { ListModule, AppCouponSel,orderItem },
|
|
|
data() {
|
|
|
return {
|
|
|
constant: this.$constant,
|
|
|
@@ -159,9 +160,6 @@ export default {
|
|
|
return img;
|
|
|
}
|
|
|
},
|
|
|
- onLoad() {
|
|
|
- // this.init()
|
|
|
- },
|
|
|
methods: {
|
|
|
init() {
|
|
|
this.getDetail().then(() => {
|