@@ -54,27 +58,28 @@ export default {
this.getData()
},
methods: {
- pullingUpHandler () {
- if (this.searchQuery.page * this.searchQuery.pageSize <= this.total) {
- this.searchQuery.page = this.searchQuery.page + 1
- this.getData()
- }
- },
- getData () {
- const config = {
- _this: this,
- loading: 'loading'
- }
- this.$http._getData("lawss/NewsFeed/getNewsFeed", this.searchQuery, config).then(res => {
- if (res.ok) {
- this.total = res.data.total
-
- if (this.searchQuery.page === 1) {
- this.list = res.data.records
- } else {
- this.list = [...this.list, ...res.data.records]
- }
+ getData (page) {
+ return new Promise((resolve, reject) => {
+ const config = {
+ _this: this,
+ loading: 'loading'
}
+ if (page) {
+ this.searchQuery.page = page
+ }
+ this.$http._getData("lawss/NewsFeed/getNewsFeed", this.searchQuery, config).then(res => {
+ if (res.ok) {
+ this.total = res.data.total
+
+ if (this.searchQuery.page === 1) {
+ this.list = res.data.records
+ } else {
+ this.list = [...this.list, ...res.data.records]
+ }
+ }
+ }).finally(() => {
+ resolve()
+ })
})
},
getDicTypeListCode () {
diff --git a/src/pages/phone/standDynamics/index.vue b/src/pages/phone/standDynamics/index.vue
index 3ad0f0720..834847a84 100644
--- a/src/pages/phone/standDynamics/index.vue
+++ b/src/pages/phone/standDynamics/index.vue
@@ -8,13 +8,13 @@
-
+
-
+
-
+