fix
lmw
2024-11-09 d1a9e3312387b6c47e6186af506787a8a66369d1
app/src/main/java/com/sinata/xqmuse/ui/mine/adapter/VipPriceAdapter.kt
@@ -15,7 +15,7 @@
    override fun onBind(holder: ViewHolder, position: Int, data: Double) {
        holder.setText(R.id.tv_name,if (position == 0) "月度会员" else if (position == 1) "季度会员" else "年度会员")
        holder.setText(R.id.tv_price,SpanBuilder("¥%.2f".format(data)).size(0,1,15).build())
        holder.setText(R.id.tv_daily_price,"¥%.2f天".format(data/30))
        holder.setText(R.id.tv_daily_price,"¥%.2f/天".format(data/(if (position == 0)30 else if (position == 1) 90 else 365)))
        val bg = holder.bind<View>(R.id.cl_bg)
        val tvName = holder.bind<TextView>(R.id.tv_name)
        val tvPrice = holder.bind<TextView>(R.id.tv_price)
@@ -32,5 +32,4 @@
            tvDaily.textColorResource = R.color.textColor99
        }
    }
}