Skip to content

Commit

Permalink
chore: 修改了CollectionEntry.vue (#382)
Browse files Browse the repository at this point in the history
  • Loading branch information
buluu97 committed Oct 22, 2023
1 parent 6562242 commit 237cf02
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 4 deletions.
47 changes: 44 additions & 3 deletions src/pages/community/CollectionEntry.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,48 @@
<template>
<view></view>
<div class="image-container">
<div class="cam">
<navigator open-type="switchTab" url="/pages/collection/collection">
<img :src="Icons.View" class="overlay-image view" />
</navigator>
</div>

<div class="view">
<navigator open-type="switchTab" url="/pages/collection/collection">
<img :src="Icons.Cam" class="overlay-image cam" />
</navigator>
</div>
</div>
</template>

<script setup lang="ts"></script>
<script setup lang="ts">
import { Icons } from "@/utils/url";
</script>

<style scoped lang="scss">
.image-container {
position: relative;
width: 90vw;
height: 40vw;
.overlay-image {
position: absolute;
width: 90vw;
height: 18vw;
&.cam {
top: 16vw;
left: 5vw;
width: 90vw;
z-index: 1;
}
<style scoped lang="scss"></style>
&.view {
top: 21vw;
left: 68vw;
width: 23vw;
z-index: 2;
height: 8.2vw;
}
}
}
</style>
Binary file added src/static/images/campus_cat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/static/images/view_the_illustration.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion src/utils/url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ export const enum Icons {
Guide = "/static/images/guide.png",
GoBack = "/static/images/left-black.png",
Cancel = "/static/images/cancel.png",
Tag = "/static/images/tag.png"
Tag = "/static/images/tag.png",
Cam = "/static/images/campus_cat.png",
View = "/static/images/view_the_illustration.png"
}

export const enum Pages {
Expand Down

0 comments on commit 237cf02

Please sign in to comment.