Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
swx_weapp
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2022-11-01 11:08:42 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
53451e7a524bc41f518a3793a4b2f710bccf3283
53451e7a
1 parent
5de6dca7
fix 列表接口新增服务器时间比对
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
src/pages/index/index.vue
src/pages/index/index.vue
View file @
53451e7
<!--
* @Date: 2022-09-19 14:11:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-1
0-28 16:54:12
* @LastEditTime: 2022-1
1-01 09:28:54
* @FilePath: /swx/src/pages/index/index.vue
* @Description: 首页
-->
...
...
@@ -110,6 +110,10 @@ export default {
// url: '../createActivity/index'
// })
// }
// 绑定服务器时间,判断状态
data.activity_list.forEach(item => {
item.server_time = data.server_time;
});
this.activity_list = data.activity_list;
this.carousel = data.carousel;
this.page = this.page + 1;
...
...
@@ -159,6 +163,10 @@ export default {
const { code, data } = await activityHomeAPI({ page: this.page, limit: this.limit });
if (code) {
if (data.activity_list.length) {
// 绑定服务器时间,判断状态
data.activity_list.forEach(item => {
item.server_time = data.server_time;
});
this.activity_list = this.activity_list.concat(data.activity_list);
this.page = this.page + 1;
this.flag = true;
...
...
Please
register
or
login
to post a comment