在我的客户页面,调整到 我的合同页面:

<div>请去【<a style="color:green" class="toPage" data-type="toPage" >合同管理—我的合同</a>】页面提交审核!</div>

js:

var active = {
          toPage:function () {
              top.layui.index.openTabsPage("order/myOrdersList.jsp", '我的合同');
          }
}

      $("body").on('click','.toPage', function(){
          var type = $(this).data('type');
          active[type] ? active[type].call(this) : '';
      });

打开另一页面(页签) 的关键代码:

 

top.layui.index.openTabsPage("order/myOrdersList.jsp", '我的合同');

转载:https://blog.csdn.net/kuangfengbuyi/article/details/106559834

 

------------------------------------------------------自己项目-------------------------------------------------------------------------------

             <button type="button" data-type="toPage"  class="layui-btn layui-btn-normal toPage">设置分组</button>




 layui.use(['form', 'layedit', 'laydate','jquery','table','element',], function () {
     var form = layui.form;
     $=layui.jquery;
     table = layui.table;
 element = layui.element;


     var active = {
         toPage:function () {
             top.layui.index.openTabsPage("/user/word_group/index", '分组管理');
         }
     };

     $("body").on('click','.toPage', function(){
         var type = $(this).data('type');
         active[type] ? active[type].call(this) : '';
     });

 

 
 

相关文章:

  • 2022-01-15
  • 2021-11-13
  • 2021-12-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-07
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-30
  • 2020-03-30
  • 2022-02-26
相关资源
相似解决方案