mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-12 04:16:50 +08:00
style:合并
This commit is contained in:
BIN
src/assets/image/pathdetails/circle.png
Normal file
BIN
src/assets/image/pathdetails/circle.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 295 B |
@@ -5,3 +5,45 @@ body {
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
// overflow-y: auto;
|
// overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
//标签tag样式-----------------------------------------------------------------
|
||||||
|
// 必修
|
||||||
|
.tag1{
|
||||||
|
width: 80px;
|
||||||
|
height: 26px;
|
||||||
|
background: linear-gradient(90deg, #84aad2 0%, #a4c5e9 100%);
|
||||||
|
border-radius: 4px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
// 在线
|
||||||
|
.tag2{
|
||||||
|
width: 78px;
|
||||||
|
height: 24px;
|
||||||
|
border: 1px solid #85AAD2;
|
||||||
|
border-radius: 4px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #85AAD2;
|
||||||
|
}
|
||||||
|
// 标签
|
||||||
|
.tag3{
|
||||||
|
width: 78px;
|
||||||
|
height: 24px;
|
||||||
|
border: 1px solid rgba(255, 185, 109, 1);
|
||||||
|
border-radius: 4px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 500;
|
||||||
|
color: rgba(255, 185, 109, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
//标签tag样式-----------------------------------------------------------------
|
||||||
4
src/components/index.js
Normal file
4
src/components/index.js
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
import CompulsoryTag from './tag/CompulsoryTag.vue'
|
||||||
|
export {
|
||||||
|
CompulsoryTag
|
||||||
|
}
|
||||||
27
src/components/tag/CompulsoryTag.vue
Normal file
27
src/components/tag/CompulsoryTag.vue
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
<!-- 必修标签 -->
|
||||||
|
<template>
|
||||||
|
<div class="compulsoryTag">
|
||||||
|
<div class="btn">必修</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: "CompulsoryTag",
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<style scoped lang="scss">
|
||||||
|
.compulsoryTag {
|
||||||
|
.btn {
|
||||||
|
width: 80px;
|
||||||
|
height: 26px;
|
||||||
|
background: linear-gradient(90deg, #84aad2 0%, #a4c5e9 100%);
|
||||||
|
border-radius: 4px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
0
src/components/tag/OnLine.vue
Normal file
0
src/components/tag/OnLine.vue
Normal file
@@ -0,0 +1,109 @@
|
|||||||
|
<template>
|
||||||
|
<div class="pathdetails">
|
||||||
|
<!-- 面包屑导航 -->
|
||||||
|
<div class="crumb">
|
||||||
|
<div>产品经理学习路径图</div>
|
||||||
|
<div style="margin-left: 6px; margin-right: 6px">/</div>
|
||||||
|
<div style="font-weight: 700">路径图详情</div>
|
||||||
|
</div>
|
||||||
|
<!-- 面包屑导航 -->
|
||||||
|
<div class="pdname">中级产品经理</div>
|
||||||
|
<!-- 详细信息 -->
|
||||||
|
<div class="detailinfo">
|
||||||
|
<div class="detailL">
|
||||||
|
<div class="title">
|
||||||
|
<div class="titleL">序:产品经理从初级到中级</div>
|
||||||
|
<div class="titleR">
|
||||||
|
<img src="../../assets/image/pathdetails/circle.png" />
|
||||||
|
<div class="titleRT">进行中</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="tag1">必修</div>
|
||||||
|
<div class="tag2">在线</div>
|
||||||
|
<div class="tag3">#通用力</div>
|
||||||
|
</div>
|
||||||
|
<div class="detailR"></div>
|
||||||
|
</div>
|
||||||
|
<!-- 详细信息 -->
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { reactive, toRefs } from "vue";
|
||||||
|
export default {
|
||||||
|
name: "PathDetails",
|
||||||
|
setup() {
|
||||||
|
const state = reactive({});
|
||||||
|
const handleClick = (tab, event) => {
|
||||||
|
console.log(tab, event);
|
||||||
|
};
|
||||||
|
return {
|
||||||
|
...toRefs(state),
|
||||||
|
handleClick,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
||||||
|
<style lang="scss">
|
||||||
|
.pathdetails {
|
||||||
|
.crumb {
|
||||||
|
color: #fff;
|
||||||
|
display: flex;
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 24px;
|
||||||
|
}
|
||||||
|
.pdname {
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: 800;
|
||||||
|
color: #ffffff;
|
||||||
|
margin-top: 17px;
|
||||||
|
}
|
||||||
|
.detailinfo {
|
||||||
|
width: 100%;
|
||||||
|
margin-top: 24px;
|
||||||
|
display: flex;
|
||||||
|
.detailL {
|
||||||
|
flex: 1;
|
||||||
|
margin-right: 20px;
|
||||||
|
background: #ffffff;
|
||||||
|
border-radius: 8px;
|
||||||
|
padding-left: 45px;
|
||||||
|
padding-right: 45px;
|
||||||
|
padding-top: 23px;
|
||||||
|
.title {
|
||||||
|
height: 50px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
background-color: rgba(249, 249, 249, 1);
|
||||||
|
margin-top: 27px;
|
||||||
|
.titleL {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 800;
|
||||||
|
color: #333333;
|
||||||
|
margin-left: 27px;
|
||||||
|
}
|
||||||
|
.titleR {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.titleR .titleRT {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 800;
|
||||||
|
color: #0060ff;
|
||||||
|
margin-right: 73px;
|
||||||
|
margin-left: 2px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.detailR {
|
||||||
|
width: 434px;
|
||||||
|
min-height: 557px;
|
||||||
|
background-color: rgba(255, 255, 255, 1);
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user