package com.dollearn.student.ui.discovery
|
|
import androidx.core.os.bundleOf
|
import cn.sinata.xldutils.fragment.BaseFragment
|
import com.dollearn.student.R
|
import com.dollearn.student.network.entity.Shop
|
import kotlinx.android.synthetic.main.fragment_shop.*
|
import org.jetbrains.anko.support.v4.startActivity
|
|
class ShopViewPagerFragment:BaseFragment() {
|
override fun contentViewId() = R.layout.fragment_shop
|
|
private val shop by lazy { arguments?.getParcelable<Shop>("data") }
|
private val isNear by lazy { arguments?.getBoolean("isNear") }
|
|
override fun onFirstVisibleToUser() {
|
|
}
|
|
companion object{
|
fun newInstance(shop:Shop,isNear:Boolean):ShopViewPagerFragment{
|
val shopViewPagerFragment = ShopViewPagerFragment()
|
shopViewPagerFragment.arguments = bundleOf("data" to shop,"isNear" to isNear)
|
return shopViewPagerFragment
|
}
|
}
|
}
|