Browse Source

修改未登录时的数据问题

plg 3 months ago
parent
commit
468c166ab6
2 changed files with 13 additions and 4 deletions
  1. 3 2
      src/views/Plan.vue
  2. 10 2
      src/views/TestRecord.vue

+ 3 - 2
src/views/Plan.vue

@@ -268,9 +268,10 @@ onUnmounted(() => {
                 <div>
                     <div style="box-shadow: 0px 4px 32px 0px rgba(0,0,0,0.17);"
                         v-show="planList.length == 0 && isFinshed">
-                        <div style="padding:10% 20% ;" v-show="planList.length == 0 && isFinshed">
+                        <div style="padding:10% 20%;display: flex;justify-content: center ;"
+                            v-show="planList.length == 0 && isFinshed">
                             <!-- <img width="100%" src="../assets/planNo.png"> -->
-                            <img width="60%" style="margin-left: 20%; " src="../assets/planNo.png">
+                            <img width="400px" src=" ../assets/planNo.png">
                         </div>
                     </div>
                     <div class="test_record_out" v-for="item in planList">

+ 10 - 2
src/views/TestRecord.vue

@@ -173,9 +173,17 @@ onUnmounted(() => {
             <div class="kply_inner">
                 <!--  -->
                 <div>
-                    <div style="width: 1200px;margin-left:32px; box-shadow: 0px 4px 32px 0px rgba(0,0,0,0.17);"
+                    <!-- <div style="width: 1200px;margin-left:32px; box-shadow: 0px 4px 32px 0px rgba(0,0,0,0.17);"
                         v-show="list.length == 0">
-                        <img width="60%" style="margin-left: 20%;" src="../assets/planNo.png">
+                        <img width="400px" src="../assets/planNo.png">
+                    </div> -->
+
+                    <div style="box-shadow: 0px 4px 32px 0px rgba(0,0,0,0.17);width: 1200px;margin-left:32px"
+                        v-show="list.length == 0">
+                        <div style="padding:10% 20%;display: flex;justify-content: center ;">
+                            <!-- <img width="100%" src="../assets/planNo.png"> -->
+                            <img width="400px" src=" ../assets/planNo.png">
+                        </div>
                     </div>
                     <div class="infinite-list-wrapper" style="overflow: auto" v-infinite-scroll="getData">
                         <div>