Authored by lea guo

订单列表样式优化

@@ -65,6 +65,7 @@ export default { @@ -65,6 +65,7 @@ export default {
65 .order-status-nav-scroll-wrap { 65 .order-status-nav-scroll-wrap {
66 transform: rotate(0deg); // fix 子元素超出边框圆角部分不隐藏的问题 66 transform: rotate(0deg); // fix 子元素超出边框圆角部分不隐藏的问题
67 position: relative; 67 position: relative;
  68 + z-index: 10;
68 69
69 .list-wrapper { 70 .list-wrapper {
70 white-space: nowrap; 71 white-space: nowrap;
@@ -78,7 +79,7 @@ export default { @@ -78,7 +79,7 @@ export default {
78 79
79 .list-item { 80 .list-item {
80 display: inline-block; 81 display: inline-block;
81 - padding: 22px 0; 82 + padding: 20px 0;
82 margin-left: 38px; 83 margin-left: 38px;
83 84
84 &:last-child { 85 &:last-child {
@@ -47,8 +47,8 @@ export default { @@ -47,8 +47,8 @@ export default {
47 47
48 // 获取订单数据 48 // 获取订单数据
49 asyncData({ store, router }) { 49 asyncData({ store, router }) {
50 - const { owner, status } = router.params;  
51 - store.dispatch("order/orderList/fetchOrderList", { owner, status }); 50 + // const { owner, status } = router.params;
  51 + // store.dispatch("order/orderList/fetchOrderList", { owner, status });
52 }, 52 },
53 mounted() { 53 mounted() {
54 const { owner, status } = this.$route.params; 54 const { owner, status } = this.$route.params;
@@ -60,6 +60,14 @@ export default { @@ -60,6 +60,14 @@ export default {
60 const { owner, status } = this.$route.params; 60 const { owner, status } = this.$route.params;
61 this.fetchOrderList({ owner, status }); 61 this.fetchOrderList({ owner, status });
62 } 62 }
  63 + },
  64 + watch: {
  65 + $route() {
  66 + console.log("---------route change----------");
  67 +
  68 + const { owner, status } = this.$route.params;
  69 + this.fetchOrderList({ owner, status });
  70 + }
63 } 71 }
64 }; 72 };
65 </script> 73 </script>