You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

76 lines
1.4 KiB

<template>
<view>
<uni-card :is-shadow="false" :border="false" is-full spacing="0" margin="20">
<uni-search-bar class="search" radius="5" placeholder="请输入成员名称" clearButton="auto" cancelButton="none" @confirm="search" />
</uni-card>
<ul class="list">
<li @click="toPage('../addMember/addMember')">
<image class="avatar" src="../../static/avatar.jpg" mode=""></image>
<view class="info">
<view class="name">Luna</view>
<view class="text">手机号码1352351253</view>
<view class="text">加入时间2020-01-02</view>
</view>
</li>
</ul>
<uni-icons class="plus" type="plus-filled" size="60" color="#007eff" @click="toPage('../addStaff/addStaff')"></uni-icons>
</view>
</template>
<script>
export default {
data() {
return {
}
},
methods: {
search(res) {
uni.showToast({
title: '搜索:' + res.value,
icon: 'none'
})
},
toPage(path) {
this.$util.to(path)
}
}
}
</script>
<style scoped lang="scss">
.list {
margin-top: 10px;
background-color: #fff;
li {
display: flex;
align-items: center;
padding: 10px 20px;
border-bottom: 1px solid #f7f7f7;
&:last-child {
border-bottom: 0;
}
}
.avatar {
width: 40px;
height: 40px;
margin-right: 15px;
border-radius: 50%;
}
.name {
font-size: 14px;
color: #333;
}
.text {
font-size: 13px;
color: #858585;
}
}
.plus {
position: fixed;
bottom: 20px;
right: 20px;
}
</style>