Toggle navigation
Toggle navigation
This project
Loading...
Sign in
liuming
/
developer-docs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
lhach92
2015-10-19 11:45:46 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
959d43ccf94f22b7466831d65eb7c5f6358293db
959d43cc
1 parent
788ba5fc
Created 活动展现相关逻辑 (markdown)
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
活动展现相关逻辑.md
活动展现相关逻辑.md
0 → 100644
View file @
959d43c
### 从静态资源中获取文件:activity.json
{
"com.boxfish.teacher": {
"activity_enable": false,
"activity_url": "http://www.boxfish.cn",
"activity_id": "test_teacher_id",
"activity_name": "test",
"is_show_once": false
},
"com.boxfish.student": {
"activity_enable": false,
"activity_url": "http://www.boxfish.cn",
"activity_id": "test_student_id",
"activity_name": "test",
"is_show_once": false
}
}
区分为教师版和学生版。
activity_enable字段表示活动是否开启
activity_url字段表示活动链接地址
is_show_once字段表示是否只显示一次
用户每次启动程序时检查该配置文件,如果活动开启,则显示图片(图片与该配置文件在同级目录下)
点击图片后,访问活动链接地址,改广告图片不再显示。
点击关闭后,关闭当前活动图片,
如果is_show_once为真,则该广告图片只显示一次;否则用户在第二天(每天凌晨3:00作为一天的开始)再次启动程序时,重新显示广告图。
...
...
Please
register
or
login
to post a comment