generated from JX3BOX/jx3box-vue-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f872c30
commit 3cad54e
Showing
3 changed files
with
59 additions
and
1 deletion.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters