|
@@ -6,9 +6,9 @@
|
|
|
<component :is="comName" >
|
|
<component :is="comName" >
|
|
|
<div class="course-change">
|
|
<div class="course-change">
|
|
|
<div class="tabs">
|
|
<div class="tabs">
|
|
|
- <img src="http://res.training.luojigou.vip/FhHOYFM_rwtBGKZ9OCDgGs0PvGNw?imageView2/0/q/50|imageslim" alt="">
|
|
|
|
|
|
|
+ <!-- <img src="http://res.training.luojigou.vip/FhHOYFM_rwtBGKZ9OCDgGs0PvGNw?imageView2/0/q/50|imageslim" alt=""> -->
|
|
|
<div class="tags-box">
|
|
<div class="tags-box">
|
|
|
- <div class="tabs-item"
|
|
|
|
|
|
|
+ <div :class="['tabs-item', currentTabId === tab.id ? 'active' : '']"
|
|
|
@click="changeTabgs(tab)"
|
|
@click="changeTabgs(tab)"
|
|
|
v-for="tab in tabsData" :key="tab.id">
|
|
v-for="tab in tabsData" :key="tab.id">
|
|
|
<img class="cp" :src="currentTabId !== tab.id ? tab.imgUrl : tab.activeImgUrl" alt="">
|
|
<img class="cp" :src="currentTabId !== tab.id ? tab.imgUrl : tab.activeImgUrl" alt="">
|
|
@@ -18,9 +18,9 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="line" >
|
|
|
|
|
- <img :style="lineStyle" src="http://res.training.luojigou.vip/FrCpRmLbuGygO2NdcTJrbFGMSqYS?imageView2/0/q/50|imageslim" alt="">
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <!-- <div class="line" >
|
|
|
|
|
+ <img :style="lineStyle" src="http://res.training.luojigou.vip/FrCpRmLbuGygO2NdcTJrbFGMSqYS?imageView2/0/q/50|imageslim" alt="">
|
|
|
|
|
+ </div> -->
|
|
|
</div>
|
|
</div>
|
|
|
<!-- <Label class="label" :labelProps="labelProps" v-solt:label /> -->
|
|
<!-- <Label class="label" :labelProps="labelProps" v-solt:label /> -->
|
|
|
<Label class="label" :labelProps="labelProps" />
|
|
<Label class="label" :labelProps="labelProps" />
|
|
@@ -44,32 +44,42 @@ if (process.browser) {
|
|
|
const tabsData = Object.freeze([
|
|
const tabsData = Object.freeze([
|
|
|
{
|
|
{
|
|
|
id: 0,
|
|
id: 0,
|
|
|
- imgUrl: 'http://res.training.luojigou.vip/FkSnoRtRQ4WY_f3M3TQEJcn_du_Z?imageView2/0/q/50|imageslim',
|
|
|
|
|
- activeImgUrl: 'http://res.training.luojigou.vip/FnzQdBDxbMr-Ek5HlcWCQ_Dk12zn?imageView2/0/q/50|imageslim',
|
|
|
|
|
|
|
+ // imgUrl: 'http://res.training.luojigou.vip/FkSnoRtRQ4WY_f3M3TQEJcn_du_Z?imageView2/0/q/50|imageslim',
|
|
|
|
|
+ // activeImgUrl: 'http://res.training.luojigou.vip/FnzQdBDxbMr-Ek5HlcWCQ_Dk12zn?imageView2/0/q/50|imageslim',
|
|
|
|
|
+ imgUrl: require('~/assets/images/products/tab_xcx_nor.png'),
|
|
|
|
|
+ activeImgUrl: require('~/assets/images/products/tab_xcx_active.png'),
|
|
|
label: '小程序课堂'
|
|
label: '小程序课堂'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
id: 1,
|
|
id: 1,
|
|
|
- imgUrl: 'http://res.training.luojigou.vip/FuV6EjLrPYoiFII0iLYQlW51Bemq?imageView2/0/q/50|imageslim',
|
|
|
|
|
- activeImgUrl: 'http://res.training.luojigou.vip/FoRYr27YPRQ5dcZy6hjWkqCB3bUc?imageView2/0/q/50|imageslim',
|
|
|
|
|
|
|
+ // imgUrl: 'http://res.training.luojigou.vip/FuV6EjLrPYoiFII0iLYQlW51Bemq?imageView2/0/q/50|imageslim',
|
|
|
|
|
+ // activeImgUrl: 'http://res.training.luojigou.vip/FoRYr27YPRQ5dcZy6hjWkqCB3bUc?imageView2/0/q/50|imageslim',
|
|
|
|
|
+ imgUrl: require('~/assets/images/products/tab_h5_nor.png'),
|
|
|
|
|
+ activeImgUrl: require('~/assets/images/products/tab_h5_active.png'),
|
|
|
label: '微信H5课堂'
|
|
label: '微信H5课堂'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
id: 2,
|
|
id: 2,
|
|
|
- imgUrl: 'http://res.training.luojigou.vip/FsVRp9Lk4Cyp5O_JNBe49kfz7vZh?imageView2/0/q/50|imageslim',
|
|
|
|
|
- activeImgUrl: 'http://res.training.luojigou.vip/FhFDmhtts6iIWXD_Z16JOmMeqbh6?imageView2/0/q/50|imageslim',
|
|
|
|
|
|
|
+ // imgUrl: 'http://res.training.luojigou.vip/FsVRp9Lk4Cyp5O_JNBe49kfz7vZh?imageView2/0/q/50|imageslim',
|
|
|
|
|
+ // activeImgUrl: 'http://res.training.luojigou.vip/FhFDmhtts6iIWXD_Z16JOmMeqbh6?imageView2/0/q/50|imageslim',
|
|
|
|
|
+ imgUrl: require('~/assets/images/products/tab_pc_nor.png'),
|
|
|
|
|
+ activeImgUrl: require('~/assets/images/products/tab_pc_active.png'),
|
|
|
label: 'PC端独立课堂'
|
|
label: 'PC端独立课堂'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
id: 3,
|
|
id: 3,
|
|
|
- imgUrl: 'http://res.training.luojigou.vip/FsGTOeaPqx7Ipow75LJYM8ETlKew?imageView2/0/q/50|imageslim',
|
|
|
|
|
- activeImgUrl: 'http://res.training.luojigou.vip/FqmqyLMeRxdvj__Z618fkgVHJV7J?imageView2/0/q/50|imageslim',
|
|
|
|
|
|
|
+ // imgUrl: 'http://res.training.luojigou.vip/FsGTOeaPqx7Ipow75LJYM8ETlKew?imageView2/0/q/50|imageslim',
|
|
|
|
|
+ // activeImgUrl: 'http://res.training.luojigou.vip/FqmqyLMeRxdvj__Z618fkgVHJV7J?imageView2/0/q/50|imageslim',
|
|
|
|
|
+ imgUrl: require('~/assets/images/products/tab_parent_nor.png'),
|
|
|
|
|
+ activeImgUrl: require('~/assets/images/products/tab_parent_active.png'),
|
|
|
label: '家长端APP'
|
|
label: '家长端APP'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
id: 4,
|
|
id: 4,
|
|
|
- imgUrl: 'http://res.training.luojigou.vip/FgoA_S33kLvcoMktbN4ORQO9Kfc8?imageView2/0/q/50|imageslim',
|
|
|
|
|
- activeImgUrl: 'http://res.training.luojigou.vip/Fgm-DUhf4ySZc6uEX2IZXzP-NdzS?imageView2/0/q/50|imageslim',
|
|
|
|
|
|
|
+ // imgUrl: 'http://res.training.luojigou.vip/FgoA_S33kLvcoMktbN4ORQO9Kfc8?imageView2/0/q/50|imageslim',
|
|
|
|
|
+ // activeImgUrl: 'http://res.training.luojigou.vip/Fgm-DUhf4ySZc6uEX2IZXzP-NdzS?imageView2/0/q/50|imageslim',
|
|
|
|
|
+ imgUrl: require('~/assets/images/products/tab_teacher_nor.png'),
|
|
|
|
|
+ activeImgUrl: require('~/assets/images/products/tab_teacher_active.png'),
|
|
|
label: '教师端APP'
|
|
label: '教师端APP'
|
|
|
},
|
|
},
|
|
|
])
|
|
])
|
|
@@ -189,6 +199,8 @@ export default {
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
<style scoped lang="scss">
|
|
|
|
|
+@import "~static/common/style.sass";
|
|
|
|
|
+
|
|
|
.Course-container {
|
|
.Course-container {
|
|
|
.course-change {
|
|
.course-change {
|
|
|
position: relative;
|
|
position: relative;
|
|
@@ -203,11 +215,12 @@ export default {
|
|
|
height: 179px;
|
|
height: 179px;
|
|
|
}
|
|
}
|
|
|
.tags-box {
|
|
.tags-box {
|
|
|
- width: 1070px;
|
|
|
|
|
- position: absolute;
|
|
|
|
|
- top: 50%;
|
|
|
|
|
- left: 50%;
|
|
|
|
|
- transform: translate(-50%, -50%);
|
|
|
|
|
|
|
+ padding: 48px 65px 36px;
|
|
|
|
|
+ width: 1200px;
|
|
|
|
|
+ background: #FFFFFF;
|
|
|
|
|
+ box-shadow: 0px 1px 15px 0px rgba(218, 230, 255, 0.74);
|
|
|
|
|
+ border-radius: 17px;
|
|
|
|
|
+
|
|
|
display: flex;
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
@@ -216,9 +229,22 @@ export default {
|
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
|
|
+ &.active {
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+ &:after {
|
|
|
|
|
+ content: ''; /*CSS伪类用法*/
|
|
|
|
|
+ position: absolute; /*定位背景横线的位置*/
|
|
|
|
|
+ bottom: -28px;
|
|
|
|
|
+ background: $theme_color_fu; /*宽和高做出来的背景横线*/
|
|
|
|
|
+ width: 62px;
|
|
|
|
|
+ height: 1px;
|
|
|
|
|
+ box-shadow: 0px 2px 4px 0px rgba(85, 141, 253, 0.77);
|
|
|
|
|
+ }
|
|
|
|
|
+ // border-bottom: 1px solid $theme_color_fu;
|
|
|
|
|
+ }
|
|
|
img {
|
|
img {
|
|
|
- width: 50px;
|
|
|
|
|
- height: 50px;
|
|
|
|
|
|
|
+ width: 57px;
|
|
|
|
|
+ height: 42px;
|
|
|
object-fit: fill;
|
|
object-fit: fill;
|
|
|
margin-bottom: 30px;
|
|
margin-bottom: 30px;
|
|
|
}
|
|
}
|
|
@@ -228,7 +254,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
|
.line {
|
|
.line {
|
|
|
- width: 1070px;
|
|
|
|
|
|
|
+ // width: 1070px;
|
|
|
position: absolute;
|
|
position: absolute;
|
|
|
left: 416px;
|
|
left: 416px;
|
|
|
top: 153px;
|
|
top: 153px;
|