Przeglądaj źródła

Merge branch 'dev' of xiongzhu/raex_front into master

panhui 3 lat temu
rodzic
commit
263966e278
2 zmienionych plików z 6 dodań i 3 usunięć
  1. 3 0
      src/components/product/NewsRecord.vue
  2. 3 3
      src/views/Home.vue

+ 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(