Ver código fonte

提交代码

wangxiaogang 3 anos atrás
pai
commit
1cdc278fb0
1 arquivos alterados com 17 adições e 2 exclusões
  1. 17 2
      src/web/staticres/js/login.js

+ 17 - 2
src/web/staticres/js/login.js

@@ -354,11 +354,11 @@ function checkMenuForEnt () {
                     }
                     if(r.entnicheMenu == true){
                         if (r.isNew == true) {
-                            tempHtml+= "<div class=\"myorderDiv\" onclick=\"window.location.href='/entpc/newBus'\">"
+                            tempHtml+= "<div class=\"myorderDiv\" id=\"entDiv\">"
                                 +"<span>商机管理</span>"
                                 +"</div>"
                         } else {
-                            tempHtml+= "<div data-ent-menu class=\"myorderDiv\" onclick=\"window.location.href='/entpc/bus'\">"
+                            tempHtml+= "<div data-ent-menu id=\"entDiv\" class=\"myorderDiv\">"
                                 +"<span>商机管理</span>"
                                 +"</div>"
                         }
@@ -369,6 +369,21 @@ function checkMenuForEnt () {
                           +"</div>"
                     }
                     $(".infoList .lastBox").before(tempHtml)
+                    $('#entDiv').click(function () {
+                        $.ajax({
+                            type:'POST',
+                            url:'/entnicheNew/buy/whetherbuy',
+                            success:function () {
+                                if(r.entnicheMenu == true){
+                                    if (r.isNew == true) {
+                                        window.location.href='/entpc/newBus'
+                                    } else {
+                                        window.location.href='/entpc/bus'
+                                    }
+                                }
+                            }
+                        })
+                    })
                 }
             })
         }