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