cloudroam
2025-04-10 5fc9567cfa6b6beee4f52a9f835f304865d693e1
app/src/main/java/com/example/firstapp/ui/home/HomeFragment.kt
@@ -34,6 +34,7 @@
import com.google.android.material.bottomsheet.BottomSheetDialog
import kotlinx.coroutines.launch
import com.example.firstapp.view.UnderlineTextView
import com.example.firstapp.activity.ReminderListActivity
class HomeFragment : Fragment() {
@@ -406,16 +407,16 @@
        _binding = null
    }
    private fun loadAdvertisements() {
        // 使用 Glide 加载网络图片
        Glide.with(this)
            .load("http://192.168.1.235:9999/advertisement/up.png")
            .into(binding.adBanner)
        Glide.with(this)
            .load("http://192.168.1.235:9999/advertisement/down.png")
            .into(binding.bottomAdBanner)
    }
//    private fun loadAdvertisements() {
//        // 使用 Glide 加载网络图片
//        Glide.with(this)
//            .load("http://192.168.1.235:9999/advertisement/up.png")
//            .into(binding.adBanner)
//
//        Glide.with(this)
//            .load("http://192.168.1.235:9999/advertisement/down.png")
//            .into(binding.bottomAdBanner)
//    }
    // 设置分类选择器 检查会员状态
    private fun setupCategorySelector() {
@@ -448,6 +449,11 @@
                }
            }
        }
        // 添加提醒按钮点击事件
//        binding.reminderButton.setOnClickListener {
//            startActivity(Intent(requireContext(), ReminderListActivity::class.java))
//        }
    }
    private fun showCategorySelectorDialog() {