Commit ef207f8e authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 1da0be35
...@@ -199,13 +199,6 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener, ...@@ -199,13 +199,6 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener,
iv_vip_alipay.setImageResource(R.mipmap.ic_vip_none) iv_vip_alipay.setImageResource(R.mipmap.ic_vip_none)
} }
// ll_vip_alipay.visibility = View.VISIBLE
// ll_vip_wx.visibility = View.GONE
// payType = ALIPAY
// iv_vip_alipay.setImageResource(R.mipmap.ic_vip_enable_blue)
// iv_vip_wx.setImageResource(R.mipmap.ic_vip_none)
if (!TextUtils.isEmpty(bean.remarks)) { if (!TextUtils.isEmpty(bean.remarks)) {
tv_vip_hint.text = bean.remarks tv_vip_hint.text = bean.remarks
tv_vip_hint.visibility = View.VISIBLE tv_vip_hint.visibility = View.VISIBLE
...@@ -307,17 +300,6 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener, ...@@ -307,17 +300,6 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener,
if (isPay) { if (isPay) {
showToast("支付成功") showToast("支付成功")
// if (isRecommend) {
// finish()
// } else {
// if (!UserManager.getInstance().userIsLogin()) {
// val b = Bundle()
// b.putString(MobileLoginActivity.TYPE, "vip")
// readyGoThenKill(MobileLoginActivity::class.java, b)
// } else {
// readyGoThenKill(MainActivity::class.java)
// }
// }
if (!UserManager.getInstance().userIsLogin()) { if (!UserManager.getInstance().userIsLogin()) {
val b = Bundle() val b = Bundle()
b.putString(MobileLoginActivity.TYPE, "vip") b.putString(MobileLoginActivity.TYPE, "vip")
...@@ -355,16 +337,8 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener, ...@@ -355,16 +337,8 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener,
vipAdapter.setPosition(0) vipAdapter.setPosition(0)
vipAdapter.notifyDataSetChanged() vipAdapter.notifyDataSetChanged()
// if (TextUtils.equals(payType, WEIXIN_PAY)) {
// payType = WEIXIN_PAY
// iv_vip_wx.setImageResource(R.mipmap.ic_vip_enable_blue)
// iv_vip_alipay.setImageResource(R.mipmap.ic_vip_none)
// } else {
// payType = ALIPAY
// iv_vip_alipay.setImageResource(R.mipmap.ic_vip_enable_blue)
// iv_vip_wx.setImageResource(R.mipmap.ic_vip_none)
// }
val vipBean = vipList!![0] val vipBean = vipList!![0]
setVipContent(vipBean)
backPayYesDialog(vipBean) backPayYesDialog(vipBean)
return true return true
} }
...@@ -386,15 +360,7 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener, ...@@ -386,15 +360,7 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener,
vipAdapter.setPosition(0) vipAdapter.setPosition(0)
vipAdapter.notifyDataSetChanged() vipAdapter.notifyDataSetChanged()
val vipBean = vipList!![0] val vipBean = vipList!![0]
// if (TextUtils.equals(payType, WEIXIN_PAY)) { setVipContent(vipBean)
// payType = WEIXIN_PAY
// iv_vip_wx.setImageResource(R.mipmap.ic_vip_enable_blue)
// iv_vip_alipay.setImageResource(R.mipmap.ic_vip_none)
// } else {
// payType = ALIPAY
// iv_vip_alipay.setImageResource(R.mipmap.ic_vip_enable_blue)
// iv_vip_wx.setImageResource(R.mipmap.ic_vip_none)
// }
backPayYesDialog(vipBean) backPayYesDialog(vipBean)
} else { } else {
finish() finish()
......
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