From 92abfbc1319d52817dda77cd760f59093bd36aa8 Mon Sep 17 00:00:00 2001 From: Luck-Xiaomi <1569717859@qq.com> Date: Fri, 9 Sep 2022 14:01:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=AD=E5=BB=BA=E5=9B=9B?= =?UTF-8?q?=E5=B1=80-=E6=8C=87=E6=8C=A5=E4=B8=AD=E5=BF=83=E7=9A=84?= =?UTF-8?q?=E9=83=A8=E5=88=86=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/index/index.js | 14 +++++++------- src/views/projectAdmin/zjsj/command/center.vue | 1 + src/views/projectAdmin/zjsj/command/rightFour.vue | 2 +- src/views/projectAdmin/zjsj/command/rightThree.vue | 2 +- src/views/projectAdmin/zjsj/command/rightTwo.vue | 11 +++++------ 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/pages/index/index.js b/src/pages/index/index.js index f61a7a44..cac83173 100644 --- a/src/pages/index/index.js +++ b/src/pages/index/index.js @@ -114,7 +114,7 @@ if (COMPANY == 'xingxuan') { } -function 沙悟净(data, sn) { +function handler(data, sn) { console.log(data, 'dllmhjc'); window._paq.push(['trackEvent', '点击', '登录', '登录账号']) axios.defaults.headers.common['Authorization'] = 'Bearer' + ' ' + data.token @@ -234,19 +234,19 @@ router.beforeEach((to, form, next) => { const direction = to.query.direction if (direction) { const info = JSON.parse(decode(direction)) - const 孙悟空 = { account: info.acount, password: info.pwd } + const account = { account: info.acount, password: info.pwd } - const 猪八戒 = res => { - 沙悟净(res.result, info.projectSn) + const tentative = res => { + handler(res.result, info.projectSn) return next({ path: to.path }) } if (LOGINTYPE == 1) { - loginApi(孙悟空).then(猪八戒) + loginApi(account).then(tentative) } else if (LOGINTYPE == 2) { - companyLoginApi(孙悟空).then(猪八戒) + companyLoginApi(account).then(tentative) } else if (LOGINTYPE == 3) { - projectLoginApi(孙悟空).then(猪八戒) + projectLoginApi(account).then(tentative) } } else { diff --git a/src/views/projectAdmin/zjsj/command/center.vue b/src/views/projectAdmin/zjsj/command/center.vue index 37313fc7..50ef48b8 100644 --- a/src/views/projectAdmin/zjsj/command/center.vue +++ b/src/views/projectAdmin/zjsj/command/center.vue @@ -102,6 +102,7 @@ export default { font-weight: bold; .label { margin-right: 10px; + white-space: nowrap; color: #002636; } diff --git a/src/views/projectAdmin/zjsj/command/rightFour.vue b/src/views/projectAdmin/zjsj/command/rightFour.vue index 2f1daf5f..1fa3dfa6 100644 --- a/src/views/projectAdmin/zjsj/command/rightFour.vue +++ b/src/views/projectAdmin/zjsj/command/rightFour.vue @@ -99,7 +99,7 @@ export default { box-sizing: border-box; border-left: 4px solid #66d3d8; margin-bottom: 5px; - padding: 6px 0; + padding: 10px 0; width: 100%; background-image: linear-gradient(to right, #3b7589, #212c3e); font-size: 12px; diff --git a/src/views/projectAdmin/zjsj/command/rightThree.vue b/src/views/projectAdmin/zjsj/command/rightThree.vue index 7a8ec834..fc8db1da 100644 --- a/src/views/projectAdmin/zjsj/command/rightThree.vue +++ b/src/views/projectAdmin/zjsj/command/rightThree.vue @@ -15,7 +15,7 @@
- +
{{ item.label }}
diff --git a/src/views/projectAdmin/zjsj/command/rightTwo.vue b/src/views/projectAdmin/zjsj/command/rightTwo.vue index ece1cefb..69078e6d 100644 --- a/src/views/projectAdmin/zjsj/command/rightTwo.vue +++ b/src/views/projectAdmin/zjsj/command/rightTwo.vue @@ -205,7 +205,7 @@ export default { box-sizing: border-box; border-left: 4px solid #66d3d8; margin-bottom: 5px; - padding: 5px 0; + padding: 7px 0; width: 100%; background-image: linear-gradient(to right, #3b7589, #212c3e); font-size: 12px; @@ -215,7 +215,7 @@ export default { white-space: nowrap; &:hover { - padding: 10px 0; + padding: 15px 0; &::before { content: ''; position: absolute; @@ -229,10 +229,9 @@ export default { background-size: 100% 100%; transition: all .3s; } - } - - &:hover .value { - color: #c2805f; + .value { + color: #c2805f; + } } &:last-child {