2024-10-14 20:16:48 +08:00

42 lines
853 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!-- 消息界面用于 im 聊天 -->
<route lang="json5" type="page">
{
layout: 'tabbar',
style: {
navigationBarTitleText: '消息',
},
}
</route>
<template>
<!-- 搜索框 -->
<wd-search
v-model="searchValue"
@focus="searchFocus"
@blur="searchBlur"
@search="search"
maxlength="10"
hide-cancel
light
/>
<view class="px-4 pb-4 pt-0 flex flex-col gap-2">
<MessageItem v-for="(item, index) in messageList" :key="index" :item="item" />
</view>
</template>
<script lang="ts" setup>
//
import { ref } from 'vue'
import MessageItem from './components/MessageItem.vue'
import messageList from './mock'
const searchValue = ref('')
/// /////// 搜索栏 事件////////////
const searchFocus = () => {}
const searchBlur = () => {}
const search = () => {}
</script>
<style lang="scss" scoped>
//
</style>