Commit 85b94657 authored by mengcuiguang2's avatar mengcuiguang2

代码优化

parent 14dd4077
......@@ -98,11 +98,15 @@ class RuleAgreementDialog(private val context: Context, private val listener: Di
}
fun setText(remarks: String,days:Int,cash:Double,title: String) {
var tempText="${cash}元"
if(cash==0.0){
tempText="免费"
}
tv_rule_date2.text = TimeRender.getDateAfter(Date(),days) + ":" + remarks
SpanUtils.with(tv_rule_date1)
.append(TimeRender.formatDateDot(Date()))
.append(": ")
.append("${cash}元开启${title}体验")
.append("${tempText}开启${title}体验")
.setForegroundColor(context.resources.getColor(R.color.main_mints))
.create()
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment