|
@@ -7,7 +7,7 @@
|
|
<view :style="{height: `${statusBarHeight}px`}"></view>
|
|
<view :style="{height: `${statusBarHeight}px`}"></view>
|
|
<!-- #endif -->
|
|
<!-- #endif -->
|
|
<view class="user-switch-row">
|
|
<view class="user-switch-row">
|
|
- <view @click="routerLink({ url: '/pages/message/index' })" class="news">
|
|
|
|
|
|
+ <view @click="routerLink({ url: '/pages/message/index',isLogin:1 })" class="news">
|
|
<view v-if="(newsList.plate_count + newsList.device_count) > 0" class="num">{{newsList.plate_count + newsList.device_count}}</view>
|
|
<view v-if="(newsList.plate_count + newsList.device_count) > 0" class="num">{{newsList.plate_count + newsList.device_count}}</view>
|
|
<image :src="QINIU_URL + 'FlL5BtEdMES2-mntjR9D3CX_LWYv'" class="message"
|
|
<image :src="QINIU_URL + 'FlL5BtEdMES2-mntjR9D3CX_LWYv'" class="message"
|
|
/>
|
|
/>
|
|
@@ -20,16 +20,18 @@
|
|
{{ userInfo.user_name }}
|
|
{{ userInfo.user_name }}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
+
|
|
|
|
+
|
|
<view v-if="car_info.car_sn" class="common-tabs">
|
|
<view v-if="car_info.car_sn" class="common-tabs">
|
|
- <view class="item" @click="routerLink({url:'/pages/dashboard/dashboard'})">
|
|
|
|
|
|
+ <view class="item" @click="routerLink({url:'/pages/dashboard/dashboard',isLogin:1})">
|
|
<image :src="QINIU_URL + 'Fp6G-Kzb-YUGkP2WR-kjTlIbbTj1'" class="icon" />
|
|
<image :src="QINIU_URL + 'Fp6G-Kzb-YUGkP2WR-kjTlIbbTj1'" class="icon" />
|
|
<view class="name">{{ $t('我的车辆') }}</view>
|
|
<view class="name">{{ $t('我的车辆') }}</view>
|
|
</view>
|
|
</view>
|
|
- <view class="item" @click="routerLink({url:'/pages/userManagement/userManagement'})">
|
|
|
|
|
|
+ <view class="item" @click="routerLink({url:'/pages/userManagement/userManagement',isLogin:1})">
|
|
<image :src="QINIU_URL + 'FnxGW52BCkTkK9HxsTdVrghU7B4D'" class="icon" />
|
|
<image :src="QINIU_URL + 'FnxGW52BCkTkK9HxsTdVrghU7B4D'" class="icon" />
|
|
<view class="name">{{ $t('用车人') }}</view>
|
|
<view class="name">{{ $t('用车人') }}</view>
|
|
</view>
|
|
</view>
|
|
- <view v-if="car_info.sold_time" class="item" @click="routerLink({url:'',jumpCheck:'combo'})">
|
|
|
|
|
|
+ <view v-if="car_info.sold_time" class="item" @click="routerLink({url:'',jumpCheck:'combo',isLogin:1})">
|
|
<image :src="QINIU_URL + 'FsOsd1SxYDHDm00aiwrTib_k0Mbr'" class="icon" />
|
|
<image :src="QINIU_URL + 'FsOsd1SxYDHDm00aiwrTib_k0Mbr'" class="icon" />
|
|
<view class="name">{{ $t('换电套餐') }}</view>
|
|
<view class="name">{{ $t('换电套餐') }}</view>
|
|
</view>
|
|
</view>
|
|
@@ -94,12 +96,14 @@ var request = require('@/common/request.js');
|
|
return [{
|
|
return [{
|
|
name: `${lang('我的订单')}`,
|
|
name: `${lang('我的订单')}`,
|
|
url: '/pages/order/order',
|
|
url: '/pages/order/order',
|
|
- icon: 'FkLJGLo1faYtJWhW4Q0gt5dphI7g'
|
|
|
|
|
|
+ icon: 'FkLJGLo1faYtJWhW4Q0gt5dphI7g',
|
|
|
|
+ isLogin:1
|
|
},
|
|
},
|
|
{
|
|
{
|
|
name: `${lang('换电记录')}`,
|
|
name: `${lang('换电记录')}`,
|
|
url: '/pages/batteryRecord/batteryRecord',
|
|
url: '/pages/batteryRecord/batteryRecord',
|
|
- icon: 'FnSjwcN7Mcpa-WA7Cqx2cGTvX2V1'
|
|
|
|
|
|
+ icon: 'FnSjwcN7Mcpa-WA7Cqx2cGTvX2V1',
|
|
|
|
+ isLogin:1
|
|
},
|
|
},
|
|
{
|
|
{
|
|
name: `${lang('意见反馈')}`,
|
|
name: `${lang('意见反馈')}`,
|
|
@@ -111,7 +115,8 @@ var request = require('@/common/request.js');
|
|
name: `${lang('客服中心')}`,
|
|
name: `${lang('客服中心')}`,
|
|
url: '',
|
|
url: '',
|
|
statues:'service',
|
|
statues:'service',
|
|
- icon: 'FhA9TUbTMF0e7ma6NZXqPrkscN6l'
|
|
|
|
|
|
+ icon: 'FhA9TUbTMF0e7ma6NZXqPrkscN6l',
|
|
|
|
+ isLogin:1
|
|
},
|
|
},
|
|
{
|
|
{
|
|
name: `${lang('设置')}`,
|
|
name: `${lang('设置')}`,
|
|
@@ -178,9 +183,14 @@ var request = require('@/common/request.js');
|
|
routerLink({
|
|
routerLink({
|
|
url,
|
|
url,
|
|
jumpCheck,
|
|
jumpCheck,
|
|
- statues
|
|
|
|
|
|
+ statues,
|
|
|
|
+ isLogin
|
|
}) {
|
|
}) {
|
|
- console.log(url)
|
|
|
|
|
|
+ if(isLogin && !uni.getStorageSync('storage_user_token')){
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url:'/pages/loginRegister/login'
|
|
|
|
+ })
|
|
|
|
+ }
|
|
if(statues){
|
|
if(statues){
|
|
return
|
|
return
|
|
}
|
|
}
|