Commit 8f9f7ef7 authored by maxiaoliang's avatar maxiaoliang

修改bug

parent 8d2fd5ba
...@@ -8,8 +8,7 @@ import java.io.Serializable ...@@ -8,8 +8,7 @@ import java.io.Serializable
* @detail : * @detail :
*/ */
class ShopListEntity : Serializable { class ShopListEntity : Serializable {
var id: Int = 0 var id: String? = ""
var productId: Int = 0
var boxId: Int = 0 var boxId: Int = 0
var productName: String = "" var productName: String = ""
var mainImage: String = "" var mainImage: String = ""
......
...@@ -23,12 +23,17 @@ class ShopFragment : BaseFragment(), ShopContract.View { ...@@ -23,12 +23,17 @@ class ShopFragment : BaseFragment(), ShopContract.View {
mPresenter = ShopPresenter(this) mPresenter = ShopPresenter(this)
mPresenter?.getShopTab() mPresenter?.getShopTab()
shop_viewPager?.currentItem = 1 shop_viewPager?.currentItem = 1
val user = SettingPreference.getUserInfoData()
if (user != null) {
id_my_mobi_num.text = "${user.avaMagic ?: "0"}"
}
} }
override fun lazyLoad() {
super.lazyLoad()
if (isInitial && isVisible){
val user = SettingPreference.getUserInfoData()
if (user != null) {
id_my_mobi_num.text = "${user.avaMagic ?: "0"}"
}
}
}
override fun setShopTab(result: List<TabEntity>?) { override fun setShopTab(result: List<TabEntity>?) {
if (result != null && result?.size > 0) { if (result != null && result?.size > 0) {
initVeiwPager(result) initVeiwPager(result)
......
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