物业缴费-后台 如果账单为否,点击物业缴费提示请配置账单
This commit is contained in:
parent
7dc5ee160f
commit
84ac2a6da5
@ -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,18 +214,25 @@ export default {
|
||||
page_num: 1,
|
||||
flag: false,
|
||||
loadMoreText: "",
|
||||
|
||||
isShowBill: false,
|
||||
};
|
||||
},
|
||||
async onLoad(options) {
|
||||
await request(apiArr2.commInfo, "POST", {
|
||||
user_id: uni.getStorageSync("userId"),
|
||||
longitude: uni.getStorageSync("location").lng,
|
||||
latitude: uni.getStorageSync("location").lat,
|
||||
page_num: this.page_num,
|
||||
page_size: this.page_size,
|
||||
}).then((res) => {
|
||||
this.communityList = res.rows;
|
||||
await request(apiArr2.commInfo, "POST", {
|
||||
user_id: uni.getStorageSync("userId"),
|
||||
longitude: uni.getStorageSync("location").lng,
|
||||
latitude: uni.getStorageSync("location").lat,
|
||||
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();
|
||||
this.top = meun.top;
|
||||
// this.top = meun.height + meun.top;
|
||||
@ -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;
|
||||
|
||||
// 更新数据
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user