|
|
<template>
|
|
|
<div class="content-wrapper">
|
|
|
<status-nav />
|
|
|
|
|
|
<scroll
|
|
|
@pulling-up="fetchMore"
|
|
|
:options="options"
|
|
|
:data="orderList"
|
|
|
class="order-list-scroll-wrap"
|
|
|
v-show="!isShowEmpty"
|
|
|
>
|
|
|
<ul class="list-wrapper">
|
|
|
<li v-for="order in orderList" :key="order.orderCode">
|
|
|
<order-info :order="order" />
|
|
|
<order-list-item :order="order" />
|
|
|
<!-- 订单操作 -->
|
|
|
<order-actions :order="order" />
|
|
|
</li>
|
|
|
</ul>
|
|
|
<Modal v-model="isShowModal" @on-sure="() => {}"></Modal>
|
|
|
</scroll>
|
|
|
|
|
|
<empty-list v-show="isShowEmpty" />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import { Button, Scroll } from "cube-ui";
|
|
|
import { Scroll } from "cube-ui";
|
|
|
import { createNamespacedHelpers } from "vuex";
|
|
|
|
|
|
import OrderListItem from "./components/order-item";
|
|
|
import StatusNav from "./components/status-nav";
|
|
|
import Modal from "../components/confirm/modal";
|
|
|
import OrderInfo from "./components/order-info.vue";
|
|
|
import EmptyList from "./components/empty";
|
|
|
|
|
|
import OrderActions from "../components/order-actions";
|
|
|
|
|
|
const { mapActions, mapState, mapMutations } = createNamespacedHelpers(
|
...
|
...
|
@@ -33,15 +40,15 @@ const { mapActions, mapState, mapMutations } = createNamespacedHelpers( |
|
|
|
|
|
export default {
|
|
|
components: {
|
|
|
Button,
|
|
|
Scroll,
|
|
|
OrderListItem,
|
|
|
StatusNav,
|
|
|
Modal,
|
|
|
OrderActions
|
|
|
OrderActions,
|
|
|
OrderInfo,
|
|
|
EmptyList
|
|
|
},
|
|
|
computed: {
|
|
|
...mapState(["orderList", "pullUpLoad", "isShowModal"]),
|
|
|
...mapState(["orderList", "pullUpLoad", "isShowEmpty"]),
|
|
|
options: function() {
|
|
|
return {
|
|
|
pullUpLoad: this.pullUpLoad
|
...
|
...
|
|