| | |
| | | <el-input |
| | | :placeholder="$t('hj9')" |
| | | :size="medium" |
| | | maxlength="11" |
| | | v-model="userName" |
| | | clearable |
| | | > |
| | |
| | | import headers from "./components/header.vue"; |
| | | import * as api from "@/axios/api"; |
| | | import { Notify } from "vant"; |
| | | import { mapMutations } from "vuex"; |
| | | import { mapActions, mapMutations } from "vuex"; |
| | | |
| | | export default { |
| | | name: "newLogin", |
| | |
| | | }, |
| | | |
| | | methods: { |
| | | ...mapActions(["setUseInfo"]), |
| | | ...mapMutations(["undataToken"]), |
| | | checkboxChange(e) { |
| | | window.localStorage.setItem("login_checked", e); |
| | |
| | | let data = await api.login(opts); |
| | | |
| | | if (data.status === 0) { |
| | | this.setUseInfo(); |
| | | if (this.checked) { |
| | | window.localStorage.setItem( |
| | | "login_admin", |
| | |
| | | font-weight: 400; |
| | | font-size: 0.37333rem; |
| | | color: #8c9fad; |
| | | margin: 0 auto; |
| | | margin: 0.4rem auto; |
| | | padding: 0.34667rem 0.4rem; |
| | | width: 100%; |
| | | height: 6rem; |
| | | text-align: center; |
| | | span { |
| | | color: rgb(5, 106, 239); |
| | | } |