hls_crm/components/examineTemplate.vue

138 lines
2.7 KiB
Vue

<template>
<view>
<view class="affiliation">
<view class="aff_head">
<text style="color: red;" v-if="flag">*</text>
{{title}}
<view class="order" v-if="title == '由谁审核'">依次审批</view>
</view>
<view class="aff_con">
<view class="aff_item affbox" v-for="(item,index) in remindPeople" :key="index">
<image :src="BASE_IMG_URL+'close.png'" class="delremind" v-if="item.isDel" @click="delRemind(index)" mode="scaleToFill"></image>
<image class="peopleimg" :src="item.img ? item.img : BASE_IMG_URL+'headImg.png'" mode="scaleToFill"></image>
<view>{{item.name}}</view>
</view>
<view class="aff_last" @click="moreClick">
<image :src="BASE_IMG_URL+'morebtn.png'" mode="scaleToFill"></image>
</view>
</view>
</view>
</view>
</template>
<script>
import { BASE_IMG_URL } from '@/util/api.js'
export default{
props:{
remindPeople:{
type:Array,
default:[]
},
title:{
type:String,
default:'由谁审核'
},
flag:{
type:Boolean,
default:true
}
},
data() {
return{
BASE_IMG_URL:BASE_IMG_URL
}
},
onShow() {
//获取 默认需要提醒的人
this.getDefaultRemind()
},
methods:{
//更多
moreClick() {
uni.navigateTo({
url: '/pagesA/crm/selectMember/selectMember',
success:()=>{
uni.setStorageSync('isJumpPage',true)
}
})
},
//删除 提醒人
delRemind(index) {
this.$emit('delExamine',index)
},
}
}
</script>
<style lang="scss" scoped>
.info_head{
height: 80rpx;
line-height: 80rpx;
font-size: 30rpx;
color: #999;
padding-left: 69rpx;
}
.affiliation {
background-color: #fff;
margin-bottom: 20rpx;
padding-bottom: 40rpx;
.aff_head {
padding:30rpx 0 30rpx 47rpx;
font-size: 32rpx;
color: #999;
display: flex;
justify-content: flex-start;
align-items: center;
.order{
font-size:20rpx;
color:$uni-text-color;
padding:3rpx;
border:2rpx solid $uni-text-color;
border-radius: 5rpx;
margin-left:8rpx;
height:40rpx;
}
}
.aff_con {
display: flex;
flex-wrap: wrap;
text-align: center;
padding:0 20px;
.aff_item {
width: 100rpx;
margin-bottom:15rpx;
margin-right:15rpx;
.peopleimg{
width: 50rpx;
height: 50rpx;
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 {
width: 48rpx;
height: 48rpx;
border-radius: 50%;
// border: 1px solid #999999;
text-align: center;
image {
width:48rpx;
height: 48rpx;
}
}
}
}
</style>