| | |
| | | <template>
|
| | | <view class="main_app"> |
| | | <view class="main_header"> |
| | | <image src="../../static/back.svg" class="back"></image> |
| | | <view class="com"> |
| | | <!-- <image src="../../static/back.svg" class="back"></image> --> |
| | | </view> |
| | | <view class="title">调度平台</view> |
| | | <view class="loginout" @click="loginout">退出登录</view> |
| | | <view class="com loginout" @click="loginout">退出登录</view> |
| | | </view>
|
| | | <view class="main_content"> |
| | | <view class="banner"> |
| | |
| | | </view> |
| | | <view class="item" @click="jump('/pages/index/queueup')"> |
| | | <image src="@/static/ic_cheliangpaidui@2x.png" mode=""></image> |
| | | <view class="text">车队排队情况</view> |
| | | <view class="text">车辆排队情况</view> |
| | | </view> |
| | | <view class="item" @click="jump('/pages/index/control')"> |
| | | <image src="@/static/ic_qiyong@2x.png" mode=""></image> |
| | |
| | | }
|
| | | },
|
| | | onLoad() {
|
| | |
|
| | | const token = uni.getStorageSync('token') |
| | | if(!token){ |
| | | uni.redirectTo({ |
| | | url: '/pages/index/login' |
| | | }) |
| | | }
|
| | | },
|
| | | methods: { |
| | | loginout() { |
| | |
| | | align-items: center; |
| | | background-color: $uni-color-primary; |
| | | color: #fff; |
| | | .com{ |
| | | width: 200rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | } |
| | | .back{ |
| | | width: 42rpx; |
| | | height: 42rpx; |
| | |
| | | font-weight: 500; |
| | | font-size: 36rpx; |
| | | } |
| | | .loginout{ |
| | | justify-content: flex-end; |
| | | } |
| | | }
|
| | | .main_app {
|
| | | min-height: 100vh;
|