Commit 25a80428 by 刘鹏

feat: 格式化

parent 8fea5e61
......@@ -1486,7 +1486,7 @@ class ExpertSearchFragment : BaseMvpFragment<IExpertSearchView, ExpertSearchPres
val orderToPayTime = SharedPreferencesEditor.getString("orderToPayTime")
var timeLimit = if (TextUtils.isEmpty(orderToPayTime)) {
val timeLimit = if (TextUtils.isEmpty(orderToPayTime)) {
0L
} else {
orderToPayTime.toLong()
......
......@@ -212,7 +212,7 @@ class MineFragment : BaseFragment(), SwipeRefreshLayout.OnRefreshListener, View.
val orderNum = response.data?.consultOrderNum ?: 0
if (orderNum > 0) {
iv_order_tip.visibility = View.VISIBLE
var numberStr = if (orderNum > 99) {
val numberStr = if (orderNum > 99) {
"99+"
} else {
"$orderNum"
......
......@@ -417,18 +417,18 @@
app:layout_constraintTop_toTopOf="parent" />
<TextView
tools:text="9"
android:id="@+id/iv_order_tip"
android:layout_width="12dp"
android:layout_height="12dp"
android:background="@drawable/user_mine_background_red_point_new_coupon"
android:gravity="center"
android:textSize="6sp"
android:textColor="@color/white"
android:background="@drawable/user_mine_background_red_point_new_coupon"
android:textSize="6sp"
android:visibility="gone"
app:layout_constraintCircle="@id/iv_trade_order"
app:layout_constraintCircleAngle="45"
app:layout_constraintCircleRadius="10dp"
tools:text="9"
tools:visibility="visible" />
<TextView
......
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