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;