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.
|
|
|
<template>
|
|
|
|
<view class="dashan">
|
|
|
|
<view class="hd">
|
|
|
|
<view class="a"><text>{{list.length}}</text>人</view>
|
|
|
|
<view class="a">我的团队人数</view>
|
|
|
|
</view>
|
|
|
|
<view class="list">
|
|
|
|
<view class="item" v-for="(a,i) in list" :key="i">
|
|
|
|
<view class="pic">
|
|
|
|
<image :src="a.faceImage?a.faceImage:a.img"></image>
|
|
|
|
</view>
|
|
|
|
<view class="content">
|
|
|
|
<view class="info">
|
|
|
|
<view class="name">{{a.nickname}}</view>
|
|
|
|
<view class="desc">ID:{{a.id}}</view>
|
|
|
|
</view>
|
|
|
|
<view class="btns">{{a.createTime}}</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="empty" v-if="isShow">
|
|
|
|
<image src="@/static/empty.png"></image>
|
|
|
|
<view class="txt">暂无数据</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
isShow: false,
|
|
|
|
list: []
|
|
|
|
};
|
|
|
|
},
|
|
|
|
onLoad() {
|
|
|
|
this.getList();
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
//查询列表
|
|
|
|
async getList() {
|
|
|
|
const { code, data } = await this.$api.myTeam({
|
|
|
|
userId: uni.getStorageSync("userInfo").id
|
|
|
|
});
|
|
|
|
if(code == 200){
|
|
|
|
this.isShow = (data.length >0?false:true);
|
|
|
|
this.list = data;
|
|
|
|
}
|
|
|
|
},
|
|
|
|
openSheet() {
|
|
|
|
uni.showActionSheet({
|
|
|
|
itemList: ["删除会话"],
|
|
|
|
success: function (res) {
|
|
|
|
console.log('选中了第' + (res.tapIndex + 1) + '个按钮');
|
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
.dashan{
|
|
|
|
min-height: 100vh;
|
|
|
|
background-color: #fff;
|
|
|
|
padding: 0 25rpx;
|
|
|
|
overflow: hidden;
|
|
|
|
.empty{
|
|
|
|
padding: 150rpx 0;
|
|
|
|
text-align: center;
|
|
|
|
font-weight: 500;
|
|
|
|
font-size: 28rpx;
|
|
|
|
color: #222222;
|
|
|
|
image{
|
|
|
|
display: block;
|
|
|
|
width: 460rpx;
|
|
|
|
height: 400rpx;
|
|
|
|
margin: 0 auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.hd{
|
|
|
|
width: 702rpx;
|
|
|
|
height: 190rpx;
|
|
|
|
background: linear-gradient(90deg, #17150E, #373632);
|
|
|
|
border-radius: 20rpx;
|
|
|
|
margin-bottom: 20rpx;
|
|
|
|
padding-top: 30rpx;
|
|
|
|
box-sizing: border-box;
|
|
|
|
.a{
|
|
|
|
font-weight: 500;
|
|
|
|
font-size: 30rpx;
|
|
|
|
color: #E7D4B8;
|
|
|
|
text-align: center;
|
|
|
|
padding-top: 10rpx;
|
|
|
|
text{
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 48rpx;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.item{
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
.pic{
|
|
|
|
width: 90rpx;
|
|
|
|
height: 90rpx;
|
|
|
|
margin-right: 20rpx;
|
|
|
|
position: relative;
|
|
|
|
image{
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
border-radius: 50%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.content{
|
|
|
|
padding: 30rpx 0;
|
|
|
|
flex: 1;
|
|
|
|
border-bottom: 1px solid #EAEAEA;
|
|
|
|
display: flex;
|
|
|
|
align-items: end;
|
|
|
|
justify-content: space-between;
|
|
|
|
.info{
|
|
|
|
.name{
|
|
|
|
font-weight: 400;
|
|
|
|
font-size: 30rpx;
|
|
|
|
color: #222222;
|
|
|
|
image{
|
|
|
|
width: 95rpx;
|
|
|
|
height: 30rpx;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.desc{
|
|
|
|
font-weight: 400;
|
|
|
|
font-size: 24rpx;
|
|
|
|
color: #AAAAAA;
|
|
|
|
margin-top: 15rpx;
|
|
|
|
max-width: 400rpx;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.btns{
|
|
|
|
font-weight: 500;
|
|
|
|
font-size: 24rpx;
|
|
|
|
color: #AAAAAA;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|