|
@@ -12,7 +12,7 @@
|
|
|
<scroll-view class="scroll-view" :scroll-into-view="toView" scroll-y="true" >
|
|
|
<view class="brand-select">
|
|
|
<template v-for="item in carModelList">
|
|
|
- <view :id="item['首字母']" v-if="item['首字母']!='热门'">
|
|
|
+ <view :id="item['首字母']" v-if="item['首字母']!='热'">
|
|
|
<view class="brand-select-title" :id="item['首字母']+'-model'">
|
|
|
<h5 :class="{'brand-select-titleselect':item['首字母']==toView}">{{item['首字母']}}</h5>
|
|
|
</view>
|
|
@@ -25,9 +25,9 @@
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
- <view :id="'rm'" v-if="item['首字母']=='热门'">
|
|
|
+ <view :id="'rm'" v-if="item['首字母']=='热'">
|
|
|
<view class="brand-select-title" :id="item['首字母']+'-model'">
|
|
|
- <h5 :class="{'brand-select-titleselect':item['首字母']==toView}">{{item['首字母']}}</h5>
|
|
|
+ <h5 :class="{'brand-select-titleselect':toView=='rm'}">{{item['首字母']}}</h5>
|
|
|
</view>
|
|
|
|
|
|
<view class="brand-select-wrapper">
|
|
@@ -42,7 +42,8 @@
|
|
|
</view>
|
|
|
</scroll-view >
|
|
|
<div class="fast-navigation">
|
|
|
- <a class="fast-navigation-sel" :class="{'select':item['首字母']==toView}" v-for="item in carModelList" @tap="bindToView(item)">{{item['首字母']}}</a>
|
|
|
+ <a class="fast-navigation-sel" v-if="item['首字母']=='热'" :class="{'select':toView=='rm'}" v-for="item in carModelList" @tap="bindToView(item)">热</a>
|
|
|
+ <a class="fast-navigation-sel" v-if="item['首字母']!=='热'" :class="{'select':item['首字母']==toView}" v-for="item in carModelList" @tap="bindToView(item)">{{item['首字母']}}</a>
|
|
|
</div>
|
|
|
|
|
|
</view>
|
|
@@ -384,7 +385,7 @@
|
|
|
},
|
|
|
bindToView(item){
|
|
|
console.log(item)
|
|
|
- if(item['首字母']=='热门'){
|
|
|
+ if(item['首字母']=='热'){
|
|
|
this.toView ='rm'
|
|
|
}else{
|
|
|
this.toView = item['首字母']
|