Browse Source

fit:附件下载包分页

wangshan 3 years ago
parent
commit
c8f4095973

+ 0 - 1
src/jfw/modules/subscribepay/src/entity/commonApi.go

@@ -181,7 +181,6 @@ func InitFindRecord(userId, resourceType, queryTime, platform string, pageSize,
 	if pageSize == 0 {
 		pageSize = 10
 	}
-	pageNum += 1
 	if pageNum <= 0 {
 		pageNum = 1
 	}

+ 3 - 3
src/web/staticres/common-module/file-pack/js/index-wx.js

@@ -61,7 +61,7 @@ var vm = new Vue({
       contracted: false,
       listInfo: {
         value: '',
-        pageNum: 0,
+        pageNum: 1,
         pageSize: 10,
         total: -1,
         loading: true,
@@ -143,7 +143,6 @@ var vm = new Vue({
     	this.points.usage = r.data.total
         this.working = false
         this.empty = true
-        this.listInfo.pageNum++
         if (this.listInfo.pageNum === 1) {
           if (r.data.total || r.data.total === 0) {
             this.listInfo.total = r.data.total
@@ -151,6 +150,7 @@ var vm = new Vue({
             this.listInfo.finished = true
           }
         }
+        this.listInfo.pageNum++
 
         if (Array.isArray(r.data.list) && r.data.list.length !== 0) {
           this.list = this.list.concat(r.data.list.map(function (v) {
@@ -251,7 +251,7 @@ var vm = new Vue({
     confirmed(val) {
       this.years = val.getFullYear()
       this.months = val.getMonth() + 1
-      this.listInfo.pageNum = 0
+      this.listInfo.pageNum = 1
       this.list = []
       this.listInfo.total = -1
       this.listInfo.finished = false

+ 3 - 3
src/web/staticres/common-module/file-pack/js/index.js

@@ -61,7 +61,7 @@ var vm = new Vue({
       contracted: false,
       listInfo: {
         value: '',
-        pageNum: 0,
+        pageNum: 1,
         pageSize: 10,
         total: -1,
         loading: true,
@@ -144,7 +144,6 @@ var vm = new Vue({
     	this.points.usage = r.data.total
         this.working = false
         this.empty = true
-        this.listInfo.pageNum++
         if (this.listInfo.pageNum === 1) {
           if (r.data.total || r.data.total === 0) {
             this.listInfo.total = r.data.total
@@ -152,6 +151,7 @@ var vm = new Vue({
             this.listInfo.finished = true
           }
         }
+        this.listInfo.pageNum++
 
         if (Array.isArray(r.data.list) && r.data.list.length !== 0) {
           this.list = this.list.concat(r.data.list.map(function (v) {
@@ -253,7 +253,7 @@ var vm = new Vue({
     confirmed (val) {
       this.years = val.getFullYear()
       this.months = val.getMonth() + 1
-      this.listInfo.pageNum = 0
+      this.listInfo.pageNum = 1
       this.list = []
       this.listInfo.total = -1
       this.listInfo.finished = false