diff --git a/package-lock.json b/package-lock.json index 7f94aa62ba43207439d7c059058cce3a180786ec..8eb5891e0616da961c0783f428f2c4853a95a7fc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,6 +13,7 @@ "element-ui": "^2.15.9", "less": "^3.9.0", "less-loader": "^5.0.0", + "qs": "^6.11.0", "view": "^1.1.1", "vue": "^2.6.11", "vue-router": "^3.2.0" @@ -3985,7 +3986,6 @@ "version": "1.0.2", "resolved": "https://registry.npmmirror.com/call-bind/-/call-bind-1.0.2.tgz", "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", - "dev": true, "dependencies": { "function-bind": "^1.1.1", "get-intrinsic": "^1.0.2" @@ -7436,8 +7436,7 @@ "node_modules/function-bind": { "version": "1.1.1", "resolved": "https://registry.npmmirror.com/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", - "dev": true + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" }, "node_modules/function.prototype.name": { "version": "1.1.5", @@ -7488,7 +7487,6 @@ "version": "1.1.2", "resolved": "https://registry.npmmirror.com/get-intrinsic/-/get-intrinsic-1.1.2.tgz", "integrity": "sha512-Jfm3OyCxHh9DJyc28qGk+JmfkpO41A4XkneDSujN9MDXrm4oDKdHvndhZ2dN94+ERNfkYJWDclW6k2L/ZGHjXA==", - "dev": true, "dependencies": { "function-bind": "^1.1.1", "has": "^1.0.3", @@ -7666,7 +7664,6 @@ "version": "1.0.3", "resolved": "https://registry.npmmirror.com/has/-/has-1.0.3.tgz", "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dev": true, "dependencies": { "function-bind": "^1.1.1" }, @@ -7723,7 +7720,6 @@ "version": "1.0.3", "resolved": "https://registry.npmmirror.com/has-symbols/-/has-symbols-1.0.3.tgz", "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", - "dev": true, "engines": { "node": ">= 0.4" } @@ -10910,8 +10906,7 @@ "node_modules/object-inspect": { "version": "1.12.2", "resolved": "https://registry.npmmirror.com/object-inspect/-/object-inspect-1.12.2.tgz", - "integrity": "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==", - "dev": true + "integrity": "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==" }, "node_modules/object-is": { "version": "1.1.5", @@ -12427,10 +12422,12 @@ } }, "node_modules/qs": { - "version": "6.5.3", - "resolved": "https://registry.npmmirror.com/qs/-/qs-6.5.3.tgz", - "integrity": "sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA==", - "devOptional": true, + "version": "6.11.0", + "resolved": "https://registry.npmmirror.com/qs/-/qs-6.11.0.tgz", + "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", + "dependencies": { + "side-channel": "^1.0.4" + }, "engines": { "node": ">=0.6" } @@ -12792,6 +12789,15 @@ "node": ">= 6" } }, + "node_modules/request/node_modules/qs": { + "version": "6.5.3", + "resolved": "https://registry.npmmirror.com/qs/-/qs-6.5.3.tgz", + "integrity": "sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA==", + "devOptional": true, + "engines": { + "node": ">=0.6" + } + }, "node_modules/require-directory": { "version": "2.1.1", "resolved": "https://registry.npmmirror.com/require-directory/-/require-directory-2.1.1.tgz", @@ -13288,7 +13294,6 @@ "version": "1.0.4", "resolved": "https://registry.npmmirror.com/side-channel/-/side-channel-1.0.4.tgz", "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", - "dev": true, "dependencies": { "call-bind": "^1.0.0", "get-intrinsic": "^1.0.2", @@ -19680,7 +19685,6 @@ "version": "1.0.2", "resolved": "https://registry.npmmirror.com/call-bind/-/call-bind-1.0.2.tgz", "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", - "dev": true, "requires": { "function-bind": "^1.1.1", "get-intrinsic": "^1.0.2" @@ -22526,8 +22530,7 @@ "function-bind": { "version": "1.1.1", "resolved": "https://registry.npmmirror.com/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", - "dev": true + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" }, "function.prototype.name": { "version": "1.1.5", @@ -22569,7 +22572,6 @@ "version": "1.1.2", "resolved": "https://registry.npmmirror.com/get-intrinsic/-/get-intrinsic-1.1.2.tgz", "integrity": "sha512-Jfm3OyCxHh9DJyc28qGk+JmfkpO41A4XkneDSujN9MDXrm4oDKdHvndhZ2dN94+ERNfkYJWDclW6k2L/ZGHjXA==", - "dev": true, "requires": { "function-bind": "^1.1.1", "has": "^1.0.3", @@ -22718,7 +22720,6 @@ "version": "1.0.3", "resolved": "https://registry.npmmirror.com/has/-/has-1.0.3.tgz", "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dev": true, "requires": { "function-bind": "^1.1.1" } @@ -22764,8 +22765,7 @@ "has-symbols": { "version": "1.0.3", "resolved": "https://registry.npmmirror.com/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", - "dev": true + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==" }, "has-tostringtag": { "version": "1.0.0", @@ -25317,8 +25317,7 @@ "object-inspect": { "version": "1.12.2", "resolved": "https://registry.npmmirror.com/object-inspect/-/object-inspect-1.12.2.tgz", - "integrity": "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==", - "dev": true + "integrity": "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==" }, "object-is": { "version": "1.1.5", @@ -26600,10 +26599,12 @@ "dev": true }, "qs": { - "version": "6.5.3", - "resolved": "https://registry.npmmirror.com/qs/-/qs-6.5.3.tgz", - "integrity": "sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA==", - "devOptional": true + "version": "6.11.0", + "resolved": "https://registry.npmmirror.com/qs/-/qs-6.11.0.tgz", + "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", + "requires": { + "side-channel": "^1.0.4" + } }, "query-string": { "version": "4.3.4", @@ -26898,6 +26899,14 @@ "tough-cookie": "~2.5.0", "tunnel-agent": "^0.6.0", "uuid": "^3.3.2" + }, + "dependencies": { + "qs": { + "version": "6.5.3", + "resolved": "https://registry.npmmirror.com/qs/-/qs-6.5.3.tgz", + "integrity": "sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA==", + "devOptional": true + } } }, "require-directory": { @@ -27321,7 +27330,6 @@ "version": "1.0.4", "resolved": "https://registry.npmmirror.com/side-channel/-/side-channel-1.0.4.tgz", "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", - "dev": true, "requires": { "call-bind": "^1.0.0", "get-intrinsic": "^1.0.2", diff --git a/package.json b/package.json index 781a6fc081455aa5a95ed53d5c14482ef8d11c87..f38ed7c561557795fe02d86269ff0bad57a03cdd 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "element-ui": "^2.15.9", "less": "^3.9.0", "less-loader": "^5.0.0", + "qs": "^6.11.0", "view": "^1.1.1", "vue": "^2.6.11", "vue-router": "^3.2.0" diff --git a/src/components/Manager/enterpriseManager.vue b/src/components/Manager/enterpriseManager.vue index d9db2872dd956f5e2241f0dcebf6f22642e55ba3..9dda88215c2228ed5538dceb8a3d53c904771cc9 100644 --- a/src/components/Manager/enterpriseManager.vue +++ b/src/components/Manager/enterpriseManager.vue @@ -1,5 +1,6 @@ + 添加企业 diff --git a/src/components/Manager/logintest.vue b/src/components/Manager/logintest.vue deleted file mode 100644 index 1e67e9a0501459b78bca59ec8d092f147f5d06cf..0000000000000000000000000000000000000000 --- a/src/components/Manager/logintest.vue +++ /dev/null @@ -1,58 +0,0 @@ - - - 测试登录页面 - - 随便的账户: - - 随便的密码: - - 一键登录 - - - - - - diff --git a/src/components/Manager/userManager.vue b/src/components/Manager/userManager.vue index e792a99ae58bba99361c2509cb67f30afecbfbc8..dacbf508aedbe7170d4d992f691077d519d5da85 100644 --- a/src/components/Manager/userManager.vue +++ b/src/components/Manager/userManager.vue @@ -121,33 +121,22 @@ export default { } }, methods: { - getData() { - const _this = this; - axios.get("http://localhost:82/userList").then(function (resp) { - _this.tableData = resp.data; - }) - }, + getData() { + const _this = this; + axios.get("http://localhost:82/userList").then(function (resp) { + _this.tableData = resp.data; + }) + }, - deleteList() { //信息提示 - axios.get('http://localhost:82/') - } + deleteList() { //信息提示 + axios.get('http://localhost:82/') + } - , mounted() { - this.getData(); - } - }, - methods:{ - getData() { - const _this = this; - axios.get("http://localhost:82/test").then(function (resp) { - _this.tableData = resp.data; - }) - } - }, mounted() { - this.getData(); - } -} + , mounted() { + this.getData(); + } + }} - + data() { + return { + active: 0, + form:{ + uemail: '', + } + }; + }, + methods: { + next() { + // const vm=this; + if (this.active++ > 2) this.active = 0; + // vm.$router.push({name:'forget2',params:{id:10}}) + this.$router.replace('/forget2') + } + } + } + \ No newline at end of file diff --git a/src/components/forget2.vue b/src/components/forget2.vue new file mode 100644 index 0000000000000000000000000000000000000000..45516f0efb8ca049f90a95419a771b49e78023b5 --- /dev/null +++ b/src/components/forget2.vue @@ -0,0 +1,41 @@ + + + + + + + + + + + + + 下一步 + + + + + + + \ No newline at end of file diff --git a/src/components/forget3.vue b/src/components/forget3.vue new file mode 100644 index 0000000000000000000000000000000000000000..c05c98b5de2cda94efe760d84a6742acbbc6e83b --- /dev/null +++ b/src/components/forget3.vue @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + 返回登陆 + + + + + + + \ No newline at end of file diff --git a/src/components/login.vue b/src/components/login.vue index 71c7443b25e5264f35fc96c786fbeb269020c3e2..71423a973b3c04a302712f80f9504c5cce83d2c2 100644 --- a/src/components/login.vue +++ b/src/components/login.vue @@ -1,156 +1,186 @@ + + + + + + + + 邮箱/电话: + + + + + + 密码: + + + + 忘记密码?点击重置 没有账号?点击注册 + + + + 登录 + 重置 + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - + + - - - + + + + + + + + + + + + + + + + - - + + - - - - - - - + + - - - - - - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - - - - - - - - 登录页面 + + + + + + + + + + + + + + - 账户: - - 密码: - - 添加 - - - + + + + + + + + + + + + + + + + - + diff --git a/src/components/register.vue b/src/components/register.vue index b63adc659ef3d759ff1bb2730edc0ac159707453..a0a944bc30b003ec07eed4ddebb1ca7acca10c16 100644 --- a/src/components/register.vue +++ b/src/components/register.vue @@ -3,15 +3,23 @@ 注册来这里 - + + + - + + - + + + + + @@ -29,17 +37,22 @@ - + + + - + + 立即创建 - 取消 + 取消 + + @@ -56,12 +69,17 @@ delivery: false, upassword:'', upassword2:'' - } + }, + text: '', + textarea: '' } }, methods: { onSubmit() { console.log('submit!'); + }, + back(){ + this.$router.replace('/login') } } } diff --git a/src/components/registerQiye.vue b/src/components/registerQiye.vue new file mode 100644 index 0000000000000000000000000000000000000000..3f73bc46f0d7a3f3e5c95b5377bf20c90945ea77 --- /dev/null +++ b/src/components/registerQiye.vue @@ -0,0 +1,84 @@ + + + 注册企业来这里 + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + 上传等待审批 + 取消 + + + + + + + + diff --git a/src/main.js b/src/main.js index 7cfc4c827b43c8637e2dc3c5c7a2b58609ab9c7a..494d004a008c477982785ada0843d3b43bbb3b31 100644 --- a/src/main.js +++ b/src/main.js @@ -5,10 +5,13 @@ import ElementUI from 'element-ui' import 'element-ui/lib/theme-chalk/index.css' + Vue.config.productionTip = false Vue.use(ElementUI) + new Vue({ router, - render: h => h(App) + render: h => h(App), + template: '' }).$mount('#app') diff --git a/src/router/index.js b/src/router/index.js index 55589faccd95f92cf2a08924bf1e7cfc06582b79..39e854ff9ea0912a82c980415ebf4499ff1b66c5 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -19,11 +19,33 @@ import userstageMain from "@/components/userstageMain"; import stationList from "@/components/ForUser/stationList"; import enterpriseList from "@/components/ForUser/enterpriseList"; import wikiList from "@/components/ForUser/wikiList"; -import logintest from "@/components/Manager/logintest"; - +// import logintest from "@/components/Manager/logintest"; +import registerQiye from "@/components/registerQiye"; +import forget from "@/components/forget" +import forget2 from "@/components/forget2" +import forget3 from "@/components/forget3" Vue.use(VueRouter) const routes = [ + {name:"注册企业", + path: "/registerQiye", + component: registerQiye + }, + { + name:"重置密码", + path:"/forget", + component: forget + }, + { + name:"重置密码2", + path:"/forget2", + component: forget2 + }, + { + name:"重置密码3", + path:"/forget3", + component: forget3 + }, { name: "主页重定向", path: "/", @@ -89,11 +111,11 @@ const routes = [ path: "/wikiList", component: wikiList }, - { - name: "登录测试", - path: "/logintest", - component: logintest - } + // { + // name: "登录测试", + // path: "/logintest", + // component: logintest + // } ] }, {