Browse Source

提交人:jtm
提交内容:提交遗漏代码

江天明 1 year ago
parent
commit
f8c5589163

+ 20 - 20
BusinessCommon/src/main/java/com/develop/common/widget/FoodContentView.kt

@@ -180,26 +180,26 @@ class FoodContentView : ConstraintLayout {
             if ("" != cover) ivCover.load(cover, binding.ivCover.width, binding.ivCover.height)
             tvFoodName.updateText(content.foodName)
             Log.d("------", "---666---")
-//            starView.apply {
-//                setCommentNumber(content.useNum.toString())
-//                setCommentTextColorGray()
-//            }
-//            Log.d("------", "---777---")
-//            tvTimeAndLevel.updateText("${content.time}・${content.level}")
-//            if (isNetRecipes) {
-//                ivNet.visibility = View.VISIBLE
-//            } else {
-//                ivNet.visibility = View.GONE
-//            }
-//            if (hasDownload) {
-//                ivLike.src = R.drawable.ic_delete
-//            } else {
-//                if (isLike) {
-//                    ivLike.src = R.drawable.ic_like
-//                } else {
-//                    ivLike.src = R.drawable.ic_unlike
-//                }
-//            }
+            starView.apply {
+                setCommentNumber(content.useNum.toString())
+                setCommentTextColorGray()
+            }
+            Log.d("------", "---777---")
+            tvTimeAndLevel.updateText("${content.time}・${content.level}")
+            if (isNetRecipes) {
+                ivNet.visibility = View.VISIBLE
+            } else {
+                ivNet.visibility = View.GONE
+            }
+            if (hasDownload) {
+                ivLike.src = R.drawable.ic_delete
+            } else {
+                if (isLike) {
+                    ivLike.src = R.drawable.ic_like
+                } else {
+                    ivLike.src = R.drawable.ic_unlike
+                }
+            }
 
         }