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">
@@ -10,7 +11,7 @@
<span class="titlesContent">查看全部活动和本月新增</span> <span class="titlesContent">查看全部活动和本月新增</span>
</div> </div>
<img src="./img/1.png" alt="" /> <img src="./img/1.png" alt=""/>
</div> </div>
<div class="card" @click="toList(1)"> <div class="card" @click="toList(1)">
@@ -19,7 +20,7 @@
<span class="titlesContent">查看全部参与操办信息和本月新增</span> <span class="titlesContent">查看全部参与操办信息和本月新增</span>
</div> </div>
<img src="./img/2.png" alt="" /> <img src="./img/2.png" alt=""/>
</div> </div>
<div class="card" @click="toList(2)"> <div class="card" @click="toList(2)">
@@ -28,7 +29,7 @@
<span class="titlesContent">查看全部婚礼和本月新增</span> <span class="titlesContent">查看全部婚礼和本月新增</span>
</div> </div>
<img src="./img/3.png" alt="" /> <img src="./img/3.png" alt=""/>
</div> </div>
<div class="card" @click="toList(3)"> <div class="card" @click="toList(3)">
@@ -37,7 +38,7 @@
<span class="titlesContent">查看全部丧礼和本月新增</span> <span class="titlesContent">查看全部丧礼和本月新增</span>
</div> </div>
<img src="./img/4.png" alt="" /> <img src="./img/4.png" alt=""/>
</div> </div>
</div> </div>
@@ -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">
@@ -80,10 +83,11 @@
</div> </div>
<div class="imgs"> <div class="imgs">
<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>
@@ -93,21 +97,22 @@
</template> </template>
</AiCard> </AiCard>
<u-loadmore :status="loadmore" color="#999" font-size="24" margin-top="32" margin-bottom="80" /> <u-loadmore :status="loadmore" color="#999" font-size="24" margin-top="32" margin-bottom="80"/>
</template> </template>
<AiEmpty description="暂无数据" v-else></AiEmpty> <AiEmpty description="暂无数据" v-else></AiEmpty>
<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>
<script> <script>
import echarts from 'echarts' import echarts from 'echarts'
import { mapState } from 'vuex' import {mapState} from 'vuex'
export default { export default {
name: 'AppMarryAndDie', name: 'AppMarryAndDie',
@@ -193,7 +198,7 @@ export default {
type: 'category', type: 'category',
data: data.map((v) => v.name.replace('数量', '').replace('和操办登记', '')), data: data.map((v) => v.name.replace('数量', '').replace('和操办登记', '')),
axisLine: { axisLine: {
lineStyle: { color: '#157EFF' }, lineStyle: {color: '#157EFF'},
}, },
tooltip: { tooltip: {
show: true, show: true,
@@ -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() {
@@ -265,21 +271,21 @@ export default {
}, },
toAdd() { toAdd() {
uni.navigateTo({ url: `./Add` }) uni.navigateTo({url: `./Add`})
}, },
toList(num) { toList(num) {
if (num == 0) { if (num == 0) {
uni.navigateTo({ url: `./AllActiveList` }) uni.navigateTo({url: `./AllActiveList`})
} }
if (num == 1) { if (num == 1) {
uni.navigateTo({ url: `./CadreList` }) uni.navigateTo({url: `./CadreList`})
} }
if (num == 2) { if (num == 2) {
uni.navigateTo({ url: `./MarryList` }) uni.navigateTo({url: `./MarryList`})
} }
if (num == 3) { if (num == 3) {
uni.navigateTo({ url: `./FuneralList` }) uni.navigateTo({url: `./FuneralList`})
} }
}, },
@@ -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;