优化显示
diff --git a/app/src/main/java/com/supwisdom/activities/consume/ConsumeActivity.kt b/app/src/main/java/com/supwisdom/activities/consume/ConsumeActivity.kt
index 89be1a7..a000250 100644
--- a/app/src/main/java/com/supwisdom/activities/consume/ConsumeActivity.kt
+++ b/app/src/main/java/com/supwisdom/activities/consume/ConsumeActivity.kt
@@ -54,6 +54,7 @@
     private lateinit var vLastPayway: TextView

     private lateinit var vLastPaytime: TextView

     private lateinit var vLastPayFailreason: TextView

+    private lateinit var vSynoFlag: TextView

     private lateinit var vLastPayFailll: LinearLayout

     private lateinit var vLastPayamtll: LinearLayout

     private val pos = SPApplication.getInstance().getPos()

@@ -165,6 +166,7 @@
         vLastPayFailreason = this.findViewById<TextView>(R.id.tv_last_failreason)

         vLastPayFailll = this.findViewById<LinearLayout>(R.id.ll_consume_last_failreason)

         vLastPayamtll = this.findViewById<LinearLayout>(R.id.ll_consume_last_payamt)

+        vSynoFlag = findViewById<TextView>(R.id.tv_syno_flag)

     }

 

     override fun onStop() {

@@ -395,6 +397,11 @@
             }

         }

         vShopname.text = shopname

+        if (SPApplication.getInstance().isSynoCodeActive()) {

+            vSynoFlag.visibility = View.VISIBLE

+        } else {

+            vSynoFlag.visibility = View.GONE

+        }

 

         refreshLinkStatus(SPApplication.getInstance().isOnline())

         AuxScreenController.getInstance().refreshBottom(DateUtil.getNowDateTime().substring(0, 16))

