diff --git a/index.html b/index.html index a8742ef..4a8bc70 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ - 山东金宝一体机 + 纽迪希亚ACS系统
diff --git a/src/components/header.vue b/src/components/header.vue index ac6ec99..e4f835e 100644 --- a/src/components/header.vue +++ b/src/components/header.vue @@ -42,6 +42,7 @@ export default { document.msExitFullscreen() } } + this.$store.dispatch('delUserInfo', '') this.$router.push('/setup') }, toHome () { diff --git a/src/config/getData.js b/src/config/getData.js index 9bad206..f9e939c 100644 --- a/src/config/getData.js +++ b/src/config/getData.js @@ -1,5 +1,10 @@ import {post} from '@config/http.js' +// 登录 +export const handLogin = (user, password) => post('mobile/auth/login', { + username: user, + password: password +}) // 查询设备 export const queryDevices = () => post('api/pda/queryDevices', {}) // 工单查询 diff --git a/src/config/mork.js b/src/config/mork.js index 7c8014c..2b09156 100644 --- a/src/config/mork.js +++ b/src/config/mork.js @@ -15,3 +15,10 @@ export const queryWorks = () => { let res = [{mfg_order_name: '001', work_code: 'aaaa'}, {mfg_order_name: '2'}, {mfg_order_name: '3'}, {mfg_order_name: '4'}] return res } +export const handLogin = (user, password) => { + let res = { + user: {user: {person_name: 'admin'}}, + token: 'aaaaattttt' + } + return res +} diff --git a/src/images/bg_logo.png b/src/images/bg_logo.png index db2e6c4..98ecfe0 100644 Binary files a/src/images/bg_logo.png and b/src/images/bg_logo.png differ diff --git a/src/images/form_bg.png b/src/images/form_bg.png new file mode 100755 index 0000000..a4e6e4e Binary files /dev/null and b/src/images/form_bg.png differ diff --git a/src/images/login_tab_active.png b/src/images/login_tab_active.png new file mode 100755 index 0000000..e4db549 Binary files /dev/null and b/src/images/login_tab_active.png differ diff --git a/src/images/login_tabs_bg.png b/src/images/login_tabs_bg.png new file mode 100755 index 0000000..5e316d1 Binary files /dev/null and b/src/images/login_tabs_bg.png differ diff --git a/src/pages/home.vue b/src/pages/home.vue index 2d1745c..e31f60c 100644 --- a/src/pages/home.vue +++ b/src/pages/home.vue @@ -1,7 +1,10 @@