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 17:05:17 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d17ebc34cc910737e141e4b1a029b4fc8f7aeebc
d17ebc34
1 parent
f78af054
fix
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
src/pages/index/index.vue
src/pages/index/index.vue
View file @
d17ebc3
<!--
* @Date: 2022-09-19 14:11:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-10-28 1
3:02:31
* @LastEditTime: 2022-10-28 1
6:54:12
* @FilePath: /swx/src/pages/index/index.vue
* @Description: 首页
-->
...
...
@@ -103,6 +103,13 @@ export default {
// 获取活动和轮播信息
const { code, data } = await activityHomeAPI({ page: this.page, limit: this.limit });
if (code) {
// 如果首页为空,让用户新增活动
// 第一次进入也不一定需要创建活动,需要讨论
// if (!data.activity_list.length && !data.carousel.length) {
// Taro.navigateTo({
// url: '../createActivity/index'
// })
// }
this.activity_list = data.activity_list;
this.carousel = data.carousel;
this.page = this.page + 1;
...
...
Please
register
or
login
to post a comment