Commit 69cb0e43 authored by shiyl's avatar shiyl

修改类目回显功能

parent ed125fcb
......@@ -72,7 +72,8 @@ class ChooseCategoryViewModel : BaseViewModel() {
// 匹配成功的一级类目
matchSuccessFirstCategory = categoryListDto
matchSuccess = true
return
} else {
sub.isSelect = false
}
}
}
......@@ -128,6 +129,8 @@ class ChooseCategoryViewModel : BaseViewModel() {
*/
fun setLastSelected(selectCategoryDto: SelectCategoryDto) {
selectedCategory.value = selectCategoryDto
selectSecondCategoryId.value = selectCategoryDto.secondCategoryId
selectSecondCategoryName.value = selectCategoryDto.secondCategoryName
}
/**
......
......@@ -43,6 +43,10 @@ class ChooseStoreActivity : BaseActivity<ActivityChooseStoreBinding>() {
initTitle()
initClick()
initList()
}
override fun onResume() {
super.onResume()
requestStoreList()
}
......
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