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

修改星座查询

parent 992b34ca
...@@ -74,17 +74,18 @@ ...@@ -74,17 +74,18 @@
></u-icon> ></u-icon>
</u-form-item> </u-form-item>
</u--form> </u--form>
<view style="margin-top: 20rpx">星座</view>
<view class="u-page__tag-item"> <view class="u-page__tag-item">
<u-tag <u-tag
v-for="(item, index) in checkboxs" v-for="(item, index) in checkboxs"
:key="index" :key="index"
:text="`选项${index + 1}`" :text="item.name"
:plain="!item.checked" :plain="!item.checked"
type="warning" type="warning"
:name="index" :name="index"
@click="checkboxClick" class="u-tag-item"
> @click="checkboxClick"
</u-tag> ></u-tag>
</view> </view>
<u-button <u-button
type="primary" type="primary"
...@@ -163,40 +164,64 @@ export default { ...@@ -163,40 +164,64 @@ export default {
], ],
checkboxs: [ checkboxs: [
{ {
checked: true, checked: false,
name: '水瓶',
value: '1',
}, },
{ {
checked: false, checked: false,
name: '双鱼',
value: '2',
}, },
{ {
checked: false, checked: false,
name: '白羊',
value: '3',
}, },
{ {
checked: false, checked: false,
name: '金牛',
value: '4',
}, },
{ {
checked: false, checked: false,
name: '双子',
value: '5',
}, },
{ {
checked: false, checked: false,
name: '巨蟹',
value: '6',
}, },
{ {
checked: false, checked: false,
name: '狮子',
value: '7',
}, },
{ {
checked: false, checked: false,
name: '处女',
value: '8',
}, },
{ {
checked: false, checked: false,
name: '天秤',
value: '9',
}, },
{ {
checked: false, checked: false,
name: '天蝎',
value: '10',
}, },
{ {
checked: false, checked: false,
name: '射手',
value: '11',
}, },
{ {
checked: false, checked: false,
name: '摩羯',
value: '12',
}, },
], ],
//选择器显示 //选择器显示
...@@ -287,5 +312,11 @@ export default { ...@@ -287,5 +312,11 @@ export default {
.u-page__tag-item { .u-page__tag-item {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
margin-left: 120rpx;
margin-top: -40rpx;
}
::v-deep .u-tag--medium{
margin-left: 50rpx;
margin-bottom: 20rpx;
} }
</style> </style>
...@@ -2,6 +2,12 @@ ...@@ -2,6 +2,12 @@
<view style="background-color: #F4F5F9;min-height: 100vh;"> <view style="background-color: #F4F5F9;min-height: 100vh;">
<!-- 页头 --> <!-- 页头 -->
<u-navbar @leftClick="backbar" bgColor="#F4F5F9" title="个人留言"></u-navbar> <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-layout">
<view class="page-body" id="x_chat"> <view class="page-body" id="x_chat">
<view v-for="(item, index) in chatList" :key="index"> <view v-for="(item, index) in chatList" :key="index">
...@@ -51,9 +57,6 @@ export default { ...@@ -51,9 +57,6 @@ export default {
}, },
onLoad(options) { onLoad(options) {
this.targetId = options.targetId this.targetId = options.targetId
this.getMessageList()
// 滚动到页面底部
this.pageScrollToBottom()
}, },
onShow(){ onShow(){
this.getMessageList() this.getMessageList()
...@@ -74,7 +77,6 @@ export default { ...@@ -74,7 +77,6 @@ export default {
targetId: this.targetId targetId: this.targetId
} }
telMessage(form).then(res => { telMessage(form).then(res => {
console.log('11111111',res.data.data)
this.chatList = res.data.data this.chatList = res.data.data
this.chatList.forEach(item => { 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