Commit a49cbe46 authored by jyx's avatar jyx

更新 0.01展示

parent 4f08960c
...@@ -10,8 +10,8 @@ android { ...@@ -10,8 +10,8 @@ android {
applicationId "com.duben.ddplayletjia" applicationId "com.duben.ddplayletjia"
minSdkVersion rootProject.ext.androidMinSdkVersion minSdkVersion rootProject.ext.androidMinSdkVersion
targetSdkVersion rootProject.ext.androidTargetSdkVersion targetSdkVersion rootProject.ext.androidTargetSdkVersion
versionCode 700 versionCode 701
versionName "7.0.0" versionName "7.0.1"
flavorDimensions "default" flavorDimensions "default"
// dex突破65535的限制 // dex突破65535的限制
......
...@@ -104,18 +104,26 @@ class VipAdapter(val vipList: MutableList<VipBean.ListBean>) : ...@@ -104,18 +104,26 @@ class VipAdapter(val vipList: MutableList<VipBean.ListBean>) :
// } // }
// }catch (e:Exception){ // }catch (e:Exception){
// e.printStackTrace() // e.printStackTrace()
holder.tvVipItemTitle.text = vipBean.title holder.tvVipItemTitle.text = vipBean.title
// if (vipBean.price < 1) { // if (vipBean.price < 1) {
// holder.tvVipItemCurMoney.text = "¥${vipBean.price}" // holder.tvVipItemCurMoney.text = "¥${vipBean.price}"
// } else { // } else {
// holder.tvVipItemCurMoney.text = "¥${vipBean.price}" // holder.tvVipItemCurMoney.text = "¥${vipBean.price}"
//// holder.tvVipItemCurMoney.text = "¥${String.format("%.0f", vipBean.price)}" //// holder.tvVipItemCurMoney.text = "¥${String.format("%.0f", vipBean.price)}"
// } // }
holder.tvVipItemCurMoney.text = SpanUtils() if (vipBean.price == 0.0) {
.append(vipBean.price.toString()) holder.tvVipItemCurMoney.text = SpanUtils()
.setFontSize(BubbleUtils.sp2px(34)) .append("0.01")
.append("元") .setFontSize(BubbleUtils.sp2px(34))
.create() .append("元")
.create()
} else {
holder.tvVipItemCurMoney.text = SpanUtils()
.append(vipBean.price.toString())
.setFontSize(BubbleUtils.sp2px(34))
.append("元")
.create()
}
// if (vipBean.oldPrice > 0) { // if (vipBean.oldPrice > 0) {
// holder.tvVipItemMoney.visibility = View.VISIBLE // holder.tvVipItemMoney.visibility = View.VISIBLE
// holder.tvVipItemMoney.getPaint().setFlags(Paint.STRIKE_THRU_TEXT_FLAG) //中间横线(删除线) // holder.tvVipItemMoney.getPaint().setFlags(Paint.STRIKE_THRU_TEXT_FLAG) //中间横线(删除线)
......
...@@ -55,10 +55,10 @@ class PayYesDialog( ...@@ -55,10 +55,10 @@ class PayYesDialog(
iv_dialog_vip_quit.setOnClickListener(listener) iv_dialog_vip_quit.setOnClickListener(listener)
tv_dialog_vip_next.setOnClickListener(listener) tv_dialog_vip_next.setOnClickListener(listener)
if (vipBean.trial == 0) { if (vipBean.price == 0.0) {
//0-没签约 无0.01 //0-没签约 无0.01
tv_dialog_vip_count.text = SpanUtils() tv_dialog_vip_count.text = SpanUtils()
.append("" + vipBean.price) .append("0.01")
.setFontSize(30, true) .setFontSize(30, true)
.append(" 元") .append(" 元")
.setFontSize(16, true) .setFontSize(16, true)
...@@ -66,7 +66,7 @@ class PayYesDialog( ...@@ -66,7 +66,7 @@ class PayYesDialog(
iv_dialog_vip_top.setImageResource(R.mipmap.ic_vip_pay_top2) iv_dialog_vip_top.setImageResource(R.mipmap.ic_vip_pay_top2)
} else { } else {
tv_dialog_vip_count.text = SpanUtils() tv_dialog_vip_count.text = SpanUtils()
.append(""+vipBean.price) .append("" + vipBean.price)
.setFontSize(30, true) .setFontSize(30, true)
.append(" 元") .append(" 元")
.setFontSize(16, true) .setFontSize(16, true)
......
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