Browse Source

优化首页

yuhao 2 years ago
parent
commit
5541201605
1 changed files with 4 additions and 3 deletions
  1. 4 3
      src/pages/home/index.vue

+ 4 - 3
src/pages/home/index.vue

@@ -355,9 +355,10 @@ export default {
355
       this.tabIndex = index;
355
       this.tabIndex = index;
356
       this.type = type;
356
       this.type = type;
357
       this.orderList = [];
357
       this.orderList = [];
358
-      this.loading = false;
358
+      this.loading = true;
359
       this.finished = false;
359
       this.finished = false;
360
       this.page = 1;
360
       this.page = 1;
361
+      this.getToday()
361
     },
362
     },
362
     //搜索订单
363
     //搜索订单
363
     searchOrder() {
364
     searchOrder() {
@@ -377,6 +378,7 @@ export default {
377
       }, 1000);
378
       }, 1000);
378
     },
379
     },
379
     getToday() {
380
     getToday() {
381
+      console.log(this.orderList);
380
       setTimeout(() => {
382
       setTimeout(() => {
381
         api
383
         api
382
           .getToday({
384
           .getToday({
@@ -777,10 +779,9 @@ export default {
777
 
779
 
778
     .list-info {
780
     .list-info {
779
       height: 450px;
781
       height: 450px;
780
-      overflow: auto;
781
       border-radius: 0 8px 0 0;
782
       border-radius: 0 8px 0 0;
782
-      overflow: hidden;
783
       background-color: #fff;
783
       background-color: #fff;
784
+      overflow: auto;
784
       .user-info {
785
       .user-info {
785
         padding: 14px 0;
786
         padding: 14px 0;
786
         border-bottom: 1px solid #e6e6e6;
787
         border-bottom: 1px solid #e6e6e6;