| | |
| | | import com.sinata.xqmuse.ui.TransparentStatusBarActivity |
| | | import com.sinata.xqmuse.ui.mine.adapter.VipPriceAdapter |
| | | import com.sinata.xqmuse.utils.Const |
| | | import com.sinata.xqmuse.utils.event.EmptyEvent |
| | | import com.sinata.xqmuse.utils.interfaces.StringCallback |
| | | import com.sinata.xqmuse.utils.pay.PayListener |
| | | import com.sinata.xqmuse.utils.pay.PayUtil |
| | | import kotlinx.android.synthetic.main.activity_vip.* |
| | | import org.greenrobot.eventbus.EventBus |
| | | import org.jetbrains.anko.backgroundResource |
| | | import org.jetbrains.anko.toast |
| | | |
| | |
| | | PayUtil.weChatPay(data!!) |
| | | }else{ |
| | | PayUtil.aliPay(this@VipActivity,data?.orderInfo?:"") |
| | | tv_action.postDelayed({ //TEST CALLBACK |
| | | onPaySuccess() |
| | | },3000) |
| | | |
| | | } |
| | | } |
| | | } |
| | |
| | | "你还未开通会员服务" |
| | | } else{ |
| | | bg_vip.backgroundResource = R.mipmap.bg_vip |
| | | tv_describe.text = "您将享受所有会员专享音频,尽情畅游心泉·疗愈世界" |
| | | tv_describe.text = "您将享受所有会员专享音频,尽情畅游泉疗愈世界" |
| | | "${vipExpireTime?.substring(0,10)}到期" |
| | | } |
| | | } |
| | |
| | | |
| | | override fun onPaySuccess() { |
| | | showVipInfo() |
| | | EventBus.getDefault().post(EmptyEvent(Const.EventCode.USER_INFO_CHANGED)) |
| | | } |
| | | |
| | | override fun onPayCancel() { |