Commit df5b0e7f by 刘鹏

feat: 弹窗展示控制时间问题修复

parent 2a4689d0
......@@ -69,7 +69,8 @@ class ConsultSubPayDialog(
}
override fun onFinish() {
var nextShowTime = promptPaymentBean.currentTime ?: (0 + ((promptPaymentBean.orderToPayTime ?: 1) * 1000))
var nextShowTime =
System.currentTimeMillis() + ((promptPaymentBean.orderToPayTime ?: 1) * 1000)
SharedPreferencesEditor.putString("orderToPayTime", nextShowTime.toString())
dismiss()
}
......@@ -80,7 +81,8 @@ class ConsultSubPayDialog(
})
mTimer?.start()
findViewById<TextView>(R.id.tv_close).setOnClickListener {
var nextShowTime = promptPaymentBean.currentTime ?: (0 + ((promptPaymentBean.orderToPayTime ?: 1) * 1000))
var nextShowTime =
System.currentTimeMillis() + ((promptPaymentBean.orderToPayTime ?: 1) * 1000)
SharedPreferencesEditor.putString("orderToPayTime", nextShowTime.toString())
mTimer?.stop()
dismiss()
......@@ -96,7 +98,8 @@ class ConsultSubPayDialog(
ToastUtil.toastShort("跳转失败")
dismiss()
}
var nextShowTime = promptPaymentBean.currentTime ?: (0 + ((promptPaymentBean.orderToPayTime ?: 1) * 1000))
var nextShowTime =
System.currentTimeMillis() + ((promptPaymentBean.orderToPayTime ?: 1) * 1000)
SharedPreferencesEditor.putString("orderToPayTime", nextShowTime.toString())
}
}
......
......@@ -417,12 +417,12 @@
app:layout_constraintTop_toTopOf="parent" />
<TextView
tools:text="11"
tools:text="9"
android:id="@+id/iv_order_tip"
android:layout_width="12dp"
android:layout_height="12dp"
android:gravity="center"
android:textSize="8dp"
android:textSize="6sp"
android:textColor="@color/white"
android:background="@drawable/user_mine_background_red_point_new_coupon"
android:visibility="gone"
......
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