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">
@@ -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">
@@ -86,10 +83,13 @@
<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>
@@ -104,8 +104,7 @@
<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>
@@ -161,10 +160,10 @@ 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() {

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;