panhui 3 жил өмнө
parent
commit
68f5d6fc06

+ 3 - 0
src/components/product/NewsRecord.vue

@@ -100,6 +100,7 @@ export default {
     border-radius: 12px;
     overflow: hidden;
     padding: 12px 16px;
+    overflow: hidden;
     .flex();
 
     .bg {
@@ -145,6 +146,8 @@ export default {
         .flex-col();
         justify-content: space-between;
         flex-grow: 1;
+        overflow: hidden;
+        margin-right: 12px;
         .name {
             font-size: 14px;
             font-weight: bold;

+ 3 - 3
src/views/Home.vue

@@ -245,9 +245,9 @@ export default {
             this.showTips();
         }, 500);
 
-        this.$http.get('/user/topTen').then(res => {
-            this.hotUsers = res;
-        });
+        // this.$http.get('/user/topTen').then(res => {
+        //     this.hotUsers = res;
+        // });
 
         this.$nextTick(() => {
             this.$el.parentNode.childNodes[1].className = this.$el.parentNode.childNodes[1].className.replace(