Showing
2 changed files
with
10 additions
and
10 deletions
| ... | @@ -93,9 +93,9 @@ export default { | ... | @@ -93,9 +93,9 @@ export default { |
| 93 | const { code, data } = await joinListAPI({ type: this.role, status: '', is_stat: 1, page: this.page, limit: this.limit }); | 93 | const { code, data } = await joinListAPI({ type: this.role, status: '', is_stat: 1, page: this.page, limit: this.limit }); |
| 94 | if (code) { | 94 | if (code) { |
| 95 | this.activity_list = data.activity_list; | 95 | this.activity_list = data.activity_list; |
| 96 | - this.reg_count = data.reg_count; | 96 | + this.reg_count = data.reg_count ? data.reg_count : 0; |
| 97 | - this.sign_count = data.sign_count; | 97 | + this.sign_count = data.sign_count ? data.sign_count : 0; |
| 98 | - this.volunteer_count = data.volunteer_count; | 98 | + this.volunteer_count = data.volunteer_count ? data.volunteer_count : 0; |
| 99 | this.page = this.page + 1; | 99 | this.page = this.page + 1; |
| 100 | } | 100 | } |
| 101 | }, | 101 | }, | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-09-19 14:11:06 | 2 | * @Date: 2022-09-19 14:11:06 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2022-10-28 15:29:50 | 4 | + * @LastEditTime: 2022-10-31 13:10:41 |
| 5 | * @FilePath: /swx/src/pages/myCreateActivity/index.vue | 5 | * @FilePath: /swx/src/pages/myCreateActivity/index.vue |
| 6 | * @Description: 创建的活动页面 | 6 | * @Description: 创建的活动页面 |
| 7 | --> | 7 | --> |
| ... | @@ -160,9 +160,9 @@ export default { | ... | @@ -160,9 +160,9 @@ export default { |
| 160 | const { code, data } = await addListAPI(params); | 160 | const { code, data } = await addListAPI(params); |
| 161 | if (code) { | 161 | if (code) { |
| 162 | this.activity_list = data.activity_list; | 162 | this.activity_list = data.activity_list; |
| 163 | - this.activity_count = data.activity_count; | 163 | + this.activity_count = data.activity_count ? data.activity_count : 0; |
| 164 | - this.volunteer_count = data.volunteer_count; | 164 | + this.volunteer_count = data.volunteer_count ? data.volunteer_count : 0; |
| 165 | - this.member_count = data.member_count; | 165 | + this.member_count = data.member_count ? data.member_count : 0; |
| 166 | this.server_time = this.formatDate(data.server_time); | 166 | this.server_time = this.formatDate(data.server_time); |
| 167 | this.page = this.page + 1; | 167 | this.page = this.page + 1; |
| 168 | } | 168 | } |
| ... | @@ -241,9 +241,9 @@ export default { | ... | @@ -241,9 +241,9 @@ export default { |
| 241 | if (code) { | 241 | if (code) { |
| 242 | if (data.activity_list.length) { | 242 | if (data.activity_list.length) { |
| 243 | this.activity_list = this.activity_list.concat(data.activity_list); | 243 | this.activity_list = this.activity_list.concat(data.activity_list); |
| 244 | - this.activity_count = data.activity_count; | 244 | + this.activity_count = data.activity_count ? data.activity_count : 0; |
| 245 | - this.volunteer_count = data.volunteer_count; | 245 | + this.volunteer_count = data.volunteer_count ? data.volunteer_count : 0; |
| 246 | - this.member_count = data.member_count; | 246 | + this.member_count = data.member_count ? data.member_count : 0; |
| 247 | this.page = this.page + 1; | 247 | this.page = this.page + 1; |
| 248 | this.flag = true; | 248 | this.flag = true; |
| 249 | } else { | 249 | } else { | ... | ... |
-
Please register or login to post a comment