Commit ade764fb authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 8fb09c77
......@@ -10,8 +10,8 @@ android {
applicationId "com.duben.dayplayletu"
minSdkVersion rootProject.ext.androidMinSdkVersion
targetSdkVersion rootProject.ext.androidTargetSdkVersion
versionCode 722
versionName "7.2.2"
versionCode 723
versionName "7.2.3"
flavorDimensions "default"
// dex突破65535的限制
......
......@@ -33,6 +33,7 @@ import com.duben.dayplayletu.ui.adapter.VipBannerAdapter
import com.duben.dayplayletu.ui.widgets.*
import com.duben.dayplayletu.ui.widgets.countdowntimer.CountDownTimerSupport
import com.duben.dayplayletu.ui.widgets.countdowntimer.OnCountDownTimerListener
import com.duben.dayplayletu.utils.SpanUtils
import com.duben.library.utils.GlideUtils
import com.duben.library.utils.nodoubleclick.AntiShake
import com.jobo.alipay.AliPay
......@@ -220,12 +221,25 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener,
}
if (!TextUtils.isEmpty(bean.buttonText)) {
if (bean.isShowCycTips) {
tvVipPay.text = SpanUtils()
.append(bean.buttonText + "\n")
.setFontSize(20, true)
.append(bean.remarks)
.setFontSize(10, true)
.setForegroundColor(Color.parseColor("#A24240"))
.create()
} else {
tvVipPay.text = bean.buttonText
}
tvVipAgreement.text = "点击购买即表示您同意《自动续费协议》"
} else {
tvVipPay.text = "立即开通"
tvVipAgreement.text = "点击购买即表示您同意《会员付费协议》"
}
}
override fun getVipPayParamsSuc(payChannel: String, paramsBean: WxPayParamBean, enter: String) {
......
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