123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347 |
- <template>
- <scroll-view
- style="background-color: #f4f7ff"
- :class="['scroll-Y', theme]"
- id="slideview"
- scroll-y
- lower-threshold="50"
- scroll-top="0"
- scroll-left="0"
- scroll-with-animation="false"
- enable-back-to-top="false"
- @scrolltolower="bindscrolltolower"
- >
- <div>
- <!-- <LoginDom></LoginDom> -->
- <div
- :class="['choice_card', index === 0 && 'mt30']"
- v-for="(item, index) in list"
- :key="index"
- @click="toDetail(item.id)"
- >
- <div class="carno-box">
- <div class="carno">{{ item.orderNo }}</div>
- <div :class="['status-box', item.paymentStatus !== 'PAID' ? '' : '']">
- <!-- {{ ['支付成功', '支付失败', '已退款'][item.refundStatus] }} -->
- {{ item.refundStatus !== 'NO_REFUND' ? '已退款' : {'PAID': '支付成功', 'FAILED': '支付失败'}[item.paymentStatus || 'FAIED'] }}
- </div>
- <!-- <div class="servicefee">{{ item.actualPayFee | currency }}</div> -->
- </div>
- <div class="van-hairline--bottom"></div>
- <div class="choice_card_index orderno-box">
- <div class="orderno">{{ item.vehicleNo }}</div>
- <!-- <van-icon name="arrow" /> -->
- </div>
- <div class="choice_card_index" style="margin-bottom:0;">
- <div class="choice_card_index_icon">
- <img
- class="car-icon"
- :src="require(`./static/images/vector.png`)"
- />
- <div class="choice_card_index_text">入场时间</div>
- </div>
- <div class="choice_card_index_icon">
- <img
- class="car-icon"
- :src="require(`./static/images/car_time.png`)"
- />
- <div class="choice_card_index_text">停车时长</div>
- </div>
- <!-- {{ item.enterTime }} -->
- </div>
- <div class="choice_card_index" >
- <div class="choice_card_index_icon">
- {{ item.enterTime }}
- </div>
- <div class="choice_card_index_icon">
- {{ item.serviceMin | parkingTime }}
- </div>
- <!-- {{ item.enterTime }} -->
- </div>
- <div class="choice_card_index" style="padding-bottom:21px;margin-bottom: 0;" >
- <div class="choice_card_index_icon bg_parkingRoom">
- <img
- class="car-icon"
- style="
- padding-left: 8px;"
- :src="require(`./static/images/parking_room.png`)"
- />
- <div class="choice_card_index_text2">{{item.parkName}}</div>
- </div>
- <!-- {{ item.enterTime }} -->
- </div>
- <div class="van-hairline--bottom"></div>
- <div class="choice_card_index orderno-box2">
- <div class="orderFee">{{ item.actualPayFee | currency }}</div>
- <div class="orderDetail">查看详情</div>
- <!-- <van-icon name="arrow" /> -->
- </div>
- </div>
- <div class="no-more-data">
- <!-- 为确保用户可以执行下滑动作,设置单次响应的数据量为4 -->
- <div
- >{{ numberOfElements ? '查看更多' : '没有更多啦' }}
- </div>
- </div>
- <div style="height: 10vh;"></div>
- </div>
- </scroll-view>
- </template>
- <script>
- import parkingFeeListJs from './mixins/parkingFeeList'
- import baseMixins from './mixins/base'
- export default {
- mixins:[baseMixins, parkingFeeListJs]
- }
- </script>
- <style lang="less" scoped>
- .scroll-Y {
- width: 100%;
- display: flex;
- flex-direction: column;
- height: 100vh;
- background: #f2f2f2;
- }
- .wrap {
- display: flex;
- flex-direction: column;
- width: 100%;
- }
- .car-icon {
- width: 40px;
- height: 40px;
- margin-right: 10px;
- }
- .parkingFeeList-item {
- background: #fff;
- display: flex;
- flex-direction: column;
- margin-top: 8px;
- .item {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 30px 36px;
- box-sizing: border-box;
- span {
- font-size: 16px;
- }
- }
- .item-bottom {
- border-top: 1px solid #f2f2f2;
- display: flex;
- flex-direction: column;
- padding: 0px 36px;
- box-sizing: border-box;
- padding-top: 8px;
- div {
- display: flex;
- flex-direction: column;
- }
- span {
- color: #999;
- font-size: 14px;
- margin-bottom: 10px;
- }
- }
- }
- .choice_card {
- width: calc(100% - 48px);
- margin:20px 24px;
- // margin-top: 30px;
- // padding: 30px;
- // border-radius: 20px;
- position: relative;
- background-color: #fafbff;
- border-radius: 4px;
- // border: 1px solid #d8dae0;
- &.mt30 {
- margin-top: 30px;
- }
- .carno-box {
- display: flex;
- padding-bottom: 18px;
- // border-bottom: 1px solid #d8dae0;`
- justify-content: space-between;
- padding: 20px 35px;
- .carno {
- font-family: 'PingFang SC';
- font-style: normal;
- font-weight: 400;
- font-size: 28px;
- line-height: 5.6vw;
- color: #999999;
- }
- .servicefee {
- font-size: 30px;
- font-weight: 600;
- color: #333333;
- line-height: 42px;
- }
- .status-box {
- font-family: 'PingFang SC';
- font-style: normal;
- font-weight: 400;
- font-size: 30px;
- color: var(--k-color-primary-01);
- line-height: 42px;
- &.other {
- color: #B15124;
- }
- }
- }
-
- .choice_card_index {
- // width: calc(100% - 48px);
- font-size: 28px;
- font-weight: 400;
- color: #999999;
- line-height: 40px;
- margin-bottom: 12px;
- display: flex;
- padding: 11px 35px;
-
- .choice_card_index_icon {
- width: 50%;
- height:40px;
- line-height: 40px;
- display: flex;
- color:#333;
- }
- .bg_parkingRoom {
- background-color: #F4F7FF;
- width: 100%;
- padding: 15px 0;
- }
- .choice_card_index_text {
- display: inline-block;
- line-height: 40px;
- font-family: 'PingFang SC';
- font-style: normal;
- font-weight: 400;
- font-size: 28px;
- color:#666;
- }
- .choice_card_index_text2 {
- display: inline-block;
- line-height: 40px;
- font-family: 'PingFang SC';
- font-style: normal;
- font-weight: 400;
- font-size: 28px;
- color:#333;
- }
- // justify-content: space-between;
- &.mt0 {
- margin-top: 0;
- }
- &.mb0 {
- margin-bottom: 0;
- }
- &.pb0 {
- padding-bottom: 0;
- }
- .status-box {
- font-size: 30px;
- font-weight: 400;
- color: #064c8a;
- line-height: 42px;
- &.other {
- color: #999999;
- }
- }
- }
- .orderno-box {
- display: flex;
- justify-content: space-between;
- font-weight: 600;
- font-size: 36px;
- color: #333;
- padding-top: 31px;
- line-height:28px;
- }
- .orderno-box2 {
- display: flex;
- justify-content: space-between;
- font-weight: 600;
- color: #333;
- padding: 20px 35px 15px 28px;
- margin-bottom: 0;
-
- }
- .orderFee {
- font-family: 'PingFang SC';
- font-style: normal;
- font-weight: 500;
- font-size: 34px;
- line-height:40px;
- // vertical-align: middle;
- align-self: center;
- // margin-top:5px;
- // padding: 10px 0;
- }
- .orderDetail {
- border: 1px solid #333333;
- border-radius: 32.5px;
- padding: 5px 33px;
- font-family: 'PingFang SC';
- font-style: normal;
- font-weight: 400;
- font-size: 28px;
-
- }
- }
- .notice-info {
- text-align: center;
- color: #b5b3b3;
- padding-bottom: 30px;
- div {
- margin-bottom: -7px;
- }
- }
- .no-more-data {
- width: 100%;
- position: relative;
- text-align: center;
- box-sizing: border-box;
- margin-top: 60px;
- font-size: 22px;
- font-weight: 400;
- color: #999999;
- line-height: 41px;
- background:rgba(255,255,255,0);
- padding:0 24px;
- &::before {
- content: '';
- display: block;
- width: calc(40% - 49px);
- position: absolute;
- left: 49px;
- top: 16px;
- border-top: 1px dashed #cfcfcf;
- }
- &::after {
- content: '';
- display: block;
- width: calc(40% - 49px);
- position: absolute;
- right: 49px;
- top: 16px;
- border-top: 1px dashed #cfcfcf;
- }
- }
- </style>
|