twt 2 yıl önce
ebeveyn
işleme
4e0b04a294
2 değiştirilmiş dosya ile 7 ekleme ve 6 silme
  1. 6 5
      pages/index/carModel.vue
  2. 1 1
      pages/index/index.vue

+ 6 - 5
pages/index/carModel.vue

@@ -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['首字母']

+ 1 - 1
pages/index/index.vue

@@ -67,7 +67,7 @@
 		    this.$store.commit('mutationsopenId', openId)
 			uni.setStorageSync('openId', openId);
 		  } else if (!this.$store.state.openId) {
-		    location.href = this.$baseURL + '/weChat/authorize'
+		   // location.href = this.$baseURL + '/weChat/authorize'
 		  }
 		  var that=this;
 		  setTimeout(function(){