Commit 8f9f7ef7 authored by maxiaoliang's avatar maxiaoliang

修改bug

parent 8d2fd5ba
......@@ -8,8 +8,7 @@ import java.io.Serializable
* @detail :
*/
class ShopListEntity : Serializable {
var id: Int = 0
var productId: Int = 0
var id: String? = ""
var boxId: Int = 0
var productName: String = ""
var mainImage: String = ""
......
......@@ -23,12 +23,17 @@ class ShopFragment : BaseFragment(), ShopContract.View {
mPresenter = ShopPresenter(this)
mPresenter?.getShopTab()
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>?) {
if (result != null && result?.size > 0) {
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