Commit d456924d authored by fengruiyu's avatar fengruiyu

1.1.0.0的版本可以测试

parent c7934779
......@@ -109,8 +109,8 @@ class HomeFragment : BaseFragment<FragmentHomeBinding, HomeViewModel>(), SensorE
SearchMapActivity.startSearchMapActivity(this)
}
RxUtils.onMultiClick(binding.ivClick){
if (userManager.getVipFlag()) {//是会员
MintsWebViewActivity.startWebView("")
if (userManager.userIsLogin() &&userManager.getVipFlag()) {//是会员
viewModel.authorized("",currentLat.toString(), currentLon.toString())
}else{
startActivity(OpenvipActivity::class.java)
}
......
......@@ -25,6 +25,8 @@ class FreeZoneFragment : BaseFragment<FragmentFreeZoneBinding, FreeZoneViewModel
private var vLayout: VirtualLayoutManager? = null
private var mAdapter: DelegateAdapter? = null
private var gridMapAdapter: GridMapAdapter? = null
//private var enterDestinationAdapter: EnterDestinationAdapter? = null
override fun initContentView(
inflater: LayoutInflater?,
container: ViewGroup?,
......@@ -58,10 +60,10 @@ class FreeZoneFragment : BaseFragment<FragmentFreeZoneBinding, FreeZoneViewModel
viewModel.VrmapBean.observe(this, Observer<VrmapBean> {
binding.srlMy.finishRefresh(true)
/*if(enterDestinationAdapter == null){
enterDestinationAdapter = EnterDestinationAdapter(context!!,it.abroad )
mAdapter?.addAdapter(enterDestinationAdapter)
}*/
// if(enterDestinationAdapter == null){
// enterDestinationAdapter = EnterDestinationAdapter(context!!,it.abroad )
// mAdapter?.addAdapter(enterDestinationAdapter)
// }
if (gridMapAdapter == null){
gridMapAdapter = GridMapAdapter(context!!, it.internal)
mAdapter?.addAdapter(gridMapAdapter)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment