diff --git a/src/App.vue b/src/App.vue index 9de696462cba180d2fd000aa0265bdabf5db1101..41c8211ca5881ee5cde79df3014b77907149362a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -13,6 +13,16 @@
+ +
+
+ +
+
+
+
+ +
@@ -28,11 +38,15 @@ import bgMenu from '@/components/bg-menu.vue' import login from '@/page/login/index.vue' import page404 from '@/page/404.vue' +import registe from '@/page/registe/index.vue' +import password from '@/page/password/index.vue' export default { components:{ bgMenu, login, page404, + registe, + password }, computed:{ msgBoxFlag(){ @@ -48,10 +62,10 @@ export default { return this.$store.state.menuObj }, navShow(){ - return false||!['/','/404','/login'].includes(this.$route.path) + return false||!['/','/404','/login','/registe','/password'].includes(this.$route.path) }, pageShow(){ - return false||!['/404','/login'].includes(this.$route.path) + return false||!['/404','/login','/registe','/password'].includes(this.$route.path) }, rowPath(){ if(this.pageShow&&this.$store.state.userInfo){ diff --git a/src/assets/css/index.css b/src/assets/css/index.css index 49874efab63a5ac44af05891a4baa45e9b3e855f..cbc2e1c0eed1220c9b8612f7af5aee22eeac2adf 100644 --- a/src/assets/css/index.css +++ b/src/assets/css/index.css @@ -1563,3 +1563,21 @@ border-radius:8px; color: #d75138; } +.register_btn { + background-color: #eff2fa; + border-radius: 4px; + border: solid 1px #b0bee8; + color: #3759be; +} +.forget_psd { + font-size: 14px; + color: #3759be; + cursor: pointer; +} + +.select-empty { + color: #616f94; + text-align: center; + padding: 20px; +} + diff --git a/src/assets/imgs/bg_zhuce.png b/src/assets/imgs/bg_zhuce.png new file mode 100644 index 0000000000000000000000000000000000000000..0bd0266da0e283c702fa595d077c2d78bce98f67 Binary files /dev/null and b/src/assets/imgs/bg_zhuce.png differ diff --git a/src/bg-ui/bg-tabs.vue b/src/bg-ui/bg-tabs.vue index cd6689156f52573e208b4f5513aa9b1577e8025d..aa11bf075cd0d279ff91608137983c9713507b06 100644 --- a/src/bg-ui/bg-tabs.vue +++ b/src/bg-ui/bg-tabs.vue @@ -11,9 +11,7 @@ @click="changeActiveName(item, index)"> {{ item.label }} -
  • - -
  • +
    diff --git a/src/bg-ui/index.scss b/src/bg-ui/index.scss index 459fe858d9c5071323fb1fc8d75bad6d928b8898..567cebd86b90657d1eb72c8f6d9ba4ff7c829b36 100644 --- a/src/bg-ui/index.scss +++ b/src/bg-ui/index.scss @@ -837,7 +837,7 @@ a { .bg-tabs { background-color: #ffffff; - box-shadow: 0px 6px 12px 0px rgba(0, 20, 53, 0.3); + box-shadow: 0px 4px 16px 0px rgba(18, 30, 0.03, 0.08); border-radius: 12px; overflow: hidden; @@ -862,9 +862,10 @@ a { align-items: center; padding: 8px; border-bottom: 1px solid #e6e9ef; - font-size: 16px; + font-size: 20px; line-height: 25px; color: #404a62; + background: #f7f7f9; cursor: pointer; &.current { @@ -874,18 +875,19 @@ a { border-right: 1px solid #e6e9ef; border-bottom: 1px solid #fff; border-left: 1px solid #e6e9ef; - color: #e56600; + color: #3759be; + background-color: #fff; overflow: hidden; - &::before { - content: ""; - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 4px; - background-color: #e56600; - } + // &::before { + // content: ""; + // position: absolute; + // top: 0; + // left: 0; + // width: 100%; + // height: 4px; + // background-color: #e56600; + // } } &:first-child { diff --git a/src/components/login-by-account.vue b/src/components/login-by-account.vue index a4c063c9231d1d988e482d8834964f711b48d4a3..65e01e0587a9cb36a0d0ca3b2c50ace2d370ef21 100644 --- a/src/components/login-by-account.vue +++ b/src/components/login-by-account.vue @@ -1,20 +1,19 @@ - diff --git a/src/components/login-by-code.vue b/src/components/login-by-code.vue index 5901739991ebd71190907d36d385fd23074a8a18..8817e8587e097a295f4842e68fe5a62369590307 100644 --- a/src/components/login-by-code.vue +++ b/src/components/login-by-code.vue @@ -1,21 +1,7 @@ - - diff --git a/src/page/password/account-form.vue b/src/page/password/account-form.vue new file mode 100644 index 0000000000000000000000000000000000000000..6616d69e1fc9572d07a3bed47598e2d66cacc442 --- /dev/null +++ b/src/page/password/account-form.vue @@ -0,0 +1,103 @@ + + + + + diff --git a/src/page/password/index.vue b/src/page/password/index.vue new file mode 100644 index 0000000000000000000000000000000000000000..6362618f5a6382fa6a2c0508aef4b559d9cf4728 --- /dev/null +++ b/src/page/password/index.vue @@ -0,0 +1,337 @@ + + + + + diff --git a/src/page/password/password-form.vue b/src/page/password/password-form.vue new file mode 100644 index 0000000000000000000000000000000000000000..ed197f0b057a38c403b9e43c31e38434d0b68c4b --- /dev/null +++ b/src/page/password/password-form.vue @@ -0,0 +1,60 @@ + + + diff --git a/src/page/registe/index.vue b/src/page/registe/index.vue new file mode 100644 index 0000000000000000000000000000000000000000..d6c3039c4c58c9554406863c7e5471dd8340954f --- /dev/null +++ b/src/page/registe/index.vue @@ -0,0 +1,464 @@ + + + + + + \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index a78d42a71a3679958226661aa2006582999b66ca..f55b5f5576866e4f45e2501e693bba1dde447cbd 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,18 +1,32 @@ //路由前端原则可以不写,但是需要在recorder中记录,防止以后忘记 //不用新增父路由的文件,父路由全部由parent/parent.vue来支撑 -import {createRouter, createWebHashHistory} from "vue-router"; +import { + createRouter, + createWebHashHistory +} from "vue-router"; import store from '../store' //写入初始必须有的路由 //或者隐藏式路由,不会表现在菜单上,但是需要存在的路由 -const routes = [ - { +const routes = [{ path: '/login', name: 'login', - show:true, + show: true, component: () => import('../page/login/index.vue') }, + { + path: '/registe', + name: 'registe', + show: true, + component: () => import('../page/registe/index.vue') + }, + { + path: '/password', + name: 'password', + show: true, + component: () => import('../page/password/index.vue') + }, { path: '/', name: 'index', @@ -20,13 +34,13 @@ const routes = [ }, { path: '/404', - show:true, + show: true, component: () => import('../page/404.vue') }, ] //重新创建router -function newRouterFunc(){ +function newRouterFunc() { return createRouter({ history: createWebHashHistory(), routes @@ -37,7 +51,7 @@ const router = newRouterFunc() function inWhiteList(toPath) { //配置白名单 - const whiteList = ['/login'] + const whiteList = ['/login', '/registe', '/password'] const path = whiteList.find((value) => { // 使用正则匹配 const reg = new RegExp('^' + value) @@ -52,11 +66,13 @@ router.beforeEach((to, from, next) => { console.log(store.state.route); //已登录不可跳转登陆页 - if(userInfo&&(to.path=='/login'||to.path=='/')){ - next({path:'/develop/account'}) + if (userInfo && (to.path == '/login' || to.path == '/')) { + next({ + path: '/develop/account' + }) } - + // 检查to.path是否存在于免登陆白名单 if (inWhiteList(to.path)) { next() @@ -69,7 +85,7 @@ router.beforeEach((to, from, next) => { path: '/login', }) } else { - + } } @@ -77,7 +93,9 @@ router.beforeEach((to, from, next) => { if (to.matched.length !== 0) { next() } else { - return next({ path: '/404' }) + return next({ + path: '/404' + }) } }) @@ -87,12 +105,12 @@ router.beforeEach((to, from, next) => { // router.onReady(() => { // generateRoutes() // }) -function addRoute(router,routers){ +function addRoute(router, routers) { routers.forEach(e => { - if(e.path[0]=='/'){ + if (e.path[0] == '/') { router.addRoute(e) - if(e.children&&e.children.length){ - addRoute(router,e.children) + if (e.children && e.children.length) { + addRoute(router, e.children) } } }); @@ -104,15 +122,13 @@ export function generateRoutes() { if (_asyncRoutes) { //动态添加路由 - addRoute(router,_asyncRoutes) + addRoute(router, _asyncRoutes) } - router.addRoute( - { - path: '/:pathMatch(.*)', - redirect: '/404' - } - ) + router.addRoute({ + path: '/:pathMatch(.*)', + redirect: '/404' + }) console.log(router.getRoutes()); @@ -124,7 +140,4 @@ export function resetRouter() { router.matcher = newRouter.matcher } - - - export default router diff --git a/src/services/secret.js b/src/services/secret.js index ccab88aed7e8e2d5f9997ca75e8522ae98bfcffa..70de4ff9940e2c837cbff4a41fe30caa4dff1a37 100644 --- a/src/services/secret.js +++ b/src/services/secret.js @@ -1,20 +1,24 @@ -const CryptoJS = require('crypto-js'); +// const CryptoJS = require('crypto-js'); +import * as CryptoJS from 'crypto-js' -const key = "swuE9cmCZQwrkYRV"; +const key = "swuE9cmCZQwrkYRV"; function Decrypt(word) { - let decrypt = CryptoJS.AES.decrypt(word, key); + let decrypt = CryptoJS.AES.decrypt(word, key); - let decryptedStr = decrypt.toString(CryptoJS.enc.Utf8); - return decryptedStr.toString(); + let decryptedStr = decrypt.toString(CryptoJS.enc.Utf8); + return decryptedStr.toString(); } function Encrypt(word) { - - let encrypted = CryptoJS.AES.encrypt(word, key); - - return encrypted.toString(); + + let encrypted = CryptoJS.AES.encrypt(word, key); + + return encrypted.toString(); } -export {Decrypt , Encrypt} \ No newline at end of file +export { + Decrypt, + Encrypt +}