From 469f1d9f0161436070fd8f4ec3f9143f8d8031b8 Mon Sep 17 00:00:00 2001 From: mek <573883887@qq.com> Date: Fri, 18 Nov 2022 08:58:25 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=88=86=E5=8F=B7?= =?UTF-8?q?=EF=BC=8C=E5=90=8C=E4=B8=80=E4=B8=AA=E6=96=87=E4=BB=B6=E9=87=8C?= =?UTF-8?q?=EF=BC=8C=E7=BC=96=E7=A0=81=E9=A3=8E=E6=A0=BC=E5=BB=BA=E8=AE=AE?= =?UTF-8?q?=E7=BB=9F=E4=B8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layui.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/layui.js b/src/layui.js index d370be40..8c9bb507 100644 --- a/src/layui.js +++ b/src/layui.js @@ -149,7 +149,7 @@ (function poll() { if(++timeout > config.timeout * 1000 / 4){ return error(item + ' is not a valid module', 'error'); - }; + } config.status[item] ? onCallback() : setTimeout(poll, 4); }()); } @@ -222,7 +222,7 @@ (function poll() { if(++timeout > config.timeout * 1000 / 4){ return error(item + ' is not a valid module', 'error'); - }; + } (typeof config.modules[item] === 'string' && config.status[item]) ? onCallback() : setTimeout(poll, 4); @@ -286,7 +286,7 @@ //如果轮询超过指定秒数,则视为请求文件失败或 css 文件不符合规范 if(++timeout > config.timeout * 1000 / delay){ return error(href + ' timeout'); - }; + } //css 加载就绪 if(parseInt(that.getStyle(getLinkElem, 'width')) === 1989){ @@ -672,7 +672,7 @@ } else { //数字 vs 数字 return v1 - v2; } - }; + } /** * 字典序排序 From f61a3850ff098ef074b231e3a3ac77d69dfe2d9c Mon Sep 17 00:00:00 2001 From: mek <573883887@qq.com> Date: Fri, 18 Nov 2022 10:41:46 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= =?UTF-8?q?=EF=BC=9Aif..esle=E5=88=A4=E6=96=AD=E5=86=97=E9=95=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/rate.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/modules/rate.js b/src/modules/rate.js index 9c07ae5b..c0a77d44 100644 --- a/src/modules/rate.js +++ b/src/modules/rate.js @@ -87,16 +87,8 @@ layui.define('jquery',function(exports){ + (i>Math.floor(options.value)?ICON_RATE:ICON_RATE_SOLID) + '" '+ style +'>'; - if(options.half){ - if(parseInt(options.value) !== options.value){ - if(i == Math.ceil(options.value)){ - temp = temp + '
  • '; - }else{ - temp = temp + item - } - }else{ - temp = temp + item - } + if(options.half&&parseInt(options.value) !== options.value&&i == Math.ceil(options.value)){ + temp = temp + '
  • '; }else{ temp = temp +item; }