|
@@ -2,7 +2,7 @@
|
|
|
<view>
|
|
|
<navBar name="请选择设备" type="select"/>
|
|
|
<view class="car-list">
|
|
|
- <view v-for="(item,index) of carList" :key="index" @click="clickItem(item)" class="car-list-card" :class="{ 'car-list-card-i' : car_info.car_sn == item.car_sn}">
|
|
|
+ <view v-for="(item,index) of carList" :key="index" @click="clickItem(item)" :class="['car-list-card', car_info.car_sn == item.car_sn?'car-list-card-i' :'']">
|
|
|
<view class="car-name" :class="{ 'car-name-i' : car_info.car_sn == item.car_sn}">{{item.car_name}}</view>
|
|
|
<image v-if="car_info.car_sn == item.car_sn" class="icon" src="/static/resource/images/gyq_ly.png" mode=""></image>
|
|
|
<!-- https://qiniu.bms16.com/Fg8_p7083jpsy8BXG4bR6yMs7jQX -->
|
|
@@ -58,10 +58,9 @@
|
|
|
},
|
|
|
methods: {
|
|
|
navCarDetail(){
|
|
|
- // const me=this
|
|
|
- // uni.navigateTo({
|
|
|
- // url: '/pages/carDetail/carDetail'
|
|
|
- // })
|
|
|
+ uni.switchTab({
|
|
|
+ url: '/pages/service/service'
|
|
|
+ })
|
|
|
},
|
|
|
clickItem(item){
|
|
|
if(item.car_sn == this.car_info.car_sn) return
|
|
@@ -126,6 +125,7 @@
|
|
|
border: 6rpx solid #FFF;
|
|
|
position: relative;
|
|
|
padding: 30rpx;
|
|
|
+ margin-bottom: 20rpx;
|
|
|
.select{
|
|
|
position: absolute;
|
|
|
right: 0;
|