Skip to content

Commit

Permalink
fix: notice
Browse files Browse the repository at this point in the history
  • Loading branch information
leviathan233 committed Dec 7, 2023
1 parent f872c30 commit 3cad54e
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/assets/img/notice.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 53 additions & 0 deletions src/components/PublicNotice.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<template>
<div class="m-public-notice">
<div class="m-notice-content">
<img svg-inline :src="require('@/assets/img/notice.svg')" alt="">
<span class="m-notice-text" v-html="html"></span>
</div>
</div>
</template>

<script>
import {getBreadcrumb} from "@jx3box/jx3box-common/js/api_misc";
export default {
name: "PublicNotice",
props: ['bckey'],
data() {
return {
html: ''
}
},
mounted() {
getBreadcrumb(this.bckey).then(res => {
this.html = res;
})
},
methods: {
}
};
</script>

<style lang="less" scoped>
.m-public-notice {
.size(100%, 40px);
box-sizing: border-box;
background: #FFFFFF;
padding: 0px 20px 0px 20px;
border-radius: 100px;
gap: 20px;
box-shadow: 0px 0px 10px 0px #00000040;
line-height: 40px;
img{
.mr(20px);
}
.m-notice-text{
font-family: Microsoft YaHei;
font-size: 14px;
font-weight: 400;
line-height: 18px;
letter-spacing: 0em;
text-align: left;
}
}
</style>
4 changes: 3 additions & 1 deletion src/views/face/Single.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</a>
</div>
</div>

<public-notice bckey="face_ac"></public-notice>
<!-- 基本信息 -->
<div class="m-header">
<div class="m-header-info">
Expand Down Expand Up @@ -204,6 +204,7 @@
</template>

<script>
import PublicNotice from "@/components/PublicNotice";
const single_pages = ["single"];
import { downloadZip } from "@/utils/exportFileZip";
import {
Expand Down Expand Up @@ -236,6 +237,7 @@ import authorItem from "@/components/face/author";
export default {
name: "single",
components: {
PublicNotice,
facedata,
Comment,
faceItem,
Expand Down

0 comments on commit 3cad54e

Please sign in to comment.