梁航:完善个人页面样式

This commit is contained in:
hot777zz
2023-11-06 22:23:37 +08:00
parent 4b0035c6de
commit 330d747f3f
6 changed files with 119 additions and 23 deletions

View File

@@ -1,5 +1,5 @@
<template>
<view>
<view class="body">
<view class="search-box">
<view class="search-box-input">
<u-input placeholder="热门搜索" placeholder-style="color: #969696" prefixIcon="search"
@@ -7,7 +7,10 @@
</u-input>
</view>
</view>
<ShowShopList></ShowShopList>
<ShowShopList v-if="listId == 0" class="list"></ShowShopList>
<SearchShopList v-if="listId == 1" class="list"></SearchShopList>
<ShowShopList v-if="listId == 2" class="list"></ShowShopList>
<ShowShopList v-if="listId == 3" class="list"></ShowShopList>
</view>
</template>
@@ -15,7 +18,8 @@
export default {
data() {
return {
titletext:''
titletext:'',
listId:''
}
},
methods: {
@@ -25,8 +29,24 @@
wx.setNavigationBarTitle({
title: option.titletext
})
this.titletext = option.titletext
if(this.titletext == '发布的店铺转让'){
this.listId = 0
}
else if(this.titletext == '发布的找店选址'){
this.listId = 1
}
else if(this.titletext = '成功合伙人'){
this.listId = 2
}
else
this.listId = 3
},
computed:{
}
}
</script>
@@ -59,4 +79,7 @@
}
}
}
.body{
background-color: #F8F8F8;
}
</style>