Commit 96419938 authored by mengcuiguang's avatar mengcuiguang

图片更换

parent 1b04facf
......@@ -58,6 +58,7 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener,
const val THIRD_ID = "THIRD_ID"
const val VEDIO_ID = "VEDIO_ID"
}
var timer: CountDownTimerSupport? = null
private var breathAnim: YoYo.YoYoString? = null
private var payAgreementDialog: PayAgreementDialog? = null
......@@ -191,6 +192,12 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener,
tvVipPay.text = "立即开通"
tvVipAgreement.text = "点击购买即表示您同意《会员付费协议》"
}
if (bean.title.contains("日") || bean.title.contains("周")) {
iv_vip_pic.setImageResource(R.mipmap.bg_vip3)
} else {
iv_vip_pic.setImageResource(R.mipmap.bg_vip_jtc)
}
}
override fun getVipPayParamsSuc(payChannel: String, paramsBean: WxPayParamBean) {
......@@ -688,7 +695,7 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener,
timer!!.setOnCountDownTimerListener(object : OnCountDownTimerListener {
override fun onTick(millisUntilFinished: Long) {
if (!isFinishing) {
if(millisUntilFinished==4000L){
if (millisUntilFinished == 4000L) {
vipPresenter.getMyInfo()
}
}
......
......@@ -46,6 +46,7 @@
android:src="@mipmap/bg_vip2"></ImageView>
<ImageView
android:id="@+id/iv_vip_pic"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
......
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