diff --git a/src/components/Breadcrumb/index.vue b/src/components/Breadcrumb/index.vue index 5ebe9dda..b5d0a689 100644 --- a/src/components/Breadcrumb/index.vue +++ b/src/components/Breadcrumb/index.vue @@ -6,7 +6,7 @@ {{generateTitle(item.meta.title)}} - 全部应用 + 全部应用
- - {{workShop.branchName}}-{{workShop.locationName}} + + {{workShop.branchName}} {{workShop.locationName}} + + + {{workShop.branchName}} {{workShop.deptName}} 切换商户
- - - - + + diff --git a/src/views/layout/components/Sidebar/Logo.vue b/src/views/layout/components/Sidebar/Logo.vue index ac0c8d8f..f2217c2e 100644 --- a/src/views/layout/components/Sidebar/Logo.vue +++ b/src/views/layout/components/Sidebar/Logo.vue @@ -3,11 +3,11 @@ -

{{ title }}

+

{{ $t('login.title') }}

-

{{ title }}

+

{{ $t('login.title') }}

@@ -23,9 +23,8 @@ export default { } }, data() { - return { - title: 'Vue Element Admin', - logo: 'https://wpimg.wallstcn.com/69a1c46c-eb1c-4b46-8bd4-e9e686ef5251.png' + return { + logo: require('../../../../assets/image/logo1.png') } } } @@ -46,7 +45,7 @@ export default { width: 100%; height: 50px; line-height: 50px; - background: #2b2f3a; + background: #3594d3; text-align: center; overflow: hidden; @@ -55,17 +54,15 @@ export default { width: 100%; & .sidebar-logo { - width: 32px; - height: 32px; + width: 50px; + height: 50px; vertical-align: middle; - margin-right: 12px; + margin-left:-2px; } - & .sidebar-title { display: inline-block; margin: 0; - color: #fff; - font-weight: 600; + color: #fff; line-height: 50px; font-size: 14px; font-family: Avenir, Helvetica Neue, Arial, Helvetica, sans-serif; @@ -75,7 +72,9 @@ export default { &.collapse { .sidebar-logo { - margin-right: 0px; + width: 40px; + height: 40px; + margin-left: -2px; } } } diff --git a/src/views/layout/components/Sidebar/SidebarItem.vue b/src/views/layout/components/Sidebar/SidebarItem.vue index f17d6199..3418bf9c 100644 --- a/src/views/layout/components/Sidebar/SidebarItem.vue +++ b/src/views/layout/components/Sidebar/SidebarItem.vue @@ -1,20 +1,6 @@ @@ -80,46 +65,6 @@ export default { diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 192627a8..76553099 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -6,7 +6,7 @@ @@ -437,7 +437,7 @@ $light_gray:#ef1010; align-items: center; justify-content: center; color: $light_gray; - .systemName { + .main-title { font-size: 35px; font-weight: 400; color: $light_gray; diff --git a/src/views/login/register.vue b/src/views/login/register.vue index 8c9f4cd1..cb74fa47 100644 --- a/src/views/login/register.vue +++ b/src/views/login/register.vue @@ -86,35 +86,35 @@ export default { name: 'login', data() { const validateDisplayUserid = (rule, value, callback) => { - if(value.length<=6){ + if( !value || value.length<=6){ callback(new Error('请输入6位以上用户账号')) }else{ callback() } } const validatePassword = (rule, value, callback) => { - if(value.length<6){ + if( !value || value.length<6){ callback(new Error('密码最少为六位')) }else{ callback() } } const validatePhoneno = (rule, value, callback) => { - if(value.length !=11 ){ + if( !value || value.length !=11 ){ callback(new Error('手机号码必须为11位号码')) }else{ callback() } } const validateSmsCode = (rule, value, callback) => { - if(value.length !=6 ){ + if( !value || value.length !=6 ){ callback(new Error('请输入6位短信验证码')) }else{ callback() } } const validateUsername = (rule, value, callback) => { - if(value.length <2 ){ + if( !value || value.length <2 ){ callback(new Error('请输入用户名称')) }else{ callback() diff --git a/src/views/login/resetPassword.vue b/src/views/login/resetPassword.vue index 4a2e4700..5478ac47 100644 --- a/src/views/login/resetPassword.vue +++ b/src/views/login/resetPassword.vue @@ -76,21 +76,21 @@ export default { name: 'login', data() { const validatePassword = (rule, value, callback) => { - if(value.length<6){ + if( !value || value.length<6){ callback(new Error('密码最少为六位')) }else{ callback() } } const validatePhoneno = (rule, value, callback) => { - if(value.length !=11 ){ + if( !value || value.length !=11 ){ callback(new Error('手机号码必须为11位号码')) }else{ callback() } } const validateSmsCode = (rule, value, callback) => { - if(value.length !=6 ){ + if( !value || value.length !=6 ){ callback(new Error('请输入6位短信验证码')) }else{ callback() diff --git a/src/views/login/socialsignin.vue b/src/views/login/socialsignin.vue index 30384da0..12c3c324 100644 --- a/src/views/login/socialsignin.vue +++ b/src/views/login/socialsignin.vue @@ -17,8 +17,8 @@ export default { methods: { wechatHandleClick(thirdpart) { this.$store.commit('SET_AUTH_TYPE', thirdpart) - const appid = 'wx0c261f0d6052439c' - const redirect_uri = encodeURIComponent('xxx/redirect?redirect=' + window.location.origin + '/authredirect') + const appid = 'wx406faa04557b40c8' + const redirect_uri = encodeURIComponent('https://www.qingqinkj.com/api/m1/wxpub/wxpub/msg/notify?redirectUri=' + window.location.origin + '/authredirect&authId=wx_pub_test_001') const url = 'https://open.weixin.qq.com/connect/qrconnect?appid=' + appid + '&redirect_uri=' + redirect_uri + '&response_type=code&scope=snsapi_login#wechat_redirect' openWindow(url, thirdpart, 540, 540) },