Browse Source

装集客项目更新

lijiangwei 4 năm trước cách đây
mục cha
commit
dcbaf102bf
1 tập tin đã thay đổi với 8 bổ sung4 xóa
  1. 8 4
      uis/views/customer/index.html

+ 8 - 4
uis/views/customer/index.html

@@ -234,19 +234,23 @@
             url: '/account/store/tree/?id=' + 43
             , done: function (res) {
                 tree.render({
-                    elem: '#id_tree'  //绑定元素
-                   ,onlyIconControl: true
+                   elem: '#id_tree'  //绑定元素
+                  ,onlyIconControl: true
                   ,data: res.data
                   //点击菜单时触发
                   ,click: function(obj) {
                      //节点高亮
                     var nodes = document.getElementsByClassName("layui-tree-txt");
                     for(var i=0;i<nodes.length;i++){
-                        if(nodes[i].innerHTML === obj.data.title)
+                        if(nodes[i].innerHTML === obj.data.title){
                             nodes[i].style.color = "#009688";
-                        else
+                            nodes[i].style.fontWeight= "bold";
+                        }else{
                             nodes[i].style.color= "#555";
+                            nodes[i].style.fontWeight= "normal";
+                        }
                     }
+                    console.log(obj.data, "oppppp")
                   }
                 });
             }