fix : 修改没有房源时 我的小区左上角的显示内容
This commit is contained in:
parent
498f18d7da
commit
a9e42e8791
@ -98,7 +98,7 @@ image {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
background-color: #fff;
|
||||
/* background-color: #fff; */
|
||||
padding-bottom: 200rpx;
|
||||
margin-top: 20rpx;
|
||||
padding-top: 111rpx;
|
||||
|
||||
@ -27,7 +27,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="empty" v-if="!communityList">
|
||||
<div class="empty" v-if="communityList.length == 0">
|
||||
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/com_noSearch.png"></image>
|
||||
<span>未找到相关信息的小区</span>
|
||||
</div>
|
||||
|
||||
@ -171,6 +171,9 @@ import {
|
||||
} from "../../../utils";
|
||||
|
||||
import { apiArr } from "../../../api/v2Community";
|
||||
import {
|
||||
apiArr as apiArr2
|
||||
} from '../../../api/community';
|
||||
|
||||
export default {
|
||||
data() {
|
||||
@ -212,16 +215,29 @@ export default {
|
||||
};
|
||||
},
|
||||
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;
|
||||
});
|
||||
const meun = menuButtonInfo();
|
||||
this.top = meun.top;
|
||||
// this.top = meun.height + meun.top;
|
||||
this.localHeight = meun.height;
|
||||
// this.getCommunityList()
|
||||
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();
|
||||
this.getAdvertising();
|
||||
this.getCategoryList();
|
||||
|
||||
@ -18,182 +18,194 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<button class="enter-shop-btn">进店</button>
|
||||
<button class="enter-shop-btn" @click="goShop">进店</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
request,
|
||||
picUrl,
|
||||
NavgateTo,
|
||||
menuButtonInfo,
|
||||
} from "../../../utils/index";
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
shops: [
|
||||
{
|
||||
id: 1,
|
||||
image: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/test.png',
|
||||
title: '专业到家服务',
|
||||
image: "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/test.png",
|
||||
title: "专业到家服务",
|
||||
ratingCount: 5,
|
||||
rating: 4.8,
|
||||
distance: 3.0,
|
||||
fans: 120
|
||||
fans: 120,
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
image: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/test.png',
|
||||
title: '专业到家服务',
|
||||
image: "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/test.png",
|
||||
title: "专业到家服务",
|
||||
ratingCount: 5,
|
||||
rating: 4.8,
|
||||
distance: 3.0,
|
||||
fans: 120
|
||||
fans: 120,
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
image: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/test.png',
|
||||
title: '专业到家服务',
|
||||
image: "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/test.png",
|
||||
title: "专业到家服务",
|
||||
ratingCount: 5,
|
||||
rating: 4.8,
|
||||
distance: 3.0,
|
||||
fans: 120
|
||||
fans: 120,
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
image: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/test.png',
|
||||
title: '专业到家服务',
|
||||
image: "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/test.png",
|
||||
title: "专业到家服务",
|
||||
ratingCount: 5,
|
||||
rating: 4.8,
|
||||
distance: 3.0,
|
||||
fans: 120
|
||||
fans: 120,
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
image: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/test.png',
|
||||
title: '专业到家服务',
|
||||
image: "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/test.png",
|
||||
title: "专业到家服务",
|
||||
ratingCount: 5,
|
||||
rating: 4.8,
|
||||
distance: 3.0,
|
||||
fans: 120
|
||||
fans: 120,
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
image: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/test.png',
|
||||
title: '专业到家服务',
|
||||
image: "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/test.png",
|
||||
title: "专业到家服务",
|
||||
ratingCount: 5,
|
||||
rating: 4.8,
|
||||
distance: 3.0,
|
||||
fans: 120
|
||||
fans: 120,
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
image: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/test.png',
|
||||
title: '专业到家服务',
|
||||
image: "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/test.png",
|
||||
title: "专业到家服务",
|
||||
ratingCount: 5,
|
||||
rating: 4.8,
|
||||
distance: 3.0,
|
||||
fans: 120
|
||||
fans: 120,
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
image: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/test.png',
|
||||
title: '专业到家服务',
|
||||
image: "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/test.png",
|
||||
title: "专业到家服务",
|
||||
ratingCount: 5,
|
||||
rating: 4.8,
|
||||
distance: 3.0,
|
||||
fans: 120
|
||||
fans: 120,
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
image: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/test.png',
|
||||
title: '专业到家服务',
|
||||
image: "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/test.png",
|
||||
title: "专业到家服务",
|
||||
ratingCount: 5,
|
||||
rating: 4.8,
|
||||
distance: 3.0,
|
||||
fans: 120
|
||||
fans: 120,
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
image: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/test.png',
|
||||
title: '专业到家服务',
|
||||
image: "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/test.png",
|
||||
title: "专业到家服务",
|
||||
ratingCount: 5,
|
||||
rating: 4.8,
|
||||
distance: 3.0,
|
||||
fans: 120
|
||||
fans: 120,
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
image: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/test.png',
|
||||
title: '专业到家服务',
|
||||
image: "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/test.png",
|
||||
title: "专业到家服务",
|
||||
ratingCount: 5,
|
||||
rating: 4.8,
|
||||
distance: 3.0,
|
||||
fans: 120
|
||||
fans: 120,
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
image: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/test.png',
|
||||
title: '专业到家服务',
|
||||
image: "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/test.png",
|
||||
title: "专业到家服务",
|
||||
ratingCount: 5,
|
||||
rating: 4.8,
|
||||
distance: 3.0,
|
||||
fans: 120
|
||||
fans: 120,
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
image: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/test.png',
|
||||
title: '专业到家服务',
|
||||
image: "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/test.png",
|
||||
title: "专业到家服务",
|
||||
ratingCount: 5,
|
||||
rating: 4.8,
|
||||
distance: 3.0,
|
||||
fans: 120
|
||||
fans: 120,
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
image: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/test.png',
|
||||
title: '专业到家服务',
|
||||
image: "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/test.png",
|
||||
title: "专业到家服务",
|
||||
ratingCount: 5,
|
||||
rating: 4.8,
|
||||
distance: 3.0,
|
||||
fans: 120
|
||||
fans: 120,
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
image: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/test.png',
|
||||
title: '专业到家服务',
|
||||
image: "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/test.png",
|
||||
title: "专业到家服务",
|
||||
ratingCount: 5,
|
||||
rating: 4.8,
|
||||
distance: 3.0,
|
||||
fans: 120
|
||||
fans: 120,
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
image: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/test.png',
|
||||
title: '专业到家服务',
|
||||
image: "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/test.png",
|
||||
title: "专业到家服务",
|
||||
ratingCount: 5,
|
||||
rating: 4.8,
|
||||
distance: 3.0,
|
||||
fans: 120
|
||||
fans: 120,
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
image: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/test.png',
|
||||
title: '专业到家服务',
|
||||
image: "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/test.png",
|
||||
title: "专业到家服务",
|
||||
ratingCount: 5,
|
||||
rating: 4.8,
|
||||
distance: 3.0,
|
||||
fans: 120
|
||||
fans: 120,
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
image: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/test.png',
|
||||
title: '专业到家服务',
|
||||
image: "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/test.png",
|
||||
title: "专业到家服务",
|
||||
ratingCount: 5,
|
||||
rating: 4.8,
|
||||
distance: 3.0,
|
||||
fans: 120
|
||||
}
|
||||
]
|
||||
fans: 120,
|
||||
},
|
||||
],
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
goShop() {
|
||||
NavgateTo("../vendor/index");
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user