From b445789b2ed0ab3b70291ff0bebc09c73aac7207 Mon Sep 17 00:00:00 2001 From: ZZJ <zzjdsg2300@163.com> Date: 星期四, 16 十二月 2021 10:04:04 +0800 Subject: [PATCH] 自适应 --- src/pages/index/App.vue | 65 +------------------------------- 1 files changed, 3 insertions(+), 62 deletions(-) diff --git a/src/pages/index/App.vue b/src/pages/index/App.vue index 46e1cda..70cb09b 100644 --- a/src/pages/index/App.vue +++ b/src/pages/index/App.vue @@ -56,7 +56,6 @@ } from "./api"; export default { - async created() {}, mounted() { this.getInitInfo(); let message = "缃戠粶姝e父"; @@ -137,64 +136,6 @@ } }, nextFormNot() { - this.active++; - this.$refs["carousel"].next(); - }, - systemLogin() { - this.nullRule = this.rules; - this.$nextTick(() => { - this.$refs["ruleForm"].validate((valid) => { - if (valid) { - this.loading = this.$loading({ - lock: true, - text: "Loading", - spinner: "el-icon-loading", - background: "rgba(0, 0, 0, 0.7)", - }); - this.testLogin(); - } else { - this.nullRule = {}; - } - }); - this.nullRule = {}; - }); - }, - async testLogin() { - // location.assign("/view/desktop/") - tologin({ username: this.user.loginName, password: this.user.password }) - .then((json) => { - const loginedInfo = { - access_token: json.token_type + " " + json.access_token, - refresh_token: json.refresh_token, - }; - sessionStorage.setItem("expires_in", json.expires_in); - sessionStorage.setItem("loginedInfo", JSON.stringify(loginedInfo)); - this.loading.close(); - this.getLoginUserData(); - }) - .catch((err) => { - this.loading.close(); - this.$notify({ - title: "鎻愮ず", - type: "error", - message: err.msg, - }); - this.$refs.pwd.focus(); - }); - }, - async getLoginUserData() { - let res = await getLoginUserData(); - if (res.success) { - sessionStorage.setItem("userInfo", JSON.stringify(res.data)); - this.$notify.success("鐧诲綍鎴愬姛锛�"); - // 鑾峰彇鏉冮檺 - await this.getMenuList(); - location.assign("/view/desktop/"); - return res.data; - } else { - this.$notify.error("鐧诲綍澶辫触锛�"); - } - this.active++; this.$refs["carousel"].next(); }, @@ -312,21 +253,21 @@ } .formAccount { - margin-top: 157px; + margin-top: 0.81rem; margin-left: 200px; width: 550px; } .formNet, .formInfo { - margin-top: 90px; + margin-top: 0.47rem; margin-left: 200px; width: 550px; } .control { position: fixed; - top: 770px; + top: 80%; left: 0; right: 0; line-height: 40px; -- Gitblit v1.8.0