|
@@ -1,43 +1,39 @@
|
|
<template>
|
|
<template>
|
|
<div class='top'>
|
|
<div class='top'>
|
|
- <div class="releaseRecord">
|
|
|
|
|
|
+ <div class="releaseRecord" @click="gotoRecord">
|
|
<svg-icon class="releaseRecord-icon" name="pulishIcon" />
|
|
<svg-icon class="releaseRecord-icon" name="pulishIcon" />
|
|
<div class="releaseRecord-text">发布记录</div>
|
|
<div class="releaseRecord-text">发布记录</div>
|
|
</div>
|
|
</div>
|
|
<div class="search">
|
|
<div class="search">
|
|
<svg-icon class="search-icon" name="search" />
|
|
<svg-icon class="search-icon" name="search" />
|
|
- <span>请输入</span>
|
|
|
|
- </div>
|
|
|
|
- <div class="publish">
|
|
|
|
- 发布
|
|
|
|
|
|
+ <span>搜索</span>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="publish">发布</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="content">
|
|
<div class="content">
|
|
- <div class="content-item">
|
|
|
|
|
|
+ <div class="content-item" v-for="item in 10">
|
|
<div class="item-header">
|
|
<div class="item-header">
|
|
- <img class="avatar" src="@/assets/img/faxian.png" />
|
|
|
|
|
|
+ <van-image class="avatar" round src="https://fastly.jsdelivr.net/npm/@vant/assets/cat.jpeg"/>
|
|
<div class="user-info">
|
|
<div class="user-info">
|
|
<div class="nickname">丝竹绵绵</div>
|
|
<div class="nickname">丝竹绵绵</div>
|
|
<div class="desc">阳光玫瑰葡萄爆汁 + 埃塞冷萃一口喝到夏天穿白衬衫的少年感🍃👉 今天前20杯送“发呆专用”杯套</div>
|
|
<div class="desc">阳光玫瑰葡萄爆汁 + 埃塞冷萃一口喝到夏天穿白衬衫的少年感🍃👉 今天前20杯送“发呆专用”杯套</div>
|
|
- <img class="main-img" src="@/assets/img/faxian.png" />
|
|
|
|
|
|
+ <van-image class="main-img" round src="https://fastly.jsdelivr.net/npm/@vant/assets/cat.jpeg"/>
|
|
<div class="item-footer">
|
|
<div class="item-footer">
|
|
<div class="time">8小时前23分钟前</div>
|
|
<div class="time">8小时前23分钟前</div>
|
|
- <div class="actions">
|
|
|
|
- <span class="icon more"></span>
|
|
|
|
|
|
+ <svg-icon class="actions-icon" name="more1" />
|
|
|
|
+ </div>
|
|
|
|
+ <div class="like-row">
|
|
|
|
+ <van-image v-for="n in 4" :key="n" class="like-avatar" round src="https://fastly.jsdelivr.net/npm/@vant/assets/cat.jpeg"/>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="comment-list">
|
|
|
|
+ <div class="comment-item">
|
|
|
|
+ <van-image class="comment-avatar" round src="https://fastly.jsdelivr.net/npm/@vant/assets/cat.jpeg"/>
|
|
|
|
+ <span class="comment-nickname">甘比</span>
|
|
|
|
+ <span class="comment-time">12:34</span>
|
|
|
|
+ <div class="comment-content">可以送我一杯吗</div>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
- <div class="like-row">
|
|
|
|
- <img v-for="n in 4" :key="n" class="like-avatar" src="@/assets/img/faxian.png" />
|
|
|
|
- </div>
|
|
|
|
- <div class="comment-list">
|
|
|
|
- <div class="comment-item">
|
|
|
|
- <img class="comment-avatar" src="@/assets/img/faxian.png" />
|
|
|
|
- <span class="comment-nickname">甘比</span>
|
|
|
|
- <span class="comment-time">12:34</span>
|
|
|
|
- <div class="comment-content">可以送我一杯吗</div>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -45,7 +41,10 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
-
|
|
|
|
|
|
+const router = useRouter();
|
|
|
|
+const gotoRecord = () => {
|
|
|
|
+ router.push('record')
|
|
|
|
+}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="less" scoped>
|
|
<style lang="less" scoped>
|
|
@@ -58,39 +57,36 @@
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
justify-content: center;
|
|
justify-content: center;
|
|
- width: 109px;
|
|
|
|
|
|
+ width: 112px;
|
|
height: 32px;
|
|
height: 32px;
|
|
- line-height: 32px;
|
|
|
|
background: #FFFFFF;
|
|
background: #FFFFFF;
|
|
border-radius: 23px;
|
|
border-radius: 23px;
|
|
text-align: center;
|
|
text-align: center;
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
|
|
.releaseRecord-icon {
|
|
.releaseRecord-icon {
|
|
- width: 24px;
|
|
|
|
- height: 24px;
|
|
|
|
- line-height: 24px;
|
|
|
|
- margin: 7px 1px 0 0;
|
|
|
|
|
|
+ width: 24px;
|
|
|
|
+ height: 24px;
|
|
|
|
+ margin-top: 8px;
|
|
|
|
+ margin-right: 2px;
|
|
}
|
|
}
|
|
-
|
|
|
|
.releaseRecord-text {
|
|
.releaseRecord-text {
|
|
- font-family: PingFang SC, PingFang SC;
|
|
|
|
- font-weight: 400;
|
|
|
|
- font-size: 14px;
|
|
|
|
- color: #000000;
|
|
|
|
- font-style: normal;
|
|
|
|
- text-transform: none;
|
|
|
|
|
|
+ font-family: PingFang SC, PingFang SC;
|
|
|
|
+ font-weight: 400;
|
|
|
|
+ font-size: 15px;
|
|
|
|
+ color: #000000;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
.search{
|
|
.search{
|
|
- width: 150px;
|
|
|
|
|
|
+ flex: 1;
|
|
height: 32px;
|
|
height: 32px;
|
|
background: #FFFFFF;
|
|
background: #FFFFFF;
|
|
border-radius: 23px;
|
|
border-radius: 23px;
|
|
opacity: 0.5;
|
|
opacity: 0.5;
|
|
padding: 6px;
|
|
padding: 6px;
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
- margin: 0 16px;
|
|
|
|
|
|
+ margin: 0 12px;
|
|
font-family: PingFang SC, PingFang SC;
|
|
font-family: PingFang SC, PingFang SC;
|
|
font-weight: 500;
|
|
font-weight: 500;
|
|
font-size: 15px;
|
|
font-size: 15px;
|
|
@@ -98,46 +94,47 @@
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
.search-icon{
|
|
.search-icon{
|
|
- height: 25px;
|
|
|
|
- width: 25px;
|
|
|
|
- margin-right: 6px;
|
|
|
|
|
|
+ height: 24px;
|
|
|
|
+ width: 24px;
|
|
|
|
+ margin-right: 2px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
.publish{
|
|
.publish{
|
|
- width: 70px;
|
|
|
|
- height: 38px;
|
|
|
|
- line-height: 38px;
|
|
|
|
|
|
+ width: 62px;
|
|
|
|
+ height: 32px;
|
|
|
|
+ line-height: 32px;
|
|
background: #4765DD;
|
|
background: #4765DD;
|
|
border-radius: 23px;
|
|
border-radius: 23px;
|
|
text-align: center;
|
|
text-align: center;
|
|
font-family: PingFang SC, PingFang SC;
|
|
font-family: PingFang SC, PingFang SC;
|
|
font-weight: 500;
|
|
font-weight: 500;
|
|
- font-size: 14px;
|
|
|
|
|
|
+ font-size: 15px;
|
|
color: #FFFFFF;
|
|
color: #FFFFFF;
|
|
font-style: normal;
|
|
font-style: normal;
|
|
text-transform: none;
|
|
text-transform: none;
|
|
|
|
+ box-sizing: border-box;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
.content {
|
|
.content {
|
|
- width: 352px;
|
|
|
|
- background: #FFFFFF;
|
|
|
|
- border-radius: 16px;
|
|
|
|
- margin: 17px auto 16px auto;
|
|
|
|
- padding: 12px;
|
|
|
|
- box-sizing: border-box;
|
|
|
|
-
|
|
|
|
|
|
+ flex: 1;
|
|
|
|
+ overflow: auto;
|
|
|
|
+ margin-top: 16px;
|
|
.content-item {
|
|
.content-item {
|
|
|
|
+ background: #FFFFFF;
|
|
|
|
+ border-radius: 16px;
|
|
|
|
+ margin: 0 16px 16px;
|
|
|
|
+ padding: 12px;
|
|
|
|
+ box-sizing: border-box;
|
|
.item-header {
|
|
.item-header {
|
|
display: flex;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
align-items: flex-start;
|
|
|
|
|
|
.avatar {
|
|
.avatar {
|
|
- width: 40px;
|
|
|
|
- height: 40px;
|
|
|
|
- border-radius: 50%;
|
|
|
|
- margin-right: 10px;
|
|
|
|
|
|
+ width: 42px;
|
|
|
|
+ height: 42px;
|
|
|
|
+ margin-right: 12px;
|
|
flex-shrink: 0;
|
|
flex-shrink: 0;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -150,12 +147,9 @@
|
|
.nickname {
|
|
.nickname {
|
|
font-family: PingFang SC, PingFang SC;
|
|
font-family: PingFang SC, PingFang SC;
|
|
font-weight: 500;
|
|
font-weight: 500;
|
|
- font-size: 14px;
|
|
|
|
|
|
+ font-size: 15px;
|
|
color: #4765DD;
|
|
color: #4765DD;
|
|
- text-align: left;
|
|
|
|
- font-style: normal;
|
|
|
|
- text-transform: none;
|
|
|
|
- margin-bottom: 2px;
|
|
|
|
|
|
+ margin-bottom: 4px;
|
|
}
|
|
}
|
|
|
|
|
|
.desc {
|
|
.desc {
|
|
@@ -163,22 +157,16 @@
|
|
font-weight: 400;
|
|
font-weight: 400;
|
|
font-size: 12px;
|
|
font-size: 12px;
|
|
color: #000000;
|
|
color: #000000;
|
|
- text-align: justify;
|
|
|
|
- font-style: normal;
|
|
|
|
- text-transform: none;
|
|
|
|
- margin: 4px 0 6px 0;
|
|
|
|
|
|
+ margin-bottom: 3px;
|
|
line-height: 1.5;
|
|
line-height: 1.5;
|
|
word-break: break-all;
|
|
word-break: break-all;
|
|
}
|
|
}
|
|
|
|
|
|
.main-img {
|
|
.main-img {
|
|
- width: 130px;
|
|
|
|
- height: 116px;
|
|
|
|
- object-fit: cover;
|
|
|
|
|
|
+ width: 134px;
|
|
|
|
+ height: 120px;
|
|
border-radius: 8px;
|
|
border-radius: 8px;
|
|
- margin-top: 3px;
|
|
|
|
- margin-bottom: 8px;
|
|
|
|
- align-self: flex-start;
|
|
|
|
|
|
+ margin-bottom: 10px;
|
|
}
|
|
}
|
|
|
|
|
|
.item-footer {
|
|
.item-footer {
|
|
@@ -186,24 +174,17 @@
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
align-items: center;
|
|
width: 100%;
|
|
width: 100%;
|
|
- margin-bottom: 8px;
|
|
|
|
|
|
+ margin-bottom: 10px;
|
|
|
|
|
|
.time {
|
|
.time {
|
|
font-family: PingFang SC, PingFang SC;
|
|
font-family: PingFang SC, PingFang SC;
|
|
font-weight: 400;
|
|
font-weight: 400;
|
|
- font-size: 14px;
|
|
|
|
|
|
+ font-size: 10px;
|
|
color: #8D8D8D;
|
|
color: #8D8D8D;
|
|
- text-align: left;
|
|
|
|
- font-style: normal;
|
|
|
|
- text-transform: none;
|
|
|
|
}
|
|
}
|
|
- .actions {
|
|
|
|
- .icon.more {
|
|
|
|
- display: inline-block;
|
|
|
|
- width: 18px;
|
|
|
|
- height: 18px;
|
|
|
|
- background: url('@/assets/svg/more.svg') no-repeat center/contain;
|
|
|
|
- }
|
|
|
|
|
|
+ .actions-icon{
|
|
|
|
+ width: 12px;
|
|
|
|
+ height: 10px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -214,29 +195,23 @@
|
|
.like-avatar {
|
|
.like-avatar {
|
|
width: 18px;
|
|
width: 18px;
|
|
height: 18px;
|
|
height: 18px;
|
|
- border-radius: 50%;
|
|
|
|
margin-right: 4px;
|
|
margin-right: 4px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
.comment-list {
|
|
.comment-list {
|
|
width: 267px;
|
|
width: 267px;
|
|
- min-height: 51px;
|
|
|
|
background: #F2F2F2;
|
|
background: #F2F2F2;
|
|
border-radius: 8px;
|
|
border-radius: 8px;
|
|
padding: 8px;
|
|
padding: 8px;
|
|
.comment-item {
|
|
.comment-item {
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
- font-size: 13px;
|
|
|
|
- color: #333;
|
|
|
|
flex-wrap: wrap;
|
|
flex-wrap: wrap;
|
|
- padding: 4px 0;
|
|
|
|
|
|
|
|
.comment-avatar {
|
|
.comment-avatar {
|
|
width: 18px;
|
|
width: 18px;
|
|
height: 18px;
|
|
height: 18px;
|
|
- border-radius: 50%;
|
|
|
|
margin-right: 8px;
|
|
margin-right: 8px;
|
|
}
|
|
}
|
|
.comment-nickname {
|
|
.comment-nickname {
|
|
@@ -248,15 +223,6 @@
|
|
font-style: normal;
|
|
font-style: normal;
|
|
text-transform: none;
|
|
text-transform: none;
|
|
}
|
|
}
|
|
- .comment-content {
|
|
|
|
- font-family: PingFang SC, PingFang SC;
|
|
|
|
- font-weight: 400;
|
|
|
|
- font-size: 14px;
|
|
|
|
- color: #000000;
|
|
|
|
- text-align: left;
|
|
|
|
- font-style: normal;
|
|
|
|
- text-transform: none;
|
|
|
|
- }
|
|
|
|
.comment-time {
|
|
.comment-time {
|
|
font-family: PingFang SC, PingFang SC;
|
|
font-family: PingFang SC, PingFang SC;
|
|
font-weight: 400;
|
|
font-weight: 400;
|
|
@@ -270,10 +236,10 @@
|
|
width: 100%;
|
|
width: 100%;
|
|
font-family: PingFang SC, PingFang SC;
|
|
font-family: PingFang SC, PingFang SC;
|
|
font-weight: 400;
|
|
font-weight: 400;
|
|
- font-size: 14px;
|
|
|
|
|
|
+ font-size: 12px;
|
|
color: #000000;
|
|
color: #000000;
|
|
- margin-left: 32px; // 头像+昵称的宽度,保证内容左对齐
|
|
|
|
- margin-top: 2px;
|
|
|
|
|
|
+ margin-left: 32px;
|
|
|
|
+ margin-top: 4px;
|
|
word-break: break-all;
|
|
word-break: break-all;
|
|
white-space: normal;
|
|
white-space: normal;
|
|
}
|
|
}
|
|
@@ -283,4 +249,7 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+.content::-webkit-scrollbar{
|
|
|
|
+ width: 0;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|