|
@@ -56,8 +56,8 @@
|
|
|
<img :src="'https://qiniu.bms16.com/Fg8_p7083jpsy8BXG4bR6yMs7jQX'"
|
|
|
style="width: 100%;height: 526rpx;" alt="">
|
|
|
<view class="flex-row align-center update-time-view">
|
|
|
- <text style="margin-right: 10rpx;">{{$t("车辆已关机")}} </text>
|
|
|
- <text v-if="car_info.heart_time != 0" style="margin-right: 10rpx;">{{$t("更新于")}} {{car_info.heart_time|| ''}}</text>
|
|
|
+ <text style="margin-right: 10rpx;">{{car_info.acc_state==1?$t("车辆已开机"): $t("车辆已关机")}} </text>
|
|
|
+ <text v-if="car_info.heart_time != 0" style="margin-right: 10rpx;">{{$t("更新于")}} {{tools.formatTime( car_info.heart_time|| '')}}</text>
|
|
|
<img :src="'https://qiniu.bms16.com/'+(isBluethConnect?'Fk3f9H_o-1Wq2xXx7I_xo7bxK1xJ':'FsL6XWGoIhfsVB7jRg6EGFVsuaTZ')"
|
|
|
:style="{width: (isBluethConnect?32:24)+'rpx',height: '32rpx'}" alt="">
|
|
|
</view>
|
|
@@ -65,9 +65,8 @@
|
|
|
<Control :contrilList="contrilList" @toBluetooth="inductiveUnlockHandle"/>
|
|
|
|
|
|
|
|
|
- <view v-if="car_info.exchange_package_info && car_info.exchange_package_info.activity_time"
|
|
|
- class="flex-row flex-between map-card-view">
|
|
|
- <MapCard :car_info="car_info" />
|
|
|
+ <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 :car_info="car_info" :height="car_info.exchange_package_info && car_info.exchange_package_info.activity_time"/>
|
|
|
|
|
|
<view class="card-right">
|
|
|
<view class="card-bg" @tap="navTravelingTrack">
|
|
@@ -83,13 +82,13 @@
|
|
|
<view class="card-top-text">{{car_info.current_mail}}<text class="font_24">km</text></view>
|
|
|
</view>
|
|
|
|
|
|
- <view class="card-bg">
|
|
|
+ <view v-if="car_info.exchange_package_info && car_info.exchange_package_info.activity_time" class="card-bg">
|
|
|
<view class="flex-row card-top-title">
|
|
|
<img style="width: 36rpx;height: 36rpx;"
|
|
|
src="https://qiniu.bms16.com/FtalApKa3STyruaBxxRB4O9hHXyE" alt="">
|
|
|
<text class="margin_l_8">{{$t("换电套餐")}}</text>
|
|
|
</view>
|
|
|
- <view v-if="car_info.package_type == 1" class=" card-top-text">
|
|
|
+ <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>
|
|
@@ -276,14 +275,14 @@
|
|
|
this.loadUserCarList()
|
|
|
|
|
|
//蓝牙配对所需权限 运行小程序需要隐藏
|
|
|
- const permissionArr=permision.requestAndroidPermissions(this.platform)
|
|
|
- console.log(permissionArr,'permissionArr');
|
|
|
- this.setData({
|
|
|
- authStepList:permissionArr
|
|
|
- })
|
|
|
- permissionArr.map(item=>{
|
|
|
- if(!item.state) this.isOpenAllPermission=true
|
|
|
- })
|
|
|
+ // const permissionArr=permision.requestAndroidPermissions(this.platform)
|
|
|
+ // console.log(permissionArr,'permissionArr');
|
|
|
+ // this.setData({
|
|
|
+ // authStepList:permissionArr
|
|
|
+ // })
|
|
|
+ // permissionArr.map(item=>{
|
|
|
+ // if(!item.state) this.isOpenAllPermission=true
|
|
|
+ // })
|
|
|
|
|
|
// if (!this.car_info.car_sn) {
|
|
|
|
|
@@ -341,19 +340,20 @@
|
|
|
});
|
|
|
},
|
|
|
inductiveUnlockHandle() {
|
|
|
- console.log(!this.isOpenAllPermission,this.isBluethConnect,'this.isBluethConnect');
|
|
|
- if(this.isBluethConnect){
|
|
|
- uni.navigateTo({ url: '/pages/bluetoothUnlock/unlockSet' })
|
|
|
- }else{
|
|
|
- if(!this.isOpenAllPermission){
|
|
|
- common.simpleToast('所需权限开启成功,前往开启蓝牙配对...');
|
|
|
- uni.navigateTo({ url: '/pages/bluetoothUnlock/bluetoothPair' })
|
|
|
- }else{
|
|
|
- this.setData({
|
|
|
- isShowPermission:true,
|
|
|
- })
|
|
|
- }
|
|
|
- }
|
|
|
+ uni.navigateTo({ url: '/pages/bluetoothUnlock/bluetoothPair' })
|
|
|
+ // console.log(!this.isOpenAllPermission,this.isBluethConnect,'this.isBluethConnect');
|
|
|
+ // if(this.isBluethConnect){
|
|
|
+ // uni.navigateTo({ url: '/pages/bluetoothUnlock/unlockSet' })
|
|
|
+ // }else{
|
|
|
+ // if(!this.isOpenAllPermission){
|
|
|
+ // common.simpleToast('所需权限开启成功,前往开启蓝牙配对...');
|
|
|
+ // uni.navigateTo({ url: '/pages/bluetoothUnlock/bluetoothPair' })
|
|
|
+ // }else{
|
|
|
+ // this.setData({
|
|
|
+ // isShowPermission:true,
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+ // }
|
|
|
|
|
|
},
|
|
|
closePermission(){
|
|
@@ -528,6 +528,7 @@
|
|
|
|
|
|
.news {
|
|
|
position: relative;
|
|
|
+ margin-right: 20rpx;
|
|
|
|
|
|
.num {
|
|
|
position: absolute;
|