物业缴费-后台 如果账单为否,点击物业缴费提示请配置账单

This commit is contained in:
赵毅 2025-08-04 11:46:28 +08:00
parent 7dc5ee160f
commit 84ac2a6da5

View File

@ -50,7 +50,11 @@
:key="index" :key="index"
@click="headerServerClick(item)" @click="headerServerClick(item)"
> >
<image :src="item.ad_picture" mode="aspectFill" class="swiperBox2_img"/> <image
:src="item.ad_picture"
mode="aspectFill"
class="swiperBox2_img"
/>
</swiper-item> </swiper-item>
</swiper> </swiper>
</div> </div>
@ -171,9 +175,7 @@ import {
} from "../../../utils"; } from "../../../utils";
import { apiArr } from "../../../api/v2Community"; import { apiArr } from "../../../api/v2Community";
import { import { apiArr as apiArr2 } from "../../../api/community";
apiArr as apiArr2
} from '../../../api/community';
export default { export default {
data() { data() {
@ -212,18 +214,25 @@ export default {
page_num: 1, page_num: 1,
flag: false, flag: false,
loadMoreText: "", loadMoreText: "",
isShowBill: false,
}; };
}, },
async onLoad(options) { async onLoad(options) {
await request(apiArr2.commInfo, "POST", { await request(apiArr2.commInfo, "POST", {
user_id: uni.getStorageSync("userId"), user_id: uni.getStorageSync("userId"),
longitude: uni.getStorageSync("location").lng, longitude: uni.getStorageSync("location").lng,
latitude: uni.getStorageSync("location").lat, latitude: uni.getStorageSync("location").lat,
page_num: this.page_num, page_num: this.page_num,
page_size: this.page_size, page_size: this.page_size,
}).then((res) => { }).then((res) => {
this.communityList = res.rows; res.rows.find((item) => {
if (item.community_id == uni.getStorageSync("changeCommData").id) {
this.isShowBill = item.bill_front_end_display == 1 ? true : false;
}
}); });
this.communityList = res.rows;
});
const meun = menuButtonInfo(); const meun = menuButtonInfo();
this.top = meun.top; this.top = meun.top;
// this.top = meun.height + meun.top; // this.top = meun.height + meun.top;
@ -290,6 +299,16 @@ export default {
this.NotOpen(); this.NotOpen();
return; return;
} }
if (
e == "/packages/community/propertyPayment/index" &&
!this.isShowBill
) {
uni.showToast({
title: "请配置账单",
icon: "none",
});
return;
}
NavgateTo(e); NavgateTo(e);
}, },
@ -508,12 +527,12 @@ export default {
// this.loadMoreText = "1030"; // this.loadMoreText = "1030";
} }
this.selectedTab = index; this.selectedTab = index;
// tab // tab
if (!isTabChange && !this.flag && this.infoList.length > 0) { if (!isTabChange && !this.flag && this.infoList.length > 0) {
return; return;
} }
const res = await request(apiArr.infoPage, "POST", { const res = await request(apiArr.infoPage, "POST", {
community_id: Number(uni.getStorageSync("changeCommData").id), community_id: Number(uni.getStorageSync("changeCommData").id),
announcement_category_id: item.id, announcement_category_id: item.id,
@ -535,7 +554,10 @@ export default {
this.flag = hasMore; this.flag = hasMore;
// //
const isDataDuplicate = !isTabChange && this.infoList.length > 0 && newData.length > 0 && const isDataDuplicate =
!isTabChange &&
this.infoList.length > 0 &&
newData.length > 0 &&
this.infoList[this.infoList.length - 1].id === newData[0].id; this.infoList[this.infoList.length - 1].id === newData[0].id;
// //