| | |
| | | |
| | | <ul class="ax-row ax-tab-nav ax-menu-tab"> |
| | | <a href="###" class="ax-item ax-col" style="font-size: 20px;" id="HLogoLabel">智云迈思L-MES</a> |
| | | <a class="ax-item FY_BT" id="Hlanguage" >语言</a> |
| | | <a class="ax-item FY_BT" id="Hlanguage">语言</a> |
| | | <select id="HTranSlate" style="width: 18%; margin-right: 1%; padding-left: 1px; font-size: 13px;"> |
| | | <option value="1" selected>中文</option> |
| | | <option value="2">Eeglish</option> |
| | | <option value="3">Español</option> |
| | | <option value="3">Spanish</option> |
| | | </select> |
| | | <!--<li class="ax-col"></li>--> |
| | | </ul> |
| | |
| | | <input name="LAY-user-login-username" value="" placeholder="输入登录名称" type="text" id="LAY-user-login-username"> |
| | | <span class="ax-pos-right"><a href="###" class="ax-iconfont ax-icon-close ax-val-none"></a></span> |
| | | </div> |
| | | <button type="button" lay-submit="" class="layui-btn layui-btn-sm" id="LAY-user-loginICCard-submit" name="LAY-user-loginICCard-submit" lay-filter="LAY-user-loginICCard-submit" style="position: absolute;margin-top:-3.5rem;margin-left:36rem"><i class="layui-icon layui-icon-layer"></i>刷卡</button> |
| | | <button type="button" lay-submit="" class="layui-btn layui-btn-sm" id="LAY-user-loginICCard-submit" name="LAY-user-loginICCard-submit" lay-filter="LAY-user-loginICCard-submit" style="position: absolute;margin-top:-3.5rem;margin-left:36rem"><i class="layui-icon layui-icon-layer" style="width: 7px; margin-left: -4px"></i></button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <script src="../../layuiadmin/layui/layui.js"></script> |
| | | <script src="../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <script src="../../layuiadmin/zgqCustom/zgqCustom.js" type="text/javascript"></script> |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | | <script src="../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | | <script src="../../layuiadmin/MESLanguage.js"></script> |
| | | <script> |
| | | layui.config({ |
| | |
| | | //获取基础信息 |
| | | getBaseInfo(login_data2.HTranSlate); |
| | | |
| | | |
| | | if (login_data == null) { |
| | | initFunction(1,"login", 1); |
| | | } else { |
| | | if (login_data2.HTranSlate == undefined) { |
| | | initFunction(1, "login", 1); |
| | | } else { |
| | | initFunction(1, "login", login_data2.HTranSlate); |
| | | } |
| | | } |
| | | form.render('select'); |
| | | |
| | | |
| | | |
| | | if (login_data == null || login_data2.HTranSlate == undefined) { |
| | | initFunction(1, "login", 1); |
| | | } else { |
| | | initFunction(1, "login", login_data2.HTranSlate); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | //获取登录页组织列 |
| | | var Organization = ''; |
| | |
| | | |
| | | //提交 |
| | | form.on("submit(LAY-user-login-submit)", function (obj) { |
| | | if ($("#HTranSlate").val() == null) { |
| | | layer.msg("请选择语言!"); |
| | | return false; |
| | | } |
| | | loging(); |
| | | }) |
| | | |
| | |
| | | //密码框回车执行登录 |
| | | $('#LAY-user-login-password').on('keydown', function (e) { |
| | | if (e.keyCode == 13) { |
| | | if ($("#HTranSlate").val() == null) { |
| | | layer.msg("请选择语言!"); |
| | | return false; |
| | | } |
| | | loging(); |
| | | //playSound(); |
| | | } |
| | |
| | | $("#HTranSlate").change(function () { |
| | | var select = $("#HTranSlate").val(); |
| | | getBaseInfo(select); |
| | | initFunction(1,HModName, select); |
| | | initFunction(1, HModName, select); |
| | | //sessionStorage["HTranSlate"] = select; |
| | | }) |
| | | |
| | |
| | | var data2 = JSON.parse(data); |
| | | $("#LAY-user-login-username").val(data2["UserID"]); |
| | | $("#Organization").val(data2["OrgID"]); |
| | | $("#HTranSlate").val(data2["HTranSlate"]); |
| | | $("#HTranSlate").val(data2["HTranSlate"] == undefined ? 1 : data2["HTranSlate"]); |
| | | form.render('select'); |
| | | } |
| | | } |
| | |
| | | } else {//PC端 |
| | | window.location.href = '../../views/indexMenu.html' |
| | | } |
| | | |
| | | |
| | | } |
| | | else { |
| | | // $("#verifycode").click(); |