Files
im-uniapp/pages/contact/index/index.vue
2025-07-04 16:18:58 +08:00

88 lines
1.6 KiB
Vue

<template>
<view class="contact_container">
<custom-nav-bar>
<view class="contact_title" slot="left">
<text>通讯录</text>
</view>
<view class="contact_action" slot="more">
<view @click="contactAddClick" class="search_icon">
<image src="@/static/images/common_add.png" alt="" srcset="" />
</view>
</view>
</custom-nav-bar>
<contact-menus />
</view>
</template>
<script>
import CustomNavBar from "@/components/CustomNavBar/index.vue";
import ContactMenus from "./components/ContactMenus.vue";
import UserItem from "@/components/UserItem/index.vue";
export default {
components: {
CustomNavBar,
ContactMenus,
UserItem,
},
data() {
return {
frequentContacts: [],
};
},
methods: {
contactAddClick() {
uni.navigateTo({
url: "/pages/contact/contactAdd/index",
});
},
userClick(item) {
uni.navigateTo({
url: `/pages/common/userCard/index?sourceID=${item.userID}`,
});
},
},
};
</script>
<style lang="scss" scoped>
.contact_container {
@include colBox(false);
height: 100vh;
background-color: #f6f6f6;
.contact_title {
padding-left: 44rpx;
font-size: 40rpx;
font-weight: 600;
color: #0c1c33;
}
.contact_action {
padding-right: 36rpx;
display: flex;
.search_icon {
margin: 0 16rpx;
image {
width: 56rpx;
height: 56rpx;
}
}
}
.list_title {
font-size: 24rpx;
color: #999;
margin-left: 44rpx;
}
.user_list {
flex: 1;
margin-top: 24rpx;
background-color: #fff;
}
}
</style>