ll
liukangdong
2024-12-27 7df781c76f651d21cac02bcdae7f7b3f9e41e275
pda/pages/index/index.vue
@@ -1,9 +1,11 @@
<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">
@@ -16,7 +18,7 @@
         </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>
@@ -44,7 +46,12 @@
    }
  },
  onLoad() {
      const token = uni.getStorageSync('token')
      if(!token){
         uni.redirectTo({
            url: '/pages/index/login'
         })
      }
  },
  methods: {
      loginout() {
@@ -82,6 +89,11 @@
      align-items: center;
      background-color: $uni-color-primary;
      color: #fff;
      .com{
         width: 200rpx;
         display: flex;
         align-items: center;
      }
      .back{
         width: 42rpx;
         height: 42rpx;
@@ -90,6 +102,9 @@
         font-weight: 500;
         font-size: 36rpx;
      }
      .loginout{
         justify-content: flex-end;
      }
   }
.main_app {
  min-height: 100vh;