Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_street
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_street
Commits
df36da0c
Commit
df36da0c
authored
Jul 31, 2021
by
张释方
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加首页查看高清地图跳转开通vip页
parent
8480e59e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
HomeFragment.kt
app/src/main/java/com/mints/street/main/home/HomeFragment.kt
+9
-1
No files found.
app/src/main/java/com/mints/street/main/home/HomeFragment.kt
View file @
df36da0c
...
@@ -26,6 +26,7 @@ import com.mints.street.BR
...
@@ -26,6 +26,7 @@ import com.mints.street.BR
import
com.mints.street.R
import
com.mints.street.R
import
com.mints.street.bean.PositioningBean
import
com.mints.street.bean.PositioningBean
import
com.mints.street.databinding.FragmentHomeBinding
import
com.mints.street.databinding.FragmentHomeBinding
import
com.mints.street.main.my.OpenvipActivity
import
com.mints.street.manager.UmengManager
import
com.mints.street.manager.UmengManager
import
com.mints.street.utils.GPSConverterUtils
import
com.mints.street.utils.GPSConverterUtils
import
com.mints.street.webview.MintsWebViewActivity
import
com.mints.street.webview.MintsWebViewActivity
...
@@ -41,6 +42,8 @@ import me.goldze.mvvmhabit.utils.SPUtils
...
@@ -41,6 +42,8 @@ import me.goldze.mvvmhabit.utils.SPUtils
*/
*/
class
HomeFragment
:
BaseFragment
<
FragmentHomeBinding
,
HomeViewModel
>(),
SensorEventListener
{
class
HomeFragment
:
BaseFragment
<
FragmentHomeBinding
,
HomeViewModel
>(),
SensorEventListener
{
private
val
userManager
by
lazy
{
com
.
mints
.
street
.
manager
.
UserManager
.
INSTANCE
}
private
var
mBaiduMap
:
BaiduMap
?
=
null
private
var
mBaiduMap
:
BaiduMap
?
=
null
private
val
mBitmapDescriptor
=
BitmapDescriptorFactory
.
fromResource
(
R
.
mipmap
.
positioning_icon
)
private
val
mBitmapDescriptor
=
BitmapDescriptorFactory
.
fromResource
(
R
.
mipmap
.
positioning_icon
)
...
@@ -106,7 +109,12 @@ class HomeFragment : BaseFragment<FragmentHomeBinding, HomeViewModel>(), SensorE
...
@@ -106,7 +109,12 @@ class HomeFragment : BaseFragment<FragmentHomeBinding, HomeViewModel>(), SensorE
SearchMapActivity
.
startSearchMapActivity
(
this
)
SearchMapActivity
.
startSearchMapActivity
(
this
)
}
}
RxUtils
.
onMultiClick
(
binding
.
ivClick
){
RxUtils
.
onMultiClick
(
binding
.
ivClick
){
MintsWebViewActivity
.
startWebView
(
""
)
if
(
userManager
.
getVipFlag
())
{
//是会员
MintsWebViewActivity
.
startWebView
(
""
)
}
else
{
startActivity
(
OpenvipActivity
::
class
.
java
)
}
}
}
viewModel
.
getMapBean
()
viewModel
.
getMapBean
()
}
}
...
...
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