新增没有页房源绑定时的默认页面
This commit is contained in:
parent
f52d8cbcc6
commit
1de223346d
@ -3,6 +3,40 @@ page {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.empty {
|
||||
font-size: 28rpx;
|
||||
color: #999999;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-top: 400rpx;
|
||||
}
|
||||
|
||||
.empty image {
|
||||
width: 340rpx;
|
||||
height: 240rpx;
|
||||
}
|
||||
|
||||
.emptyBtn {
|
||||
width: 400rpx;
|
||||
height: 80rpx;
|
||||
background-color: #ea030d;
|
||||
color: white;
|
||||
align-items: center;
|
||||
margin-top: 400rpx;
|
||||
}
|
||||
|
||||
.emptyBtn2 {
|
||||
width: 400rpx;
|
||||
height: 80rpx;
|
||||
background-color: white;
|
||||
color: #333;
|
||||
align-items: center;
|
||||
margin-top: 50rpx;
|
||||
border: 1rpx solid #333;
|
||||
}
|
||||
|
||||
swiper {
|
||||
height: 100%;
|
||||
}
|
||||
@ -105,7 +139,7 @@ image {
|
||||
margin: 0 5rpx;
|
||||
}
|
||||
|
||||
.swiperBox2_img{
|
||||
.swiperBox2_img {
|
||||
border-radius: 20rpx 20rpx 0 0;
|
||||
}
|
||||
|
||||
@ -149,7 +183,8 @@ image {
|
||||
margin: 0 auto;
|
||||
margin-top: 40rpx;
|
||||
}
|
||||
.ads_first{
|
||||
|
||||
.ads_first {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
@ -190,7 +225,7 @@ image {
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
|
||||
.newsList{
|
||||
.newsList {
|
||||
margin-bottom: 100rpx;
|
||||
}
|
||||
|
||||
@ -322,6 +357,6 @@ image {
|
||||
margin-bottom: 16rpx;
|
||||
}
|
||||
|
||||
.grid_Text{
|
||||
.grid_Text {
|
||||
font-size: 24rpx;
|
||||
}
|
||||
@ -1,5 +1,15 @@
|
||||
<template>
|
||||
<div class="container">
|
||||
<div class="empty" v-if="communityList.length == 0">
|
||||
<image
|
||||
src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/com_newEmpty.png"
|
||||
alt=""
|
||||
/>
|
||||
<text>当前账户未绑定任何项目房源信息</text>
|
||||
<button class="emptyBtn" @click="addCommunity">新增房产绑定</button>
|
||||
<!-- <button class="emptyBtn2" @click="refresh">刷新</button> -->
|
||||
</div>
|
||||
<div v-else>
|
||||
<div
|
||||
class="searchBox"
|
||||
:style="{ height: localHeight + 'px', paddingTop: top + 'px' }"
|
||||
@ -8,12 +18,6 @@
|
||||
<div class="emptyCommunity" @click="addCommunity">
|
||||
{{ communityVal }}
|
||||
</div>
|
||||
<!-- <div class="MyCommunity" v-if="false">
|
||||
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/community_mycommunity.png"
|
||||
mode="aspectFill"></image>
|
||||
<span>惠生活</span>
|
||||
<u-icon name="arrow-down" color="#999999" size="28"></u-icon>
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -36,11 +40,6 @@
|
||||
>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- <div class="dot">
|
||||
<div class="dotItem"></div>
|
||||
<div class="dotItem active"></div>
|
||||
</div> -->
|
||||
</div>
|
||||
|
||||
<div class="swiperBox2">
|
||||
@ -59,13 +58,6 @@
|
||||
</swiper>
|
||||
</div>
|
||||
|
||||
<!-- <div class="funcList">
|
||||
<div class="funcItem" v-for="item in functionList" @click="jump(item.mini_program_url)">
|
||||
<image :src="item.nav_icon"></image>
|
||||
{{ item.nav_name }}
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
<view class="funcList">
|
||||
<u-grid :col="rowNum" :border="false">
|
||||
<u-grid-item
|
||||
@ -161,6 +153,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<nav-footer :current="1" />
|
||||
</div>
|
||||
</template>
|
||||
@ -219,6 +212,9 @@ export default {
|
||||
};
|
||||
},
|
||||
async onLoad(options) {
|
||||
if(!uni.getStorageSync("changeCommData")){
|
||||
return
|
||||
}
|
||||
await request(apiArr2.commInfo, "POST", {
|
||||
user_id: uni.getStorageSync("userId"),
|
||||
longitude: uni.getStorageSync("location").lng,
|
||||
@ -226,11 +222,14 @@ 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;
|
||||
// res.rows.find((item) => {
|
||||
// if (item.community_id == uni.getStorageSync("changeCommData").id) {
|
||||
// this.isShowBill = item.bill_front_end_display == 1 ? true : false;
|
||||
// }
|
||||
// });
|
||||
if (res.rows.length == 0) {
|
||||
uni.removeStorageSync("changeCommData");
|
||||
}
|
||||
});
|
||||
this.communityList = res.rows;
|
||||
});
|
||||
const meun = menuButtonInfo();
|
||||
@ -241,10 +240,6 @@ export default {
|
||||
if (this.communityList.length == 0) {
|
||||
this.communityVal = "添加我的房产";
|
||||
} else {
|
||||
if (!uni.getStorageSync("changeCommData").id) {
|
||||
uni.setStorageSync("changeCommData", { name: "森呼吸二期", id: 14 });
|
||||
}
|
||||
|
||||
this.communityVal = uni.getStorageSync("changeCommData").name;
|
||||
}
|
||||
this.getfunctionNum();
|
||||
@ -336,6 +331,9 @@ export default {
|
||||
},
|
||||
|
||||
async getfunctionList() {
|
||||
if(!uni.getStorageSync("changeCommData")){
|
||||
return
|
||||
}
|
||||
const res = await request(apiArr.navPage, "POST", {
|
||||
community_id: Number(uni.getStorageSync("changeCommData").id),
|
||||
page_num: 1,
|
||||
@ -357,6 +355,9 @@ export default {
|
||||
},
|
||||
|
||||
async getAdvertising() {
|
||||
if(!uni.getStorageSync("changeCommData")){
|
||||
return
|
||||
}
|
||||
const res = await request(apiArr.advPage, "POST", {
|
||||
community_id: Number(uni.getStorageSync("changeCommData").id),
|
||||
ad_position: 1,
|
||||
@ -514,6 +515,9 @@ export default {
|
||||
},
|
||||
|
||||
async getCategoryList() {
|
||||
if(!uni.getStorageSync("changeCommData")){
|
||||
return
|
||||
}
|
||||
const res = await request(apiArr.categoryPage, "POST", {
|
||||
community_id: Number(uni.getStorageSync("changeCommData").id),
|
||||
category_code: "",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user