Files
dvcp_v2_wxcp_app/src/saas/AppCountryAlbum/components/watermark/Watermark6.vue

209 lines
3.9 KiB
Vue
Raw Normal View History

2022-05-16 18:04:46 +08:00
<template>
2022-05-18 18:06:39 +08:00
<div class="Watermark5" @click="linkTo('./WatermarkConfig')">
<div class="top">
<h2>走访慰问</h2>
<div class="right">
<h2>{{ time }}</h2>
<p>{{ date }}</p>
</div>
2022-05-16 18:04:46 +08:00
</div>
<div class="info">
2022-05-17 14:58:10 +08:00
<div class="info-item">
2022-05-18 18:06:39 +08:00
<label>人员</label>
<span>陶白白</span>
</div>
<div class="info-item">
<label>网格</label>
<span>迁延街第一网格</span>
2022-05-17 14:58:10 +08:00
</div>
<div class="info-item">
<label>地点</label>
<span>武汉市·绿地蓝海A座</span>
</div>
2022-05-18 18:06:39 +08:00
<div class="info-item">
<label>服务对象</label>
<span>王一一</span>
</div>
</div>
<div class="bottom">
<span>工作纪实</span>
<i>网格员工作纪实</i>
2022-05-16 18:04:46 +08:00
</div>
2022-05-18 18:06:39 +08:00
<div class="line"></div>
2022-05-16 18:04:46 +08:00
</div>
</template>
<script>
2022-05-17 14:58:10 +08:00
import {mapActions} from 'vuex'
export default {
data () {
return {
date: '',
2022-05-18 18:06:39 +08:00
time: '',
week: '',
2022-05-17 14:58:10 +08:00
timer: null
}
},
2022-05-18 18:06:39 +08:00
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 '星期天'
}
},
2022-05-17 14:58:10 +08:00
created () {
2022-05-18 18:06:39 +08:00
this.date = this.$dayjs(new Date).format('YYYY-MM-DD')
this.time = this.$dayjs().format('HH:mm')
2022-05-17 14:58:10 +08:00
this.timer = setInterval(() => {
2022-05-18 18:06:39 +08:00
this.date = this.$dayjs().format('YYYY-MM-DD')
this.time = this.$dayjs().format('HH:mm')
this.week = new Date().getDay()
2022-05-17 14:58:10 +08:00
}, 1000)
},
destroyed () {
clearInterval(this.timer)
},
methods: {
...mapActions(['injectJWeixin']),
2022-05-16 18:04:46 +08:00
2022-05-17 14:58:10 +08:00
linkTo (url) {
uni.navigateTo({
url
})
}
}
}
2022-05-16 18:04:46 +08:00
</script>
<style lang="scss" scoped>
2022-05-18 18:06:39 +08:00
.Watermark5 {
2022-05-17 14:58:10 +08:00
width: 440px;
2022-05-18 18:06:39 +08:00
padding: 0 16px 22px;
color: #000;
2022-05-17 14:58:10 +08:00
box-sizing: border-box;
2022-05-18 18:06:39 +08:00
background: #fff;
2022-05-17 14:58:10 +08:00
h2 {
font-weight: normal;
}
2022-05-16 18:04:46 +08:00
* {
box-sizing: border-box;
}
2022-05-18 18:06:39 +08:00
.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;
}
}
2022-05-17 14:58:10 +08:00
.info {
2022-05-18 18:06:39 +08:00
margin-bottom: 16px;
2022-05-17 14:58:10 +08:00
.info-item {
display: flex;
line-height: 1.3;
margin-bottom: 8px;
&:last-child {
margin-bottom: 0;
}
label {
color: #333;
2022-05-18 18:06:39 +08:00
font-size: 26px;
2022-05-17 14:58:10 +08:00
}
span {
color: #000000;
2022-05-18 18:06:39 +08:00
font-size: 26px;
font-weight: 600;
2022-05-17 14:58:10 +08:00
}
}
2022-05-16 18:04:46 +08:00
}
2022-05-18 18:06:39 +08:00
.top {
display: flex;
align-items: center;
justify-content: space-between;
height: 90px;
margin-bottom: 20px;
color: #2145C4;
border-bottom: 4px solid #2145C4;
2022-05-16 18:04:46 +08:00
2022-05-18 18:06:39 +08:00
& > h2 {
2022-05-17 14:58:10 +08:00
font-size: 32px;
2022-05-18 18:06:39 +08:00
font-weight: 600;
2022-05-16 18:04:46 +08:00
}
2022-05-18 18:06:39 +08:00
.right {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
h2 {
width: 96px;
height: 40px;
line-height: 40px;
text-align: center;
color: #fff;
font-size: 30px;
background: #2145C4;
}
2022-05-16 18:04:46 +08:00
2022-05-18 18:06:39 +08:00
p {
font-size: 24px;
}
2022-05-16 18:04:46 +08:00
}
}
}
</style>