From a949996907502f45678faa42ce94ff12edc59ca8 Mon Sep 17 00:00:00 2001
From: Kunagisa <1549184870@qq.com>
Date: Wed, 11 Jun 2025 20:01:45 +0800
Subject: [PATCH] =?UTF-8?q?demands=E5=89=8D=E7=AB=AF=E4=BF=AE=E6=94=B9?=
=?UTF-8?q?=EF=BC=8C=E6=B7=BB=E5=8A=A0=E5=9B=9E=E5=A4=8D=EF=BC=8C=E4=BD=86?=
=?UTF-8?q?=E5=B9=B6=E6=9C=AA=E6=B7=BB=E5=8A=A0=E9=80=BB=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/index/DemandList.vue | 60 ++++++++++++++++++++++++++++++++++
1 file changed, 60 insertions(+)
diff --git a/src/views/index/DemandList.vue b/src/views/index/DemandList.vue
index 20d9c90..ac52849 100644
--- a/src/views/index/DemandList.vue
+++ b/src/views/index/DemandList.vue
@@ -15,6 +15,7 @@
请求内容 |
悬赏金额 |
需求创建时间 |
+ 回复 |
@@ -34,10 +35,51 @@
{{ formatDate(demand.date) }} |
+
+
+ |
+
+
+
@@ -127,6 +169,8 @@ const demands = ref([])
const loading = ref(false)
const error = ref(null)
const showModal = ref(false)
+const reply = ref(null)
+const replyModal = ref(false)
const selectedDemand = ref(null)
const showAddModal = ref(false)
const addError = ref('')
@@ -185,6 +229,16 @@ const fetchDemands = async () => {
}
}
+//回复显示弹窗
+const showReply = (demand) => {
+ reply.value = demand
+ replyModal.value = true
+}
+//关闭回复弹窗
+const closeReplyModal = () => {
+ replyModal.value = false
+}
+
// 显示详情弹窗
const showDetail = (demand) => {
selectedDemand.value = demand
@@ -308,6 +362,12 @@ function autoResize() {
margin-right: 16px;
}
+.btn-reply {
+ padding: 5px 15px;
+ font-size: 14px;
+ margin-bottom: 0;
+}
+
.content {
max-width: 300px;
white-space: nowrap;