This commit is contained in:
liuye
2021-12-24 16:26:40 +08:00

View File

@@ -1,6 +1,7 @@
<template> <template>
<div class="AppMarryAndDie"> <div class="AppMarryAndDie">
<u-tabs :list="tabList" :is-scroll="false" :current="currentTabs" height="96" bg-color="#3975C6" inactive-color="#fff" active-color="#fff" @change="change"></u-tabs> <u-tabs :list="tabList" :is-scroll="false" :current="currentTabs" height="96" bg-color="#3975C6"
inactive-color="#fff" active-color="#fff" @change="change"></u-tabs>
<div v-show="currentTabs == 0" class="msg"> <div v-show="currentTabs == 0" class="msg">
<div class="box"> <div class="box">
@@ -52,7 +53,7 @@
<div v-if="currentTabs == 1" class="myReport"> <div v-if="currentTabs == 1" class="myReport">
<template v-if="datas.length > 0"> <template v-if="datas.length > 0">
<AiCard v-for="(item, i) in datas" :key="i"> <AiCard v-for="(item, i) in datas" :key="i" :ref="item.id">
<template #custom> <template #custom>
<div class="names"> <div class="names">
<span>事主姓名</span> <span>事主姓名</span>
@@ -66,7 +67,9 @@
<div class="times"> <div class="times">
<span>上报时间</span> <span>上报时间</span>
<span class="right" v-if="item.createTime">{{ item.createTime.substring(0, item.createTime.length - 3) }}</span> <span class="right" v-if="item.createTime">{{
item.createTime.substring(0, item.createTime.length - 3)
}}</span>
</div> </div>
<div class="areaNames"> <div class="areaNames">
@@ -83,7 +86,8 @@
<img :src="e.url" alt="" v-for="(e, i) in item.files" :key="i"/> <img :src="e.url" alt="" v-for="(e, i) in item.files" :key="i"/>
</div> </div>
<span class="types" :style="{ background: item.type == 0 ? '#FF65B8' : item.type == 1 ? '#FF883C' : '#1AAAFF' }"> <span class="types"
:style="{ background: item.type == 0 ? '#FF65B8' : item.type == 1 ? '#FF883C' : '#1AAAFF' }">
{{ $dict.getLabel('marriageType', item.type) }} {{ $dict.getLabel('marriageType', item.type) }}
</span> </span>
</template> </template>
@@ -100,7 +104,8 @@
<div class="fixedBtn" @click="toAdd">我要上报</div> <div class="fixedBtn" @click="toAdd">我要上报</div>
<u-modal v-model="deletShow" content="您确认要删除该条信息吗?" :show-cancel-button="true" :mask-close-able="true" :show-title="false" @confirm="delet"></u-modal> <u-modal v-model="deletShow" content="您确认要删除该条信息吗?" :show-cancel-button="true" :mask-close-able="true"
:show-title="false" @confirm="delet"></u-modal>
</div> </div>
</div> </div>
</template> </template>
@@ -253,6 +258,7 @@ export default {
toDetele(item) { toDetele(item) {
this.deletShow = true this.deletShow = true
this.deletId = item.id this.deletId = item.id
this.$refs?.[item.id]?.[0]?.handleClose()
}, },
delet() { delet() {
@@ -305,17 +311,20 @@ uni-page-body {
height: 100%; height: 100%;
background: #f3f6f9; background: #f3f6f9;
} }
.AppMarryAndDie { .AppMarryAndDie {
height: 100%; height: 100%;
.msg { .msg {
height: 100%; height: 100%;
background: #fff; background: #fff;
.box { .box {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
flex-wrap: wrap; flex-wrap: wrap;
padding: 32px; padding: 32px;
.card { .card {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
@@ -325,20 +334,24 @@ uni-page-body {
padding: 18px 24px 34px; padding: 18px 24px 34px;
box-sizing: border-box; box-sizing: border-box;
background: #f6f7f8; background: #f6f7f8;
.imgleft { .imgleft {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
margin-right: 20px; margin-right: 20px;
width: 64%; width: 64%;
.titles { .titles {
font-size: 30px; font-size: 30px;
font-weight: 500; font-weight: 500;
} }
.titlesContent { .titlesContent {
font-size: 24px; font-size: 24px;
color: #999999; color: #999999;
} }
} }
img { img {
width: 80px; width: 80px;
height: 80px; height: 80px;
@@ -361,24 +374,28 @@ uni-page-body {
font-size: 32px; font-size: 32px;
font-weight: 500; font-weight: 500;
} }
.yearStatistics { .yearStatistics {
width: 100%; width: 100%;
height: 600px; height: 600px;
} }
} }
} }
.myReport { .myReport {
background: #f3f6f9; background: #f3f6f9;
padding-bottom: 112px; padding-bottom: 112px;
::v-deep .AiCard { ::v-deep .AiCard {
background: #f3f6f9; background: #f3f6f9;
.start { .start {
display: flex; display: flex;
align-items: center; align-items: center;
background: #fff; background: #fff;
padding: 32px 32px 36px 32px; padding: 32px 32px 36px 32px;
border-radius: 16px; border-radius: 16px;
.names, .names,
.phones, .phones,
.times, .times,
@@ -386,6 +403,7 @@ uni-page-body {
.contents { .contents {
display: flex; display: flex;
margin-top: 8px; margin-top: 8px;
.right { .right {
width: 76%; width: 76%;
margin-left: 32px; margin-left: 32px;
@@ -399,18 +417,22 @@ uni-page-body {
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
} }
} }
.contents { .contents {
.right { .right {
-webkit-line-clamp: 3; -webkit-line-clamp: 3;
} }
} }
.imgs { .imgs {
margin-top: 8px; margin-top: 8px;
img { img {
width: 32%; width: 32%;
height: 204px; height: 204px;
margin-right: 8px; margin-right: 8px;
} }
img:nth-child(3n) { img:nth-child(3n) {
margin-right: 0; margin-right: 0;
} }
@@ -424,9 +446,11 @@ uni-page-body {
color: #fff; color: #fff;
} }
} }
.mask { .mask {
.moreMenu { .moreMenu {
transform: translate(-175px, 20px); transform: translate(-175px, 20px);
.menu { .menu {
text-align: center; text-align: center;
line-height: 80px; line-height: 80px;