From 41b0781ad79f43b22a0564c8c9c63dd7f57bdb66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=AF=85?= <1335909236@qq.com> Date: Mon, 7 Jul 2025 15:15:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=88=91=E7=9A=84=E6=88=BF?= =?UTF-8?q?=E4=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/community.js | 2 +- packages/community/addCommunity/index.vue | 165 +++++++++++++------- packages/community/choseCommunity/index.vue | 31 +++- 3 files changed, 133 insertions(+), 65 deletions(-) diff --git a/api/community.js b/api/community.js index f82fe352..9e45d3c7 100644 --- a/api/community.js +++ b/api/community.js @@ -34,5 +34,5 @@ export const apiArr = { commRoomSelect:"/api/v2/wechat/community-room/comm-room-select",//房源筛选器 commInfo:"/api/v2/wechat/mpuser-crud/community-owner/info",//我的房产信息小区列表 - + create:"/api/v2/wechat/community-owners/create",//创建新的业主信息 }; \ No newline at end of file diff --git a/packages/community/addCommunity/index.vue b/packages/community/addCommunity/index.vue index a6449708..55b2811b 100644 --- a/packages/community/addCommunity/index.vue +++ b/packages/community/addCommunity/index.vue @@ -5,23 +5,23 @@ 房产 - + 姓名 - + 手机 - + 身份 - + @@ -39,70 +39,115 @@ + @import url("./index.css"); + \ No newline at end of file diff --git a/packages/community/choseCommunity/index.vue b/packages/community/choseCommunity/index.vue index 942f3959..8636ba46 100644 --- a/packages/community/choseCommunity/index.vue +++ b/packages/community/choseCommunity/index.vue @@ -21,8 +21,7 @@
{{item.addr}}
- +
@@ -117,7 +116,7 @@
{{facilityName + fName + rName}}
取消
-
确定
+
确定
@@ -150,13 +149,14 @@ // foloorList: [], // floorsList: [], rName: '', + roomId: '', // roomList: [], page_num: 1, page_size: 10, dialogBoxShow: false, searchQuery: '', filteredFloorsList: [], - searchList:[] + searchList: [] } }, methods: { @@ -212,6 +212,7 @@ } else { this.dialogBoxShow = true; this.rName = item.label + this.romId = item.value } }) }, @@ -221,6 +222,28 @@ item.label.includes(this.searchQuery) ); }, + confirmComm() { + const params = { + changeVal: `${this.cName}${this.facilityName}${this.fName}${this.rName}`, + community_id: this.communityId, + room_id: this.romId + }; + console.log(params) + // 手动创建查询字符串 + function createQueryString(params) { + return Object.keys(params) + .map(key => `${encodeURIComponent(key)}=${encodeURIComponent(params[key])}`) + .join('&'); + } + + // 拼接路径和参数 + const targetPath = "/packages/community/addCommunity/index"; + const queryString = createQueryString(params); + const fullPath = `${targetPath}?${queryString}`; + + // 调用导航方法 + NavgateTo(fullPath); + } }, onLoad(options) {