Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_flowbox
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
android
android_flowbox
Commits
d2e0aa93
Commit
d2e0aa93
authored
Jul 20, 2021
by
mengcuiguang2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页热门活动添加大转盘
parent
b5b9547c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
Constant.kt
app/src/main/java/com/mints/flowbox/common/Constant.kt
+1
-0
WrapperActivity.kt
...in/java/com/mints/flowbox/ui/activitys/WrapperActivity.kt
+1
-1
HomeFragment.kt
...c/main/java/com/mints/flowbox/ui/fragment/HomeFragment.kt
+6
-0
No files found.
app/src/main/java/com/mints/flowbox/common/Constant.kt
View file @
d2e0aa93
...
@@ -201,6 +201,7 @@ object Constant {
...
@@ -201,6 +201,7 @@ object Constant {
const
val
HOT_ACTIVITY_SHARE_NEWS
=
"TO_SHARE_NEWS"
const
val
HOT_ACTIVITY_SHARE_NEWS
=
"TO_SHARE_NEWS"
const
val
HOT_ACTIVITY_CPD
=
"TO_CPD"
const
val
HOT_ACTIVITY_CPD
=
"TO_CPD"
const
val
HOT_ACTIVITY_CALLSHOW
=
"TO_CALLSHOW"
const
val
HOT_ACTIVITY_CALLSHOW
=
"TO_CALLSHOW"
const
val
HOT_ACTIVITY_TURNTABLE
=
"TO_TURNTABLE"
// 打开激活
// 打开激活
const
val
FIRST_DEVICE_FLAG
=
"first_device_flag"
const
val
FIRST_DEVICE_FLAG
=
"first_device_flag"
...
...
app/src/main/java/com/mints/flowbox/ui/activitys/WrapperActivity.kt
View file @
d2e0aa93
...
@@ -72,7 +72,7 @@ class WrapperActivity : BaseActivity(), View.OnClickListener {
...
@@ -72,7 +72,7 @@ class WrapperActivity : BaseActivity(), View.OnClickListener {
currentFragment
=
WzFragment
(
true
)
currentFragment
=
WzFragment
(
true
)
}
}
Constant
.
WRAPPER_TYPE_TURN
->
{
Constant
.
WRAPPER_TYPE_TURN
->
{
//
微转分享
//
幸运大抽奖
layoutWrapper
.
visibility
=
View
.
VISIBLE
layoutWrapper
.
visibility
=
View
.
VISIBLE
tv_title
.
text
=
"幸运大抽奖"
tv_title
.
text
=
"幸运大抽奖"
currentFragment
=
TurnTableFragment
()
currentFragment
=
TurnTableFragment
()
...
...
app/src/main/java/com/mints/flowbox/ui/fragment/HomeFragment.kt
View file @
d2e0aa93
...
@@ -306,6 +306,12 @@ class HomeFragment : BaseFragment(), WifiStateManager.WifiStateCallback,
...
@@ -306,6 +306,12 @@ class HomeFragment : BaseFragment(), WifiStateManager.WifiStateCallback,
ExpressManager
.
loadExpress
(
true
)
ExpressManager
.
loadExpress
(
true
)
readyGo
(
FoodSubsidyActivity
::
class
.
java
)
readyGo
(
FoodSubsidyActivity
::
class
.
java
)
}
}
Constant
.
HOT_ACTIVITY_TURNTABLE
->
{
// 大转盘
val
bundle
=
Bundle
()
bundle
.
putInt
(
Constant
.
WRAPPER_TYPE
,
Constant
.
WRAPPER_TYPE_TURN
)
readyGo
(
WrapperActivity
::
class
.
java
,
bundle
)
}
Constant
.
HOT_ACTIVITY_SHARE_NEWS
->
{
Constant
.
HOT_ACTIVITY_SHARE_NEWS
->
{
if
(!
userManager
.
userIsLogin
())
{
if
(!
userManager
.
userIsLogin
())
{
readyGo
(
WxLoginActivity
::
class
.
java
)
readyGo
(
WxLoginActivity
::
class
.
java
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment