Commit 25cdbf72 authored by shiyl's avatar shiyl

修复 生活圈C端项目SHQCLIENT-1602

parent f14ec403
...@@ -201,7 +201,7 @@ class ConfirmOrderViewModel : BaseViewModel() { ...@@ -201,7 +201,7 @@ class ConfirmOrderViewModel : BaseViewModel() {
// 防止重复多次点击立即支付按钮 // 防止重复多次点击立即支付按钮
paymentEnable(false) paymentEnable(false)
if (!selectedCouponList.value.isNullOrEmpty()) {// 添加上选中的优惠券 if (!selectedCouponList.value.isNullOrEmpty()) {// 添加上选中的优惠券
currentParamsJson.put("coupon_list", JSONArray(selectedCouponList.value)) currentParamsJson.put("coupon_list", JSONArray(Gson().toJson(selectedCouponList.value)))
} }
currentParamsJson.put("take_place_id", selectedPickUpPoint.value?.takePlaceId) currentParamsJson.put("take_place_id", selectedPickUpPoint.value?.takePlaceId)
currentParamsJson.put("receiver_name", receivingName.value) currentParamsJson.put("receiver_name", receivingName.value)
......
...@@ -339,7 +339,7 @@ ...@@ -339,7 +339,7 @@
android:text="@string/already_discount" android:text="@string/already_discount"
android:textColor="@color/color_333333" android:textColor="@color/color_333333"
android:textSize="@dimen/sp14" android:textSize="@dimen/sp14"
app:isShow="@{vm.couponAmount > 0}" app:isShow="@{vm.couponAmountValue > 0}"
app:layout_constraintBaseline_toBaselineOf="@id/tv_goods_total_amount" app:layout_constraintBaseline_toBaselineOf="@id/tv_goods_total_amount"
app:layout_constraintEnd_toStartOf="@id/tv_discount_amount" /> app:layout_constraintEnd_toStartOf="@id/tv_discount_amount" />
...@@ -348,10 +348,10 @@ ...@@ -348,10 +348,10 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/dp10" android:layout_marginEnd="@dimen/dp10"
android:text="@{@string/amount(vm.couponAmount)}" android:text="@{@string/amount(vm.couponAmountValue)}"
android:textColor="@color/color_FD7823" android:textColor="@color/color_FD7823"
android:textSize="@dimen/sp14" android:textSize="@dimen/sp14"
app:isShow="@{vm.couponAmount > 0}" app:isShow="@{vm.couponAmountValue > 0}"
app:layout_constraintBaseline_toBaselineOf="@id/tv_goods_total_amount" app:layout_constraintBaseline_toBaselineOf="@id/tv_goods_total_amount"
app:layout_constraintEnd_toStartOf="@id/tv_goods_total_title" app:layout_constraintEnd_toStartOf="@id/tv_goods_total_title"
tools:text="¥ 10.00" /> tools:text="¥ 10.00" />
......
...@@ -43,8 +43,8 @@ ...@@ -43,8 +43,8 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:visibility="gone" android:visibility="gone"
app:CommonEmptyPageView_empty_content_text="暂无优惠券" app:CommonEmptyPageView_empty_tips_text="这里什么都没有"
app:CommonEmptyPageView_place_holder_img="@drawable/img_empty_place_holder" /> app:CommonEmptyPageView_place_holder_img="@drawable/bcommon_icon_nothing_place_holder" />
</LinearLayout> </LinearLayout>
</layout> </layout>
\ No newline at end of file
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