Commit fe6d03df authored by 张俊's avatar 张俊

修改工作台首页样式

parent 4ba509a8
...@@ -35,11 +35,11 @@ export default { ...@@ -35,11 +35,11 @@ export default {
text: self.data.data + "{a|%}", text: self.data.data + "{a|%}",
show: !self.is_word, show: !self.is_word,
x: "center", x: "center",
y: "center", y: "30%",
textStyle: { textStyle: {
fontSize: 36, fontSize: 36,
fontWeight: "lighter", fontWeight: "lighter",
color: ["#67828c"], color: self.dangerousValue == "workplace"?["#0d1847"]:["#67828c"],
rich: { rich: {
a: { a: {
fontSize: 14, fontSize: 14,
...@@ -205,7 +205,7 @@ export default { ...@@ -205,7 +205,7 @@ export default {
barMaxWidth: 10, barMaxWidth: 10,
name: "C", name: "C",
roundCap: true, roundCap: true,
color: "#ddd", color: "#f4f4f5",
barGap: "-100%" barGap: "-100%"
}, },
{ {
......
...@@ -22,11 +22,13 @@ ...@@ -22,11 +22,13 @@
<div <div
v-for="(item, index) in user_arr" v-for="(item, index) in user_arr"
:key="index + 700" :key="index + 700"
@mouseleave.stop="change_now_hover(-1)"
@mouseenter.stop="change_now_hover(index)"
@click="gotopage(item.visit_url)" @click="gotopage(item.visit_url)"
>{{ item.menu_name }}</div> >{{ item.menu_name }}</div>
<div @click="gotopage('logout')">退出登录</div> <div @click="gotopage('logout')">退出登录</div>
</div> </div>
<div v-if="userInfo.user_name && userInfo.user_name != ''" class="sj"></div> <div v-if="userInfo.user_name && userInfo.user_name != ''" class="sj" :style="now_hover==0?{backgroundColor:'#e56600'}:{}"></div>
</div> </div>
<div <div
v-if="show_shop_menu" v-if="show_shop_menu"
...@@ -85,10 +87,12 @@ ...@@ -85,10 +87,12 @@
<div <div
v-for="(v, indexs) in item.Child" v-for="(v, indexs) in item.Child"
:key="indexs + 700" :key="indexs + 700"
@mouseleave.stop="change_now_hover(-1)"
@mouseenter.stop="change_now_hover(indexs)"
@click.stop="gotoChildPage(v, item.visit_url)" @click.stop="gotoChildPage(v, item.visit_url)"
>{{ v.menu_name }}</div> >{{ v.menu_name }}</div>
</div> </div>
<div class="sj" v-if="item.Child && item.Child.length" style="left: 60px;"></div> <div class="sj" v-if="item.Child && item.Child.length" :style="now_hover==0?{backgroundColor:'#e56600',left: '60px'}:{left: '60px'}"></div>
<div class="bottom_show" v-if="now_menu == item.visit_url"></div> <div class="bottom_show" v-if="now_menu == item.visit_url"></div>
</div> </div>
</div> </div>
...@@ -110,6 +114,7 @@ export default { ...@@ -110,6 +114,7 @@ export default {
], ],
shopping_list: [], shopping_list: [],
menuCartNum: 0, menuCartNum: 0,
now_hover:-1,
show_shop_menu: false show_shop_menu: false
}; };
}, },
...@@ -131,6 +136,9 @@ export default { ...@@ -131,6 +136,9 @@ export default {
} }
}, },
methods: { methods: {
change_now_hover(n){
this.now_hover = n
},
gotopage(n) { gotopage(n) {
if (n == "logout") { if (n == "logout") {
window.location.href = "/iam/api/logout"; window.location.href = "/iam/api/logout";
...@@ -306,7 +314,7 @@ export default { ...@@ -306,7 +314,7 @@ export default {
box-shadow: 0px 3px 6px 0px rgba(15, 19, 65, 0.05); box-shadow: 0px 3px 6px 0px rgba(15, 19, 65, 0.05);
border-radius: 8px; border-radius: 8px;
position: absolute; position: absolute;
top: 80px; top: 70px;
left: -20px; left: -20px;
overflow: hidden; overflow: hidden;
font-size: 14px; font-size: 14px;
...@@ -356,9 +364,9 @@ export default { ...@@ -356,9 +364,9 @@ export default {
.sj { .sj {
width: 16px; width: 16px;
height: 16px; height: 16px;
background-color: #e56600; background-color: #fff;
position: absolute; position: absolute;
top: 72px; top: 62px;
transform: rotate(45deg); transform: rotate(45deg);
display: none; display: none;
} }
......
...@@ -206,12 +206,12 @@ export default { ...@@ -206,12 +206,12 @@ export default {
}, 1000); }, 1000);
}; };
var user_name_pass = (rule, value, callback) => { var user_name_pass = (rule, value, callback) => {
var reg = /^[a-z0-9|\-|_|\.]+$/; var reg = /^[a-z0-9]+$/;
setTimeout(() => { setTimeout(() => {
if (reg.test(value)) { if (reg.test(value)) {
callback(); callback();
} else { } else {
callback(new Error("只支持小写字母、数字、-、_、.")); callback(new Error("只支持小写字母、数字"));
} }
}, 100); }, 100);
}; };
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment