罗世杰:feat&fix:修复notice处的bug,完成商铺展示列表
This commit is contained in:
103
components/SearchShopListItem/SearchShopListItem.vue
Normal file
103
components/SearchShopListItem/SearchShopListItem.vue
Normal file
@@ -0,0 +1,103 @@
|
|||||||
|
<template>
|
||||||
|
<view class="list-border">
|
||||||
|
<view class="list-container">
|
||||||
|
<view class="text-area">
|
||||||
|
<text>{{shopInfo.title}}</text>
|
||||||
|
<view class="pos-and-sqr">
|
||||||
|
<view>
|
||||||
|
<text>{{shopInfo.sqr}}m2</text>
|
||||||
|
</view>
|
||||||
|
<view>
|
||||||
|
<text>{{shopInfo.uname}}</text>
|
||||||
|
</view>
|
||||||
|
<view>
|
||||||
|
<text>{{shopInfo.phoneNum}}</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="rent-and-date">
|
||||||
|
<text>{{shopInfo.category}}</text>
|
||||||
|
<text>发布日期:{{shopInfo.pos}}</text>
|
||||||
|
<text>发布日期:{{shopInfo.date}}</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
props: {
|
||||||
|
shopInfo: {
|
||||||
|
type:Object,
|
||||||
|
default(){
|
||||||
|
return {
|
||||||
|
title: '寻找旺铺,200平米左右,寻找旺铺,200平米左右寻找旺铺,200平米左右寻找旺铺,200平米左右',
|
||||||
|
price: 5000,
|
||||||
|
date: '2023-11-02',
|
||||||
|
phoneNum: 13348946108,
|
||||||
|
pos: '锦江区',
|
||||||
|
category: '餐饮美食',
|
||||||
|
uname: '王先生',
|
||||||
|
sqr: 200
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
.list-border {
|
||||||
|
margin: 10px 0;
|
||||||
|
padding: 10px;
|
||||||
|
background-color: #fff;
|
||||||
|
border-radius: 7px;
|
||||||
|
box-shadow: 0 1px 2px 0 rgba(224, 224, 224, 0.50);
|
||||||
|
.list-container {
|
||||||
|
display: flex;
|
||||||
|
height: 80px;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
.text-area {
|
||||||
|
margin-left: 10px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
> text {
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
.pos-and-sqr {
|
||||||
|
display: flex;
|
||||||
|
text {
|
||||||
|
margin-right: 24px;
|
||||||
|
color: #359867;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.rent-and-date {
|
||||||
|
text {
|
||||||
|
margin-right: 6px;
|
||||||
|
color: #CC3333;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.list-ads {
|
||||||
|
border-top: 1px solid #f7f7f7;
|
||||||
|
padding-top: 5px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -8,6 +8,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
/**
|
||||||
|
* @property {Array} shopInfoList 对象数组,(带图片)需要展示的商铺列表
|
||||||
|
*/
|
||||||
export default {
|
export default {
|
||||||
name:"ShowShopList",
|
name:"ShowShopList",
|
||||||
data() {
|
data() {
|
||||||
@@ -24,15 +27,19 @@
|
|||||||
imageUrl: 'https://alifei01.cfp.cn/creative/vcg/800/new/VCG41175510742.jpg',
|
imageUrl: 'https://alifei01.cfp.cn/creative/vcg/800/new/VCG41175510742.jpg',
|
||||||
title: '琴行铺面转让',
|
title: '琴行铺面转让',
|
||||||
promotionNum: 23,
|
promotionNum: 23,
|
||||||
price: 5000,
|
price: 6000,
|
||||||
date: '2023-11-02'
|
date: '2023-11-02',
|
||||||
|
pos: '锦江区',
|
||||||
|
sqr: 100
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
imageUrl: 'https://alifei01.cfp.cn/creative/vcg/800/new/VCG41175510742.jpg',
|
imageUrl: 'https://alifei01.cfp.cn/creative/vcg/800/new/VCG41175510742.jpg',
|
||||||
title: '琴行铺面转让',
|
title: '琴行铺面转让',
|
||||||
promotionNum: 28,
|
promotionNum: 28,
|
||||||
price: 8000,
|
price: 5000,
|
||||||
date: '2023-11-02'
|
date: '2023-11-02',
|
||||||
|
pos: '锦江区',
|
||||||
|
sqr: 200
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,13 +5,19 @@
|
|||||||
<u-image width="80px" height="80px" :src="shopInfo.imageUrl" radius="8px"></u-image>
|
<u-image width="80px" height="80px" :src="shopInfo.imageUrl" radius="8px"></u-image>
|
||||||
</view>
|
</view>
|
||||||
<view class="text-area">
|
<view class="text-area">
|
||||||
<text>{{shopInfo.title}}</text>
|
<text style="font-weight: 500;">{{shopInfo.title}}</text>
|
||||||
<view class="pos-and-sqr">
|
<view class="pos-and-sqr">
|
||||||
<view>
|
<view>
|
||||||
<text>锦江区</text>
|
<view>
|
||||||
|
<u-image src="/static/shoplist/sy_icon_lbdw.png" width="12px" height="15px"></u-image>
|
||||||
|
</view>
|
||||||
|
<text>{{shopInfo.pos}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
<text>200m2</text>
|
<view>
|
||||||
|
<u-image src="/static/shoplist/sy_icon_lbpm.png" width="12px" height="15px"></u-image>
|
||||||
|
</view>
|
||||||
|
<text>{{shopInfo.sqr}}m2</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="rent-and-date">
|
<view class="rent-and-date">
|
||||||
@@ -32,6 +38,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
/**
|
||||||
|
* @property shopInfo {Object} 传入商铺对象数据
|
||||||
|
*/
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
shopInfo: {
|
shopInfo: {
|
||||||
@@ -42,7 +51,9 @@
|
|||||||
title: '琴行铺面转让',
|
title: '琴行铺面转让',
|
||||||
promotionNum: 23,
|
promotionNum: 23,
|
||||||
price: 5000,
|
price: 5000,
|
||||||
date: '2023-11-02'
|
date: '2023-11-02',
|
||||||
|
pos: '锦江区',
|
||||||
|
sqr: 200
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -63,7 +74,7 @@
|
|||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.list-border {
|
.list-border {
|
||||||
margin-top: 10px;
|
margin: 10px 0;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border-radius: 7px;
|
border-radius: 7px;
|
||||||
@@ -71,7 +82,7 @@
|
|||||||
.list-container {
|
.list-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
height: 80px;
|
height: 80px;
|
||||||
margin-bottom: 5px;
|
margin-bottom: 10px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
.text-area {
|
.text-area {
|
||||||
@@ -85,12 +96,20 @@
|
|||||||
.pos-and-sqr {
|
.pos-and-sqr {
|
||||||
display: flex;
|
display: flex;
|
||||||
text {
|
text {
|
||||||
margin-right: 6px;
|
|
||||||
color: #359867;
|
color: #359867;
|
||||||
|
line-height: 12px;
|
||||||
|
}
|
||||||
|
>view {
|
||||||
|
margin-right: 24px;
|
||||||
|
display: flex;
|
||||||
|
>view {
|
||||||
|
margin-right: 4px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.rent-and-date {
|
.rent-and-date {
|
||||||
text {
|
text {
|
||||||
|
font-weight: 500;
|
||||||
margin-right: 6px;
|
margin-right: 6px;
|
||||||
color: #CC3333;
|
color: #CC3333;
|
||||||
}
|
}
|
||||||
|
|||||||
52
pages/index/HomeNoticeBar.vue
Normal file
52
pages/index/HomeNoticeBar.vue
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
<template>
|
||||||
|
<view class="news-box-bg">
|
||||||
|
<view class="hot-news-img">
|
||||||
|
<u-image src="/static/shoplist/sy_icon_zxzx.png" width='55px' height='22px'/>
|
||||||
|
</view>
|
||||||
|
<view class="news-box">
|
||||||
|
<u-notice-bar
|
||||||
|
:text="text"
|
||||||
|
bgColor="#fff"
|
||||||
|
customStyle="width:70vw"
|
||||||
|
color="#232323"
|
||||||
|
icon=" "
|
||||||
|
/>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
/**
|
||||||
|
* @property @property {String} 需要显示的消息
|
||||||
|
*/
|
||||||
|
export default {
|
||||||
|
props: {
|
||||||
|
text: {
|
||||||
|
type: String,
|
||||||
|
default() {
|
||||||
|
return '寒雨连江夜入吴 平明送客楚山孤 洛阳亲友如相问 一片冰心在玉壶'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
|
.news-box-bg {
|
||||||
|
display: flex;
|
||||||
|
border-radius: 8px;
|
||||||
|
background-color: #fff;
|
||||||
|
box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.10);
|
||||||
|
|
||||||
|
.hot-news-img {
|
||||||
|
margin-left: 6px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
@@ -3,21 +3,24 @@
|
|||||||
<InputAndSwiper></InputAndSwiper>
|
<InputAndSwiper></InputAndSwiper>
|
||||||
<view class="home-content">
|
<view class="home-content">
|
||||||
<HomeNavCard></HomeNavCard>
|
<HomeNavCard></HomeNavCard>
|
||||||
<view class="news-box"><u-notice-bar :text="newsTextLists" bgColor="#fff"></u-notice-bar></view>
|
<HomeNoticeBar></HomeNoticeBar>
|
||||||
<ShowShopList></ShowShopList>
|
<ShowShopList/>
|
||||||
|
<SearchShopListItem></SearchShopListItem>
|
||||||
|
<SearchShopListItem></SearchShopListItem>
|
||||||
</view>
|
</view>
|
||||||
<TabBar :current-page="0"></TabBar>
|
<TabBar :current-page="0"></TabBar>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import HomeNoticeBar from "./HomeNoticeBar.vue"
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
HomeNoticeBar
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
newsTextLists: '寒雨连江夜入吴 平明送客楚山孤 洛阳亲友如相问 一片冰心在玉壶'
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
@@ -37,8 +40,5 @@
|
|||||||
margin: 0 10px;
|
margin: 0 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.news-box {
|
|
||||||
border-radius: 8px;
|
|
||||||
box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.10);
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
BIN
static/shoplist/sy_icon_lbhdw.png
Normal file
BIN
static/shoplist/sy_icon_lbhdw.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
BIN
static/shoplist/sy_icon_lbhy.png
Normal file
BIN
static/shoplist/sy_icon_lbhy.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
BIN
static/shoplist/sy_icon_lblxr.png
Normal file
BIN
static/shoplist/sy_icon_lblxr.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 897 B |
BIN
static/shoplist/sy_icon_lbrq.png
Normal file
BIN
static/shoplist/sy_icon_lbrq.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
BIN
static/shoplist/sy_icon_lbxm.png
Normal file
BIN
static/shoplist/sy_icon_lbxm.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 945 B |
BIN
static/shoplist/sy_icon_zxzx.png
Normal file
BIN
static/shoplist/sy_icon_zxzx.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.3 KiB |
Reference in New Issue
Block a user