1.1
tj
2025-04-09 2b446a5fd5d8f9b8c0f1e3acef1eef7ad9adb6f9
app/src/main/java/com/example/firstapp/adapter/CardAdapter.kt
@@ -56,7 +56,7 @@
                holder.firstMonthTag.text = data.firstMonthTag
                holder.titleText.text = data.title
                holder.subTitleText.text = data.subTitle
                holder.priceText.text = data.price
                holder.priceText.text = data.price.toString()
                holder.nextPriceText.text = data.nextPrice
                holder.autoRenewText.text = data.autoRenew
@@ -68,8 +68,8 @@
                val data = cardList[position] as CardData.Yearly
                holder.discountTag.text = data.discountTag
                holder.titleText.text = data.title
                holder.priceText.text = data.price
                holder.originalPriceText.text = data.originalPrice
                holder.priceText.text = data.price.toString()
                holder.originalPriceText.text = data.originalPrice.toString()
                // 设置中划线
                val paint = holder.originalPriceText.paint
@@ -83,7 +83,7 @@
            is SingleMonthViewHolder -> {
                val data = cardList[position] as CardData.SingleMonth
                holder.titleText.text = data.title
                holder.priceText.text = data.price
                holder.priceText.text = data.price.toString()
                cardViewList.add(holder.cardView)