From ce1248297e07cf5e409a37d43f2e0b54fcf86071 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期四, 14 五月 2026 18:29:06 +0800
Subject: [PATCH] 提交

---
 app/pages/index/index.vue |   73 +++++++++++++++++++++++++++++++-----
 1 files changed, 63 insertions(+), 10 deletions(-)

diff --git a/app/pages/index/index.vue b/app/pages/index/index.vue
index d373554..0e7914b 100644
--- a/app/pages/index/index.vue
+++ b/app/pages/index/index.vue
@@ -6,12 +6,12 @@
 					<image class="hall-page__avatar" :src="centerUserInfo.fullImgUrl || '/static/image/ic_pic@2x.png'" mode="aspectFill"></image>
 					<text class="hall-page__name">{{ centerUserInfo.name }}</text>
 				</view>
-				<view class="hall-page__status" v-if="userInfo.auditStatus === 3" @click="openStatusPicker">
+				<view class="hall-page__status" v-if="hasApprovedOfficial" @click="openStatusPicker">
 					<view class="hall-page__status-dot" :class="{ 'hall-page__status-dot--offline': acceptingStatus === 0 }"></view>
 					<text class="hall-page__status-text">{{ acceptingStatus === 1 ? '鎺ュ崟涓�' : '宸蹭笅绾�' }}</text>
 					<text class="hall-page__status-arrow">鈻�</text>
 				</view>
-				<view class="hall-page__user" style="opacity: 0;">
+				<view class="hall-page__user" style="opacity: 0;">	
 					<image class="hall-page__avatar" :src="centerUserInfo.fullImgUrl || '/static/image/ic_pic@2x.png'" mode="aspectFill"></image>
 					<text class="hall-page__name">{{ centerUserInfo.name }}</text>
 				</view>
@@ -19,7 +19,7 @@
 
 			<view class="hall-page__stats">
 				<view v-for="item in stats" :key="item.label" class="hall-page__stat-item">
-					<text class="hall-page__stat-value">{{ userInfo.auditStatus === 3 ? item.value : '-' }}</text>
+					<text class="hall-page__stat-value">{{ hasApprovedOfficial ? item.value : '-' }}</text>
 					<text class="hall-page__stat-label">{{ item.label }}</text>
 				</view>
 			</view>
@@ -27,7 +27,7 @@
 			<view class="hall-page__tabs">
 				<view v-for="tab in displayTabs" :key="tab.value" class="hall-page__tab" :class="{ 'hall-page__tab--active': activeTab === tab.value }" @click="activeTab = tab.value">
 					<text class="hall-page__tab-text">{{ tab.label }}</text>
-					<text v-if="tab.count" class="hall-page__tab-count">{{ userInfo.auditStatus === 3 ? tab.count : '' }}</text>
+					<text v-if="tab.count" class="hall-page__tab-count">{{ hasApprovedOfficial ? tab.count : '' }}</text>
 					<view v-if="activeTab === tab.value" class="hall-page__tab-line"></view>
 				</view>	
 				<view class="hall-page__filter" @click="toggleFilterPopup(true)">
@@ -64,11 +64,11 @@
 		</view>
 
 		<scroll-view class="hall-page__body" scroll-y :style="bodyStyle">
-			<view class="hall-page__verified" v-if="userInfo.auditStatus !== 3">
+			<view class="hall-page__verified" v-if="!hasApprovedOfficial">
 				<image src="/static/image/default_unverified@2x.png" mode="widthFix"></image>
 				<button @click="toDriverCertification">鍘昏璇�</button>
 			</view>
-			<view v-else-if="userInfo.auditStatus === 3 && acceptingStatus === 1 && currentOrderList.length" class="hall-page__list">
+			<view v-else-if="hasApprovedOfficial && acceptingStatus === 1 && currentOrderList.length" class="hall-page__list">
 				<view v-for="(item, index) in currentOrderList" :key="item.id" class="order-card" @click="goToOrderDetail(item, index)">
 					<view class="order-card__head">
 						<view class="order-card__time" v-if="item.remainMinutes > 0">
@@ -111,7 +111,7 @@
 						<view class="order-card__route-main">
 							<view class="order-card__route-item">
 								<view class="order-card__route-texts">
