|
|
<template>
|
|
|
<div>
|
|
|
<div class="content-wrapper">
|
|
|
<status-nav />
|
|
|
<scroll :data="orderList" class="order-list-scroll-wrap">
|
|
|
<scroll
|
|
|
@pulling-up="fetchMore"
|
|
|
:options="options"
|
|
|
:data="orderList"
|
|
|
class="order-list-scroll-wrap"
|
|
|
>
|
|
|
<ul class="list-wrapper">
|
|
|
<li v-for="order in orderList" :key="order.orderCode">
|
|
|
<order-list-item :order="order">
|
...
|
...
|
@@ -34,14 +39,21 @@ export default { |
|
|
StatusNav
|
|
|
},
|
|
|
computed: {
|
|
|
...mapState(["orderList"])
|
|
|
...mapState(["orderList", "pullUpLoad"]),
|
|
|
options: function() {
|
|
|
return {
|
|
|
pullUpLoad: this.pullUpLoad
|
|
|
};
|
|
|
}
|
|
|
},
|
|
|
|
|
|
// 获取订单数据
|
|
|
asyncData({ store, router }) {
|
|
|
const { owner, status } = router.params;
|
|
|
store.dispatch("order/orderList/fetchOrderList", { owner, status });
|
|
|
},
|
|
|
mounted() {
|
|
|
console.log("-------------------", this.$route.params);
|
|
|
const { owner, status } = this.$route.params;
|
|
|
this.fetchOrderList({ owner, status });
|
|
|
},
|
...
|
...
|
@@ -55,41 +67,48 @@ export default { |
|
|
};
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
.order-list-scroll-wrap {
|
|
|
.list-wrapper {
|
|
|
li {
|
|
|
padding: 40px 40px;
|
|
|
border-bottom: 1px solid #eee;
|
|
|
}
|
|
|
.content-wrapper {
|
|
|
height: calc(100vh);
|
|
|
overflow-x: hidden;
|
|
|
overflow-y: auto;
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
|
|
& :last-child {
|
|
|
border-bottom: 0;
|
|
|
.order-list-scroll-wrap {
|
|
|
.list-wrapper {
|
|
|
li {
|
|
|
padding: 40px 40px;
|
|
|
border-bottom: 1px solid #eee;
|
|
|
}
|
|
|
|
|
|
& :last-child {
|
|
|
border-bottom: 0;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.actions {
|
|
|
display: flex;
|
|
|
justify-content: flex-end;
|
|
|
margin-top: 40px;
|
|
|
.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;
|
|
|
}
|
|
|
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;
|
|
|
& :last-child {
|
|
|
background: #002b47;
|
|
|
color: #fff;
|
|
|
border: 1px solid #002b47;
|
|
|
margin-right: 0;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
...
|
...
|
|