@@ -192,7 +194,9 @@
![]()
+
{{index+1}}
+
@@ -400,7 +404,7 @@ export default {
this.searchwd = false;
}
if (this.showAll == false) {
- searchBoxHeght.style.height = 70 + "px";
+ searchBoxHeght.style.height = 40 + "px";
} else {
searchBoxHeght.style.height = "auto";
}
@@ -683,6 +687,17 @@ export default {
apiCase.queryPraises(5).then(res => {
if (res.status == 200) {
this.Popularity = res.result;
+ if(res.result.length < 5){
+ for(let i=0;i=(5-res.result.length);i++){
+ this.Popularity.push({
+ authorName:'',
+ count:1,
+ id:'',
+ title:'',
+ })
+ }
+ }
+
}
});
},
@@ -690,6 +705,17 @@ export default {
apiCase.queryComments(5).then(res => {
if (res.status == 200) {
this.Positive = res.result;
+ if(res.result.length < 5){
+ for(let i=0;i=(5-res.result.length);i++){
+ this.Positive.push({
+ authorName:'',
+ count:1,
+ id:'',
+ title:'',
+ })
+ }
+
+ }
}
});
},