From 46ca2b43f583ba177c6377ca4d9eae6a3593e6df Mon Sep 17 00:00:00 2001 From: liuqimichale <123456lq> Date: Wed, 25 Nov 2020 16:19:35 +0800 Subject: [PATCH] 车牌颜色 --- js/list.js | 29 ++++++++++++++++++++++++++--- list.html | 2 +- listnew.html | 2 +- 3 files changed, 28 insertions(+), 5 deletions(-) diff --git a/js/list.js b/js/list.js index 2fc8af1..faa473a 100644 --- a/js/list.js +++ b/js/list.js @@ -83,7 +83,7 @@ jsajax.defaultReq( htmls += '
' + data[i].carNumber + '
' + + '' + data[i].carNumber + filterColor(data[i].carNumberColor)+ '
' + ' ' + // ' ' + @@ -109,7 +109,7 @@ jsajax.defaultReq( htmls += '' + data[i].carNumber + '
' + + '' + data[i].carNumber+ filterColor(data[i].carNumberColor) + '
' + ' ' + // ' ' + @@ -136,7 +136,7 @@ jsajax.defaultReq( htmls += '' + data[i].carNumber + '
' + + '' + data[i].carNumber+ filterColor(data[i].carNumberColor) + '
' + ' ' + // ' ' + @@ -432,6 +432,27 @@ function getMd5sign() { } + +function filterColor(val) { + switch (val) { + case '0' : + return ' (蓝色车牌)' + break; + case '1' : + return ' (黄色车牌)' + break; + case '2' : + return ' (白色车牌)' + break; + case '3' : + return ' (黑色车牌)' + break; + case '4' : + return ' (绿色车牌)' + } +} + + $('.outBtn').on('click', function () { //window.location.href = 'http://wxgzh.renniting.cn/wechatwuxi/Chifeng/Threewf/stoppayment/select.html' window.location.href = 'http://wxgzh.huangshiparking.com/HSwechat/PDA-Payment/out.html' @@ -442,3 +463,5 @@ $('.hiddenBtn').on('click', function () { }) + + diff --git a/list.html b/list.html index 4bef046..e15d012 100644 --- a/list.html +++ b/list.html @@ -244,6 +244,6 @@ } })(); - +