diff --git a/env/.env.dev b/env/.env.dev index 814bc24..50c8a19 100644 --- a/env/.env.dev +++ b/env/.env.dev @@ -6,3 +6,4 @@ VITE_BUILD_MODE = 'dev' VITE_API_URL = '/proxyApi' VITE_proxyTarget = 'http://10.40.92.16:9206' +# 9502 9206 \ No newline at end of file diff --git a/src/http/api/equip.ts b/src/http/api/equip.ts index 91a66c7..da27618 100644 --- a/src/http/api/equip.ts +++ b/src/http/api/equip.ts @@ -1,4 +1,4 @@ -import { post, get, detele } from '../index' +import { post, get, detele,put } from '../index' // 下架列表 export const apiOffList = (data: any) => { @@ -10,7 +10,12 @@ export const apiUpOffList = (data: any) => { return post('/off/upOffList', data) } -// 下架列表 +// 详情 export const apiSelectInfo = (params: any) => { - return post(`/off/selectInfo`, params) + return get(`/off/selectInfo`, params) +} + +// 下架列表 +export const apiOff = (params: any) => { + return post(`/off/edit`, params) } diff --git a/src/http/api/myInfo.ts b/src/http/api/myInfo.ts index 67d8eaa..7ea7a9d 100644 --- a/src/http/api/myInfo.ts +++ b/src/http/api/myInfo.ts @@ -1,6 +1,7 @@ import { post } from '../index' // 登录接口 -export const apiLogin = (data: any) => { + +export const loginApi = (data: any) => { return post('/zlpt-auth/login', data) } \ No newline at end of file diff --git a/src/store/main.ts b/src/store/main.ts index 0257c90..140d129 100644 --- a/src/store/main.ts +++ b/src/store/main.ts @@ -2,7 +2,7 @@ export const useStore = defineStore('main', { state: () => { return { loadingFlag: false, //loading控制, - token: 'eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX2tleSI6IjFlMTk2Y2FmLWYyYjctNGI4Yi04OTZlLWNhMWJhMjIyMTQ2MyIsInVzZXJuYW1lIjoiYWRtaW4ifQ.5LLmWOPOJEAvIhtHKeSpFndcWyseQBmYUfyxLpUudguUSnb75lu8XNwfieM4sHut891GVXUNapK_TQePdmmT-g' + token: "eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX2tleSI6IjAxNTJmM2FjLTg5YzAtNDEyOS05YzhkLTgxM2RmMDAyYjE5MiIsInVzZXJuYW1lIjoiYWRtaW4ifQ.nbXUxyWEUJRvnBL2q0S7ROcvRCVbCnd2xn7A5nPmlYeEvGoFlM17I2e7iscDusqvSpQK5rE9ENQ8N0BWGllrYw" } }, getters: {}, diff --git a/src/style/scss/index.scss b/src/style/scss/index.scss index 9f20023..0bce31f 100644 --- a/src/style/scss/index.scss +++ b/src/style/scss/index.scss @@ -2,4 +2,5 @@ @import './mixin.scss'; @import './common.module.scss'; @import './nprogress.scss'; -@import './common.scss'; \ No newline at end of file +@import './common.scss'; +@import '../css/reset.css'; \ No newline at end of file diff --git a/src/views/Login.vue b/src/views/Login.vue index c58d334..8a46818 100644 --- a/src/views/Login.vue +++ b/src/views/Login.vue @@ -1,184 +1,136 @@ -