首页、支付功能

This commit is contained in:
2025-11-26 18:57:53 +08:00
parent 60b712f216
commit 88179e27b7
64 changed files with 3380 additions and 319 deletions
@@ -21,7 +21,7 @@ class CollectedFoodNewAdapter(var list: MutableList<CollectedFoodBean>) :
override fun onBindViewHolder(holder: VH, position: Int, item: CollectedFoodBean?) {
holder.binding.tvFoodName.text = item?.foodName
holder.binding.tvCollectedNum.text = "已采集153"
holder.binding.tvCollectedNum.text = "已采集${item?.count}"
}
}
@@ -26,7 +26,7 @@ class SearchFoodAdapter(var list: MutableList<FoodInfo>) :
text = item.foodName
} else {
val score = (item.score / 100.0).format2String(2)
text = "${item.foodName}\n${score}%"
text = item.foodName + if (item.score != 0) "-${score}%" else ""
}
isChecked = item.isChecked
}