Commit 1643e604 authored by 王雪伟's avatar 王雪伟

[提交人]:王雪伟

[提交简述] :小象省钱
[实现方案] :
parent d8eb99b7
...@@ -247,11 +247,14 @@ class RightsDetailActivity : BaseActivity(), RightsDetailContract.View, RightsPa ...@@ -247,11 +247,14 @@ class RightsDetailActivity : BaseActivity(), RightsDetailContract.View, RightsPa
isClickPayBtn = false isClickPayBtn = false
SettingPreference.setOutTradeNo("") SettingPreference.setOutTradeNo("")
showResultLoading(true) showResultLoading(true)
// id_rl_suc_view.visibility = View.VISIBLE
hideKeyBoard()
} }
override fun verifyOrderFail(errorMsg: String) { override fun verifyOrderFail(errorMsg: String) {
isClickPayBtn = false isClickPayBtn = false
showResultLoading(false) showResultLoading(false)
// id_rl_suc_view.visibility = View.GONE
} }
private fun showResultLoading(isPaySuc: Boolean) { private fun showResultLoading(isPaySuc: Boolean) {
......
...@@ -311,4 +311,38 @@ ...@@ -311,4 +311,38 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:visibility="gone" /> android:visibility="gone" />
<RelativeLayout
android:id="@+id/id_rl_suc_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/img_rights_pay_suc_bg"
android:visibility="gone">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="恭喜您\n本次交易成功!"
android:layout_centerInParent="true"
android:gravity="center"
android:paddingTop="40dp"
android:textColor="@color/color_333333"
android:textSize="18sp"
android:textStyle="bold" />
<TextView
android:id="@+id/id_tv_btn_order"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="40dp"
android:background="@drawable/img_black_btn_bg"
android:gravity="center"
android:text="查看订单"
android:textColor="#FDDFA5"
android:textSize="18sp"
android:textStyle="bold" />
</RelativeLayout>
</RelativeLayout> </RelativeLayout>
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