|
@@ -89,11 +89,10 @@
|
|
</view>
|
|
</view>
|
|
<Control :contrilList="contrilList" :isConnectBlueth="isConnectBlueth" @toBluetooth="inductiveUnlockHandle" @loadCarDetail="loadCarDetail" :isOverdueShow="isOverdueShow"/>
|
|
<Control :contrilList="contrilList" :isConnectBlueth="isConnectBlueth" @toBluetooth="inductiveUnlockHandle" @loadCarDetail="loadCarDetail" :isOverdueShow="isOverdueShow"/>
|
|
|
|
|
|
|
|
+ <view :class="['flex-row', 'flex-between', 'map-card-view',(car_info.is_share=='1'&&car_info.authority_list.indexOf('4') != -1)?'height_362':'height_260']">
|
|
|
|
+ <MapCard v-if="(car_info.is_share=='1'&&car_info.authority_list.indexOf('4') != -1)" :isShowReturnCar='isShowReturnCar' :car_info="car_info" :height="(car_info.is_share=='1'&&car_info.authority_list.indexOf('4') != -1)"/>
|
|
|
|
|
|
- <view :class="['flex-row', 'flex-between', 'map-card-view',car_info.exchange_package_info && car_info.exchange_package_info.activity_time?'height_362':'height_260']">
|
|
|
|
- <MapCard :isShowReturnCar='isShowReturnCar' :car_info="car_info" :height="!!(car_info.exchange_package_info && car_info.exchange_package_info.activity_time)"/>
|
|
|
|
-
|
|
|
|
- <view class="card-right">
|
|
|
|
|
|
+ <view :class="['card-right',(car_info.is_share=='1'&&car_info.authority_list.indexOf('4') != -1)?'card-right-i':'']">
|
|
<view class="card-bg" @tap="navTravelingTrack">
|
|
<view class="card-bg" @tap="navTravelingTrack">
|
|
<view class="flex-row flex-between card-top-title">
|
|
<view class="flex-row flex-between card-top-title">
|
|
<view class="flex-row align-center">
|
|
<view class="flex-row align-center">
|
|
@@ -108,22 +107,28 @@
|
|
<view class="card-top-text">{{isTrackOrAll?car_info.current_mail:car_info.total_mil}}<text class="font_24">km</text>
|
|
<view class="card-top-text">{{isTrackOrAll?car_info.current_mail:car_info.total_mil}}<text class="font_24">km</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
- <view v-if="car_info.exchange_package_info && car_info.exchange_package_info.activity_time" class="card-bg">
|
|
|
|
|
|
+ <view :style="{'margin-left':(car_info.is_share=='1'&&car_info.authority_list.indexOf('4') != -1)?'0':'20rpx'}" class="card-bg">
|
|
<view class="flex-row card-top-title">
|
|
<view class="flex-row card-top-title">
|
|
<img style="width: 36rpx;height: 36rpx;"
|
|
<img style="width: 36rpx;height: 36rpx;"
|
|
src="https://qiniu.bms16.com/FtalApKa3STyruaBxxRB4O9hHXyE" alt="">
|
|
src="https://qiniu.bms16.com/FtalApKa3STyruaBxxRB4O9hHXyE" alt="">
|
|
<text class="margin_l_8">{{$t("换电套餐")}}</text>
|
|
<text class="margin_l_8">{{$t("换电套餐")}}</text>
|
|
</view>
|
|
</view>
|
|
- <view v-if="car_info.package_type == 1" class="card-top-text">
|
|
|
|
- {{calculateRemainingDays(car_info.exchange_package_info.expire_time)}} <text
|
|
|
|
- class="font_24">{{$t("天")}}</text>
|
|
|
|
|
|
+ <view v-if="car_info.exchange_package_info">
|
|
|
|
+ <view v-if="car_info.exchange_package_info.package_type == 1" class="card-top-text">
|
|
|
|
+ {{calculateRemainingDays(car_info.exchange_package_info.expire_time)}} <text
|
|
|
|
+ class="font_24">{{$t("天")}}</text>
|
|
|
|
+ </view>
|
|
|
|
+ <view v-if="car_info.exchange_package_info.package_type == 2" class=" card-top-text">{{item.last_num}} <text
|
|
|
|
+ class="font_24">{{$t("次")}}</text></view>
|
|
|
|
+ <view v-if="car_info.exchange_package_info.package_type == 3" class=" card-top-text">
|
|
|
|
+ {{item.total_day}}{{$t("天")}}/{{item.last_num}} <text
|
|
|
|
+ class="font_24">{{$t("次")}}</text>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
- <view v-if="car_info.package_type == 2" class=" card-top-text">{{item.last_num}} <text
|
|
|
|
- class="font_24">{{$t("次")}}</text></view>
|
|
|
|
- <view v-if="car_info.package_type == 3" class=" card-top-text">
|
|
|
|
- {{item.total_day}}{{$t("天")}}/{{item.last_num}} <text
|
|
|
|
- class="font_24">{{$t("次")}}</text>
|
|
|
|
|
|
+ <view v-else>
|
|
|
|
+ <view style="font-size: 25rpx;">
|
|
|
|
+ {{$t('暂无套餐')}}
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -131,10 +136,10 @@
|
|
<!-- <custom-switch :defaultPosition="'right'" :width="'400rpx'"
|
|
<!-- <custom-switch :defaultPosition="'right'" :width="'400rpx'"
|
|
:height="'96rpx'" v-model="switchValue" :fetchData="loadData"></custom-switch> -->
|
|
:height="'96rpx'" v-model="switchValue" :fetchData="loadData"></custom-switch> -->
|
|
<view class="config-view">
|
|
<view class="config-view">
|
|
- <view @tap="navToPage" class="flex-row config-car-view">
|
|
|
|
|
|
+ <view @tap="inductiveUnlockHandle" class="flex-row config-car-view">
|
|
<view class="margin_r_20"><img class="icon_style_64"
|
|
<view class="margin_r_20"><img class="icon_style_64"
|
|
src="https://qiniu.bms16.com/Ftzyvs5whxDdMFksYChHaWKVb0Uk" alt=""></view>
|
|
src="https://qiniu.bms16.com/Ftzyvs5whxDdMFksYChHaWKVb0Uk" alt=""></view>
|
|
- <view class="flex-row config-text-view" @tap="inductiveUnlockHandle">
|
|
|
|
|
|
+ <view class="flex-row config-text-view" >
|
|
<view class="flex-row font_w_600">{{$t("感应解锁")}}</view>
|
|
<view class="flex-row font_w_600">{{$t("感应解锁")}}</view>
|
|
<view class="flex-row tip-text-config">{{isBluethConnect?$t("蓝牙配对成功"):$t("请先连接蓝牙")}}
|
|
<view class="flex-row tip-text-config">{{isBluethConnect?$t("蓝牙配对成功"):$t("请先连接蓝牙")}}
|
|
</view>
|
|
</view>
|
|
@@ -142,7 +147,7 @@
|
|
<img class="icon_style_28" src="https://qiniu.bms16.com/FqnbZ2iKHmzCGJA8XD30sf5g_CAm"
|
|
<img class="icon_style_28" src="https://qiniu.bms16.com/FqnbZ2iKHmzCGJA8XD30sf5g_CAm"
|
|
alt="">
|
|
alt="">
|
|
</view>
|
|
</view>
|
|
- <view @tap="navToPage" data-url="/pages/userManagement/userManagement"
|
|
|
|
|
|
+ <view @tap="navToUserPage" data-url="/pages/userManagement/userManagement"
|
|
class="flex-row config-car-view">
|
|
class="flex-row config-car-view">
|
|
<view class="margin_r_20"><img class="icon_style_64"
|
|
<view class="margin_r_20"><img class="icon_style_64"
|
|
src="https://qiniu.bms16.com/FhKkijkN__9UzhYNgamBFSggIlYo" alt=""></view>
|
|
src="https://qiniu.bms16.com/FhKkijkN__9UzhYNgamBFSggIlYo" alt=""></view>
|
|
@@ -246,7 +251,19 @@
|
|
isConnectBlueth:false
|
|
isConnectBlueth:false
|
|
};
|
|
};
|
|
},
|
|
},
|
|
- computed: {},
|
|
|
|
|
|
+ computed: {
|
|
|
|
+ isShowMap(){
|
|
|
|
+ const {exchange_package_info,authority_list,is_share}=this.car_info
|
|
|
|
+ console.log(is_share=='1',authority_list,authority_list.indexOf(4) != -1,'123');
|
|
|
|
+ //false 表示有地图
|
|
|
|
+ return is_share=='1'&&authority_list.indexOf(4) != -1
|
|
|
|
+ },
|
|
|
|
+ isShowBatteryChange(){
|
|
|
|
+ const {exchange_package_info,authority_list,is_share}=this.car_info
|
|
|
|
+ return exchange_package_info && (exchange_package_info.activity_time!=0) &&is_share=='1'&&authority_list.indexOf(5) != -1
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ },
|
|
components: {
|
|
components: {
|
|
Control,
|
|
Control,
|
|
MapCard,
|
|
MapCard,
|
|
@@ -406,6 +423,7 @@
|
|
},
|
|
},
|
|
inductiveUnlockHandle() {
|
|
inductiveUnlockHandle() {
|
|
|
|
|
|
|
|
+ common.simpleToast(this.$t('敬请期待下次更新!'));
|
|
// uni.navigateTo({ url: '/pages/bluetoothUnlock/bluetoothPair' })
|
|
// uni.navigateTo({ url: '/pages/bluetoothUnlock/bluetoothPair' })
|
|
|
|
|
|
// console.log(!this.isOpenAllPermission,this.isBluethConnect,'this.isBluethConnect');
|
|
// console.log(!this.isOpenAllPermission,this.isBluethConnect,'this.isBluethConnect');
|
|
@@ -455,12 +473,16 @@
|
|
url: url
|
|
url: url
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- navToPage(e) {
|
|
|
|
|
|
+ navToUserPage(e) {
|
|
const me = this
|
|
const me = this
|
|
const url = e.currentTarget.dataset.url;
|
|
const url = e.currentTarget.dataset.url;
|
|
if (!url) {
|
|
if (!url) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+ if(this.car_info.is_share==1){
|
|
|
|
+ common.simpleToast(this.$t('您不是车主,不能进行此操作'));
|
|
|
|
+ return
|
|
|
|
+ }
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
url: url
|
|
url: url
|
|
});
|
|
});
|