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
c7934779
Commit
c7934779
authored
Jul 31, 2021
by
fengruiyu
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_1.0.0' of
http://39.97.65.143:81/android/android_street
into fry_dev
parents
13e339fb
6dedaf52
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 @
c7934779
...
...
@@ -26,6 +26,7 @@ import com.mints.street.BR
import
com.mints.street.R
import
com.mints.street.bean.PositioningBean
import
com.mints.street.databinding.FragmentHomeBinding
import
com.mints.street.main.my.OpenvipActivity
import
com.mints.street.manager.UmengManager
import
com.mints.street.utils.GPSConverterUtils
import
com.mints.street.webview.MintsWebViewActivity
...
...
@@ -41,6 +42,8 @@ import me.goldze.mvvmhabit.utils.SPUtils
*/
class
HomeFragment
:
BaseFragment
<
FragmentHomeBinding
,
HomeViewModel
>(),
SensorEventListener
{
private
val
userManager
by
lazy
{
com
.
mints
.
street
.
manager
.
UserManager
.
INSTANCE
}
private
var
mBaiduMap
:
BaiduMap
?
=
null
private
val
mBitmapDescriptor
=
BitmapDescriptorFactory
.
fromResource
(
R
.
mipmap
.
positioning_icon
)
...
...
@@ -106,7 +109,12 @@ class HomeFragment : BaseFragment<FragmentHomeBinding, HomeViewModel>(), SensorE
SearchMapActivity
.
startSearchMapActivity
(
this
)
}
RxUtils
.
onMultiClick
(
binding
.
ivClick
){
MintsWebViewActivity
.
startWebView
(
""
)
if
(
userManager
.
getVipFlag
())
{
//是会员
MintsWebViewActivity
.
startWebView
(
""
)
}
else
{
startActivity
(
OpenvipActivity
::
class
.
java
)
}
}
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