| | |
| | | @click="$router.push('/register')" |
| | | data-v-8cc76a7b="" |
| | | style="color: rgb(5, 106, 239)" |
| | | >{{$t('免費註冊')}}</span |
| | | >{{ $t("免費註冊") }}</span |
| | | > |
| | | </div> |
| | | </div> |
| | |
| | | import headers from "./components/header.vue"; |
| | | import * as api from "@/axios/api"; |
| | | import { Notify } from "vant"; |
| | | import { mapMutations } from "vuex"; |
| | | |
| | | export default { |
| | | name: "newLogin", |
| | |
| | | }, |
| | | |
| | | methods: { |
| | | ...mapMutations(["undataToken"]), |
| | | checkboxChange(e) { |
| | | window.localStorage.setItem("login_checked", e); |
| | | }, |
| | |
| | | } |
| | | this.$store.state.userInfo.phone = this.userName; |
| | | this.$store.state.userInfo.token = data.data.token; |
| | | |
| | | this.undataToken(data.data.token); |
| | | window.localStorage.setItem("USERTOKEN", data.data.token); |
| | | Notify({ type: "success", message: this.$t("hj36") }); |
| | | |
| | | setTimeout(() => { |
| | | this.$router.push("/home"); |
| | | }, 1000); |
| | | |
| | | window.localStorage.setItem("USERTOKEN", data.data.token); |
| | | } else { |
| | | Notify({ type: "warning", message: data.msg }); |
| | | } |