修改*样式,增加扫码枪判断
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user