|
|
@@ -156,18 +156,21 @@
|
|
|
<!-- `/pages-charge/discount/discountV2?rightsId=${userRechargeRightsId}&couponId=${userCouponId}&stationId=${stationId}`-->
|
|
|
<!-- )-->
|
|
|
<view class="fs-28 lh-28 color-000 fw-500">优惠</view>
|
|
|
- <block v-if="checkedUserRightsOrCoupon&&checkedUserRightsOrCoupon.userRights">
|
|
|
+ <block v-if="checkedUserRightsOrCoupon&&checkedUserRightsOrCoupon.rightsId">
|
|
|
<view class="fs-28 lh-28 ml-auto" style="color: #f43636"
|
|
|
>{{ ((checkedUserRightsOrCoupon?.userRights?.discount || 0) / 10).toFixed(1) }}折
|
|
|
</view
|
|
|
>
|
|
|
<uni-icons type="right" size="16" color="#CACACA"></uni-icons>
|
|
|
</block>
|
|
|
- <block v-else-if="checkedUserRightsOrCoupon&&checkedUserRightsOrCoupon.userCoupon">
|
|
|
- <view class="fs-28 lh-28 ml-auto" style="color: #f43636"
|
|
|
- >{{ ((checkedUserRightsOrCoupon?.userCoupon?.discount || 0) / 100).toFixed(2) }}元
|
|
|
- </view
|
|
|
- >
|
|
|
+ <block v-else-if="checkedUserRightsOrCoupon&&checkedUserRightsOrCoupon.couponId">
|
|
|
+ <view class="fs-28 lh-28 ml-auto" style="color: #f43636" v-if="checkedUserRightsOrCoupon.userCoupon.couponType=='FullDiscount'">
|
|
|
+ {{ ((checkedUserRightsOrCoupon?.userCoupon?.discount || 0) / 100).toFixed(2) }}元
|
|
|
+ </view >
|
|
|
+ <view class="fs-28 lh-28 ml-auto" style="color: #f43636" v-else>
|
|
|
+ {{ ((checkedUserRightsOrCoupon?.userCoupon?.discount || 0) / 10).toFixed(1) }}折
|
|
|
+ </view >
|
|
|
+
|
|
|
<!-- <view class="fs-28 lh-28 color-666 ml-8">权益待领取</view>-->
|
|
|
<uni-icons type="right" size="16" color="#CACACA"></uni-icons>
|
|
|
</block>
|
|
|
@@ -715,12 +718,12 @@ const submit = () => {
|
|
|
if (chargeType.value === 1) {
|
|
|
query += "isBooking=false";
|
|
|
}
|
|
|
- let {userRechargeRightsId, userCouponId} = checkedUserRightsOrCoupon.value;
|
|
|
- if (userRechargeRightsId && userRechargeRightsId >= 0) {
|
|
|
- query += `&userRechargeRightsId=${userRechargeRightsId}`;
|
|
|
+ let {rightsId, couponId} = checkedUserRightsOrCoupon.value;
|
|
|
+ if (rightsId && rightsId >= 0) {
|
|
|
+ query += `&userRechargeRightsId=${rightsId}`;
|
|
|
}
|
|
|
- if (userCouponId && userCouponId >= 0) {
|
|
|
- query += `&userCouponId=${userCouponId}`;
|
|
|
+ if (couponId && couponId >= 0) {
|
|
|
+ query += `&userCouponId=${couponId}`;
|
|
|
}
|
|
|
console.log(query)
|
|
|
uni.showLoading({
|