|
@@ -66,7 +66,7 @@
|
|
|
android:layout_marginEnd="@dimen/dp_10"
|
|
|
android:layout_weight="1"
|
|
|
android:gravity="center"
|
|
|
- android:text="@{vm.info.order.receive[0].province.name+vm.info.order.receive[0].city.name+vm.info.order.receive[0].area.name}"
|
|
|
+ android:text="@{vm.info.order.receive[vm.info.order.receive.size()-1].province.name+vm.info.order.receive[vm.info.order.receive.size()-1].city.name+vm.info.order.receive[vm.info.order.receive.size()-1].area.name}"
|
|
|
android:textColor="#BC5B55"
|
|
|
android:textSize="@dimen/sp_15"
|
|
|
tools:text="河北 唐山"></TextView>
|
|
@@ -93,6 +93,122 @@
|
|
|
</androidx.recyclerview.widget.RecyclerView>
|
|
|
|
|
|
|
|
|
+ </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="@dimen/dp_10"
|
|
|
+ android:layout_marginTop="@dimen/dp_10"
|
|
|
+ android:layout_marginEnd="@dimen/dp_10"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:padding="@dimen/dp_10"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:visibility="@{vm.type==0?View.VISIBLE :View.GONE}"
|
|
|
+ app:layout_goneMarginTop="@dimen/dp_10"
|
|
|
+ app:qmui_backgroundColor="@color/white"
|
|
|
+ app:qmui_radius="@dimen/dp_10">
|
|
|
+
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="60dp"
|
|
|
+ android:src="@drawable/ic_phone_enter"
|
|
|
+ android:layout_height="60dp">
|
|
|
+
|
|
|
+ </ImageView>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:layout_marginStart="@dimen/dp_10"
|
|
|
+ android:layout_marginEnd="@dimen/dp_10"
|
|
|
+ android:layout_height="match_parent">
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:layout_marginTop="@dimen/dp_6"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:textSize="@dimen/sp_15"
|
|
|
+ android:textColor="@color/text_title"
|
|
|
+ tools:text="乔治"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+ </TextView>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:textSize="@dimen/sp_15"
|
|
|
+ android:textColor="@color/text_title"
|
|
|
+ tools:text="18535965350"
|
|
|
+ android:layout_marginStart="@dimen/dp_10"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+ </TextView>
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="20dp"
|
|
|
+ android:src="@drawable/ic_collect_off"
|
|
|
+ android:layout_height="20dp">
|
|
|
+
|
|
|
+ </ImageView>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:layout_marginTop="@dimen/dp_4"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:textSize="@dimen/sp_15"
|
|
|
+ android:textColor="@color/text_title"
|
|
|
+ tools:text="鲁QAA888"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+ </TextView>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:textSize="@dimen/sp_15"
|
|
|
+ android:textColor="@color/text_title"
|
|
|
+ android:layout_marginStart="@dimen/dp_10"
|
|
|
+ android:layout_marginEnd="@dimen/dp_10"
|
|
|
+ android:text="/"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+ </TextView>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:textSize="@dimen/sp_15"
|
|
|
+ android:textColor="@color/text_title"
|
|
|
+ tools:text="平板车 13米"
|
|
|
+ android:layout_marginStart="@dimen/dp_10"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+ </TextView>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="20dp"
|
|
|
+ android:src="@drawable/ic_phone_out"
|
|
|
+ android:layout_height="20dp">
|
|
|
+
|
|
|
+ </ImageView>
|
|
|
|
|
|
|
|
|
|
|
@@ -100,6 +216,11 @@
|
|
|
</com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
<com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
@@ -144,12 +265,12 @@
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_marginTop="@dimen/dp_10"
|
|
|
+ android:visibility="@{vm.info.order.type==1?View.VISIBLE :View.GONE}"
|
|
|
android:gravity="center_vertical"
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
<TextView
|
|
|
android:layout_width="@dimen/dp_80"
|
|
|
-
|
|
|
android:layout_height="wrap_content"
|
|
|
android:textColor="@color/text_title1"
|
|
|
android:textSize="@dimen/sp_15"
|
|
@@ -312,7 +433,7 @@
|
|
|
android:layout_marginStart="@dimen/dp_10"
|
|
|
android:onClick="@{v->vm.setCancelOrder(vm.info.order.info_id)}"
|
|
|
android:text="取消发布"
|
|
|
- android:visibility="@{vm.info.order.info_state==10||vm.info.order.info_state==20? View.VISIBLE :View.GONE}"
|
|
|
+ android:visibility="@{vm.isShowCancelBut(vm.info.order.info_state)?View.VISIBLE:View.GONE}"
|
|
|
android:textColor="@color/text_title"
|
|
|
app:qmui_borderColor="@color/color_line"
|
|
|
app:qmui_radius="@dimen/dp_4">
|
|
@@ -325,6 +446,7 @@
|
|
|
android:layout_height="@dimen/dp_40"
|
|
|
android:layout_marginStart="@dimen/dp_15"
|
|
|
android:text="再来一单"
|
|
|
+ android:visibility="@{vm.type==1?View.VISIBLE:View.GONE}"
|
|
|
android:onClick="@{v->vm.anotherOne()}"
|
|
|
android:textColor="@color/text_title"
|
|
|
app:qmui_borderColor="@color/color_line"
|
|
@@ -339,7 +461,22 @@
|
|
|
android:layout_marginStart="@dimen/dp_15"
|
|
|
android:text="接单车辆"
|
|
|
android:onClick="@{v->vm.goDriverList()}"
|
|
|
- android:visibility="@{vm.info.order.info_state==30||vm.info.order.info_state==40? View.VISIBLE :View.GONE}"
|
|
|
+ android:visibility="@{vm.isShowReceiveVehicle(vm.info.order.info_state)?View.VISIBLE:View.GONE}"
|
|
|
+ android:textColor="@color/text_title"
|
|
|
+ app:qmui_borderColor="@color/color_line"
|
|
|
+ app:qmui_radius="@dimen/dp_4">
|
|
|
+
|
|
|
+ </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton>
|
|
|
+
|
|
|
+
|
|
|
+ <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton
|
|
|
+ android:id="@+id/but_track"
|
|
|
+ android:layout_width="120dp"
|
|
|
+ android:layout_height="@dimen/dp_40"
|
|
|
+ android:layout_marginStart="@dimen/dp_15"
|
|
|
+ android:text="运输轨迹"
|
|
|
+ android:onClick="@{v->vm.goTrack()}"
|
|
|
+ android:visibility="@{vm.type==0?View.VISIBLE:View.GONE}"
|
|
|
android:textColor="@color/text_title"
|
|
|
app:qmui_borderColor="@color/color_line"
|
|
|
app:qmui_radius="@dimen/dp_4">
|
|
@@ -347,6 +484,20 @@
|
|
|
</com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton>
|
|
|
|
|
|
|
|
|
+ <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton
|
|
|
+ android:id="@+id/but_step"
|
|
|
+ android:layout_width="120dp"
|
|
|
+ android:layout_height="@dimen/dp_40"
|
|
|
+ android:layout_marginStart="@dimen/dp_15"
|
|
|
+ android:text="下一步"
|
|
|
+ android:onClick="@{v->vm.goStep()}"
|
|
|
+ android:visibility="@{vm.type==0?View.VISIBLE:View.GONE}"
|
|
|
+ android:textColor="@color/text_title"
|
|
|
+ app:qmui_borderColor="@color/color_line"
|
|
|
+ app:qmui_radius="@dimen/dp_4">
|
|
|
+
|
|
|
+ </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton>
|
|
|
+
|
|
|
|
|
|
|
|
|
|