diff --git a/pages/topics/message/index.js b/pages/topics/message/index.js index f5f48f7..7f924ae 100644 --- a/pages/topics/message/index.js +++ b/pages/topics/message/index.js @@ -64,7 +64,7 @@ Component({ return new Promise((resolve, reject) => { files.tempFilePaths.forEach(item => { wx.uploadFile({ - url: config.api_url + "/api/common/view", + url: config.api_url + "/api/common/upload", filePath: item, header: { 'token': token, diff --git a/pages/user/myActivity/index.js b/pages/user/myActivity/index.js index ff1d467..8935aad 100644 --- a/pages/user/myActivity/index.js +++ b/pages/user/myActivity/index.js @@ -48,9 +48,9 @@ Page({ list: list }) } else { - const page = this.data.currPage - 1 + const page = this.data.currentPage - 1 this.setData({ - currPage: page + currentPage: page }) wx.showToast({ title: '已加载全部', diff --git a/pages/user/myMessage/index.js b/pages/user/myMessage/index.js index ea57efe..0d23400 100644 --- a/pages/user/myMessage/index.js +++ b/pages/user/myMessage/index.js @@ -62,9 +62,9 @@ Page({ list: list }) } else { - const page = this.data.currPage - 1 + const page = this.data.currentPage - 1 this.setData({ - currPage: page + currentPage: page }) wx.showToast({ title: '已加载全部', @@ -83,7 +83,7 @@ Page({ */ onPullDownRefresh: function () { this.setData({ - currPage: 1, + currentPage: 1, }) this.fetchMyMessageList() }, @@ -92,9 +92,9 @@ Page({ * 页面上拉触底事件的处理函数 */ onReachBottom: function () { - const page = this.data.currPage + 1 + const page = this.data.currentPage + 1 this.setData({ - currPage: page + currentPage: page }) this.fetchMyMessageList() },