diff --git a/src/views/search/searchResult/SearchResult.vue b/src/views/search/searchResult/SearchResult.vue index 859e23e..f40530e 100755 --- a/src/views/search/searchResult/SearchResult.vue +++ b/src/views/search/searchResult/SearchResult.vue @@ -12,7 +12,7 @@ -
大约找到
{{ total }}
条结果
+
大约找到
{{ count }}
条结果
@@ -61,7 +61,7 @@
- +
@@ -75,10 +75,9 @@ export default { return { kw: "", count: 0, - limit: 50, + limit: 20, nextpage: true, - page: 0, - total: 0, + page: 20, list: [] } @@ -104,15 +103,17 @@ export default { // 获取搜索结果数据 getSearchResult() { + this.page = this.page + 1 this.$http.post("/api/search", { keyword: this.kw, - page: this.page + // keyword: "helsinki", + page: this.page, + limit: this.limit }).then(res => { console.log(res, "res"); let data = res.data this.list = data.data - this.total = data.total - this.nextpage = data.nextpage + this.count = data.count }) }, @@ -123,6 +124,7 @@ export default {