Commit b41579fa76a49aa1b4f6874d797ae7d2b0990880

Authored by liuqimichale
1 parent edfa20f9

解决方案1

src/assets/images/solution/iphone0.png 0 → 100644

311 KB

src/assets/images/solution/iphone1.png 0 → 100644

133 KB

src/assets/images/solution/iphone2.png 0 → 100644

159 KB

src/assets/images/solution/iphone3.png 0 → 100644

143 KB

src/assets/images/solution/nav.png 0 → 100644

3.94 KB

src/assets/images/solution/navactive.png 0 → 100644

4.4 KB

src/assets/images/solution/pay.png 0 → 100644

4.17 KB

src/assets/images/solution/payactive.png 0 → 100644

4.55 KB

src/assets/images/solution/service.png 0 → 100644

5.77 KB

src/assets/images/solution/serviceactive.png 0 → 100644

7.89 KB

src/assets/images/solution/share.png 0 → 100644

3.98 KB

src/assets/images/solution/shareactive.png 0 → 100644

4.33 KB

src/views/solution/components/solutionSelect0.vue
... ... @@ -70,15 +70,220 @@
70 70 </ul>
71 71 </div>
72 72  
  73 +
  74 + <div class="bgCommon" style="padding: 50px 0">
  75 + <div class="widthCommon">
  76 + <ul class="overHidden">
  77 + <li class="fl" style="width: 392px;">
  78 + <div style="font-size: 24px;margin-bottom: 34px;"> 面向车主</div>
  79 + <ul class="tab-swiper">
  80 + <li v-for="(i, index) in tabData" :key="index"
  81 + :class="{active: currentIndex==index}"
  82 + >
  83 + {{i}}
  84 + </li>
  85 + </ul>
  86 +
  87 + <transition-group tag="ul" name="slide-left" class="tabCon" mode="out-in">
  88 + <li v-for="(item, index) in tabCon" :key="item.mainTitle" v-show="currentIndex==index">
  89 + <div>
  90 + {{item.mainTitle}}
  91 + </div>
  92 + <div>
  93 + {{item.subTitle}}
  94 + </div>
  95 + </li>
  96 + </transition-group>
  97 +
  98 + </li>
  99 +
  100 + <li class="fl" style="margin-left: 166px;">
  101 +
  102 + <transition-group tag="ul" mode="out-in" class="img-wrapper" name="slide-left">
  103 + <li v-for="(item, index) in imgCon" :key="item.id" v-if="currentIndex==index">
  104 + <img :src="item.name" alt="">
  105 + </li>
  106 + </transition-group>
  107 + </li>
  108 + </ul>
  109 + </div>
  110 + </div>
  111 +
  112 +
  113 +
  114 +
  115 +
73 116 </div>
74 117 </template>
75 118  
76 119 <script>
  120 +import iphone0 from '../../../assets/images/solution/iphone0.png'
  121 +import iphone1 from '../../../assets/images/solution/iphone1.png'
  122 +import iphone2 from '../../../assets/images/solution/iphone2.png'
  123 +import iphone3 from '../../../assets/images/solution/iphone3.png'
  124 +
