313392073 5 tahun lalu
induk
melakukan
59dda87167
2 mengubah file dengan 28 tambahan dan 10 penghapusan
  1. 15 4
      css/common.css
  2. 13 6
      js/common.js

+ 15 - 4
css/common.css

@@ -115,6 +115,12 @@ a {
 .layui-side-scroll .layui-nav .layui-nav-item:nth-child(8) a .font-icon{
     background-color: #01b9d5;
 }
+.layui-side-scroll .layui-nav .layui-nav-item:nth-child(9) a .font-icon{
+    background-color: #ef780e;
+}
+.layui-side-scroll .layui-nav .layui-nav-item:nth-child(10) a .font-icon{
+    background-color: #f829e2;
+}
 .layui-side-scroll .item-title{
     vertical-align: middle;
     margin-left: 5px;
@@ -235,27 +241,32 @@ a {
 }
 .layui-table-body{
     overflow-x: auto;
-    overflow-y: hidden;
+    overflow-y: auto;
 }
 .layui-table-cell{
     line-height: 29px;
     height: 29px;
 }
-
+.layui-body .main.billcb .layui-table-view .layui-table td, .layui-table-view .layui-table th{
+    padding: 6px 0;
+}
+.layui-form-select dl{
+    z-index: 1000;
+}
 .ball{
     display: inline-block;
     width: 20px;;
     height: 20px;
     line-height: 20px;
     border-radius: 50%;
-    background-color: #f66f6c;
+    background-color: #fca3a1;
     color: #ffffff;
     margin-right: 5px;
     font-size: 12px;
     text-align: center;
   }
   .bball{
-    background-color: #7cc8fa;
+    background-color: #acdcfb;
   }
   .redball{
     background-color: #eb110d;

+ 13 - 6
js/common.js

@@ -128,25 +128,32 @@ function showPop() {
   layer.open({
       type: 1,
       title: "编辑个人信息",
-      area: ['420px', '320px'],
+      area: ['420px', '220px'],
       shade: 0, 
       content: $("#popUpdate"),//引用的弹出层的页面层的方式加载修改界面表单
-      success: function (layero, index) {
-          //表单初始赋值
-          // form.val('modeformData', data)
-          // $("#oldhead").attr('src', data.logo)
+      success: function (res) {
+           if(res.code == 0) {
+                layer.msg(res.message,{icon: 6},function() {
+                    layer.closeAll()
+                });
+            }else{
+                layer.msg("网络错误,请稍后再试", {icon: 5},function() {
+                    layer.closeAll()
+                });
+            }
       },
       cancel: function(){ //点击取消
           $("#popUpdate").hide()
           layer.closeAll()
       }
+      
   });
 }
 
 layui.use('form', function () {
   var form = layui.form;
   form.on('submit(modebtn)', function (data) {
-      var uregs = /^[a-zA-Z0-9]{4,12}$/
+      var uregs = /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,12}$/
       if(data.field.nickname.length < 4 || data.field.nickname.length > 12) {
           layer.tips('请输入正确的昵称格式',$("#modenickname"),{
               tips: [3, '#0FA6D8']