修改没有绑定任何房源的页面样式

修改弹窗广告只出现一次
This commit is contained in:
赵毅 2025-09-08 10:46:48 +08:00
parent 7a3a19a5f7
commit 80f31109ec

View File

@ -36,8 +36,8 @@
</view> </view>
<view class="funcList"> <view class="funcList">
<u-grid :col="rowNum" :border="false"> <u-grid :col="5" :border="false">
<u-grid-item v-for="(item, index) in functionList" @click="addCommunity" :key="index"> <u-grid-item v-for="(item, index) in noValFunctionList" @click="addCommunity" :key="index">
<image class="grid_Pic" :src="item.nav_icon" mode=""></image> <image class="grid_Pic" :src="item.nav_icon" mode=""></image>
<text class="grid_Text">{{ item.nav_name }}</text> <text class="grid_Text">{{ item.nav_name }}</text>
</u-grid-item> </u-grid-item>
@ -216,6 +216,48 @@ export default {
visible_communities: "" visible_communities: ""
} }
], ],
noValFunctionList: [
{
nav_icon: 'http://localhost:8080/noValFunction1.png',
nav_name: "物业介绍",
},
{
nav_icon: 'http://localhost:8080/noValFunction2.png',
nav_name: "物业缴费",
},
{
nav_icon: 'http://localhost:8080/noValFunction3.png',
nav_name: "物业公积金",
},
{
nav_icon: 'http://localhost:8080/noValFunction1.png',
nav_name: "物业保修",
},
{
nav_icon: 'http://localhost:8080/noValFunction4.png',
nav_name: "便民电话",
},
{
nav_icon: 'http://localhost:8080/noValFunction5.png',
nav_name: "人脸门禁",
},
{
nav_icon: 'http://localhost:8080/noValFunction6.png',
nav_name: "手机开门",
},
{
nav_icon: 'http://localhost:8080/noValFunction7.png',
nav_name: "物业活动",
},
{
nav_icon: 'http://localhost:8080/noValFunction8.png',
nav_name: "访客邀请",
},
{
nav_icon: 'http://localhost:8080/noValFunction10.png',
nav_name: "场地预约",
},
],
ads1Show: false, ads1Show: false,
ads2Show: false, ads2Show: false,
@ -340,9 +382,13 @@ export default {
}, },
closeAds() { closeAds() {
this.ads1Show = false; this.ads1Show = false;
// 1
uni.setStorageSync('ads1Showed', true);
}, },
closeAds2() { closeAds2() {
this.ads2Show = false; this.ads2Show = false;
// 2
uni.setStorageSync('ads2Showed', true);
}, },
jump(e) { jump(e) {
if (!e) { if (!e) {
@ -474,7 +520,9 @@ export default {
ad_picture: picUrl + item.ad_picture, ad_picture: picUrl + item.ad_picture,
}; };
}); });
this.ads1Show = res4.rows.length !== 0 ? true : false; // 1广
const ads1Showed = uni.getStorageSync('ads1Showed');
this.ads1Show = !ads1Showed && res4.rows.length !== 0 ? true : false;
const res5 = await request(apiArr.advPage, "POST", { const res5 = await request(apiArr.advPage, "POST", {
community_id: Number(uni.getStorageSync("changeCommData").id), community_id: Number(uni.getStorageSync("changeCommData").id),
@ -488,7 +536,9 @@ export default {
ad_picture: picUrl + item.ad_picture, ad_picture: picUrl + item.ad_picture,
}; };
}); });
this.ads2Show = res5.rows.length !== 0 ? true : false; // 2广
const ads2Showed = uni.getStorageSync('ads2Showed');
this.ads2Show = !ads2Showed && res5.rows.length !== 0 ? true : false;
}, },
headerServerClick(e) { headerServerClick(e) {