ll
liukangdong
2024-12-31 423155b8134694c2f2e68f6d3f5239ba0541b0cf
h5/pages/wdata/list.vue
@@ -1,10 +1,10 @@
<template>
   <view class="main_app">
      <view class="title_wrap">
         <view class="name" v-if="driverInfo.realname">{{ driverInfo.realname || "" }},欢迎登录~</view>
         <view class="name" v-if="driverInfo.realname || driverInfo.username">{{ driverInfo.realname || driverInfo.username }},欢迎登录~</view>
         <view class="name" v-else>请先登录</view>
         <view class="btn" @click="loginOut">{{
            driverInfo.realname ? "退出登录" : "去登录"
            driverInfo.realname || driverInfo.username ? "退出登录" : "去登录"
         }}</view>
      </view>
      <view class="head_wrap">
@@ -55,7 +55,8 @@
<script>
   import {
      putTaskList,
      logoutPost
      logoutPost,
      getUserInfo
   } from '@/api'
   import dayjs from 'dayjs';
   export default {
@@ -73,7 +74,7 @@
         };
      },
      onLoad(options) {
         this.driverInfo = uni.getStorageSync('driverInfo')
         this.driverInfo = uni.getStorageSync('driverInfo') || {}
         this.getList()
      },
      methods: {
@@ -110,7 +111,7 @@
                  driverTel: this.driverInfo.username
               },
               pager: {
                  rows: 10,
                  rows: 30,
                  page
               }
            }).then(res => {
@@ -126,9 +127,8 @@
            }).then(res => {
               this.$store.commit('empty')
               setTimeout(() => {
                  uni.redirectTo({
                     url: '/pages/wdata/home'
                  })
                  let str = 'https://atwl.ahzyssl.com/zhyq_h5/#/pages/wdata/home'
                  window.location.href = str
               }, 300)
            })
         }
@@ -220,7 +220,7 @@
   .scroll_Y {
      background-color: #f7f7f7;
      height: calc(100vh - 240rpx);
      height: calc(100vh - 220rpx);
      margin-top: 20rpx;
      .main_list {
         width: 750rpx;