Commit f5d2a621 authored by chenqikuai's avatar chenqikuai

fix

parent f391cf34
...@@ -3,3 +3,4 @@ ...@@ -3,3 +3,4 @@
.vscode .vscode
package-lock.json package-lock.json
dist/ dist/
/NFT/
\ No newline at end of file
declare module '*.png';
declare module '*.jpg';
\ No newline at end of file
...@@ -34,22 +34,22 @@ const routes: Array<RouteConfig> = [ ...@@ -34,22 +34,22 @@ const routes: Array<RouteConfig> = [
{ {
path: '/auth/Login', path: '/auth/Login',
name: 'Login', name: 'Login',
component: () => import("@/view/Login/index.vue") component: () => import("@/view/Auth/Login/index.vue")
}, },
{ {
path: '/auth/PwdSetting', path: '/auth/PwdSetting',
name: 'PwdSetting', name: 'PwdSetting',
component: () => import("@/view/PwdSetting/index.vue") component: () => import("@/view/Auth/PwdSetting/index.vue")
}, },
{ {
path: '/auth/PwdFind', path: '/auth/PwdFind',
name: 'PwdFind', name: 'PwdFind',
component: () => import("@/view/PwdFind/index.vue") component: () => import("@/view/Auth/PwdFind/index.vue")
}, },
{ {
path: '/auth/PwdModify', path: '/auth/PwdModify',
name: 'PwdModify', name: 'PwdModify',
component: () => import("@/view/PwdModify/index.vue") component: () => import("@/view/Auth/PwdModify/index.vue")
}, },
] ]
} }
......
import Vue from 'vue' import Vue from 'vue'
import {Service} from './service/index' import { Service } from './service/index'
import {UserService} from './service/userService' import { UserService } from './service/userService'
import VueRouter, { Route } from 'vue-router'
interface ServiceType { interface ServiceType {
userService: UserService userService: UserService
...@@ -11,6 +11,7 @@ interface ServiceType { ...@@ -11,6 +11,7 @@ interface ServiceType {
declare module 'vue/types/vue' { declare module 'vue/types/vue' {
interface Vue { interface Vue {
$service:ServiceType $service: ServiceType,
} $router: VueRouter
} }
}
\ No newline at end of file
...@@ -61,21 +61,18 @@ ...@@ -61,21 +61,18 @@
<script lang="ts"> <script lang="ts">
import Vue from "vue"; import Vue from "vue";
import { Field, Icon } from "vant";
import Input from "@/components/common/Input/index.vue"; import Input from "@/components/common/Input/index.vue";
import LoginService from "../../LoginService"; import LoginService from "../../LoginService";
import { iRememberPhonePwd } from "../../types"; import { iRememberPhonePwd } from "../../types";
const eyeOpenIcon = require("@/assets/icons/eye_open.png"); import eyeOpenIcon from "@/assets/icons/eye_open.png";
const eyeCloseIcon = require("@/assets/icons/eye_close.png"); import eyeCloseIcon from "@/assets/icons/eye_close.png";
const arrowDownIcon = require("@/assets/icons/arrow_down.png"); import arrowDownIcon from "@/assets/icons/arrow_down.png";
let NotCloseList = [] as Element[]; let NotCloseList = [] as Element[];
export default Vue.extend({ export default Vue.extend({
components: { components: {
Field,
Icon,
Input, Input,
}, },
props: { props: {
...@@ -92,10 +89,6 @@ export default Vue.extend({ ...@@ -92,10 +89,6 @@ export default Vue.extend({
maxlength: Number, maxlength: Number,
handlePhoneChange: Function, handlePhoneChange: Function,
}, },
mounted() {
const phoneInput = this.$refs.phoneInput as HTMLElement;
// phoneInput.addEventListener("click");
},
data() { data() {
return { return {
showPwd: false, showPwd: false,
......
...@@ -42,13 +42,13 @@ ...@@ -42,13 +42,13 @@
<script lang="ts"> <script lang="ts">
import Vue, { PropType } from "vue"; import Vue, { PropType } from "vue";
import PhoneInput from "@/view/Login/components/PhoneInput/index.vue"; import PhoneInput from "../Login/components/PhoneInput/index.vue";
import { phoneConfig, codeConfig, pwdConfig } from "@/view/Login/const"; import { phoneConfig, codeConfig, pwdConfig } from "../Login/const";
import { tSendSmsFunc, tSendVoiceFunc } from "@/view/Login/types"; import { tSendSmsFunc, tSendVoiceFunc } from "../Login/types";
import Input from "@/components/common/Input/index.vue"; import Input from "@/components/common/Input/index.vue";
import LoginButton from "@/view/Login/components/LoginButton/index.vue"; import LoginButton from "../Login/components/LoginButton/index.vue";
import CodeInput from "@/view/Login/components/CodeInput/index.vue"; import CodeInput from "../Login/components/CodeInput/index.vue";
import { tSetPwdFunc } from "@/view/PwdSetting/types"; import { tSetPwdFunc } from "../PwdSetting/types";
export default Vue.extend({ export default Vue.extend({
components: { components: {
......
...@@ -59,11 +59,11 @@ ...@@ -59,11 +59,11 @@
<script lang="ts"> <script lang="ts">
import Vue, { PropType } from "vue"; import Vue, { PropType } from "vue";
import Input from "@/components/common/Input/index.vue"; import Input from "@/components/common/Input/index.vue";
import { pwdConfig, codeConfig, phoneConfig } from "@/view/Login/const"; import { pwdConfig, codeConfig, phoneConfig } from "../Login/const";
import LoginButton from "@/view/Login/components/LoginButton/index.vue"; import LoginButton from "../Login/components/LoginButton/index.vue";
import { tModifyPwdFunc, eModifyWay } from "./types"; import { tModifyPwdFunc, eModifyWay } from "./types";
import { tSendSmsFunc, tSendVoiceFunc } from "@/view/Login/types"; import { tSendSmsFunc, tSendVoiceFunc } from "../Login/types";
import CodeInput from "@/view/Login/components/CodeInput/index.vue"; import CodeInput from "../Login/components/CodeInput/index.vue";
export default Vue.extend({ export default Vue.extend({
props: { props: {
phone: { phone: {
......
...@@ -34,11 +34,11 @@ ...@@ -34,11 +34,11 @@
<script lang="ts"> <script lang="ts">
import Vue, { PropType } from "vue"; import Vue, { PropType } from "vue";
import CodeInput from "@/view/Login/components/CodeInput/index.vue"; import CodeInput from "../Login/components/CodeInput/index.vue";
import { codeConfig, phoneConfig, pwdConfig } from "@/view/Login/const"; import { codeConfig, phoneConfig, pwdConfig } from "../Login/const";
import { tSendSmsFunc, tSendVoiceFunc } from "@/view/Login/types"; import { tSendSmsFunc, tSendVoiceFunc } from "../Login/types";
import Input from "@/components/common/Input/index.vue"; import Input from "@/components/common/Input/index.vue";
import LoginButton from "@/view/Login/components/LoginButton/index.vue"; import LoginButton from "../Login/components/LoginButton/index.vue";
import { tSetPwdFunc } from "./types"; import { tSetPwdFunc } from "./types";
export default Vue.extend({ export default Vue.extend({
......
...@@ -11,7 +11,8 @@ ...@@ -11,7 +11,8 @@
<script lang="ts"> <script lang="ts">
import PwdSetting from "./PwdSetting.vue"; import PwdSetting from "./PwdSetting.vue";
export default { import Vue from "vue";
export default Vue.extend({
components: { PwdSetting }, components: { PwdSetting },
methods: { methods: {
async sendSmsFunc(phone: string) { async sendSmsFunc(phone: string) {
...@@ -27,5 +28,5 @@ export default { ...@@ -27,5 +28,5 @@ export default {
return 1; return 1;
}, },
}, },
}; });
</script> </script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment