| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- $(document).ready(function () {
- var yanzheng = false;
- // console.log(parseFloat('1px'))
- var SlideVerifyPlug = window.slideVerifyPlug;
- var slideVerify2 = new SlideVerifyPlug("#verify-wrap2", {
- wrapWidth: "352px",
- initText: "滑动解锁",
- sucessText: "验证通过",
- getSuccessState: function (res) {
- console.log(res);
- yanzheng = res;
- },
- });
- //登录
- $(".LoginContainerInputLanding").on("click", function () {
- if (!yanzheng) {
- alert("请滑动验证后重试");
- } else {
- $.ajax({
- type: "post",
- url: "https://api.9169kkxstzsjkdd222.app/Admin/Login/loginAdmin",
- dataType: "json",
- data: {
- //async: false,
- username: $(".LoginContainerInputAcconuntBox").val(),
- password: $(".LoginContainerInputPasswordBox").val(),
- },
- success: function (res) {
- console.log(res);
- if (res.code == "200") {
- // alert("登陆成功")
- window.location.href = "https://api.9169kkxstzsjkdd222.app/slgj"
- } else if (res.code == "201") {
- alert("用户名或者密码错误")
- } else if (res.code == "203") {
- alert("用户名或者密码不能为空")
- }
- },
- })
- }
- });
- })
|