This commit is contained in:
花有清香月有阴
2021-12-24 17:57:58 +08:00
parent 8d873171fe
commit c142b0a568
5 changed files with 181 additions and 46 deletions

View File

@@ -39,9 +39,22 @@
<span class="right">{{ item.address }}</span> <span class="right">{{ item.address }}</span>
</div> </div>
<div class="contents">
<span>上报内容</span>
<span class="right">{{ item.content }}</span>
</div>
<div class="imgs">
<img :src="e.url" alt="" v-for="(e, i) in item.files" :key="i" />
</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>
<span class="types" :style="{ background: item.modeType == 0 ? '#42D784' : '#1AAAFF' }" style="margin-left: 16px">
{{ $dict.getLabel('modeType', item.modeType) }}
</span>
</template> </template>
<template #menu> <template #menu>
@@ -83,7 +96,7 @@ export default {
}) })
}, },
onShow() { onShow() {
document.title = "婚丧嫁娶" document.title = '婚丧嫁娶'
}, },
methods: { methods: {
getCount() { getCount() {
@@ -186,8 +199,10 @@ export default {
.names, .names,
.phones, .phones,
.times, .times,
.areaNames { .areaNames,
.contents {
display: flex; display: flex;
margin-top: 8px;
.right { .right {
width: 76%; width: 76%;
margin-left: 32px; margin-left: 32px;
@@ -201,6 +216,25 @@ export default {
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
} }
} }
.contents {
.right {
-webkit-line-clamp: 3;
}
}
.imgs {
margin-top: 8px;
img {
width: 32%;
height: 204px;
margin-right: 8px;
}
img:nth-child(3n) {
margin-right: 0;
}
}
.types { .types {
display: inline-block; display: inline-block;
margin-top: 32px; margin-top: 32px;

View File

@@ -1,7 +1,6 @@
<template> <template>
<div class="AppMarryAndDie"> <div class="AppMarryAndDie">
<u-tabs :list="tabList" :is-scroll="false" :current="currentTabs" height="96" bg-color="#3975C6" <u-tabs :list="tabList" :is-scroll="false" :current="currentTabs" height="96" bg-color="#3975C6" inactive-color="#fff" active-color="#fff" @change="change"></u-tabs>
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">
@@ -11,7 +10,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)">
@@ -20,7 +19,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)">
@@ -29,7 +28,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)">
@@ -38,7 +37,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>
@@ -67,9 +66,7 @@
<div class="times"> <div class="times">
<span>上报时间</span> <span>上报时间</span>
<span class="right" v-if="item.createTime">{{ <span class="right" v-if="item.createTime">{{ item.createTime.substring(0, item.createTime.length - 3) }}</span>
item.createTime.substring(0, item.createTime.length - 3)
}}</span>
</div> </div>
<div class="areaNames"> <div class="areaNames">
@@ -83,13 +80,16 @@
</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" <span class="types" :style="{ background: item.type == 0 ? '#FF65B8' : item.type == 1 ? '#FF883C' : '#1AAAFF' }">
:style="{ background: item.type == 0 ? '#FF65B8' : item.type == 1 ? '#FF883C' : '#1AAAFF' }">
{{ $dict.getLabel('marriageType', item.type) }} {{ $dict.getLabel('marriageType', item.type) }}
</span> </span>
<span class="types" :style="{ background: item.modeType == 0 ? '#42D784' : '#1AAAFF' }" style="margin-left: 16px">
{{ $dict.getLabel('modeType', item.modeType) }}
</span>
</template> </template>
<template #menu> <template #menu>
@@ -97,22 +97,21 @@
</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" <u-modal v-model="deletShow" content="您确认要删除该条信息吗?" :show-cancel-button="true" :mask-close-able="true" :show-title="false" @confirm="delet"></u-modal>
: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',
@@ -161,27 +160,27 @@ export default {
}) })
}, },
onShow() { onShow() {
document.title = "婚丧嫁娶" document.title = '婚丧嫁娶'
}, },
mounted() { mounted() {
this.Echart = echarts.init(document.getElementById('yearStatistic')) this.Echart = echarts.init(document.getElementById('yearStatistic', 'modeType'))
}, },
methods: { methods: {
getList() { getList() {
this.$http this.$http
.post('/app/appmarriagefuneralinfo/list', null, { .post('/app/appmarriagefuneralinfo/list', null, {
params: { params: {
size: 6, size: 6,
current: this.current, current: this.current,
createUserId: this.user.id, createUserId: this.user.id,
}, },
}) })
.then((res) => { .then((res) => {
if (res.code == 0) { if (res.code == 0) {
this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records
this.pages = res.data.pages this.pages = res.data.pages
} }
}) })
}, },
getEchart() { getEchart() {
@@ -198,7 +197,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,
@@ -271,21 +270,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` })
} }
}, },

View File

@@ -39,9 +39,22 @@
<span class="right">{{ item.address }}</span> <span class="right">{{ item.address }}</span>
</div> </div>
<div class="contents">
<span>上报内容</span>
<span class="right">{{ item.content }}</span>
</div>
<div class="imgs">
<img :src="e.url" alt="" v-for="(e, i) in item.files" :key="i" />
</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>
<span class="types" :style="{ background: item.modeType == 0 ? '#42D784' : '#1AAAFF' }" style="margin-left: 16px">
{{ $dict.getLabel('modeType', item.modeType) }}
</span>
</template> </template>
<template #menu> <template #menu>
@@ -83,7 +96,7 @@ export default {
}) })
}, },
onShow() { onShow() {
document.title = "婚丧嫁娶" document.title = '婚丧嫁娶'
}, },
methods: { methods: {
getCount() { getCount() {
@@ -186,8 +199,10 @@ export default {
.names, .names,
.phones, .phones,
.times, .times,
.areaNames { .areaNames,
.contents {
display: flex; display: flex;
margin-top: 8px;
.right { .right {
width: 76%; width: 76%;
margin-left: 32px; margin-left: 32px;
@@ -201,6 +216,25 @@ export default {
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
} }
} }
.contents {
.right {
-webkit-line-clamp: 3;
}
}
.imgs {
margin-top: 8px;
img {
width: 32%;
height: 204px;
margin-right: 8px;
}
img:nth-child(3n) {
margin-right: 0;
}
}
.types { .types {
display: inline-block; display: inline-block;
margin-top: 32px; margin-top: 32px;

View File

@@ -39,9 +39,22 @@
<span class="right">{{ item.address }}</span> <span class="right">{{ item.address }}</span>
</div> </div>
<div class="contents">
<span>上报内容</span>
<span class="right">{{ item.content }}</span>
</div>
<div class="imgs">
<img :src="e.url" alt="" v-for="(e, i) in item.files" :key="i" />
</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>
<span class="types" :style="{ background: item.modeType == 0 ? '#42D784' : '#1AAAFF' }" style="margin-left: 16px">
{{ $dict.getLabel('modeType', item.modeType) }}
</span>
</template> </template>
<template #menu> <template #menu>
@@ -83,7 +96,7 @@ export default {
}) })
}, },
onShow() { onShow() {
document.title = "婚丧嫁娶" document.title = '婚丧嫁娶'
}, },
methods: { methods: {
getCount() { getCount() {
@@ -186,8 +199,10 @@ export default {
.names, .names,
.phones, .phones,
.times, .times,
.areaNames { .areaNames,
.contents {
display: flex; display: flex;
margin-top: 8px;
.right { .right {
width: 76%; width: 76%;
margin-left: 32px; margin-left: 32px;
@@ -201,6 +216,25 @@ export default {
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
} }
} }
.contents {
.right {
-webkit-line-clamp: 3;
}
}
.imgs {
margin-top: 8px;
img {
width: 32%;
height: 204px;
margin-right: 8px;
}
img:nth-child(3n) {
margin-right: 0;
}
}
.types { .types {
display: inline-block; display: inline-block;
margin-top: 32px; margin-top: 32px;

View File

@@ -39,9 +39,22 @@
<span class="right">{{ item.address }}</span> <span class="right">{{ item.address }}</span>
</div> </div>
<div class="contents">
<span>上报内容</span>
<span class="right">{{ item.content }}</span>
</div>
<div class="imgs">
<img :src="e.url" alt="" v-for="(e, i) in item.files" :key="i" />
</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>
<span class="types" :style="{ background: item.modeType == 0 ? '#42D784' : '#1AAAFF' }" style="margin-left: 16px">
{{ $dict.getLabel('modeType', item.modeType) }}
</span>
</template> </template>
<template #menu> <template #menu>
@@ -83,7 +96,7 @@ export default {
}) })
}, },
onShow() { onShow() {
document.title = "婚丧嫁娶" document.title = '婚丧嫁娶'
}, },
methods: { methods: {
getCount() { getCount() {
@@ -186,8 +199,10 @@ export default {
.names, .names,
.phones, .phones,
.times, .times,
.areaNames { .areaNames,
.contents {
display: flex; display: flex;
margin-top: 8px;
.right { .right {
width: 76%; width: 76%;
margin-left: 32px; margin-left: 32px;
@@ -201,6 +216,25 @@ export default {
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
} }
} }
.contents {
.right {
-webkit-line-clamp: 3;
}
}
.imgs {
margin-top: 8px;
img {
width: 32%;
height: 204px;
margin-right: 8px;
}
img:nth-child(3n) {
margin-right: 0;
}
}
.types { .types {
display: inline-block; display: inline-block;
margin-top: 32px; margin-top: 32px;