Explorar o código

修改弹窗样式(3728)

zhangxc %!s(int64=5) %!d(string=hai) anos
pai
achega
9bfce835da
Modificáronse 2 ficheiros con 14 adicións e 2 borrados
  1. 5 0
      src/css/index.less
  2. 9 2
      src/js/itemManager.js

+ 5 - 0
src/css/index.less

@@ -343,6 +343,7 @@
   .itemMsgInfoBox{
     line-height: 40px;
     margin: 0 0 10px 0;
+    position: relative;
   }
   .itemInfoRight{
     display: inline-block;
@@ -364,9 +365,13 @@
     color: #777;
   }
   .itemMsgInfoTips{
+    position: absolute;
     color: red;
     font-size: 14px;
     text-align: center;
+    width: 100%;
+    height: 14px;
+    top: 27px;
     display: none;
   }
   .switchImg{

+ 9 - 2
src/js/itemManager.js

@@ -140,11 +140,18 @@ function editItem(item,activePage){
                     <div class="itemMsgInfoBox"><span class="itemMsgLab">模块名称:</span> <span class="itemInfoRight">${itemCpoy.casesName}</span></div>
                     <div class="itemMsgInfoBox"><span class="itemMsgLab">条目名称:</span> <span class="itemInfoRight"> ${itemCpoy.name}</span></div>
                     <div class="itemMsgInfoBox"><span class="itemMsgLab">提示信息:</span> <span class="itemInfoRight"> <input class="itemTipMsg" value=${itemCpoy.msg} /></span></div>
-                    <div class="itemMsgInfoBox"><span class="itemMsgLab">分值:</span> <span class="itemInfoRight"> <input class="itemScore" type="number" min="0" value=${itemCpoy.score} /></span></div>
+                    <div class="itemMsgInfoBox"><span class="itemMsgLab">
+                        分值:
+                        </span> <span class="itemInfoRight"> 
+                            <input class="itemScore" type="number" min="0" value=${itemCpoy.score} />
+                        </span>
+                        <p class="itemMsgInfoTips">支持≥0的数字输入,最多保留小数点后1位~</p>
+                    </div>
+                 
                     <div class="itemMsgInfoBox"><span class="itemMsgLab">单项否决:</span><span class="itemInfoRight itemReject">${item.isReject == '1' ? `<img class="switchImg" src=${switchIconOpen} /> 是`:`<img class="switchImg" src=${switchIconClose} /> 否`}</span></div>
                     <div class="itemMsgInfoBox"><span class="itemMsgLab">启用:</span><span class=" temInfoRight itemUsed">${item.isUsed == '1' ? `<img class="switchImg" src=${switchIconOpen} /> 是`:`<img class="switchImg" src=${switchIconClose} /> 否`}</span></div>
                 </div>
-                <div  class="itemMsgInfoTips">支持≥0的数字输入,最多保留小数点后1位~</div>
+                
                 <div class="confirmEditBox"><span class="confirmEdit">保存</span></div>
             </div>
         </div>