...
|
...
|
@@ -6,6 +6,7 @@ |
|
|
<status-nav class="order-status-nav" :status="status" :owner="owner" @select="onStatusChange"/>
|
|
|
<div class="content-wrapper">
|
|
|
<LayoutScroll
|
|
|
@scroll="scrollHandler"
|
|
|
@pulling-up="fetchData"
|
|
|
@pulling-down="onRefresh"
|
|
|
:loading="loadingOptions"
|
...
|
...
|
@@ -87,6 +88,11 @@ export default { |
|
|
CountDown,
|
|
|
VideoPlayer
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
scrollY: 0
|
|
|
}
|
|
|
},
|
|
|
props: {
|
|
|
owner: String,
|
|
|
status: Number
|
...
|
...
|
@@ -106,6 +112,11 @@ export default { |
|
|
};
|
|
|
}
|
|
|
},
|
|
|
activated() {
|
|
|
if (this.yoho.direction === 'back') {
|
|
|
this.scrollY && this.$refs.scroll.scrollTo(this.scrollY);
|
|
|
}
|
|
|
},
|
|
|
|
|
|
// 获取订单数据
|
|
|
asyncData({ store, router }) {
|
...
|
...
|
@@ -119,6 +130,9 @@ export default { |
|
|
methods: {
|
|
|
...mapActions(['fetchOrderList', 'confirmReceipt']),
|
|
|
...mapMutations(['resetData']),
|
|
|
scrollHandler({y}) {
|
|
|
this.scrollY = -y;
|
|
|
},
|
|
|
fetchData() {
|
|
|
this.fetchOrderList({
|
|
|
owner: this.owner,
|
...
|
...
|
|