乡村相册

This commit is contained in:
yanran200730
2022-05-18 18:06:39 +08:00
parent 5e92053f60
commit ddc813efd1
18 changed files with 746 additions and 574 deletions

View File

@@ -10,11 +10,11 @@
<div class="album-total">
<div class="album-total__item">
<span>今日拍照人数</span>
<i>5</i>
<i>{{ countPhotographer || 0 }}</i>
</div>
<div class="album-total__item">
<span>今日拍照数量</span>
<i>5</i>
<i>{{ countPhotoNo || 0 }}</i>
</div>
</div>
<div class="album-operate">
@@ -45,11 +45,11 @@
<div class="album-list">
<h2>工作相册</h2>
<div class="album-list__wrapper">
<div class="item" v-for="(item, index) in 3" :key="index" @click="linkTo('./AlbumDetail')">
<div class="item" v-for="(item, index) in list" :key="index" @click="linkTo('./AlbumDetail?id=' + item.id)">
<span>未查看</span>
<image src="https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/fa50994a01ff415294729ac6e0623845~tplv-k3u1fbpfcp-no-mark:240:240:240:160.awebp?" />
<div class="item-bottom">
<h2>工作相册</h2>
<h2>{{ item.albumName }}</h2>
<div class="item-bottom__info">
<div class="left">
<span>今日新增</span>
@@ -69,7 +69,6 @@
</div>
</div>
</div>
<img :src="src">
</div>
</template>
@@ -79,12 +78,15 @@
data () {
return {
src: ''
countPhotoNo: '',
countPhotographer: '',
list: []
}
},
onLoad () {
mounted () {
this.getCountPhotoNo()
this.getAlbumList()
},
methods: {
@@ -94,6 +96,31 @@
})
},
getCountPhotoNo () {
this.$http.post('/api/appalbumphoto/countPhotoNo').then(res => {
if (res.code === 0) {
this.countPhotoNo = res.data
}
})
this.$http.post('/api/appalbumphoto/countPhotographer').then(res => {
if (res.code === 0) {
this.countPhotographer = res.data
}
})
},
getAlbumList () {
this.$http.post('/api/appalbum/list', null, {
parmas: {
size: 100
}
}).then(res => {
if (res.code === 0) {
this.list = res.data.records
}
})
},
addPhoto () {
uni.chooseImage({
count: 1,

View File

@@ -1,16 +1,18 @@
<template>
<div class="Watermark2" @click="linkTo('./WatermarkConfig')">
<div class="Watermark3" @click="linkTo('./WatermarkConfig')">
<div class="top">
<div class="left">
<h2>{{ time }}</h2>
</div>
<div class="right">
<h2>{{ date }} </h2>
<p>{{ weekCn }} 7</p>
</div>
<h2>巡查</h2>
<span>陶白白</span>
</div>
<div class="middle">
<h2>{{ time }}</h2>
<span> 7</span>
</div>
<p>{{ date }} {{ weekCn }}</p>
<div class="text">
<span>铁路巡检</span>
<image src="./../../images/quotes.png" />
</div>
<p>武汉市·绿地蓝海国际A座</p>
<div class="text">#这是一条备注信息</div>
</div>
</template>
@@ -80,76 +82,75 @@
</script>
<style lang="scss" scoped>
.Watermark2 {
.Watermark3 {
width: 348px;
line-height: 1;
padding: 16px;
background: rgba(56, 167, 255, 0.6);
border-radius: 4px;
* {
box-sizing: border-box;
}
.text {
min-width: 274px;
height: 48px;
line-height: 48px;
padding: 0 16px;
position: relative;
margin-top: 20px;
padding-left: 10px;
font-size: 28px;
image {
position: absolute;
bottom: 14px;
left: 0;
width: 28px;
height: 24px;
}
}
.middle {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 10px;
h2 {
font-size: 68px;
font-weight: normal;
}
span {
color: #53FBFF;
font-size: 28px;
}
}
& > p {
margin-top: 16px;
font-weight: 500;
font-size: 28px;
background: linear-gradient(270deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
}
.top {
display: flex;
align-items: center;
justify-content: space-between;
border-radius: 6px 0 0 6px;
border-bottom: 4px solid #FFE97A;
.left {
position: relative;
margin-right: 38px;
&:after {
position: absolute;
top: 50%;
right: -16px;
z-index: 1;
width: 6px;
height: 72px;
background: #F8BC58;
transform: translateY(-50%);
content: '';
}
h2 {
font-size: 68px;
font-weight: 500;
color: #FFFFFF;
line-height: 80px;
}
h2 {
width: 100px;
height: 56px;
line-height: 56px;
text-align: center;
color: #498abe;
font-size: 32px;
border-radius: 6px 6px 0 0;
background: #FFE97A;
}
.right {
font-size: 24px;
font-weight: 500;
color: #FFFFFF;
h2 {
margin-bottom: 8px;
font-weight: 500;
font-size: 24px;
}
}
}
& > p {
margin: 20px 0 16px;
font-weight: 600;
color: #fff;
font-size: 24px;
}
.info {
line-height: 40px;
margin: 32px 0;
padding-left: 22px;
border-left: 6px solid #F8BC58;
p:nth-of-type(2) {
margin: 8px 0;
span {
font-size: 28px;
}
}
}

View File

@@ -1,18 +1,16 @@
<template>
<div class="Watermark3" @click="linkTo('./WatermarkConfig')">
<div class="Watermark2" @click="linkTo('./WatermarkConfig')">
<div class="top">
<h2>巡查</h2>
<span>陶白白</span>
</div>
<div class="middle">
<h2>{{ time }}</h2>
<span> 7</span>
</div>
<p>{{ date }} {{ weekCn }}</p>
<div class="text">
<span>铁路巡检</span>
<image src="./../../images/quotes.png" />
<div class="left">
<h2>{{ time }}</h2>
</div>
<div class="right">
<h2>{{ date }} </h2>
<p>{{ weekCn }} 7</p>
</div>
</div>
<p>武汉市·绿地蓝海国际A座</p>
<div class="text">#这是一条备注信息</div>
</div>
</template>
@@ -82,75 +80,76 @@
</script>
<style lang="scss" scoped>
.Watermark3 {
width: 348px;
line-height: 1;
padding: 16px;
background: rgba(56, 167, 255, 0.6);
border-radius: 4px;
.Watermark2 {
* {
box-sizing: border-box;
}
.text {
position: relative;
margin-top: 20px;
padding-left: 10px;
font-size: 28px;
image {
position: absolute;
bottom: 14px;
left: 0;
width: 28px;
height: 24px;
}
}
.middle {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 10px;
h2 {
font-size: 68px;
font-weight: normal;
}
span {
color: #53FBFF;
font-size: 28px;
}
}
& > p {
margin-top: 16px;
font-weight: 500;
min-width: 274px;
height: 48px;
line-height: 48px;
padding: 0 16px;
font-size: 28px;
background: linear-gradient(270deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
}
.top {
display: flex;
align-items: center;
justify-content: space-between;
border-radius: 6px 0 0 6px;
border-bottom: 4px solid #FFE97A;
h2 {
width: 100px;
height: 56px;
line-height: 56px;
text-align: center;
color: #498abe;
font-size: 32px;
border-radius: 6px 6px 0 0;
background: #FFE97A;
.left {
position: relative;
margin-right: 38px;
&:after {
position: absolute;
top: 50%;
right: -16px;
z-index: 1;
width: 6px;
height: 72px;
background: #F8BC58;
transform: translateY(-50%);
content: '';
}
h2 {
font-size: 68px;
font-weight: 500;
color: #FFFFFF;
line-height: 80px;
}
}
span {
font-size: 28px;
.right {
font-size: 24px;
font-weight: 500;
color: #FFFFFF;
h2 {
margin-bottom: 8px;
font-weight: 500;
font-size: 24px;
}
}
}
& > p {
margin: 20px 0 16px;
font-weight: 600;
color: #fff;
font-size: 24px;
}
.info {
line-height: 40px;
margin: 32px 0;
padding-left: 22px;
border-left: 6px solid #F8BC58;
p:nth-of-type(2) {
margin: 8px 0;
}
}
}

View File

@@ -1,25 +1,16 @@
<template>
<div class="Watermark4" @click="linkTo('./WatermarkConfig')">
<div class="top">
<image src="./../../images/fangyishuiyin.png" />
<h2>日常消杀</h2>
<div class="Watermark6" @click="linkTo('./WatermarkConfig')">
<div class="title">
<h2>我是标题</h2>
</div>
<div class="Watermark4-body">
<h2>{{ time }}</h2>
<p>{{ date }} {{ weekCn }}</p>
<div class="info">
<div class="info-item">
<label>地点</label>
<span>武汉市·绿地蓝海A座</span>
</div>
<div class="info-item">
<label>人员</label>
<span>陶白白</span>
</div>
<div class="info-item">
<label>备注</label>
<span>这是一条很长的备注信息</span>
</div>
<div class="info">
<div class="info-item">
<label>时间</label>
<span>{{ date }}</span>
</div>
<div class="info-item">
<label>地点</label>
<span>武汉市·绿地蓝海A座</span>
</div>
</div>
</div>
@@ -31,46 +22,15 @@
data () {
return {
date: '',
time: '',
week: '',
timer: null
}
},
computed: {
weekCn() {
if (this.week === 1) {
return '星期一'
}
if (this.week === 2) {
return '星期二'
}
if (this.week === 3) {
return '星期三'
}
if (this.week === 4) {
return '星期四'
}
if (this.week === 5) {
return '星期五'
}
if (this.week === 6) {
return '星期六'
}
return '星期天'
}
},
created () {
this.date = this.$dayjs(new Date).format('YYYY-MM-DD')
this.time = this.$dayjs().format('HH:mm')
this.date = this.$dayjs().format('YYYY-MM-DD HH:mm')
this.timer = setInterval(() => {
this.date = this.$dayjs().format('YYYY-MM-DD')
this.time = this.$dayjs().format('HH:mm')
this.week = new Date().getDay()
this.date = this.$dayjs().format('YYYY-MM-DD HH:mm')
}, 1000)
},
@@ -91,77 +51,81 @@
</script>
<style lang="scss" scoped>
.Watermark4 {
width: 400px;
line-height: 1;
border-radius: 4px;
.Watermark6 {
width: 440px;
box-sizing: border-box;
h2 {
font-weight: normal;
}
* {
box-sizing: border-box;
}
.top {
position: relative;
width: 400px;
height: 60px;
line-height: 60px;
padding-left: 60px;
background: linear-gradient(270deg, rgba(67, 60, 255, 0) 0%, rgba(60, 163, 255, 0.8) 50%, #3B92FF 100%);
.info {
padding: 24px;
background: rgba(255, 255, 255, 0.7);
image {
position: absolute;
left: -32px;
top: -16px;
z-index: 1;
width: 92px;
height: 112px;
}
.info-item {
display: flex;
line-height: 1.3;
margin-bottom: 8px;
h2 {
font-weight: 500;
font-size: 32px;
color: #fff;
&:last-child {
margin-bottom: 0;
}
label {
color: #333;
font-size: 28px;
}
span {
flex: 1;
text-align: justify;
color: #000000;
font-size: 28px;
}
}
}
.Watermark4-body {
padding: 24px 20px;
background: linear-gradient(270deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.5) 100%);
.title {
position: relative;
height: 60px;
line-height: 60px;
text-align: center;
color: #fff;
background: rgba(23, 91, 255, 0.7);
& > h2 {
line-height: 56px;
font-size: 48px;
font-weight: bold;
color: #FFFFFF;
h2 {
font-size: 32px;
}
& > p {
line-height: 36px;
margin-bottom: 16px;
font-size: 26px;
color: #FFFFFF;
&::after {
position: absolute;
left: 16px;
top: 50%;
z-index: 1;
width: 12px;
height: 12px;
border-radius: 50%;
background: #FFCA32;
content: ' ';
transform: translateY(-50%);
}
.info {
.info-item {
display: flex;
line-height: 1.4;
margin-bottom: 8px;
&:last-child {
margin-bottom: 0;
}
label {
color: #BADCFF;
font-size: 28px;
}
span {
flex: 1;
font-size: 28px;
}
}
&::before {
position: absolute;
right: 16px;
top: 50%;
z-index: 1;
width: 12px;
height: 12px;
border-radius: 50%;
background: #FFCA32;
content: ' ';
transform: translateY(-50%);
}
}
}

View File

@@ -1,35 +1,27 @@
<template>
<div class="Watermark5" @click="linkTo('./WatermarkConfig')">
<div class="Watermark4" @click="linkTo('./WatermarkConfig')">
<div class="top">
<h2>走访慰问</h2>
<div class="right">
<h2>{{ time }}</h2>
<p>{{ date }}</p>
<image src="./../../images/fangyishuiyin.png" />
<h2>日常消杀</h2>
</div>
<div class="Watermark4-body">
<h2>{{ time }}</h2>
<p>{{ date }} {{ weekCn }}</p>
<div class="info">
<div class="info-item">
<label>地点</label>
<span>武汉市·绿地蓝海A座</span>
</div>
<div class="info-item">
<label>人员</label>
<span>陶白白</span>
</div>
<div class="info-item">
<label>备注</label>
<span>这是一条很长的备注信息</span>
</div>
</div>
</div>
<div class="info">
<div class="info-item">
<label>人员</label>
<span>陶白白</span>
</div>
<div class="info-item">
<label>网格</label>
<span>迁延街第一网格</span>
</div>
<div class="info-item">
<label>地点</label>
<span>武汉市·绿地蓝海A座</span>
</div>
<div class="info-item">
<label>服务对象</label>
<span>王一一</span>
</div>
</div>
<div class="bottom">
<span>工作纪实</span>
<i>网格员工作纪实</i>
</div>
<div class="line"></div>
</div>
</template>
@@ -99,108 +91,76 @@
</script>
<style lang="scss" scoped>
.Watermark5 {
width: 440px;
padding: 0 16px 22px;
color: #000;
box-sizing: border-box;
background: #fff;
h2 {
font-weight: normal;
}
.Watermark4 {
width: 400px;
line-height: 1;
border-radius: 4px;
* {
box-sizing: border-box;
}
.line {
margin-top: 4px;
height: 4px;
background: #2145C4;
}
.bottom {
display: flex;
align-items: center;
border: 3px solid #2145C4;
span {
width: 120px;
height: 48px;
line-height: 48px;
text-align: center;
color: #fff;
font-size: 26px;
background: #2145C4;
}
i {
flex: 1;
color: #2145C4;
font-size: 26px;
font-style: normal;
text-align: center;
}
}
.info {
margin-bottom: 16px;
.info-item {
display: flex;
line-height: 1.3;
margin-bottom: 8px;
&:last-child {
margin-bottom: 0;
}
label {
color: #333;
font-size: 26px;
}
span {
color: #000000;
font-size: 26px;
font-weight: 600;
}
}
}
.top {
display: flex;
align-items: center;
justify-content: space-between;
height: 90px;
margin-bottom: 20px;
color: #2145C4;
border-bottom: 4px solid #2145C4;
position: relative;
width: 400px;
height: 60px;
line-height: 60px;
padding-left: 60px;
background: linear-gradient(270deg, rgba(67, 60, 255, 0) 0%, rgba(60, 163, 255, 0.8) 50%, #3B92FF 100%);
image {
position: absolute;
left: -32px;
top: -16px;
z-index: 1;
width: 92px;
height: 112px;
}
h2 {
font-weight: 500;
font-size: 32px;
color: #fff;
}
}
.Watermark4-body {
padding: 24px 20px;
background: linear-gradient(270deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.5) 100%);
& > h2 {
font-size: 32px;
font-weight: 600;
line-height: 56px;
font-size: 48px;
font-weight: bold;
color: #FFFFFF;
}
.right {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
& > p {
line-height: 36px;
margin-bottom: 16px;
font-size: 26px;
color: #FFFFFF;
}
h2 {
width: 96px;
height: 40px;
line-height: 40px;
text-align: center;
color: #fff;
font-size: 30px;
background: #2145C4;
}
.info {
.info-item {
display: flex;
line-height: 1.4;
margin-bottom: 8px;
p {
font-size: 24px;
&:last-child {
margin-bottom: 0;
}
label {
color: #BADCFF;
font-size: 28px;
}
span {
flex: 1;
font-size: 28px;
}
}
}
}

View File

@@ -1,18 +1,35 @@
<template>
<div class="Watermark6" @click="linkTo('./WatermarkConfig')">
<div class="title">
<h2>我是标题</h2>
<div class="Watermark5" @click="linkTo('./WatermarkConfig')">
<div class="top">
<h2>走访慰问</h2>
<div class="right">
<h2>{{ time }}</h2>
<p>{{ date }}</p>
</div>
</div>
<div class="info">
<div class="info-item">
<label>时间</label>
<span>{{ date }}</span>
<label>人员</label>
<span>陶白白</span>
</div>
<div class="info-item">
<label>网格</label>
<span>迁延街第一网格</span>
</div>
<div class="info-item">
<label>地点</label>
<span>武汉市·绿地蓝海A座</span>
</div>
<div class="info-item">
<label>服务对象</label>
<span>王一一</span>
</div>
</div>
<div class="bottom">
<span>工作纪实</span>
<i>网格员工作纪实</i>
</div>
<div class="line"></div>
</div>
</template>
@@ -22,15 +39,46 @@
data () {
return {
date: '',
time: '',
week: '',
timer: null
}
},
computed: {
weekCn() {
if (this.week === 1) {
return '星期一'
}
if (this.week === 2) {
return '星期二'
}
if (this.week === 3) {
return '星期三'
}
if (this.week === 4) {
return '星期四'
}
if (this.week === 5) {
return '星期五'
}
if (this.week === 6) {
return '星期六'
}
return '星期天'
}
},
created () {
this.date = this.$dayjs().format('YYYY-MM-DD HH:mm')
this.date = this.$dayjs(new Date).format('YYYY-MM-DD')
this.time = this.$dayjs().format('HH:mm')
this.timer = setInterval(() => {
this.date = this.$dayjs().format('YYYY-MM-DD HH:mm')
this.date = this.$dayjs().format('YYYY-MM-DD')
this.time = this.$dayjs().format('HH:mm')
this.week = new Date().getDay()
}, 1000)
},
@@ -51,9 +99,12 @@
</script>
<style lang="scss" scoped>
.Watermark6 {
.Watermark5 {
width: 440px;
padding: 0 16px 22px;
color: #000;
box-sizing: border-box;
background: #fff;
h2 {
font-weight: normal;
@@ -63,9 +114,38 @@
box-sizing: border-box;
}
.line {
margin-top: 4px;
height: 4px;
background: #2145C4;
}
.bottom {
display: flex;
align-items: center;
border: 3px solid #2145C4;
span {
width: 120px;
height: 48px;
line-height: 48px;
text-align: center;
color: #fff;
font-size: 26px;
background: #2145C4;
}
i {
flex: 1;
color: #2145C4;
font-size: 26px;
font-style: normal;
text-align: center;
}
}
.info {
padding: 24px;
background: rgba(255, 255, 255, 0.7);
margin-bottom: 16px;
.info-item {
display: flex;
@@ -78,54 +158,50 @@
label {
color: #333;
font-size: 28px;
font-size: 26px;
}
span {
flex: 1;
text-align: justify;
color: #000000;
font-size: 28px;
font-size: 26px;
font-weight: 600;
}
}
}
.title {
position: relative;
height: 60px;
line-height: 60px;
text-align: center;
color: #fff;
background: rgba(23, 91, 255, 0.7);
.top {
display: flex;
align-items: center;
justify-content: space-between;
height: 90px;
margin-bottom: 20px;
color: #2145C4;
border-bottom: 4px solid #2145C4;
h2 {
& > h2 {
font-size: 32px;
font-weight: 600;
}
&::after {
position: absolute;
left: 16px;
top: 50%;
z-index: 1;
width: 12px;
height: 12px;
border-radius: 50%;
background: #FFCA32;
content: ' ';
transform: translateY(-50%);
}
.right {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
&::before {
position: absolute;
right: 16px;
top: 50%;
z-index: 1;
width: 12px;
height: 12px;
border-radius: 50%;
background: #FFCA32;
content: ' ';
transform: translateY(-50%);
h2 {
width: 96px;
height: 40px;
line-height: 40px;
text-align: center;
color: #fff;
font-size: 30px;
background: #2145C4;
}
p {
font-size: 24px;
}
}
}
}