修改切换小区之后金刚区的按钮展示逻辑

This commit is contained in:
赵毅 2025-09-08 15:42:48 +08:00
parent e4fe37ba3a
commit df0bec40b2
3 changed files with 55 additions and 52 deletions

View File

@ -47,4 +47,5 @@ export const apiArr = {
getPayOrderInfo:"/api/v2/wechat/community-order-pay/get-one", //根据缴费信息获取支付信息 getPayOrderInfo:"/api/v2/wechat/community-order-pay/get-one", //根据缴费信息获取支付信息
getPayOrderList:"/api/v2/wechat/community-order-pay/get-page", //查询缴费记录 getPayOrderList:"/api/v2/wechat/community-order-pay/get-page", //查询缴费记录
OrderPay:"/api/v2/wechat/community-order-pay/preorder",//预下单 OrderPay:"/api/v2/wechat/community-order-pay/preorder",//预下单
tradeQuery:"/api/v2/wechat/community-order-pay/trade-query",//缴费查单
}; };

View File

@ -17,8 +17,8 @@
<view class="swiperBox_no1"> <view class="swiperBox_no1">
<swiper @animationfinish="swipers" autoplay circular> <swiper @animationfinish="swipers" autoplay circular>
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community_no_image1.png" mode="aspectFill" class="swiperBox_no_img" <image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community_no_image1.png" mode="aspectFill"
@click="addCommunity" /> class="swiperBox_no_img" @click="addCommunity" />
</swiper> </swiper>
<view class="dot"> <view class="dot">
@ -30,8 +30,8 @@
<view class="swiperBox_no2"> <view class="swiperBox_no2">
<swiper @animationfinish="swipers" autoplay circular> <swiper @animationfinish="swipers" autoplay circular>
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community_no_image2.png" mode="aspectFill" class="swiperBox_no_img" <image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community_no_image2.png" mode="aspectFill"
@click="addCommunity" /> class="swiperBox_no_img" @click="addCommunity" />
</swiper> </swiper>
</view> </view>
@ -172,50 +172,8 @@ export default {
communityList: [], communityList: [],
flag: false, flag: false,
functionList: [ defaultFunctionList: [],
{ 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: ""
}
],
noValFunctionList: [ noValFunctionList: [
{ {
nav_icon: 'http://localhost:8080/noValFunction1.png', nav_icon: 'http://localhost:8080/noValFunction1.png',
@ -291,6 +249,51 @@ export default {
}, },
async onShow() { 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")) { // if (!uni.getStorageSync("changeCommData")) {
// return; // return;
@ -418,6 +421,7 @@ export default {
}, },
async getfunctionNum() { async getfunctionNum() {
this.functionList = this.defaultFunctionList;
const res = await request( const res = await request(
apiArr.commInfo, apiArr.commInfo,
"POST", "POST",
@ -461,8 +465,6 @@ export default {
this.functionList.push(newItem); this.functionList.push(newItem);
} }
}); });
console.log("functionList", this.functionList);
}, },
async getAdvertising() { async getAdvertising() {

View File

@ -25,7 +25,7 @@
</view> </view>
</view> </view>
<view v-if="list.length !== 0"> <view v-if="list.length !== 0" class="orderListBox">
<view class="orderList" v-for="(item, index) in list" :key="index"> <view class="orderList" v-for="(item, index) in list" :key="index">
<view class="orderItem" @click="handlerDetailClick(item.id)"> <view class="orderItem" @click="handlerDetailClick(item.id)">
<view :class="['orderItemTit', statusType[item.status].style]"> <view :class="['orderItemTit', statusType[item.status].style]">