Commit 89f498fb authored by 罗林杰's avatar 罗林杰

修改星座查询

parent 992b34ca
......@@ -74,17 +74,18 @@
></u-icon>
</u-form-item>
</u--form>
<view style="margin-top: 20rpx">星座</view>
<view class="u-page__tag-item">
<u-tag
v-for="(item, index) in checkboxs"
:key="index"
:text="`选项${index + 1}`"
:plain="!item.checked"
type="warning"
:name="index"
@click="checkboxClick"
>
</u-tag>
<u-tag
v-for="(item, index) in checkboxs"
:key="index"
:text="item.name"
:plain="!item.checked"
type="warning"
:name="index"
class="u-tag-item"
@click="checkboxClick"
></u-tag>
</view>
<u-button
type="primary"
......@@ -163,40 +164,64 @@ export default {
],
checkboxs: [
{
checked: true,
checked: false,
name: '水瓶',
value: '1',
},
{
checked: false,
name: '双鱼',
value: '2',
},
{
checked: false,
name: '白羊',
value: '3',
},
{
checked: false,
name: '金牛',
value: '4',
},
{
checked: false,
name: '双子',
value: '5',
},
{
checked: false,
name: '巨蟹',
value: '6',
},
{
checked: false,
name: '狮子',
value: '7',
},
{
checked: false,
name: '处女',
value: '8',
},
{
checked: false,
name: '天秤',
value: '9',
},
{
checked: false,
name: '天蝎',
value: '10',
},
{
checked: false,
name: '射手',
value: '11',
},
{
checked: false,
name: '摩羯',
value: '12',
},
],
//选择器显示
......@@ -287,5 +312,11 @@ export default {
.u-page__tag-item {
display: flex;
flex-wrap: wrap;
margin-left: 120rpx;
margin-top: -40rpx;
}
::v-deep .u-tag--medium{
margin-left: 50rpx;
margin-bottom: 20rpx;
}
</style>
......@@ -2,6 +2,12 @@
<view style="background-color: #F4F5F9;min-height: 100vh;">
<!-- 页头 -->
<u-navbar @leftClick="backbar" bgColor="#F4F5F9" title="个人留言"></u-navbar>
<view class="fixed-buttons" style="display: flex; justify-content: space-evenly; position: fixed; top: 120rpx; width: 100%; z-index: 99;">
<view class="button-item" style="width: 50%; text-align: center; height: 50rpx; background-color: #cbcbcb; color: black;">拉黑</view>
<view class="vertical-line" style="width: 1px; height: 50rpx; background-color: #808080;"></view>
<view class="button-item" style="width: 50%; text-align: center; height: 50rpx; background-color: #cbcbcb; color: black;">关注</view>
</view>
<view style="height: 80rpx;"></view>
<view class="page-layout">
<view class="page-body" id="x_chat">
<view v-for="(item, index) in chatList" :key="index">
......@@ -51,9 +57,6 @@ export default {
},
onLoad(options) {
this.targetId = options.targetId
this.getMessageList()
// 滚动到页面底部
this.pageScrollToBottom()
},
onShow(){
this.getMessageList()
......@@ -74,7 +77,6 @@ export default {
targetId: this.targetId
}
telMessage(form).then(res => {
console.log('11111111',res.data.data)
this.chatList = res.data.data
this.chatList.forEach(item => {
//处理头像
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment