...
|
...
|
@@ -10,17 +10,11 @@ |
|
|
<ul class="list-wrapper">
|
|
|
<li v-for="order in orderList" :key="order.orderCode">
|
|
|
<order-list-item :order="order" />
|
|
|
<div class="actions">
|
|
|
<Button
|
|
|
v-for="action in order.buttons"
|
|
|
:key="action.code"
|
|
|
@click="onAction"
|
|
|
>
|
|
|
{{ action.text }}
|
|
|
</Button>
|
|
|
</div>
|
|
|
<!-- 订单操作 -->
|
|
|
<order-actions :actionList="order.buttons" />
|
|
|
</li>
|
|
|
</ul>
|
|
|
<Modal v-model="isShowModal" @on-sure="() => {}"></Modal>
|
|
|
</scroll>
|
|
|
</div>
|
|
|
</template>
|
...
|
...
|
@@ -30,6 +24,8 @@ import { Button, Scroll } from "cube-ui"; |
|
|
import { createNamespacedHelpers } from "vuex";
|
|
|
import OrderListItem from "./components/order-list-item";
|
|
|
import StatusNav from "./components/status-nav";
|
|
|
import Modal from "../components/confirm/modal";
|
|
|
import OrderActions from "../components/order-actions";
|
|
|
|
|
|
const { mapActions, mapState } = createNamespacedHelpers("order/orderList");
|
|
|
|
...
|
...
|
@@ -38,10 +34,12 @@ export default { |
|
|
Button,
|
|
|
Scroll,
|
|
|
OrderListItem,
|
|
|
StatusNav
|
|
|
StatusNav,
|
|
|
Modal,
|
|
|
OrderActions
|
|
|
},
|
|
|
computed: {
|
|
|
...mapState(["orderList", "pullUpLoad"]),
|
|
|
...mapState(["orderList", "pullUpLoad", "isShowModal"]),
|
|
|
options: function() {
|
|
|
return {
|
|
|
pullUpLoad: this.pullUpLoad
|
...
|
...
|
@@ -62,8 +60,7 @@ export default { |
|
|
...mapActions(["fetchOrderList"]),
|
|
|
fetchMore() {
|
|
|
this.fetchOrderList(this.$route.params);
|
|
|
},
|
|
|
onAction() {}
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
|
$route() {
|
...
|
...
|
@@ -91,32 +88,6 @@ export default { |
|
|
border-bottom: 0;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.actions {
|
|
|
display: flex;
|
|
|
justify-content: flex-end;
|
|
|
margin-top: 40px;
|
|
|
|
|
|
button {
|
|
|
font-size: 24px;
|
|
|
padding: 24px 64px 22px 64px;
|
|
|
color: #999;
|
|
|
letter-spacing: 0;
|
|
|
border-radius: 0;
|
|
|
background: #fff;
|
|
|
border: 1px solid #ccc;
|
|
|
line-height: 1.3;
|
|
|
width: 224px;
|
|
|
margin-right: 20px;
|
|
|
}
|
|
|
|
|
|
& :last-child {
|
|
|
background: #002b47;
|
|
|
color: #fff;
|
|
|
border: 1px solid #002b47;
|
|
|
margin-right: 0;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
</style> |
|
|
\ No newline at end of file |
...
|
...
|
|