From bfea41dd162013c6b7979d428b3f3153228857d7 Mon Sep 17 00:00:00 2001
From: lin <sbla5888@163.com>
Date: Wed, 27 Mar 2024 10:24:30 +0800
Subject: [PATCH] 传入houseCode

---
 subPackage/article/detail.vue |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/subPackage/article/detail.vue b/subPackage/article/detail.vue
index 3e4f84a..2e219c5 100644
--- a/subPackage/article/detail.vue
+++ b/subPackage/article/detail.vue
@@ -42,10 +42,10 @@
 							</view>
 							<text class="f-28 c-99">共{{applyList.length}}人</text>
 						</view>
-						<button v-if="computeEndTime > 0 && !applyInfo.userId" class="apply-btn bgc-main c-ff "
+						<button v-if="computeEndTime > 0 && !applyInfo.householdId" class="apply-btn bgc-main c-ff "
 							@click="handleApply()">报名</button>
 
-						<button v-if="applyInfo.userId && computeEndTime > 0"
+						<button v-if="applyInfo.householdId && computeEndTime > 0"
 							class="apply-btn bgc-lightblue c-main  border-current">已报名</button>
 
 						<button v-if="computeEndTime <= 0"
@@ -275,6 +275,7 @@
 			},
 
 			getDetailInfo() {
+				this.params.houseCode = uni.getStorageSync("curHouseCode")
 				getDetail(this.params).then(res => {
 					this.detailInfo = res.data;
 					this.type = res.data.type
@@ -307,7 +308,8 @@
 			//报名列表
 			getApplyList() {
 				communityModel.getApplyList({
-					articleId: this.params.id
+					articleId: this.params.id,
+					houseCode: uni.getStorageSync("curHouseCode")
 				}).then(res => {
 					// console.log(res)
 					if (res.code == 200) {
@@ -319,7 +321,8 @@
 			//报名、投票详情
 			getApplyDetail() {
 				communityModel.getApplyDetail({
-					articleId: this.params.id
+					articleId: this.params.id,
+					houseCode: uni.getStorageSync("curHouseCode")
 				}).then(res => {
 					// console.log(res)
 					if (res.code == 200) {

--
Gitblit v1.9.3