修改*样式,增加扫码枪判断

This commit is contained in:
黄焱
2024-02-27 17:57:00 +08:00
parent 9d2e8d020b
commit f2c8bd7333
2 changed files with 4 additions and 3 deletions

View File

@@ -81,8 +81,9 @@ $(function (){
dom.each(function (){
const requiredDom = $(this).parent().prev().find('label')
let t = requiredDom.html()
t.replace('<i style="color: red;margin-left: -4px">*</i>', '');
t = '<i style="color: red;margin-left: -4px">*</i>' + t
if(t.indexOf('c*') < 0) {
t = '<i class="c*" style="color: red;margin-left: -4px">*</i>' + t
}
requiredDom.html(t)
})
clearInterval(timer)