From df0bec40b22587eea8201172be255594b3e8c098 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=AF=85?= <1335909236@qq.com> Date: Mon, 8 Sep 2025 15:42:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=87=E6=8D=A2=E5=B0=8F?= =?UTF-8?q?=E5=8C=BA=E4=B9=8B=E5=90=8E=E9=87=91=E5=88=9A=E5=8C=BA=E7=9A=84?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E5=B1=95=E7=A4=BA=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/community.js | 1 + packages/community/index/index.vue | 104 ++++++++++++------------ packages/community/repairList/index.vue | 2 +- 3 files changed, 55 insertions(+), 52 deletions(-) diff --git a/api/community.js b/api/community.js index 87ba60ff..d3c76516 100644 --- a/api/community.js +++ b/api/community.js @@ -47,4 +47,5 @@ export const apiArr = { getPayOrderInfo:"/api/v2/wechat/community-order-pay/get-one", //根据缴费信息获取支付信息 getPayOrderList:"/api/v2/wechat/community-order-pay/get-page", //查询缴费记录 OrderPay:"/api/v2/wechat/community-order-pay/preorder",//预下单 + tradeQuery:"/api/v2/wechat/community-order-pay/trade-query",//缴费查单 }; \ No newline at end of file diff --git a/packages/community/index/index.vue b/packages/community/index/index.vue index f9b906c6..6c896e46 100644 --- a/packages/community/index/index.vue +++ b/packages/community/index/index.vue @@ -17,8 +17,8 @@ - + @@ -30,14 +30,14 @@ - + - + {{ item.nav_name }} @@ -172,50 +172,8 @@ export default { communityList: [], flag: false, - functionList: [ - { - create_time: "", - id: 4, - is_published: 1, - jump_target: 1, - mini_program_url: "/packages/community/repairList/index", - nav_icon: picUrl + "/static/images/2025-07-05/db3s1b1lyxawt8cnke.png", - nav_name: "报事报修", - other_appid: "", - other_path: "", - sort: 5, - update_time: "", - visible_communities: "" - }, - { - create_time: "", - id: 5, - is_published: 1, - jump_target: 1, - mini_program_url: "/packages/community/propertyPayment/index", - nav_icon: picUrl + "/static/images/2025-07-05/db3s1t7d1k0qmuha61.png", - nav_name: "物业缴费", - other_appid: "", - other_path: "", - sort: 4, - update_time: "", - visible_communities: "", - }, - { - create_time: "", - id: 7, - is_published: 1, - jump_target: 1, - mini_program_url: "/packages/community/providentFund/index", - nav_icon: picUrl + "/static/images/2025-07-05/db3s29e33rd7rsrecf.png", - nav_name: "物业公积金", - other_appid: "", - other_path: "", - sort: 2, - update_time: "", - visible_communities: "" - } - ], + defaultFunctionList: [], + functionList: [], noValFunctionList: [ { nav_icon: 'http://localhost:8080/noValFunction1.png', @@ -291,6 +249,51 @@ export default { }, async onShow() { + this.defaultFunctionList = [ + { + create_time: "", + id: 4, + is_published: 1, + jump_target: 1, + mini_program_url: "/packages/community/repairList/index", + nav_icon: picUrl + "/static/images/2025-07-05/db3s1b1lyxawt8cnke.png", + nav_name: "报事报修", + other_appid: "", + other_path: "", + sort: 5, + update_time: "", + visible_communities: "" + }, + { + create_time: "", + id: 5, + is_published: 1, + jump_target: 1, + mini_program_url: "/packages/community/propertyPayment/index", + nav_icon: picUrl + "/static/images/2025-07-05/db3s1t7d1k0qmuha61.png", + nav_name: "物业缴费", + other_appid: "", + other_path: "", + sort: 4, + update_time: "", + visible_communities: "", + }, + { + create_time: "", + id: 7, + is_published: 1, + jump_target: 1, + mini_program_url: "/packages/community/providentFund/index", + nav_icon: picUrl + "/static/images/2025-07-05/db3s29e33rd7rsrecf.png", + nav_name: "物业公积金", + other_appid: "", + other_path: "", + sort: 2, + update_time: "", + visible_communities: "" + } + + ] // 页面展示时执行 // if (!uni.getStorageSync("changeCommData")) { // return; @@ -418,6 +421,7 @@ export default { }, async getfunctionNum() { + this.functionList = this.defaultFunctionList; const res = await request( apiArr.commInfo, "POST", @@ -461,8 +465,6 @@ export default { this.functionList.push(newItem); } }); - - console.log("functionList", this.functionList); }, async getAdvertising() { diff --git a/packages/community/repairList/index.vue b/packages/community/repairList/index.vue index cb1d51e9..8fabc6e4 100644 --- a/packages/community/repairList/index.vue +++ b/packages/community/repairList/index.vue @@ -25,7 +25,7 @@ - +