Commit df36da0c authored by 张释方's avatar 张释方

添加首页查看高清地图跳转开通vip页

parent 8480e59e
......@@ -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){
if (userManager.getVipFlag()) {//是会员
MintsWebViewActivity.startWebView("")
}else{
startActivity(OpenvipActivity::class.java)
}
}
viewModel.getMapBean()
}
......
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