77 125 export default {
78   - name: 'solutionSelect0'
  126 + name: 'solutionSelect0',
  127 + data(){
  128 + return{
  129 + tabData:[
  130 + '一键导航','在线缴费','车位共享','周边服务'
  131 + ],
  132 + tabCon:[
  133 + {
  134 + mainTitle:'停车一键导航',
  135 + subTitle:'目的地附近停车场推荐,快速一键导航停车场,最佳停车路径规划。'
  136 + },
  137 + {
  138 + mainTitle:'在线缴费快速出场',
  139 + subTitle:'支持微信、支付宝等多种在线支付方式,提前支付,快速离场,减少通道排队时间。'
  140 + },
  141 + {
  142 + mainTitle:'个人车位共享',
  143 + subTitle:'个人车位出租与共享,提高车位利用率,增加车主个人收入,盘活泊位存量。'
  144 + },
  145 + {
  146 + mainTitle:'周边服务',
  147 + subTitle:'为用户直接提供周边第三方服务入口,方便用户出行以及获得更多相关服务。'
  148 + },
  149 + ],
  150 + imgCon:[
  151 + {
  152 + name:iphone0,
  153 + id:0
  154 + },
  155 + {
  156 + name:iphone1,
  157 + id:1
  158 + },
  159 + {
  160 + name:iphone2,
  161 + id:2
  162 + },
  163 + {
  164 + name:iphone3,
  165 + id:3
  166 + },
  167 + ],
  168 + currentIndex: 0,
  169 + timer:''
  170 + }
  171 + },
  172 + mounted() {
  173 + this.timer = setInterval(this.get, 3000)
  174 + },
  175 + methods:{
  176 + get() {
  177 + this.currentIndex ++
  178 + if(this.currentIndex == 4){
  179 + this.currentIndex = 0
  180 + }
  181 + }
  182 + }
  183 +
  184 +
79 185 }
80 186 </script>
81 187  
82 188 <style scoped lang="scss">
  189 +.tab-swiper{
  190 + width: 318px;
  191 + display: flex;
  192 + border-bottom: 1px solid rgba(190,190,190,1);
  193 + justify-content: space-between;
  194 +}
  195 +.tab-swiper>li{
  196 + width: 64px;
  197 + height: 100px;
  198 + padding-top: 76px;
  199 + cursor: pointer;
  200 +
  201 + &:nth-of-type(1){
  202 + background: url("../../../assets/images/solution/nav.png") no-repeat;
  203 + background-size: 64px 64px;
  204 + &.active{
  205 + background: url("../../../assets/images/solution/navactive.png") no-repeat;
  206 + background-size: 64px 64px;
  207 + color: #1251B8;
  208 + }
  209 + }
  210 + &:nth-of-type(2){
  211 + background: url("../../../assets/images/solution/pay.png") no-repeat;
  212 + background-size: 64px 64px;
  213 + &.active{
  214 + background: url("../../../assets/images/solution/payactive.png") no-repeat;
  215 + background-size: 64px 64px;
  216 + color: #1251B8;
  217 + }
  218 + }
  219 + &:nth-of-type(3){
  220 + background: url("../../../assets/images/solution/share.png") no-repeat;
  221 + background-size: 64px 64px;
  222 + &.active{
  223 + background: url("../../../assets/images/solution/shareactive.png") no-repeat;
  224 + background-size: 64px 64px;
  225 + color: #1251B8;
  226 + }
  227 + }
  228 + &:nth-of-type(4){
  229 + background: url("../../../assets/images/solution/service.png") no-repeat;
  230 + background-size: 64px 64px;
  231 + &.active{
  232 + background: url("../../../assets/images/solution/serviceactive.png") no-repeat;
  233 + background-size: 64px 64px;
  234 + color: #1251B8;
  235 + }
  236 + }
  237 +}
  238 +.tab-swiper>li:nth-of-type(1).active{
  239 +
  240 +}
  241 +.tab-swiper>li:nth-of-type(2).active{
  242 + color: #1251B8;
  243 +}
  244 +.tab-swiper>li:nth-of-type(3).active{
  245 + color: #1251B8;
  246 +}
  247 +.tab-swiper>li:nth-of-type(4).active{
  248 + color: #1251B8;
  249 +}
  250 + .tabCon{
  251 + width:318px ;
  252 + height: 140px;
  253 + overflow: hidden;
  254 + }
  255 + .tabCon li{
  256 + float: left;
  257 + div:nth-of-type(1){
  258 + font-size: 18px;
  259 + padding: 45px 0 16px;
  260 + }
  261 + }
  262 +
  263 + .slide-left-enter-active{
  264 + transition: all .3s ease-in-out;
  265 + }
  266 + .slide-left-leave-active{
  267 + transition: all .3s ease-in-out;
  268 + }
  269 + .slide-left-enter {
  270 + transform: translateX(500px);
  271 + opacity: 0;
  272 + }
  273 +.slide-left-leave-to{
  274 + transform: translateX(-500px);
  275 + opacity: 0;
  276 +}
  277 + .img-wrapper{
  278 + width: 208px;
  279 + height: 391px;
  280 + overflow: hidden;
  281 + }
  282 +.img-wrapper li{
  283 + img{
  284 + width: 100%;
  285 + height: 100%;
  286 + }
  287 +}
83 288  
84 289 </style>
... ...