Commit 93d7c8c4 authored by shiyl's avatar shiyl

改来改去,又改回来了,支持门店新增和多选

parent de9d1f70
...@@ -60,13 +60,10 @@ class ChooseStoreActivity : BaseActivity<ActivityChooseStoreBinding>() { ...@@ -60,13 +60,10 @@ class ChooseStoreActivity : BaseActivity<ActivityChooseStoreBinding>() {
if (shopList.isNullOrEmpty()) { if (shopList.isNullOrEmpty()) {
viewBind.rvStore.hide() viewBind.rvStore.hide()
viewBind.pvEmptyPage.show() viewBind.pvEmptyPage.show()
viewBind.include.tvMenu.show()
return@getShopList return@getShopList
} else { } else {
viewBind.rvStore.show() viewBind.rvStore.show()
viewBind.pvEmptyPage.hide() viewBind.pvEmptyPage.hide()
// 暂时隐藏,目前只支持新增一家门店
viewBind.include.tvMenu.hide()
} }
// 勾选上次选中的门店的 // 勾选上次选中的门店的
if (!lastSelectStoreList.isNullOrEmpty()) { if (!lastSelectStoreList.isNullOrEmpty()) {
......
...@@ -51,13 +51,10 @@ class StoreManagementActivity : BaseActivity<ActivityStoreManagementBinding>() { ...@@ -51,13 +51,10 @@ class StoreManagementActivity : BaseActivity<ActivityStoreManagementBinding>() {
if (it.isNullOrEmpty()) { if (it.isNullOrEmpty()) {
viewBind.storeList.hide() viewBind.storeList.hide()
viewBind.pvEmptyPage.show() viewBind.pvEmptyPage.show()
viewBind.addStoreBtn.show()
return@getShopList return@getShopList
} else { } else {
viewBind.storeList.show() viewBind.storeList.show()
viewBind.pvEmptyPage.hide() viewBind.pvEmptyPage.hide()
// 暂时隐藏,目前只支持新增一家门店
viewBind.addStoreBtn.hide()
} }
adapter.setData(it) adapter.setData(it)
} }
......
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