diff --git a/app/src/main/java/com/supwisdom/view/DialogPurchase.kt b/app/src/main/java/com/supwisdom/view/DialogPurchase.kt
index c616cf3..e167606 100644
--- a/app/src/main/java/com/supwisdom/view/DialogPurchase.kt
+++ b/app/src/main/java/com/supwisdom/view/DialogPurchase.kt
@@ -196,7 +196,7 @@
     fun show(hint: String, amount: String) {
         vPayhint.text = hint
         vPayhint.setTextColor(context.resources.getColor(R.color.blue))
-        vPayamt.text = null//amount
+        vPayamt.text = amount
         vPayamt.visibility = View.VISIBLE
 
         vUsername.visibility = View.GONE
diff --git a/app/src/main/res/layout/activity_consume.xml b/app/src/main/res/layout/activity_consume.xml
index a1bf974..1ee916e 100644
--- a/app/src/main/res/layout/activity_consume.xml
+++ b/app/src/main/res/layout/activity_consume.xml
@@ -1,424 +1,431 @@
-<?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
-              android:layout_width="match_parent"
-              android:layout_height="match_parent"
-              android:background="@color/light_blue2"
-              android:focusable="true"
-              android:orientation="vertical">
-
-    <LinearLayout
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:layout_marginLeft="20dp"
-            android:layout_marginTop="20dp"
-            android:layout_marginRight="20dp"
-            android:background="@drawable/corner_bg_white"
-            android:orientation="vertical">
-
-        <LinearLayout
-                android:layout_width="match_parent"
-                android:layout_height="304dp"
-                android:orientation="vertical">
-
-            <LinearLayout
-                    android:layout_width="match_parent"
-                    android:layout_height="130dp"
-                    android:orientation="horizontal"
-                    android:padding="@dimen/consume_text_pad_size"
-                    android:weightSum="3">
-
-                <LinearLayout
-                        android:layout_width="0dp"
-                        android:layout_height="match_parent"
-                        android:layout_weight="2"
-                        android:orientation="horizontal">
-
-                    <ImageView
-                            android:layout_width="60dp"
-                            android:layout_height="60dp"
-                            android:layout_gravity="center"
-                            android:scaleType="fitXY"
-                            android:src="@mipmap/shop_logo"/>
-
-                    <LinearLayout
-                            android:layout_width="wrap_content"
-                            android:layout_height="match_parent"
-                            android:layout_gravity="center"
-                            android:layout_marginLeft="10dp"
-                            android:layout_marginTop="8dp"
-                            android:orientation="vertical"
-                            android:padding="1dp">
-
-                        <TextView
-                                android:id="@+id/tv_shopname"
-                                android:layout_width="match_parent"
-                                android:layout_height="wrap_content"
-                                android:maxLines="2"
-                                android:text=""
-                                android:textColor="@color/blue"
-                                android:textSize="28sp"/>
-
-                        <TextView
-                                android:id="@+id/tv_nowtime"
-                                android:layout_width="match_parent"
-                                android:layout_height="wrap_content"
-                                android:gravity="start"
-                                android:maxLines="1"
-                                android:text=""
-                                android:textColor="@color/blue"
-                                android:textSize="22sp"/>
-                    </LinearLayout>
-                </LinearLayout>
-
-                <LinearLayout
-                        android:layout_width="0dp"
-                        android:layout_height="match_parent"
-                        android:layout_gravity="center"
-                        android:layout_weight="1"
-                        android:gravity="end"
-                        android:orientation="horizontal">
-
-                    <ImageView
-                            android:id="@+id/tv_linklogo"
-                            android:layout_width="30dp"
-                            android:layout_height="30dp"
-                            android:scaleType="fitXY"
-                            android:src="@drawable/wireless_on"/>
-
-                    <TextView
-                            android:id="@+id/tv_linkstat"
-                            android:layout_width="wrap_content"
-                            android:layout_height="wrap_content"
-                            android:maxLines="1"
-                            android:text="已联网"
-                            android:textColor="@color/blue"
-                            android:textSize="22sp"/>
-                </LinearLayout>
-            </LinearLayout>
-
-            <View
-                    android:layout_width="match_parent"
-                    android:layout_height="1dp"
-                    android:layout_marginLeft="10dp"
-                    android:layout_marginRight="10dp"
-                    android:background="@color/black"/>
-
-            <LinearLayout
-                    android:layout_width="match_parent"
-                    android:layout_height="match_parent"
-                    android:orientation="horizontal"
-                    android:padding="@dimen/consume_text_pad_size">
-
-                <TextView
-                        android:layout_width="260dp"
-                        android:layout_height="match_parent"
-                        android:gravity="start|center"
-                        android:text="消费金额"
-                        android:textColor="@color/blue"
-                        android:textSize="50sp"
-                        android:textStyle="bold"/>
-
-                <TextView
-                        android:id="@+id/tv_input_amt"
-                        android:layout_width="wrap_content"
-                        android:layout_height="match_parent"
-                        android:gravity="center"
-                        android:maxLines="1"
-                        android:text="0"
-                        android:textColor="@color/orange1"
-                        android:textSize="65sp"
-                        android:textStyle="bold"/>
-            </LinearLayout>
-        </LinearLayout>
-    </LinearLayout>
-
-    <LinearLayout
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:layout_marginLeft="20dp"
-            android:layout_marginTop="10dp"
-            android:layout_marginRight="20dp"
-            android:background="@drawable/corner_bg_ordinary_consume_green"
-            android:orientation="vertical">
-
-        <LinearLayout
-                android:layout_width="match_parent"
-                android:layout_height="wrap_content"
-                android:orientation="horizontal"
-                android:padding="10dp">
-
-            <ImageView
-                    android:layout_width="40dp"
-                    android:layout_height="40dp"
-                    android:scaleType="fitXY"
-                    android:src="@mipmap/show_card_info"/>
-
-            <TextView
-                    android:id="@+id/tv_card_info"
-                    android:layout_width="match_parent"
-                    android:layout_height="wrap_content"
-                    android:text="市民卡信息"
-                    android:textColor="@color/blue"
-                    android:textSize="@dimen/consume_text_size2"/>
-        </LinearLayout>
-
-        <View
-                android:layout_width="match_parent"
-                android:layout_height="1dp"
-                android:layout_marginLeft="10dp"
-                android:layout_marginTop="5dp"
-                android:layout_marginRight="10dp"
-                android:layout_marginBottom="5dp"
-                android:background="@color/black"/>
-
-        <LinearLayout
-                android:layout_width="match_parent"
-                android:layout_height="match_parent"
-                android:layout_marginLeft="10dp"
-                android:layout_marginTop="5dp"
-                android:orientation="vertical">
-
-            <ImageView
-                    android:layout_width="80dp"
-                    android:layout_height="80dp"
-                    android:layout_gravity="center"
-                    android:scaleType="fitXY"
-                    android:src="@mipmap/default_photo"
-                    android:visibility="gone"/>
-
-
-            <TextView
-                    android:layout_width="wrap_content"
-                    android:layout_height="wrap_content"
-                    android:padding="@dimen/consume_text_pad_size1"
-                    android:text="如需查询信息,请刷卡!"
-                    android:textColor="@color/blue"
-                    android:textSize="@dimen/consume_text_size2"/>
-
-            <LinearLayout style="@style/consume_wait_account_ll_style">
-
-                <TextView
-                        style="@style/consume_wait_account_paraname_style"
-                        android:text="姓         名: "/>
-
-                <TextView
-                        android:id="@+id/tv_citizen_name"
-                        style="@style/consume_wait_account_paraval_style"/>
-            </LinearLayout>
-
-            <LinearLayout style="@style/consume_wait_account_ll_style">
-
-                <TextView
-                        style="@style/consume_wait_account_paraname_style"
-                        android:text="市民卡号: "/>
-
-                <TextView
-                        android:id="@+id/tv_citizen_cardno"
-                        style="@style/consume_wait_account_paraval_style"/>
-            </LinearLayout>
-
-            <LinearLayout style="@style/consume_wait_account_ll_style">
-
-                <TextView
-                        style="@style/consume_wait_account_paraname_style"
-                        android:text="账户状态: "/>
-
-                <TextView
-                        android:id="@+id/tv_cardstatus"
-                        style="@style/consume_wait_account_paraval_style"/>
-            </LinearLayout>
-        </LinearLayout>
-    </LinearLayout>
-
-    <LinearLayout
-            android:layout_width="match_parent"
-            android:layout_height="match_parent"
-            android:layout_marginLeft="20dp"
-            android:layout_marginTop="10dp"
-            android:layout_marginRight="20dp"
-            android:layout_marginBottom="20dp"
-            android:background="@drawable/corner_bg_ordinary_consume_green"
-            android:orientation="vertical">
-
-        <LinearLayout
-                android:layout_width="match_parent"
-                android:layout_height="wrap_content"
-                android:orientation="horizontal"
-                android:padding="@dimen/consume_text_pad_size1">
-
-            <ImageView
-                    android:layout_width="40dp"
-                    android:layout_height="40dp"
-                    android:scaleType="fitXY"
-                    android:src="@mipmap/bill_lastdtl"/>
-
-            <TextView
-                    android:layout_width="match_parent"
-                    android:layout_height="wrap_content"
-                    android:text="最近一笔"
-                    android:textColor="@color/blue"
-                    android:textSize="@dimen/consume_text_size2"/>
-        </LinearLayout>
-
-        <View
-                android:layout_width="match_parent"
-                android:layout_height="1dp"
-                android:layout_marginLeft="10dp"
-                android:layout_marginTop="10dp"
-                android:layout_marginRight="10dp"
-                android:layout_marginBottom="5dp"
-                android:background="@color/black"/>
-
-        <LinearLayout
-                android:layout_width="match_parent"
-                android:layout_height="wrap_content"
-                android:orientation="horizontal"
-                android:paddingLeft="10dp"
-                android:paddingTop="10dp">
-
-            <TextView
-                    android:layout_width="wrap_content"
-                    android:layout_height="match_parent"
-                    android:text="支付结果:  "
-                    android:textColor="@color/black"
-                    android:textSize="@dimen/consume_text_size2"/>
-
-            <TextView
-                    android:id="@+id/tv_last_pay_result"
-                    android:layout_width="match_parent"
-                    android:layout_height="wrap_content"
-                    android:maxLines="1"
-                    android:text=""
-                    android:textColor="@color/blue"
-                    android:textSize="@dimen/consume_text_size2"
-                    android:textStyle="bold"/>
-        </LinearLayout>
-
-        <LinearLayout
-                android:id="@+id/ll_consume_last_failreason"
-                android:layout_width="match_parent"
-                android:layout_height="wrap_content"
-                android:orientation="horizontal"
-                android:paddingLeft="10dp"
-                android:paddingTop="5dp"
-                android:visibility="gone">
-
-            <TextView
-                    android:layout_width="wrap_content"
-                    android:layout_height="match_parent"
-                    android:text="失败提示:  "
-                    android:textColor="@color/cl_red"
-                    android:textSize="@dimen/consume_text_size2"/>
-
-            <TextView
-                    android:id="@+id/tv_last_failreason"
-                    android:layout_width="match_parent"
-                    android:layout_height="wrap_content"
-                    android:maxLines="1"
-                    android:text=""
-                    android:textColor="@color/cl_red"
-                    android:textSize="@dimen/consume_text_size2"
-                    android:textStyle="bold"/>
-        </LinearLayout>
-        <LinearLayout
-                android:id="@+id/ll_consume_cardno"
-                android:layout_width="match_parent"
-                android:layout_height="wrap_content"
-                android:orientation="horizontal"
-                android:paddingLeft="10dp"
-                android:paddingTop="5dp">
-
-            <TextView
-                    android:layout_width="wrap_content"
-                    android:layout_height="match_parent"
-                    android:text="支付卡号:  "
-                    android:textColor="@color/black"
-                    android:textSize="@dimen/consume_text_size2"/>
-
-            <TextView
-                    android:id="@+id/tv_last_cardno"
-                    android:layout_width="match_parent"
-                    android:layout_height="match_parent"
-                    android:maxLines="1"
-                    android:text=""
-                    android:textColor="@color/blue"
-                    android:textSize="@dimen/consume_text_size2"
-                    android:textStyle="bold"/>
-        </LinearLayout>
-        <LinearLayout
-                android:id="@+id/ll_consume_last_payamt"
-                android:layout_width="match_parent"
-                android:layout_height="wrap_content"
-                android:orientation="horizontal"
-                android:paddingLeft="10dp"
-                android:paddingTop="5dp">
-
-            <TextView
-                    android:layout_width="wrap_content"
-                    android:layout_height="match_parent"
-                    android:text="支付金额:  "
-                    android:textColor="@color/black"
-                    android:textSize="@dimen/consume_text_size2"/>
-
-            <TextView
-                    android:id="@+id/tv_last_payamt"
-                    android:layout_width="match_parent"
-                    android:layout_height="match_parent"
-                    android:maxLines="1"
-                    android:text=""
-                    android:textColor="@color/blue"
-                    android:textSize="@dimen/consume_text_size2"
-                    android:textStyle="bold"/>
-        </LinearLayout>
-
-        <LinearLayout
-                android:layout_width="match_parent"
-                android:layout_height="wrap_content"
-                android:orientation="horizontal"
-                android:paddingLeft="10dp"
-                android:paddingTop="5dp">
-
-            <TextView
-                    android:layout_width="wrap_content"
-                    android:layout_height="match_parent"
-                    android:text="支付方式:  "
-                    android:textColor="@color/black"
-                    android:textSize="@dimen/consume_text_size2"/>
-
-            <TextView
-                    android:id="@+id/tv_last_payway"
-                    android:layout_width="match_parent"
-                    android:layout_height="match_parent"
-                    android:maxLines="1"
-                    android:text=""
-                    android:textColor="@color/blue"
-                    android:textSize="@dimen/consume_text_size2"
-                    android:textStyle="bold"/>
-        </LinearLayout>
-
-        <LinearLayout
-                android:layout_width="match_parent"
-                android:layout_height="wrap_content"
-                android:orientation="horizontal"
-                android:paddingLeft="10dp"
-                android:paddingTop="5dp">
-
-            <TextView
-                    android:layout_width="wrap_content"
-                    android:layout_height="match_parent"
-                    android:text="支付时间:  "
-                    android:textColor="@color/black"
-                    android:textSize="@dimen/consume_text_size2"/>
-
-            <TextView
-                    android:id="@+id/tv_last_paytime"
-                    android:layout_width="match_parent"
-                    android:layout_height="match_parent"
-                    android:maxLines="1"
-                    android:text=""
-                    android:textColor="@color/blue"
-                    android:textSize="@dimen/consume_text_size2"
-                    android:textStyle="bold"/>
-        </LinearLayout>
-    </LinearLayout>
+<?xml version="1.0" encoding="utf-8"?>

+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"

+              android:layout_width="match_parent"

+              android:layout_height="match_parent"

+              android:background="@color/light_blue2"

+              android:focusable="true"

+              android:orientation="vertical">

+

+    <LinearLayout

+            android:layout_width="match_parent"

+            android:layout_height="wrap_content"

+            android:layout_marginLeft="20dp"

+            android:layout_marginTop="20dp"

+            android:layout_marginRight="20dp"

+            android:background="@drawable/corner_bg_white"

+            android:orientation="vertical">

+

+        <LinearLayout

+                android:layout_width="match_parent"

+                android:layout_height="304dp"

+                android:orientation="vertical">

+

+            <LinearLayout

+                    android:layout_width="match_parent"

+                    android:layout_height="130dp"

+                    android:orientation="horizontal"

+                    android:padding="@dimen/consume_text_pad_size"

+                    android:weightSum="3">

+

+                <LinearLayout

+                        android:layout_width="0dp"

+                        android:layout_height="match_parent"

+                        android:layout_weight="2"

+                        android:orientation="horizontal">

+

+                    <ImageView

+                            android:layout_width="60dp"

+                            android:layout_height="60dp"

+                            android:layout_gravity="center"

+                            android:scaleType="fitXY"

+                            android:src="@mipmap/shop_logo"/>

+

+                    <LinearLayout

+                            android:layout_width="wrap_content"

+                            android:layout_height="match_parent"

+                            android:layout_gravity="center"

+                            android:layout_marginLeft="10dp"

+                            android:layout_marginTop="8dp"

+                            android:orientation="vertical"

+                            android:padding="1dp">

+

+                        <TextView

+                                android:id="@+id/tv_shopname"

+                                android:layout_width="match_parent"

+                                android:layout_height="wrap_content"

+                                android:maxLines="2"

+                                android:text=""

+                                android:textColor="@color/blue"

+                                android:textSize="28sp"/>

+

+                        <TextView

+                                android:id="@+id/tv_nowtime"

+                                android:layout_width="match_parent"

+                                android:layout_height="wrap_content"

+                                android:gravity="start"

+                                android:maxLines="1"

+                                android:text=""

+                                android:textColor="@color/blue"

+                                android:textSize="22sp"/>

+                    </LinearLayout>

+                </LinearLayout>

+

+                <LinearLayout

+                        android:layout_width="0dp"

+                        android:layout_height="match_parent"

+                        android:layout_gravity="center"

+                        android:layout_weight="1"

+                        android:gravity="end"

+                        android:orientation="horizontal">

+

+                    <ImageView

+                            android:id="@+id/tv_linklogo"

+                            android:layout_width="30dp"

+                            android:layout_height="30dp"

+                            android:scaleType="fitXY"

+                            android:src="@drawable/wireless_on"/>

+

+                    <TextView

+                            android:id="@+id/tv_linkstat"

+                            android:layout_width="wrap_content"

+                            android:layout_height="wrap_content"

+                            android:maxLines="1"

+                            android:text="已联网"

+                            android:textColor="@color/blue"

+                            android:textSize="22sp"/>

+                </LinearLayout>

+            </LinearLayout>

+

+            <View

+                    android:layout_width="match_parent"

+                    android:layout_height="1dp"

+                    android:layout_marginLeft="10dp"

+                    android:layout_marginRight="10dp"

+                    android:background="@color/black"/>

+

+            <LinearLayout

+                    android:layout_width="match_parent"

+                    android:layout_height="match_parent"

+                    android:orientation="horizontal"

+                    android:padding="@dimen/consume_text_pad_size">

+

+                <TextView

+                        android:layout_width="260dp"

+                        android:layout_height="match_parent"

+                        android:gravity="start|center"

+                        android:text="消费金额"

+                        android:textColor="@color/blue"

+                        android:textSize="50sp"

+                        android:textStyle="bold"/>

+

+                <TextView

+                        android:id="@+id/tv_input_amt"

+                        android:layout_width="wrap_content"

+                        android:layout_height="match_parent"

+                        android:gravity="center"

+                        android:maxLines="1"

+                        android:text="0"

+                        android:textColor="@color/orange1"

+                        android:textSize="65sp"

+                        android:textStyle="bold"/>

+            </LinearLayout>

+        </LinearLayout>

+    </LinearLayout>

+

+    <LinearLayout

+            android:layout_width="match_parent"

+            android:layout_height="wrap_content"

+            android:layout_marginLeft="20dp"

+            android:layout_marginTop="10dp"

+            android:layout_marginRight="20dp"

+            android:background="@drawable/corner_bg_ordinary_consume_green"

+            android:orientation="vertical">

+

+        <LinearLayout

+                android:layout_width="match_parent"

+                android:layout_height="wrap_content"

+                android:orientation="horizontal"

+                android:padding="10dp">

+

+            <ImageView

+                    android:layout_width="40dp"

+                    android:layout_height="40dp"

+                    android:scaleType="fitXY"

+                    android:src="@mipmap/show_card_info"/>

+

+            <TextView

+                    android:id="@+id/tv_card_info"

+                    android:layout_width="match_parent"

+                    android:layout_height="wrap_content"

+                    android:text="市民卡信息"

+                    android:textColor="@color/blue"

+                    android:textSize="@dimen/consume_text_size2"/>

+        </LinearLayout>

+

+        <View

+                android:layout_width="match_parent"

+                android:layout_height="1dp"

+                android:layout_marginLeft="10dp"

+                android:layout_marginTop="5dp"

+                android:layout_marginRight="10dp"

+                android:layout_marginBottom="5dp"

+                android:background="@color/black"/>

+

+        <LinearLayout

+                android:layout_width="match_parent"

+                android:layout_height="match_parent"

+                android:layout_marginLeft="10dp"

+                android:layout_marginTop="5dp"

+                android:orientation="vertical">

+

+            <ImageView

+                    android:layout_width="80dp"

+                    android:layout_height="80dp"

+                    android:layout_gravity="center"

+                    android:scaleType="fitXY"

+                    android:src="@mipmap/default_photo"

+                    android:visibility="gone"/>

+

+

+            <TextView

+                    android:layout_width="wrap_content"

+                    android:layout_height="wrap_content"

+                    android:padding="@dimen/consume_text_pad_size1"

+                    android:text="如需查询信息,请刷卡!"

+                    android:textColor="@color/blue"

+                    android:textSize="@dimen/consume_text_size2"/>

+

+            <LinearLayout style="@style/consume_wait_account_ll_style">

+

+                <TextView

+                        style="@style/consume_wait_account_paraname_style"

+                        android:text="姓         名: "/>

+

+                <TextView

+                        android:id="@+id/tv_citizen_name"

+                        style="@style/consume_wait_account_paraval_style"/>

+            </LinearLayout>

+

+            <LinearLayout style="@style/consume_wait_account_ll_style">

+

+                <TextView

+                        style="@style/consume_wait_account_paraname_style"

+                        android:text="市民卡号: "/>

+

+                <TextView

+                        android:id="@+id/tv_citizen_cardno"

+                        style="@style/consume_wait_account_paraval_style"/>

+            </LinearLayout>

+

+            <LinearLayout style="@style/consume_wait_account_ll_style">

+

+                <TextView

+                        style="@style/consume_wait_account_paraname_style"

+                        android:text="账户状态: "/>

+

+                <TextView

+                        android:id="@+id/tv_cardstatus"

+                        style="@style/consume_wait_account_paraval_style"/>

+            </LinearLayout>

+        </LinearLayout>

+    </LinearLayout>

+

+    <LinearLayout

+            android:layout_width="match_parent"

+            android:layout_height="match_parent"

+            android:layout_marginLeft="20dp"

+            android:layout_marginTop="10dp"

+            android:layout_marginRight="20dp"

+            android:layout_marginBottom="20dp"

+            android:background="@drawable/corner_bg_ordinary_consume_green"

+            android:orientation="vertical">

+

+        <LinearLayout

+                android:layout_width="match_parent"

+                android:layout_height="wrap_content"

+                android:orientation="horizontal"

+                android:padding="@dimen/consume_text_pad_size1">

+

+            <ImageView

+                    android:layout_width="40dp"

+                    android:layout_height="40dp"

+                    android:scaleType="fitXY"

+                    android:src="@mipmap/bill_lastdtl"/>

+

+            <TextView

+                    android:layout_width="wrap_content"

+                    android:layout_height="wrap_content"

+                    android:text="最近一笔"

+                    android:textColor="@color/blue"

+                    android:textSize="@dimen/consume_text_size2"/>

+            <TextView

+                    android:id="@+id/tv_syno_flag"

+                    android:layout_width="wrap_content"

+                    android:layout_height="wrap_content"

+                    android:text="!"

+                    android:textColor="@color/blue"

+                    android:textSize="@dimen/consume_text_size2" />

+        </LinearLayout>

+

+        <View

+                android:layout_width="match_parent"

+                android:layout_height="1dp"

+                android:layout_marginLeft="10dp"

+                android:layout_marginTop="10dp"

+                android:layout_marginRight="10dp"

+                android:layout_marginBottom="5dp"

+                android:background="@color/black"/>

+

+        <LinearLayout

+                android:layout_width="match_parent"

+                android:layout_height="wrap_content"

+                android:orientation="horizontal"

+                android:paddingLeft="10dp"

+                android:paddingTop="10dp">

+

+            <TextView

+                    android:layout_width="wrap_content"

+                    android:layout_height="match_parent"

+                    android:text="支付结果:  "

+                    android:textColor="@color/black"

+                    android:textSize="@dimen/consume_text_size2"/>

+

+            <TextView

+                    android:id="@+id/tv_last_pay_result"

+                    android:layout_width="match_parent"

+                    android:layout_height="wrap_content"

+                    android:maxLines="1"

+                    android:text=""

+                    android:textColor="@color/blue"

+                    android:textSize="@dimen/consume_text_size2"

+                    android:textStyle="bold"/>

+        </LinearLayout>

+

+        <LinearLayout

+                android:id="@+id/ll_consume_last_failreason"

+                android:layout_width="match_parent"

+                android:layout_height="wrap_content"

+                android:orientation="horizontal"

+                android:paddingLeft="10dp"

+                android:paddingTop="5dp"

+                android:visibility="gone">

+

+            <TextView

+                    android:layout_width="wrap_content"

+                    android:layout_height="match_parent"

+                    android:text="失败提示:  "

+                    android:textColor="@color/cl_red"

+                    android:textSize="@dimen/consume_text_size2"/>

+

+            <TextView

+                    android:id="@+id/tv_last_failreason"

+                    android:layout_width="match_parent"

+                    android:layout_height="wrap_content"

+                    android:maxLines="1"

+                    android:text=""

+                    android:textColor="@color/cl_red"

+                    android:textSize="@dimen/consume_text_size2"

+                    android:textStyle="bold"/>

+        </LinearLayout>

+        <LinearLayout

+                android:id="@+id/ll_consume_cardno"

+                android:layout_width="match_parent"

+                android:layout_height="wrap_content"

+                android:orientation="horizontal"

+                android:paddingLeft="10dp"

+                android:paddingTop="5dp">

+

+            <TextView

+                    android:layout_width="wrap_content"

+                    android:layout_height="match_parent"

+                    android:text="支付卡号:  "

+                    android:textColor="@color/black"

+                    android:textSize="@dimen/consume_text_size2"/>

+

+            <TextView

+                    android:id="@+id/tv_last_cardno"

+                    android:layout_width="match_parent"

+                    android:layout_height="match_parent"

+                    android:maxLines="1"

+                    android:text=""

+                    android:textColor="@color/blue"

+                    android:textSize="@dimen/consume_text_size2"

+                    android:textStyle="bold"/>

+        </LinearLayout>

+        <LinearLayout

+                android:id="@+id/ll_consume_last_payamt"

+                android:layout_width="match_parent"

+                android:layout_height="wrap_content"

+                android:orientation="horizontal"

+                android:paddingLeft="10dp"

+                android:paddingTop="5dp">

+

+            <TextView

+                    android:layout_width="wrap_content"

+                    android:layout_height="match_parent"

+                    android:text="支付金额:  "

+                    android:textColor="@color/black"

+                    android:textSize="@dimen/consume_text_size2"/>

+

+            <TextView

+                    android:id="@+id/tv_last_payamt"

+                    android:layout_width="match_parent"

+                    android:layout_height="match_parent"

+                    android:maxLines="1"

+                    android:text=""

+                    android:textColor="@color/blue"

+                    android:textSize="@dimen/consume_text_size2"

+                    android:textStyle="bold"/>

+        </LinearLayout>

+

+        <LinearLayout

+                android:layout_width="match_parent"

+                android:layout_height="wrap_content"

+                android:orientation="horizontal"

+                android:paddingLeft="10dp"

+                android:paddingTop="5dp">

+

+            <TextView

+                    android:layout_width="wrap_content"

+                    android:layout_height="match_parent"

+                    android:text="支付方式:  "

+                    android:textColor="@color/black"

+                    android:textSize="@dimen/consume_text_size2"/>

+

+            <TextView

+                    android:id="@+id/tv_last_payway"

+                    android:layout_width="match_parent"

+                    android:layout_height="match_parent"

+                    android:maxLines="1"

+                    android:text=""

+                    android:textColor="@color/blue"

+                    android:textSize="@dimen/consume_text_size2"

+                    android:textStyle="bold"/>

+        </LinearLayout>

+

+        <LinearLayout

+                android:layout_width="match_parent"

+                android:layout_height="wrap_content"

+                android:orientation="horizontal"

+                android:paddingLeft="10dp"

+                android:paddingTop="5dp">

+

+            <TextView

+                    android:layout_width="wrap_content"

+                    android:layout_height="match_parent"

+                    android:text="支付时间:  "

+                    android:textColor="@color/black"

+                    android:textSize="@dimen/consume_text_size2"/>

+

+            <TextView

+                    android:id="@+id/tv_last_paytime"

+                    android:layout_width="match_parent"

+                    android:layout_height="match_parent"

+                    android:maxLines="1"

+                    android:text=""

+                    android:textColor="@color/blue"

+                    android:textSize="@dimen/consume_text_size2"

+                    android:textStyle="bold"/>

+        </LinearLayout>

+    </LinearLayout>

 </LinearLayout>
\ No newline at end of file
diff --git a/app/src/main/res/layout/dialog_purchase.xml b/app/src/main/res/layout/dialog_purchase.xml
index fc8ef91..1deb797 100644
--- a/app/src/main/res/layout/dialog_purchase.xml
+++ b/app/src/main/res/layout/dialog_purchase.xml
@@ -25,10 +25,10 @@
                 android:id="@+id/tv_close_count"

                 android:layout_width="wrap_content"

                 android:layout_height="wrap_content"

-                android:layout_marginLeft="15dp"

+                android:layout_marginStart="15dp"

                 android:layout_marginTop="10dp"

                 android:gravity="start|center"

-                android:text="30s"

+                android:text="60s"

                 android:textColor="@color/blue"

                 android:textSize="30sp" />