diff --git a/App.vue b/App.vue index 241ac51..a4e7d78 100644 --- a/App.vue +++ b/App.vue @@ -24,7 +24,6 @@ import ai_recongize_plan from './components/ai_recongize_plan/ai_recongize_plan. import ai_recongize_hot from './components/ai_recongize_hot/ai_recongize_hot.vue'; import ai_recongize_recipe from './components/ai_recongize_recipe/ai_recongize_recipe.vue'; - export default { globalData: { // 定义后端数据库地址信息 diff --git a/components/community_image_box/community_image_box.vue b/components/community_image_box/community_image_box.vue new file mode 100644 index 0000000..37d3e7f --- /dev/null +++ b/components/community_image_box/community_image_box.vue @@ -0,0 +1,141 @@ + + + + + \ No newline at end of file diff --git a/pages/homepages/community/community/community.vue b/pages/homepages/community/community/community.vue index 1b71a83..d6b9742 100644 --- a/pages/homepages/community/community/community.vue +++ b/pages/homepages/community/community/community.vue @@ -1,20 +1,125 @@ diff --git a/static/homepages/community/community/pictures/add_image.png b/static/homepages/community/community/pictures/add_image.png new file mode 100644 index 0000000..e77a787 Binary files /dev/null and b/static/homepages/community/community/pictures/add_image.png differ diff --git a/static/homepages/community/community/pictures/chat_icon.png b/static/homepages/community/community/pictures/chat_icon.png new file mode 100644 index 0000000..7554bed Binary files /dev/null and b/static/homepages/community/community/pictures/chat_icon.png differ diff --git a/static/homepages/community/community/pictures/dog_image.png b/static/homepages/community/community/pictures/dog_image.png new file mode 100644 index 0000000..ce0bdfc Binary files /dev/null and b/static/homepages/community/community/pictures/dog_image.png differ diff --git a/static/homepages/community/community/pictures/love_image.png b/static/homepages/community/community/pictures/love_image.png new file mode 100644 index 0000000..3d372e9 Binary files /dev/null and b/static/homepages/community/community/pictures/love_image.png differ diff --git a/static/homepages/community/community/scss/community.scss b/static/homepages/community/community/scss/community.scss new file mode 100644 index 0000000..c448b61 --- /dev/null +++ b/static/homepages/community/community/scss/community.scss @@ -0,0 +1,196 @@ +.community_box{ + padding: 5vh 5vw; + display: flex; + flex-direction: column; + position: relative; + .top_box{ + display: flex; + justify-content: space-between; + align-items: center; + height: 10vh; + // border-bottom: 1.48205px solid #000000; + .dog_image_box{ + // height: 8vh; + // width: 8vh; + height: 110rpx; + width: 110rpx; + border-radius: 50%; + background-color: #D9D9D9; + display: flex; + justify-content: center; + align-items: center; + .dog_image{ + width: 85rpx; + } + } + .words_box{ + height: 100%; + width: 60%; + display: flex; + flex-direction: column; + justify-content: space-around; + align-items: center; + .title_box{ + width: fit-content; + font-family: 'Poppins'; + font-style: normal; + font-weight: 600; + font-size: 3vh; + line-height: 33px; + text-align: center; + letter-spacing: -0.604677px; + color: #000000; + } + .tip_word_box{ + font-family: 'Poppins'; + font-style: normal; + font-weight: 600; + font-size: 2vh; + line-height: 33px; + text-align: center; + letter-spacing: -0.604677px; + color: #CCB8B8; + } + } + .add_image_box{ + // height: 8vh; + // width: 8vh; + height: 110rpx; + width: 110rpx; + border-radius: 50%; + background-color: #D9D9D9; + display: flex; + justify-content: center; + align-items: center; + .add_image{ + width: 50rpx; + } + } + } + // 分割线 + .line_box{ + width: 70%; + border-bottom: 1.48205px solid #000000; + position: absolute; + top: 17vh; + left: 50%; + transform: translateX(-50%); + } + .post_body{ + position: absolute; + left: 50%; + transform: translateX(-50%); + top: 20vh; + width: 90%; + .post_scroll_box{ + height: 69vh; + } + .post_box{ + background-color: #E6EEFA; + border-radius: 30px; + padding: 2vh 2vh; + box-sizing: border-box; + margin-bottom: 5vh; + width: 100%; + // height: 55vh; + display: flex; + flex-direction: column; + // height:900rpx; + position: relative; + .post_top_box{ + display: flex; + .post_avatar_box{ + width: 5vh; + height: 5vh; + border-radius: 50%; + background-color: #fff; + display: flex; + justify-content: center; + align-items: center; + margin-right: 2vh; + .post_avatar{ + width: 80%; + } + } + .post_info{ + font-family: 'Poppins'; + font-style: normal; + font-weight: 700; + font-size: 2vh; + color: #000000; + display: flex; + flex-direction: column; + justify-content: center; + } + } + .post_word_box{ + font-family: 'Poppins'; + font-style: normal; + font-weight: 700; + font-size: 2vh; + color: #000000; + margin-top: 2.5vh; + } + .post_images_box{ + width: 100%; + height:70%; + .post_images{ + width: 100%; + height: 100%; + } + } + .post_bottom_box{ + position: absolute; + bottom: 0%; + width: 100%; + height: 10%; + padding: 0% 6%; + box-sizing: border-box; + display: flex; + background: rgba(0, 0, 0, 0.3); + backdrop-filter: blur(2px); + /* Note: backdrop-filter has minimal browser support */ + border-radius: 0px 0px 30px 30px; + left: 50%; + transform: translateX(-50%); + .comments_box{ + display: flex; + align-items: center; + height: 100%; + // width: 10%; + .chat_icon{ + width: 3.2vh; + } + .comments_num{ + font-family: 'Poppins'; + font-style: normal; + font-weight: 600; + font-size: 2vh; + text-align: center; + letter-spacing: -0.604677px; + color: rgba(255, 255, 255, 0.8); + } + } + .like_box{ + display: flex; + align-items: center; + height: 100%; + margin-left: 4%; + // width: 10%; + .love_icon{ + width: 3.2vh; + } + .like_num{ + font-family: 'Poppins'; + font-style: normal; + font-weight: 600; + font-size: 2vh; + text-align: center; + letter-spacing: -0.604677px; + color: rgba(255, 255, 255, 0.8); + } + } + } + } + } +} \ No newline at end of file diff --git a/unpackage/dist/cache/.vite/deps/_metadata.json b/unpackage/dist/cache/.vite/deps/_metadata.json index ed3c019..bca37d4 100644 --- a/unpackage/dist/cache/.vite/deps/_metadata.json +++ b/unpackage/dist/cache/.vite/deps/_metadata.json @@ -1,8 +1,8 @@ { - "hash": "48f6c93b", - "configHash": "badd50c8", + "hash": "70943268", + "configHash": "c265b382", "lockfileHash": "e3b0c442", - "browserHash": "debd2ea0", + "browserHash": "d782de90", "optimized": {}, "chunks": {} } \ No newline at end of file