Commit f2f1ec67 authored by mengcuiguang2's avatar mengcuiguang2

解决冲突

parents e5391ef1 9daab299
...@@ -47,7 +47,7 @@ class ItemEnterDestinationAdapter( ...@@ -47,7 +47,7 @@ class ItemEnterDestinationAdapter(
} }
list?.let { it -> list?.let { it ->
holder.binding.tvName.text = it[position].area holder.binding.tvName.text = it[position].area
holder.binding.tvNumberPeople.text = "人数" holder.binding.tvNumberPeople.text = "${it[position].activeNum}W人去过"
it[position].url?.let { url -> it[position].url?.let { url ->
for (index in 0..2) { for (index in 0..2) {
when (index) { when (index) {
......
...@@ -5,6 +5,7 @@ import java.io.Serializable ...@@ -5,6 +5,7 @@ import java.io.Serializable
class VreperienceBean: Serializable { class VreperienceBean: Serializable {
val data: List<Data>?=null val data: List<Data>?=null
inner class Data( inner class Data(
val activeNum: Double,
val area: String, val area: String,
val url: List<String> val url: List<String>
) )
......
...@@ -83,6 +83,12 @@ class MainActivity : BaseActivity<ActivityMainBinding, MainViewModel>() { ...@@ -83,6 +83,12 @@ class MainActivity : BaseActivity<ActivityMainBinding, MainViewModel>() {
}) })
} }
override fun onResume() {
super.onResume()
viewModel.checkUpgrade()
}
var oldTime: Long = 0 var oldTime: Long = 0
override fun onKeyDown(keyCode: Int, event: KeyEvent): Boolean { override fun onKeyDown(keyCode: Int, event: KeyEvent): Boolean {
......
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