diff --git a/src/assets/images/blackBG.png b/src/assets/images/blackBG.png
new file mode 100644
index 0000000..fa94812
--- /dev/null
+++ b/src/assets/images/blackBG.png
diff --git a/src/assets/images/blueBG.png b/src/assets/images/blueBG.png
new file mode 100644
index 0000000..69f76a8
--- /dev/null
+++ b/src/assets/images/blueBG.png
diff --git a/src/assets/images/greenBG.png b/src/assets/images/greenBG.png
new file mode 100644
index 0000000..d3abb0a
--- /dev/null
+++ b/src/assets/images/greenBG.png
diff --git a/src/assets/images/whiteBG.png b/src/assets/images/whiteBG.png
new file mode 100644
index 0000000..7c89e6f
--- /dev/null
+++ b/src/assets/images/whiteBG.png
diff --git a/src/assets/images/yellowBG.png b/src/assets/images/yellowBG.png
new file mode 100644
index 0000000..34e26b0
--- /dev/null
+++ b/src/assets/images/yellowBG.png
diff --git a/src/components/orderPay.vue b/src/components/orderPay.vue
new file mode 100644
index 0000000..a547fd1
--- /dev/null
+++ b/src/components/orderPay.vue
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
diff --git a/src/components/parkRecord.vue b/src/components/parkRecord.vue
index 64c699e..9f224f1 100644
--- a/src/components/parkRecord.vue
+++ b/src/components/parkRecord.vue
@@ -87,14 +87,14 @@
@@ -110,6 +110,15 @@
暂无记录
+
+
+
+ 知道了
+
@@ -133,8 +142,12 @@ export default {
{money:400,checked:false, id: 4},
] ,
allChecked:false, // 全部选择事件
+ historyCheckedLen:0, //选中了几笔交易
+ historyCheckedMon: 0, //选中了待缴纳的金额
}
},
+ mounted(){
+ },
created() {
this.carNumber = this.$route.query.carNumber // 获取车牌号
console.log(this.carNumber)
@@ -145,9 +158,43 @@ export default {
},
chooseHandle(i, index) { // 历史欠费单个选择事件
i.checked = !i.checked
+ let me = this
+ if(i.checked ){ //单个选中
+ me.historyCheckedLen ++
+ me.historyCheckedMon += i.money
+ }else{ //单个不选中
+ me.historyCheckedLen --
+ me.historyCheckedMon -= i.money
+ }
+
+
},
checkedAll() { // 全选选择事件
this.allChecked = !this.allChecked
+ if(this.allChecked){ //全选
+ let me = this
+ me.historyCheckedMon = 0
+ this.historyList.forEach(function(item){
+ item.checked = true;
+ me.historyCheckedMon += item.money
+ });
+ this.historyCheckedLen = this.historyList.length
+ }else{ //反选
+
+ this.historyList.forEach(function(item){
+ item.checked = false;
+
+ });
+ this.historyCheckedLen = 0
+ this.historyCheckedMon = 0
+ }
+ },
+ toPayPage() { //缴纳费用
+ if(this.historyCheckedLen==0){
+ this.$refs.alert.open()
+ return
+ }
+ this.$router.push({path:'orderPay'})
}
},
filters: {
diff --git a/src/router/index.js b/src/router/index.js
index 5f71020..bdbe917 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -22,6 +22,12 @@ export default new Router({
name: 'parkRecord',
component: parkRecord
},
+ {
+ path: '/orderPay',
+ name: 'orderPay',
+ component: () => import("@/components/orderPay.vue")
+ },
+
]
})