|
@@ -12,120 +12,70 @@
|
|
|
'bgc-green': custTypeId === 2,
|
|
|
}"
|
|
|
>
|
|
|
- {{ parkInfo.carno | formatCarno }}
|
|
|
+ {{ orderDetail.parkingRecord.vehicleNo | formatCarno }}
|
|
|
</div>
|
|
|
<div class="warp_index">
|
|
|
<div>停车场</div>
|
|
|
- <div class="warp_index_color">{{ parkInfo.parkname }}</div>
|
|
|
+ <div class="warp_index_color">{{ orderDetail.parkInfo.parkname }}</div>
|
|
|
</div>
|
|
|
<div class="warp_index">
|
|
|
<div>入场时间</div>
|
|
|
- <div class="warp_index_color">{{ parkInfo.entertime }}</div>
|
|
|
+ <div class="warp_index_color">{{ orderDetail.parkInfo.entertime }}</div>
|
|
|
</div>
|
|
|
<div class="warp_index">
|
|
|
<div>已停车时长</div>
|
|
|
- <div class="warp_index_color">{{ parkingTime }}</div>
|
|
|
+ <div class="warp_index_color">{{ orderDetail.parkingRecord.serviceMin }}</div>
|
|
|
</div>
|
|
|
<div class="warp_index">
|
|
|
<div>应缴</div>
|
|
|
<div class="warp_index_color">
|
|
|
- {{ (parkInfo.servicefee / 100) | currency }}
|
|
|
+ {{ (orderDetail.parkingRecord.totalFee / 100) | currency }}
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="warp" v-if="parkFee.parkInfoEntity">
|
|
|
- <div
|
|
|
- class="warp_index warp_index_da"
|
|
|
- v-if="
|
|
|
- parkFee.parkInfoEntity.consumeReduce ||
|
|
|
- parkFee.parkInfoEntity.memberLevelReduce
|
|
|
- "
|
|
|
- >
|
|
|
+ <div class="warp">
|
|
|
+ <div class="warp_index warp_index_da" v-if="enableConsume">
|
|
|
<div>停车优惠</div>
|
|
|
<div class="warp_index_color" @click="discounts">
|
|
|
- <div
|
|
|
- style="margin-right: 10px"
|
|
|
- :class="hasDiscount ? 'text-red' : ''"
|
|
|
- >
|
|
|
+ <div style="margin-right: 10px" :class="discountDesc === '暂无可用优惠' ? '' : 'text-red'">
|
|
|
{{ discountDesc }}
|
|
|
</div>
|
|
|
- <img
|
|
|
- style="width: 26px; height: 26px"
|
|
|
- :src="`${require('../../static/images/arrows.png')}`"
|
|
|
- />
|
|
|
+ <img style="width: 26px; height: 26px" :src="`${require('../../static/images/arrows.png')}`" />
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div
|
|
|
- class="warp_index warp_index_da"
|
|
|
- v-if="
|
|
|
- parkFee.parkInfoEntity.isuseintegral === 1 &&
|
|
|
- parkFee.discountKind === 7
|
|
|
- "
|
|
|
- >
|
|
|
+ <div class="warp_index warp_index_da" v-if="false && parkFee.parkInfoEntity.isuseintegral === 1 && parkFee.discountKind === 7">
|
|
|
<div>新会员积分优惠</div>
|
|
|
<div class="warp_index_color" @click="newToggle('bottom')">
|
|
|
- <div
|
|
|
- style="margin-right: 10px"
|
|
|
- :class="bonusCopy >= integralNew || durationNew ? 'text-red' : ''"
|
|
|
- >
|
|
|
+ <div style="margin-right: 10px" :class="bonusCopy >= integralNew || durationNew ? 'text-red' : ''">
|
|
|
{{ integralDescNew }}
|
|
|
</div>
|
|
|
- <img
|
|
|
- style="width: 26px; height: 26px"
|
|
|
- :src="`${require('../../static/images/arrows.png')}`"
|
|
|
- />
|
|
|
+ <img style="width: 26px; height: 26px" :src="`${require('../../static/images/arrows.png')}`" />
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div
|
|
|
- class="warp_index warp_index_da"
|
|
|
- v-if="parkFee.parkInfoEntity.isuseintegral === 1"
|
|
|
- >
|
|
|
+ <div class="warp_index warp_index_da" v-if="enablePoints">
|
|
|
<div>积分减免</div>
|
|
|
- <div class="warp_index_color" @click="toggle('bottom')">
|
|
|
- <div
|
|
|
- style="margin-right: 10px"
|
|
|
- :class="bonusCopy >= integral || duration ? 'text-red' : ''"
|
|
|
- >
|
|
|
+ <div class="warp_index_color" @click="showPointsMathPopup('bottom')">
|
|
|
+ <div style="margin-right: 10px" :class="integralDesc === '今日已达上限' ? 'text-disable' : 'text-red'">
|
|
|
{{ integralDesc }}
|
|
|
</div>
|
|
|
- <img
|
|
|
- style="width: 26px; height: 26px"
|
|
|
- :src="`${require('../../static/images/arrows.png')}`"
|
|
|
- />
|
|
|
+ <img style="width: 26px; height: 26px" :src="`${require('../../static/images/arrows.png')}`" />
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div
|
|
|
- class="warp_index warp_index_da"
|
|
|
- v-if="parkFee.parkInfoEntity.isuseticket === 1"
|
|
|
- >
|
|
|
+ <div class="warp_index warp_index_da" v-if="enableCoupon">
|
|
|
<div>优惠劵</div>
|
|
|
<div class="warp_index_color" @click="coupon">
|
|
|
- <div
|
|
|
- style="margin-right: 10px"
|
|
|
- :class="couponCount > 0 ? 'text-red' : ''"
|
|
|
- >
|
|
|
+ <div style="margin-right: 10px" :class="maxOneDayCoupons > 0 ? 'text-red' : 'text-disable'">
|
|
|
{{ couponDesc }}
|
|
|
</div>
|
|
|
- <img
|
|
|
- style="width: 26px; height: 26px"
|
|
|
- :src="`${require('../../static/images/arrows.png')}`"
|
|
|
- />
|
|
|
+ <img style="width: 26px; height: 26px" :src="`${require('../../static/images/arrows.png')}`" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 纸质券 -->
|
|
|
- <div
|
|
|
- class="warp_index warp_index_da"
|
|
|
- v-if="parkFee.parkInfoEntity.papercoupons === 1 || isShowPapercoupons"
|
|
|
- >
|
|
|
+ <div class="warp_index warp_index_da" v-if="enablePaperCoupons">
|
|
|
<div>纸质优惠劵</div>
|
|
|
<div class="warp_index_color" @click="paperCoupon">
|
|
|
- <div style="margin-right: 10px" class="text-red">
|
|
|
- 扫描纸质优惠劵二维码
|
|
|
- </div>
|
|
|
- <img
|
|
|
- style="width: 26px; height: 26px"
|
|
|
- :src="`${require('../../static/images/arrows.png')}`"
|
|
|
- />
|
|
|
+ <div style="margin-right: 10px" class="text-red">扫描纸质优惠劵二维码</div>
|
|
|
+ <img style="width: 26px; height: 26px" :src="`${require('../../static/images/arrows.png')}`" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div
|
|
@@ -136,60 +86,34 @@
|
|
|
}"
|
|
|
>
|
|
|
<div>优惠金额:</div>
|
|
|
- <div class="warp_index_color" style="color: #ff0000">
|
|
|
- -{{ discountTotalFee | currency }}
|
|
|
- </div>
|
|
|
+ <div class="warp_index_color" style="color: #ff0000">-{{ usingTotalDiscount | currency }}</div>
|
|
|
</div>
|
|
|
<div :class="{ warp_index: true, color_warp_index: custTypeId !== 0 }">
|
|
|
<div>应付金额:</div>
|
|
|
<div class="warp_index_color" style="color: #ff0000">
|
|
|
- {{ actualFee | currency }}
|
|
|
+ {{ actualPayFee | currency }}
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div
|
|
|
- class="top_content"
|
|
|
- v-if="parkFee.parkInfoEntity && parkFee.parkInfoEntity.payinstruction"
|
|
|
- >
|
|
|
+ <div class="top_content" v-if="orderDetail.parkInfo && orderDetail.parkInfo.description">
|
|
|
<div class="title_box">
|
|
|
<span class="btn">缴费说明</span>
|
|
|
</div>
|
|
|
- <div class="info" :class="!isShow ? 'is-show' : ''">
|
|
|
- <span>{{ parkFee.parkInfoEntity.payinstruction }}</span>
|
|
|
- </div>
|
|
|
- <div
|
|
|
- class="top-down"
|
|
|
- @click="togglePayinstruction"
|
|
|
- v-if="!isShow && parkFee.parkInfoEntity.payinstruction.length > 60"
|
|
|
- >
|
|
|
- ︾
|
|
|
- </div>
|
|
|
- <div
|
|
|
- class="top-down"
|
|
|
- @click="togglePayinstruction"
|
|
|
- v-if="isShow && parkFee.parkInfoEntity.payinstruction.length > 60"
|
|
|
- >
|
|
|
- ︽
|
|
|
+ <div class="info" :class="!isShowDescription ? 'is-show' : ''">
|
|
|
+ <span>{{ orderDetail.parkInfo.description }}</span>
|
|
|
</div>
|
|
|
+ <div class="top-down" @click="togglePayinstruction" v-if="!isShowDescription && orderDetail.parkInfo.description.length > 60">︾</div>
|
|
|
+ <div class="top-down" @click="togglePayinstruction" v-if="isShowDescription && orderDetail.parkInfo.description.length > 60">︽</div>
|
|
|
</div>
|
|
|
<div style="height: 130px; width: 100%"></div>
|
|
|
</div>
|
|
|
<div class="flewx">
|
|
|
<div class="flewx-content">
|
|
|
- 应付<span style="color: #ff0000; font-size: 32px; padding-left: 20px">{{
|
|
|
- actualFee | currency
|
|
|
- }}</span>
|
|
|
+ 应付<span style="color: #ff0000; font-size: 32px; padding-left: 20px">{{ actualPayFee | currency }}</span>
|
|
|
元
|
|
|
- <span style="color: #8d8d8d; padding-left: 30px; font-size: 28px"
|
|
|
- >已优惠{{ discountTotalFee | currency }}元</span
|
|
|
- >
|
|
|
+ <span style="color: #8d8d8d; padding-left: 30px; font-size: 28px">已优惠{{ usingTotalDiscount | currency }}元</span>
|
|
|
<div class="count-down-box">
|
|
|
- <van-count-down
|
|
|
- v-if="payCarno"
|
|
|
- format="mm:ss"
|
|
|
- :time="refreshTime * 1000"
|
|
|
- @finish="resetCountDown()"
|
|
|
- />
|
|
|
+ <van-count-down v-if="orderDetail.parkingRecord.vehicleNo" format="mm:ss" :time="refreshTime * 1000" @finish="resetCountDown()" />
|
|
|
<span class="desc">后同步最新费用</span>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -205,41 +129,27 @@
|
|
|
支付
|
|
|
</div>
|
|
|
</div>
|
|
|
- <van-popup
|
|
|
- v-model="popup"
|
|
|
- position="bottom"
|
|
|
- :animation="false"
|
|
|
- :maskClick="false"
|
|
|
- :close-on-click-overlay="false"
|
|
|
- >
|
|
|
+ <van-popup v-model="popup" position="bottom" :animation="false" :maskClick="false" :close-on-click-overlay="false">
|
|
|
<div class="popue_box">
|
|
|
<div class="popue_box_index1">积分减免</div>
|
|
|
<div class="popue_box_index">
|
|
|
<div>减免规则</div>
|
|
|
- <div style="color: #989898">
|
|
|
- {{ integral }}积分抵扣{{
|
|
|
- parkMallCode === 5 ? integralToValue + '元' : '1小时'
|
|
|
- }}
|
|
|
- </div>
|
|
|
+ <div style="color: #989898">{{ pointsPerHour }}积分抵扣{{ orderDetail.parkInfo.parkMallCode === 5 ? integralToValue + '元' : '1小时' }}</div>
|
|
|
</div>
|
|
|
<div class="popue_box_index">
|
|
|
<div style="font-weight: 700">可用积分</div>
|
|
|
- <div style="color: #ed1c24">{{ bonus }}分</div>
|
|
|
+ <div style="color: #ed1c24">{{ available }}分</div>
|
|
|
</div>
|
|
|
<div class="popue_box_index">
|
|
|
- <div>抵扣{{ parkMallCode === 5 ? '金额' : '时长' }}</div>
|
|
|
+ <div>抵扣{{ orderDetail.parkInfo.parkMallCode === 5 ? '金额' : '时长' }}</div>
|
|
|
<div class="popue_box_index" style="width: 325px">
|
|
|
<div class="popue_box_index4_xs">
|
|
|
- <div class="popue_box_index4_xs_index1" @click="durationMinus">
|
|
|
- -
|
|
|
- </div>
|
|
|
- <div class="popue_box_index4_xs_index2">{{ duration }}</div>
|
|
|
- <div class="popue_box_index4_xs_index3" @click="durationAdd">
|
|
|
- +
|
|
|
- </div>
|
|
|
+ <div class="popue_box_index4_xs_index1" @click="$store.dispatch('order/pointsMath',{type: 'minus'})">-</div>
|
|
|
+ <div class="popue_box_index4_xs_index2">{{ pointsTime }}</div>
|
|
|
+ <div class="popue_box_index4_xs_index3" @click="$store.dispatch('order/pointsMath',{type: 'add'})">+</div>
|
|
|
</div>
|
|
|
<div style="color: #808080">
|
|
|
- {{ parkMallCode === 5 ? '元' : '小时' }}
|
|
|
+ {{ orderDetail.parkInfo.parkMallCode === 5 ? '元' : '小时' }}
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -250,7 +160,7 @@
|
|
|
blue_popue_box_index4_by: custTypeId === 1,
|
|
|
green_popue_box_index4_by: custTypeId === 2,
|
|
|
}"
|
|
|
- @click="cancel(1)"
|
|
|
+ @click="cancelPointsMathPopup()"
|
|
|
>
|
|
|
取消
|
|
|
</div>
|
|
@@ -260,20 +170,14 @@
|
|
|
blue_popue_box_index4_by1: custTypeId === 1,
|
|
|
green_popue_box_index4_by1: custTypeId === 2,
|
|
|
}"
|
|
|
- @click="confirm(1)"
|
|
|
+ @click="savePointsMathPopup()"
|
|
|
>
|
|
|
确定
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</van-popup>
|
|
|
- <van-popup
|
|
|
- v-model="newpopup"
|
|
|
- position="bottom"
|
|
|
- :animation="false"
|
|
|
- :maskClick="false"
|
|
|
- :close-on-click-overlay="false"
|
|
|
- >
|
|
|
+ <van-popup v-if="false" v-model="newpopup" position="bottom" :animation="false" :maskClick="false" :close-on-click-overlay="false">
|
|
|
<div class="popue_box">
|
|
|
<div class="popue_box_index1">积分优惠减免</div>
|
|
|
<div class="popue_box_index">
|
|
@@ -285,19 +189,15 @@
|
|
|
<div style="color: #ed1c24">{{ bonus }}分</div>
|
|
|
</div>
|
|
|
<div class="popue_box_index">
|
|
|
- <div>抵扣{{ parkMallCode === 5 ? '金额' : '时长' }}</div>
|
|
|
+ <div>抵扣{{ orderDetail.parkInfo.parkMallCode === 5 ? '金额' : '时长' }}</div>
|
|
|
<div class="popue_box_index" style="width: 325px">
|
|
|
<div class="popue_box_index4_xs">
|
|
|
- <div class="popue_box_index4_xs_index1" @click="durationMinusNew">
|
|
|
- -
|
|
|
- </div>
|
|
|
+ <div class="popue_box_index4_xs_index1" @click="durationMinusNew">-</div>
|
|
|
<div class="popue_box_index4_xs_index2">{{ durationNew }}</div>
|
|
|
- <div class="popue_box_index4_xs_index3" @click="durationAddNew">
|
|
|
- +
|
|
|
- </div>
|
|
|
+ <div class="popue_box_index4_xs_index3" @click="durationAddNew">+</div>
|
|
|
</div>
|
|
|
<div style="color: #808080">
|
|
|
- {{ parkMallCode === 5 ? '元' : '小时' }}
|
|
|
+ {{ orderDetail.parkInfo.parkMallCode === 5 ? '元' : '小时' }}
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|