hls_crm/components/copy/copyPeople.vue

101 lines
1.8 KiB
Vue

<template>
<view class="affiliation">
<view class="aff_head">抄送人</view>
<view class="aff_con">
<view class="aff_item affbox" v-for="(item,index) in copyList" :key="index">
<image :src="BASE_IMG_URL+'img/close.png'" class="delremind" v-if="item.isDel" @click="delCopy(index)" mode=""></image>
<image :src="item.img ? item.img : BASE_IMG_URL+'img/headImg.png'"></image>
<view>{{item.name}}</view>
</view>
<view class="aff_item aff_last" @click="selectCopy">
<image :src="BASE_IMG_URL+'img/more.png'"></image>
<view>更多</view>
</view>
</view>
</view>
</template>
<script>
import { BASE_IMG_URL } from '@/util/api.js'
export default{
props:{
copyList:{
type:Array,
default:[]
}
},
data() {
return {
BASE_IMG_URL:BASE_IMG_URL,
}
},
methods:{
selectCopy() {
uni.navigateTo({
url: '/pagesA/crm/selectMember/selectMember?action=2'
})
},
//删除 抄送人
delCopy(index) {
this.$emit('delCopyList',index)
},
}
}
</script>
<style lang="scss" scoped>
.affiliation {
background-color: #fff;
margin-bottom: 20rpx;
padding-bottom: 40rpx;
.aff_head {
height: 100rpx;
line-height: 100rpx;
padding-left: 30rpx;
}
.aff_con {
display: flex;
text-align: center;
flex-wrap: wrap;
.aff_item {
width: 100rpx;
margin-right: 15rpx;
margin-bottom:15rpx;
image {
margin-bottom: 15rpx;
width: 60rpx;
height: 60rpx;
border-radius: 50%;
}
}
.affbox {
position: relative;
.delremind {
width: 32rpx;
height: 32rpx;
border-radius: 50%;
position: absolute;
right: -16rpx;
top: -16rpx;
background: rgba(0, 0, 0, 0.5);
z-index: 2;
}
}
.aff_last {
image {
margin-bottom: 15rpx;
width: 80rpx;
height: 50rpx;
}
}
}
}
</style>