Commit eb4a88b5084716e0fe639aa5a74609ee63b854c9

Authored by liuqimichale
1 parent 7bc83a97

欠费缴纳

src/assets/images/choose.png 0 → 100644

967 Bytes

src/assets/images/choosed.png 0 → 100644

1.15 KB

src/components/parkRecord.vue
1 1 <template>
2   - <div>
3   - <div v-if="parkList.length>0">
  2 + <div style="height: 100%">
  3 + <div v-if="parkList.length>0" style="height: 100%">
4 4 <ul class="tabWrap">
5 5 <li v-for="(i,index) in tabList"
6 6 :key="i.id"
... ... @@ -17,7 +17,7 @@
17 17 <div>
18 18 <p class="free-tip">您为会员卡车辆无需缴费,请直接离场。</p>
19 19  
20   - <div class="cost-main">
  20 + <div class="cost-main" >
21 21 <ul class="cost-header">
22 22 <li :class="carColor | formatColor">蒙DMW169</li>
23 23 <li>本次费用</li>
... ... @@ -33,7 +33,7 @@
33 33 </p>
34 34 <p>停车时长:18分钟33秒</p>
35 35 <div class="out-wrap">
36   - <p class="mon-wrap">1.50元</p>
  36 + <p class="mon-wrap">¥1.50</p>
37 37 <p class="out-btn">出场缴费</p>
38 38 </div>
39 39 </div>
... ... @@ -47,7 +47,62 @@
47 47  
48 48  
49 49 <!--历史缴费-->
50   - <div v-show="currentTabActive==1">1</div>
  50 + <div v-show="currentTabActive==1" class="history-con" >
  51 +
  52 + <div class="history-body">
  53 + <p class="money-all">总欠费金额:
  54 + <span>¥15.50</span>
  55 + </p>
  56 +
  57 + <div class="cost-main cost-main-history" style="padding-left: 50px;"
  58 +
  59 + v-for="(i, index) in historyList" :key="i.id"
  60 + @click="chooseHandle(i, index)"
  61 + :class="{isChecked: i.checked}"
  62 + >
  63 + <ul class="cost-header">
  64 + <li :class="carColor | formatColor">蒙DMW169</li>
  65 + <li>欠费</li>
  66 + </ul>
  67 +
  68 + <div class="cost-body">
  69 + <p>车辆类型:临停车</p>
  70 +
  71 + <p>车场名称:赤峰金店南
  72 + </p>
  73 + <p> 进场时间:2020-12-19 12:59:18
  74 + </p>
  75 + <p>出场时间:2020-12-19 12:17:52
  76 + </p>
  77 + <p>停车时长:18分钟33秒</p>
  78 + <div class="out-wrap">
  79 + <p class="mon-wrap">¥1.50</p>
  80 + </div>
  81 +
  82 + </div>
  83 + </div>
  84 +
  85 + </div>
  86 +
  87 +
  88 + <div class="history-footer">
  89 + <p class="statistical-data">您已选中
  90 + <span>3</span>笔交易
  91 + &nbsp;&nbsp;&nbsp;&nbsp;合计:<span>¥ 50.00</span>
  92 + </p>
  93 + <div class="opration-wrap">
  94 + <p class="check-btn" :class="{isAllChecked:allChecked}"
  95 + @click="checkedAll"
  96 + >全选</p>
  97 + <p class="settle-btn">清缴欠费</p>
  98 + </div>
  99 + </div>
  100 +
  101 +
  102 + <!--没有在停费用-->
  103 + <!--<div class="noRecord">暂无记录</div>-->
  104 +
  105 + </div>
51 106  
52 107 </div>
53 108  
... ... @@ -68,9 +123,16 @@ export default {
68 123 { text: '离场待缴', id: 2 },
69 124 ],
70 125 carColor: 1,// 车牌颜色
71   - currentTabActive: 0, // 显示当前哪个
  126 + currentTabActive: 1, // 显示当前哪个
72 127 carNumber: '', // 车牌号码
73   - parkList: [1] // 停车记录数据
  128 + parkList: [1], // 停车记录数据
  129 + historyList:[ // 历史欠费数据
  130 + {money:100,checked:false, id: 1},
  131 + {money:200,checked:false, id: 2},
  132 + {money:300,checked:false, id: 3},
  133 + {money:400,checked:false, id: 4},
  134 + ] ,
  135 + allChecked:false, // 全部选择事件
74 136 }
75 137 },
76 138 created() {
... ... @@ -80,6 +142,12 @@ export default {
80 142 methods: {
81 143 tabHandle(index) { // tab 切换
82 144 this.currentTabActive = index
  145 + },
  146 + chooseHandle(i, index) { // 历史欠费单个选择事件
  147 + i.checked = !i.checked
  148 + },
  149 + checkedAll() { // 全选选择事件
  150 + this.allChecked = !this.allChecked
83 151 }
84 152 },
85 153 filters: {
... ... @@ -205,6 +273,83 @@ export default {
205 273 }
206 274 }
207 275  
  276 +
  277 + .history-con{
  278 + height: calc(100% - 38px);
  279 + overflow: hidden;
  280 + }
  281 + .history-body{
  282 + height: calc(100% - 81px);
  283 + overflow-y: scroll;
  284 + }
  285 + .history-footer{
  286 + height: 81px;
  287 + background: #F8F8F8;
  288 + }
  289 +
  290 +
  291 + .cost-main-history{
  292 + margin-bottom: 10px;
  293 + background:#fff url("../assets/images/choose.png") no-repeat 10px center;
  294 + background-size: 20px 20px;
  295 + cursor: pointer;
  296 + }
  297 +
  298 +
  299 +
  300 +
  301 + .isChecked{
  302 + background:#fff url("../assets/images/choosed.png") no-repeat 10px center;
  303 + background-size: 20px 20px;
  304 + }
  305 +
  306 + .money-all{
  307 + padding-left: 18px;
  308 + height: 25px;
  309 + line-height: 25px;
  310 + font-weight: 500;
  311 + background: #FEF8DB;
  312 + span{
  313 + color: #BC0202;
  314 + }
  315 + }
  316 +
  317 + .statistical-data{
  318 + padding-left: 18px;
  319 + height: 32px;
  320 + line-height: 32px;
  321 + background: #E6FAFA;
  322 + span{
  323 + color: #D20000;
  324 + }
  325 + }
  326 + .opration-wrap{
  327 + padding-left: 18px;
  328 + height: 49px;
  329 + line-height: 49px;
  330 + background: #f8f8f8;
  331 + display: flex;
  332 + justify-content: space-between;
  333 + .check-btn{
  334 + padding-left: 30px;
  335 + background: url("../assets/images/choose.png") no-repeat 0 center;
  336 + background-size: 20px 20px;
  337 + cursor: pointer;
  338 + }
  339 + .isAllChecked{
  340 + background: url("../assets/images/choosed.png") no-repeat 0 center;
  341 + background-size: 20px 20px;
  342 + }
  343 + .settle-btn{
  344 + width: 106px;
  345 + height: 49px;
  346 + background: linear-gradient(145deg, #2783E9 0%, #227ADC 100%);
  347 + text-align: center;
  348 + color: #fff;
  349 + cursor: pointer;
  350 + }
  351 + }
  352 +
208 353 .noRecord {
209 354 padding-top: 200px;
210 355 background: url("../assets/images/noRecord.png") no-repeat center 60px;
... ...