浏览代码

优化首页

yuhao 2 年之前
父节点
当前提交
5541201605
共有 1 个文件被更改,包括 4 次插入3 次删除
  1. 4 3
      src/pages/home/index.vue

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

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