ll
liukangdong
2025-01-23 662d007c5b8f20c9f9393b4abc691f7154556208
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)
            })
         }
@@ -152,7 +152,8 @@
      align-items: center;
      background-color: #fff;
      margin: -10rpx -30rpx 0;
      padding: 16rpx 30rpx 0;
      padding: 20rpx 30rpx 6rpx;
      height: 90rpx;
      .name {
         font-weight: 600;
         font-size: 34rpx;
@@ -163,9 +164,9 @@
         width: 144rpx;
         height: 56rpx;
         border-radius: 36rpx;
         border: 1rpx solid $uni-color-primary;
         border: 1rpx solid #B2B2B2;
         font-size: 26rpx;
         color: $uni-color-primary;
         color: #666666;
         display: flex;
         justify-content: center;
         align-items: center;
@@ -220,7 +221,7 @@
   .scroll_Y {
      background-color: #f7f7f7;
      height: calc(100vh - 240rpx);
      height: calc(100vh - 220rpx);
      margin-top: 20rpx;
      .main_list {
         width: 750rpx;