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-10-31 14:41:03 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c6fa3df5f1af67b3a75d6abea3c86fccd3a702c7
c6fa3df5
1 parent
1471affd
fix
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
src/pages/joinList/index.vue
src/pages/joinList/index.vue
View file @
c6fa3df
...
...
@@ -158,10 +158,10 @@ export default {
async onShow () {
const info = await activityInfoAPI({ i: getCurrentPageParam().id });
if (info.code) {
//
//
判断是否超过活动时间
//
if (dayjs(info.data.activity.activity_time).isBefore(dayjs(info.data.server_time))) {
//
this.absent = true;
//
}
// 判断是否超过活动时间
if (dayjs(info.data.activity.activity_time).isBefore(dayjs(info.data.server_time))) {
this.absent = true;
}
}
const { code, data } = await listRegAPI({ activity_id: getCurrentPageParam().id, type: this.member_type, page: this.page, limit: this.limit });
if (code) {
...
...
@@ -169,12 +169,12 @@ export default {
this.volunteer_count = data.volunteer_count;
this.sign_count = data.sign_count;
this.reg_list = data.reg_list;
//
if (this.absent) {
//
// 活动超时翻状态
//
this.reg_list.forEach(item => {
//
item.status = item.status === 'apply' ? 'absent' : item.status;
//
})
//
}
if (this.absent) {
// 活动超时翻状态
this.reg_list.forEach(item => {
item.status = item.status === 'apply' ? 'absent' : item.status;
})
}
}
},
methods: {
...
...
Please
register
or
login
to post a comment