-									<text class="order-card__route-title">{{ item.depositShopName }}澶ц嫃鎵撴墦绠�</text>
+									<text class="order-card__route-title"><text class="order-card__route-badge-text order-card__route-badge-text--take">鍙�</text>{{ item.depositShopName }}</text>
 									<text class="order-card__route-desc">{{ item.depositShopAddress }}</text>
 								</view>
 								<image src="/static/image/ic_daohang@2x.png" mode="widthFix" class="order-card__nav" @click.stop="navigateToAddress(item, 'deposit')"></image>
@@ -119,10 +119,10 @@
 							<view class="order-card__route-item order-card__route-item--destination">
 								<view class="order-card__route-texts">
 									<template v-if="item.takeShopId">
-										<text class="order-card__route-title">{{ item.takeName }}</text>
+										<text class="order-card__route-title"><text class="order-card__route-badge-text order-card__route-badge-text--send">閫�</text>{{ item.takeName }}</text>
 										<text class="order-card__route-desc">{{ item.takeAddress }}</text>
 									</template>
-									<text v-else class="order-card__route-title">{{ item.takeAddress }}</text>
+									<text v-else class="order-card__route-title"><text class="order-card__route-badge-text order-card__route-badge-text--send">閫�</text>{{ item.takeAddress }}</text>
 								</view>
 								<image src="/static/image/ic_daohang@2x.png" mode="widthFix" class="order-card__nav" @click.stop="navigateToAddress(item, 'take')"></image>
 							</view>
@@ -281,6 +281,7 @@
 				showFilterPopup: false,
 				acceptingStatus: 0,
 				showStatusPicker: false,
+				hasApprovedOfficial: false,
 				statusOptions: [
 					{ text: '涓婄嚎', value: 1 },
 					{ text: '涓嬬嚎', value: 0 }
@@ -345,6 +346,7 @@
 			this.getCenterInfo()
 			this.getCategoryListData()
 			this.getActiveOrderCount()
+			this.getUserInfoDetail()
 		},
 
 		onReachBottom() {
@@ -392,6 +394,13 @@
 		},
 
 		methods: {
+			getUserInfoDetail() {
+				this.$u.api.verifyDetail().then(res => {
+					if (res.code === 200) {
+						this.hasApprovedOfficial = res.data.hasApprovedOfficial === true
+					}
+				})
+			},
 			formatRemainTime(minutes) {
 				if (!minutes) return 0
 				if (minutes === 0) {
@@ -575,7 +584,7 @@
 						}
 						this.stats = [
 							{ value: res.data.score, label: '鏈嶅姟鍒�' },
-							{ value: res.data.todayCommission, label: '浠婃棩棰勮浣i噾' },
+							{ value: ((res.data.todayCommission / 100) || 0).toFixed(2), label: '浠婃棩棰勮浣i噾' },
 							{ value: res.data.todayOrderCount, label: '浠婃棩鎺ュ崟' }
 						]
 					}
@@ -1578,6 +1587,50 @@
 			}
 		}
 
+		&__route-badge {
+			width: 44rpx;
+			height: 44rpx;
+			border-radius: 50%;
+			display: flex;
+			align-items: center;
+			justify-content: center;
+			font-size: 24rpx;
+			font-weight: 600;
+			color: #ffffff;
+			margin-right: 16rpx;
+			flex-shrink: 0;
+
+			&--take {
+				background: #10B2FA;
+			}
+
+			&--send {
+				background: #FF8A00;
+			}
+		}
+
+		&__route-badge-text {
+			display: inline-flex;
+			align-items: center;
+			justify-content: center;
+			width: 36rpx;
+			height: 36rpx;
+			border-radius: 50%;
+			font-size: 22rpx;
+			font-weight: 600;
+			color: #ffffff;
+			margin-right: 8rpx;
+			vertical-align: middle;
+
+			&--take {
+				background: #10B2FA;
+			}
+
+			&--send {
+				background: #FF8A00;
+			}
+		}
+
 		&__route-texts {
 			flex: 1;
 			min-width: 0;

--
Gitblit v1.9.3