From f7aa204aa8d20b090d7943969ddeb9871a1fad76 Mon Sep 17 00:00:00 2001
From: zhangwei <1504152376@qq.com>
Date: 星期四, 12 九月 2024 17:28:06 +0800
Subject: [PATCH] -

---
 src/pages/worker/worker.vue |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/src/pages/worker/worker.vue b/src/pages/worker/worker.vue
index 0e57375..48eb4bf 100644
--- a/src/pages/worker/worker.vue
+++ b/src/pages/worker/worker.vue
@@ -3,7 +3,7 @@
 		<view class="coreshop-ff">
 			<up-list>
 				<up-list-item>
-					<up-cell :title="workerInfo.nickname" :border="false">
+					<up-cell :title="workerInfo.userWorker.name" :border="false">
 						<template #icon v-if="workerInfo.avatar">
 							<up-avatar shape="square" size="35" :src="workerInfo.avatar"
 								customStyle="margin: -3px 5px -3px 0"></up-avatar>
@@ -11,7 +11,7 @@
 					</up-cell>
 				</up-list-item>
 				<up-list-item>
-					<up-cell title="濮撳悕" :value="workerInfo.userWorker.name" :border="false">
+					<up-cell title="鏄电О" :value="workerInfo.nickname" :border="false">
 					</up-cell>
 				</up-list-item>
 				<up-list-item>
@@ -31,7 +31,8 @@
 				</up-list-item>
 			</up-list>
 			<view class="tabbtns" v-if="!detailItem.isSelected">
-				<up-button color='#fece01' class="text-69" text="纭" @click="selectBtn"></up-button>
+				<up-button color='#fece01' class="text-69" text="纭" :loading='isLoading' loadingText="纭涓�"
+					@click="selectBtn"></up-button>
 			</view>
 		</view>
 	</view>
@@ -45,7 +46,8 @@
 				workerInfo: {
 					userWorker: {}
 				},
-				detailItem: {}
+				detailItem: {},
+				isLoading: false
 			}
 		},
 		onLoad(option) {
@@ -65,6 +67,7 @@
 				})
 			},
 			selectBtn() {
+				this.isLoading = true
 				this.$api.saveQueRen({
 					orderBiddingId: detailItem.id
 				}).then(res => {
@@ -73,7 +76,12 @@
 							title: "纭鎴愬姛锛�",
 							icon: "success"
 						})
+					} else {
+						this.$util.showToast({
+							title: res.msg ? res.msg : '澶辫触锛�'
+						})
 					}
+					this.isLoading = false
 				})
 			}
 		}

--
Gitblit v1.9.1