|
@@ -82,7 +82,7 @@
|
|
|
<div class="year-border">
|
|
|
</div>
|
|
|
<div class="year-list">
|
|
|
- <div class="year-block" v-for="(item,index) in developYearList" :key="item.id" @click="yearSwitch(item)">
|
|
|
+ <div class="year-block" v-for="(item,index) in developYearList" :key="item.id" @click="yearSwitch(item,index)">
|
|
|
<img :src="activeCal==index?'https://mall.zhaijieshi.cc/file/jz-gw/about/icon-selected.png':'https://mall.zhaijieshi.cc/file/jz-gw/about/icon-unselect.png'"/>
|
|
|
<div :class="[activeCal==index?'active-year':'']">{{item}}年</div>
|
|
|
</div>
|
|
@@ -272,42 +272,43 @@ export default {
|
|
|
},
|
|
|
methods:{
|
|
|
carouselChange(current,old){
|
|
|
- // this.activeCal=current;
|
|
|
- if(current==0){
|
|
|
- this.developYearList=['2018','2019','2020','2021','2022','2023'];
|
|
|
- }else if(current==1){
|
|
|
- this.developYearList=['2019','2020','2021','2022','2023','2018'];
|
|
|
- }else if(current==2){
|
|
|
- this.developYearList=['2020','2021','2022','2023','2018','2019'];
|
|
|
- }else if(current==3){
|
|
|
- this.developYearList=['2021','2022','2023','2018','2019','2020'];
|
|
|
- }else if(current==4){
|
|
|
- this.developYearList=['2022','2023','2018','2019','2020','2021'];
|
|
|
- }else if(current==5){
|
|
|
- this.developYearList=['2023','2018','2019','2020','2021','2022'];
|
|
|
- }
|
|
|
+ this.activeCal=current;
|
|
|
+ // if(current==0){
|
|
|
+ // this.developYearList=['2018','2019','2020','2021','2022','2023'];
|
|
|
+ // }else if(current==1){
|
|
|
+ // this.developYearList=['2019','2020','2021','2022','2023','2018'];
|
|
|
+ // }else if(current==2){
|
|
|
+ // this.developYearList=['2020','2021','2022','2023','2018','2019'];
|
|
|
+ // }else if(current==3){
|
|
|
+ // this.developYearList=['2021','2022','2023','2018','2019','2020'];
|
|
|
+ // }else if(current==4){
|
|
|
+ // this.developYearList=['2022','2023','2018','2019','2020','2021'];
|
|
|
+ // }else if(current==5){
|
|
|
+ // this.developYearList=['2023','2018','2019','2020','2021','2022'];
|
|
|
+ // }
|
|
|
},
|
|
|
-yearSwitch(item){
|
|
|
+yearSwitch(item,index){
|
|
|
console.log(item);
|
|
|
setTimeout(()=>{
|
|
|
-let index=0;
|
|
|
- this.developYearList=['2018','2019','2020','2021','2022','2023'];
|
|
|
- if(item=='2019'){
|
|
|
- index=1;
|
|
|
- this.developYearList=['2019','2020','2021','2022','2023','2018'];
|
|
|
- }else if(item=='2020'){
|
|
|
- index=2;
|
|
|
- this.developYearList=['2020','2021','2022','2023','2018','2019'];
|
|
|
- }else if(item=='2021'){
|
|
|
- index=3;
|
|
|
- this.developYearList=['2021','2022','2023','2018','2019','2020'];
|
|
|
- }else if(item=='2022'){
|
|
|
- index=4;
|
|
|
- this.developYearList=['2022','2023','2018','2019','2020','2021'];
|
|
|
- }else if(item=='2023'){
|
|
|
- index=5;
|
|
|
- this.developYearList=['2023','2018','2019','2020','2021','2022'];
|
|
|
- }
|
|
|
+ // let index=0;
|
|
|
+ // this.developYearList=['2018','2019','2020','2021','2022','2023'];
|
|
|
+ // if(item=='2019'){
|
|
|
+ // index=1;
|
|
|
+ // this.developYearList=['2019','2020','2021','2022','2023','2018'];
|
|
|
+ // }else if(item=='2020'){
|
|
|
+ // index=2;
|
|
|
+ // this.developYearList=['2020','2021','2022','2023','2018','2019'];
|
|
|
+ // }else if(item=='2021'){
|
|
|
+ // index=3;
|
|
|
+ // this.developYearList=['2021','2022','2023','2018','2019','2020'];
|
|
|
+ // }else if(item=='2022'){
|
|
|
+ // index=4;
|
|
|
+ // this.developYearList=['2022','2023','2018','2019','2020','2021'];
|
|
|
+ // }else if(item=='2023'){
|
|
|
+ // index=5;
|
|
|
+ // this.developYearList=['2023','2018','2019','2020','2021','2022'];
|
|
|
+ // }
|
|
|
+ this.activeCal=index;
|
|
|
this.$refs.carouse.setActiveItem(index);
|
|
|
},200);
|
|
|
|
|
@@ -460,7 +461,7 @@ top:30px;
|
|
|
.item-content{
|
|
|
z-index:100;
|
|
|
position: relative;
|
|
|
- padding:80px 0 0 80px;
|
|
|
+ padding:80px 0 0 20px;
|
|
|
}
|
|
|
.item-year{
|
|
|
margin-bottom:20px;
|