135 lines
2.0 KiB
Vue
135 lines
2.0 KiB
Vue
<template>
|
|
<div id="app">
|
|
<router-view />
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'App'
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
/*定义滚动条高宽及背景
|
|
高宽分别对应横竖滚动条的尺寸*/
|
|
::-webkit-scrollbar {
|
|
width: 4px;
|
|
height: 4px;
|
|
}
|
|
|
|
/*定义滚动条轨道
|
|
内阴影+圆角*/
|
|
::-webkit-scrollbar-track {
|
|
background-color: #f5f5f5;
|
|
}
|
|
|
|
/*定义滑块
|
|
内阴影+圆角*/
|
|
::-webkit-scrollbar-thumb {
|
|
border-radius: 10px;
|
|
background-color: #d3d3d3;
|
|
}
|
|
|
|
.tips {
|
|
color: #999;
|
|
}
|
|
|
|
.img_error {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
|
|
.icon {
|
|
font-size: 20px;
|
|
color: #999;
|
|
}
|
|
}
|
|
|
|
.filter_wrap {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.shop_type_box {
|
|
display: flex;
|
|
|
|
&.disabled {
|
|
.item {
|
|
background-color: #f9f9f9;
|
|
|
|
&:hover {
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
&.active {
|
|
border-color: #ececec;
|
|
}
|
|
|
|
.active_dot {
|
|
background-color: #ececec;
|
|
}
|
|
|
|
.s_title {
|
|
color: #999;
|
|
}
|
|
}
|
|
}
|
|
|
|
.item {
|
|
$borderColor: #1890FF;
|
|
margin-right: 14px;
|
|
border: 1px solid #ececec;
|
|
border-radius: 4px;
|
|
padding: 6px 24px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
overflow: hidden;
|
|
position: relative;
|
|
|
|
&:hover {
|
|
cursor: pointer;
|
|
}
|
|
|
|
&.active {
|
|
border-color: $borderColor;
|
|
|
|
.active_dot {
|
|
display: flex;
|
|
}
|
|
}
|
|
|
|
.active_dot {
|
|
$size: 26px;
|
|
background-color: $borderColor;
|
|
color: #fff;
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
width: $size;
|
|
height: $size;
|
|
clip-path: polygon(100% 0, 0 0, 100% 100%);
|
|
display: none;
|
|
justify-content: flex-end;
|
|
padding-right: 2px;
|
|
}
|
|
|
|
.s_title {
|
|
font-weight: bold;
|
|
color: #555;
|
|
}
|
|
|
|
.intro {
|
|
color: #999;
|
|
font-size: 12px;
|
|
margin-top: -10px;
|
|
}
|
|
}
|
|
}
|
|
</style>
|