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

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"
@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>
</div>
@ -171,9 +175,7 @@ import {
} from "../../../utils";
import { apiArr } from "../../../api/v2Community";
import {
apiArr as apiArr2
} from '../../../api/community';
import { apiArr as apiArr2 } from "../../../api/community";
export default {
data() {
@ -212,6 +214,8 @@ export default {
page_num: 1,
flag: false,
loadMoreText: "",
isShowBill: false,
};
},
async onLoad(options) {
@ -222,6 +226,11 @@ export default {
page_num: this.page_num,
page_size: this.page_size,
}).then((res) => {
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();
@ -290,6 +299,16 @@ export default {
this.NotOpen();
return;
}
if (
e == "/packages/community/propertyPayment/index" &&
!this.isShowBill
) {
uni.showToast({
title: "请配置账单",
icon: "none",
});
return;
}
NavgateTo(e);
},
@ -535,7 +554,10 @@ export default {
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;
//