From 7298d5354963a88643a543b51b90192dc9fc934c Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期四, 11 九月 2025 18:43:14 +0800
Subject: [PATCH] 最新版本541200007
---
h5/pages/wdata/list.vue | 25 +++++++++++++------------
1 files changed, 13 insertions(+), 12 deletions(-)
diff --git a/h5/pages/wdata/list.vue b/h5/pages/wdata/list.vue
index 3d7b149..63a3577 100644
--- a/h5/pages/wdata/list.vue
+++ b/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 ? "璐﹀彿瑙g粦" : "鍘荤櫥褰�"
}}</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;
--
Gitblit v1.9.3