245 lines
5.3 KiB
Vue
245 lines
5.3 KiB
Vue
<template>
|
|
<view class="c_task_item" @click="clickTask">
|
|
<view class="personnel_list">
|
|
<view class="cards">
|
|
<view class="cards_head">
|
|
<view style="font-size: 32rpx; display: flex;padding-right: 16rpx;">
|
|
<view style="flex-shrink: 0;margin-right: 10rpx;">完成时间: {{datas.create_time}}</view>
|
|
<view>{{ datas.title }}</view>
|
|
</view>
|
|
<view style="flex-shrink: 0;">点击查看</view>
|
|
</view>
|
|
<view class="cards_content">
|
|
<view class="right" style="width: 100%">
|
|
|
|
<view style="
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
">
|
|
<view>
|
|
<text> 人员名称:</text>
|
|
<text>{{datas.name }}</text>
|
|
</view>
|
|
|
|
</view>
|
|
<view class="" style="display: flex">
|
|
<text> 联系电话:</text>
|
|
<text>{{datas.phone}}</text>
|
|
|
|
</view>
|
|
<view class="">
|
|
<text>所属片区 :</text>
|
|
<text> {{ datas.village_name +datas.brigade_name }} </text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import {
|
|
Toast
|
|
} from '../../libs/uniApi';
|
|
export default {
|
|
name: "task",
|
|
props: {
|
|
datas: {
|
|
type: Object,
|
|
default: function() {
|
|
return {}
|
|
}
|
|
}
|
|
},
|
|
data() {
|
|
return {
|
|
extend: {}
|
|
};
|
|
},
|
|
mounted() {
|
|
this.$props.datas.extend ? this.extend = this.$props.datas.extend : null;
|
|
},
|
|
methods: {
|
|
|
|
clickTask() {
|
|
|
|
uni.navigateTo({
|
|
url: `/pages/business/detail?id=${this.$props.datas?.id}`
|
|
})
|
|
// if ((this.$props.datas.type != 31) && this.$props.datas.status !== 2 && this.$props.datas.status !== 1) {
|
|
// return this.$props.datas.status == 3 ? Toast('任务已完成!') : Toast('任务已结束!');
|
|
// }
|
|
|
|
},
|
|
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
.c_task_item {
|
|
margin: 0 auto;
|
|
// margin-bottom: 28rpx;
|
|
width: 694rpx;
|
|
// background: #FFFFFF;
|
|
border-radius: 14rpx 14rpx 14rpx 14rpx;
|
|
opacity: 1;
|
|
font-size: 25rpx;
|
|
font-weight: 400;
|
|
color: #999999;
|
|
line-height: 39rpx;
|
|
|
|
.text {
|
|
font-size: 28rpx;
|
|
font-weight: 400;
|
|
color: #333333;
|
|
line-height: 39rpx;
|
|
margin-left: 18rpx;
|
|
}
|
|
|
|
.top {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 28rpx;
|
|
border-bottom: 1rpx solid #f5f5f5ff;
|
|
|
|
.left {
|
|
display: flex;
|
|
justify-content: left;
|
|
align-items: center;
|
|
}
|
|
|
|
.right {
|
|
.icon {
|
|
width: 43rpx;
|
|
height: 43rpx;
|
|
}
|
|
}
|
|
}
|
|
|
|
.bottom {
|
|
padding: 28rpx;
|
|
display: flex;
|
|
|
|
.b_left {
|
|
width: 103.39rpx;
|
|
height: 94.63rpx;
|
|
margin-right: 18rpx;
|
|
}
|
|
|
|
.b_right {
|
|
flex: 1;
|
|
display: flex;
|
|
justify-content: space-around;
|
|
flex-direction: column;
|
|
|
|
.item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
// margin: 18rpx 28rpx 0 28rpx;
|
|
|
|
// &:last-child {
|
|
// padding-bottom: 18rpx;
|
|
// }
|
|
|
|
.left {
|
|
display: flex;
|
|
}
|
|
|
|
.right {
|
|
font-size: 32rpx;
|
|
font-weight: 400;
|
|
color: #3274f9;
|
|
line-height: 39rpx;
|
|
|
|
.price {
|
|
font-size: 25rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.personnel_list {
|
|
// padding: 28rpx 0;
|
|
padding-bottom: 28rpx;
|
|
|
|
.cards {
|
|
margin: 0 auto;
|
|
// margin-bottom: 28rpx;
|
|
width: 694rpx;
|
|
background: #ffffff;
|
|
border-radius: 30rpx;
|
|
opacity: 1;
|
|
overflow: hidden;
|
|
// box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
|
|
|
|
.cards_head {
|
|
padding: 28rpx;
|
|
background-color: $theme-oa-color;
|
|
color: white;
|
|
min-height: 100rpx;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.cards_content {
|
|
padding: 28rpx;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
|
|
.left {
|
|
text-align: center;
|
|
// padding: 15rpx 25rpx;
|
|
padding-top: 20rpx;
|
|
|
|
width: 160rpx;
|
|
background-color: $theme-oa-color;
|
|
color: white;
|
|
border-radius: 40rpx;
|
|
|
|
.cir {
|
|
width: 120rpx;
|
|
height: 120rpx;
|
|
background-color: #ffffff;
|
|
margin-left: 25rpx;
|
|
border-radius: 120rpx;
|
|
position: relative;
|
|
}
|
|
}
|
|
|
|
.right {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
|
|
view {
|
|
text:nth-child(2) {
|
|
margin-left: 20rpx;
|
|
}
|
|
|
|
.status {
|
|
display: inline-block;
|
|
float: right;
|
|
color: white;
|
|
text-align: center;
|
|
padding: 10rpx 30rpx;
|
|
border-radius: 30rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.u_avatar {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
|
|
transform: translate(-50%, -50%);
|
|
}
|
|
}
|
|
}
|
|
</style> |