乡村相册

This commit is contained in:
yanran200730
2022-05-17 14:58:10 +08:00
parent 905e487269
commit 8e3113f00d
11 changed files with 941 additions and 224 deletions

View File

@@ -1,71 +1,131 @@
<template>
<div class="Watermark1">
<div class="top">
<h2>打卡记录6</h2>
<p>09:45</p>
<div class="Watermark6" @click="linkTo('./WatermarkConfig')">
<div class="title">
<h2>我是标题</h2>
</div>
<div class="info">
<p>2022.02.25 星期五</p>
<p>武汉市·绿地蓝海国际A座</p>
<p> 7</p>
<div class="info-item">
<label>时间</label>
<span>{{ date }}</span>
</div>
<div class="info-item">
<label>地点</label>
<span>武汉市·绿地蓝海A座</span>
</div>
</div>
<div class="text">#这是一条备注信息</div>
</div>
</template>
<script>
export default {
import {mapActions} from 'vuex'
export default {
data () {
return {
date: '',
timer: null
}
},
}
created () {
this.date = this.$dayjs().format('YYYY-MM-DD HH:mm')
this.timer = setInterval(() => {
this.date = this.$dayjs().format('YYYY-MM-DD HH:mm')
}, 1000)
},
destroyed () {
clearInterval(this.timer)
},
methods: {
...mapActions(['injectJWeixin']),
linkTo (url) {
uni.navigateTo({
url
})
}
}
}
</script>
<style lang="scss" scoped>
.Watermark1 {
.Watermark6 {
width: 440px;
box-sizing: border-box;
h2 {
font-weight: normal;
}
* {
box-sizing: border-box;
}
.text {
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.2) 100%);
.info {
padding: 24px;
background: rgba(255, 255, 255, 0.7);
.info-item {
display: flex;
line-height: 1.3;
margin-bottom: 8px;
&:last-child {
margin-bottom: 0;
}
label {
color: #333;
font-size: 28px;
}
span {
flex: 1;
text-align: justify;
color: #000000;
font-size: 28px;
}
}
}
.top {
width: 184px;
background: #FEFFFE;
border-radius: 16px;
.title {
position: relative;
height: 60px;
line-height: 60px;
text-align: center;
overflow: hidden;
color: #fff;
background: rgba(23, 91, 255, 0.7);
h2 {
height: 64px;
line-height: 64px;
background: #1ABDA6;
font-size: 34px;
font-weight: normal;
font-size: 32px;
}
p {
height: 72px;
line-height: 72px;
font-weight: 600;
color: #333333;
font-size: 48px;
&::after {
position: absolute;
left: 16px;
top: 50%;
z-index: 1;
width: 12px;
height: 12px;
border-radius: 50%;
background: #FFCA32;
content: ' ';
transform: translateY(-50%);
}
}
.info {
line-height: 40px;
margin: 32px 0;
padding-left: 22px;
border-left: 6px solid #F8BC58;
p:nth-of-type(2) {
margin: 8px 0;
&::before {
position: absolute;
right: 16px;
top: 50%;
z-index: 1;
width: 12px;
height: 12px;
border-radius: 50%;
background: #FFCA32;
content: ' ';
transform: translateY(-50%);
}
}
}