|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436 |
- <template>
- <view class="main">
- <rich-text :nodes="content"></rich-text>
- </view>
- </template>
-
- <script>
- var util = require("../../utils/util.js");
- var config = require("../../config");
- import uParse from '../../components/gaoyia-parse/parse.vue'
- export default {
- data() {
- return {
- content:"",
- id:""
- };
- },
- components: {
- uParse
- },
- onLoad(e){
- this.id = e.id || 0;
- let link=JSON.parse(decodeURIComponent(e.content))
- this.content = link
- this.read()
- },
- methods:{
- read(){
- this.$u.get('/zkPrivate/findById', { id: this.id }).then(res => {
- console.log(res)
- // this.content = res
- }).catch(error => {
- console.log(error)
- })
- }
- }
- }
- </script>
-
- <style lang="scss">
- .main{
- padding: 20rpx;
- }
- .ql-container {
- box-sizing: border-box;
- font-family: Helvetica, Arial, sans-serif;
- font-size: 13px;
- height: 100%;
- margin: 0px;
- position: relative;
- }
- .ql-container.ql-disabled .ql-tooltip {
- visibility: hidden;
- }
- .ql-container.ql-disabled .ql-editor ul[data-checked] > li::before {
- pointer-events: none;
- }
- .ql-clipboard {
- left: -100000px;
- height: 1px;
- overflow-y: hidden;
- position: absolute;
- top: 50%;
- }
- .ql-clipboard p {
- margin: 0;
- padding: 0;
- }
- .ql-editor {
- box-sizing: border-box;
- line-height: 1.42;
- height: 100%;
- outline: none;
- overflow-y: auto;
- padding: 12px 15px;
- tab-size: 4;
- -moz-tab-size: 4;
- text-align: left;
- white-space: pre-wrap;
- word-wrap: break-word;
- }
- .ql-editor > * {
- cursor: text;
- }
- .ql-editor p,
- .ql-editor ol,
- .ql-editor ul,
- .ql-editor pre,
- .ql-editor blockquote,
- .ql-editor h1,
- .ql-editor h2,
- .ql-editor h3,
- .ql-editor h4,
- .ql-editor h5,
- .ql-editor h6 {
- margin: 0;
- padding: 0;
- counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;
- }
- .ql-editor ol,
- .ql-editor ul {
- padding-left: 1.5em;
- }
- .ql-editor ol > li,
- .ql-editor ul > li {
- list-style-type: none;
- }
- .ql-editor ul > li::before {
- content: '\2022';
- }
- .ql-editor ul[data-checked=true],
- .ql-editor ul[data-checked=false] {
- pointer-events: none;
- }
- .ql-editor ul[data-checked=true] > li *,
- .ql-editor ul[data-checked=false] > li * {
- pointer-events: all;
- }
- .ql-editor ul[data-checked=true] > li::before,
- .ql-editor ul[data-checked=false] > li::before {
- color: #777;
- cursor: pointer;
- pointer-events: all;
- }
- .ql-editor ul[data-checked=true] > li::before {
- content: '\2611';
- }
- .ql-editor ul[data-checked=false] > li::before {
- content: '\2610';
- }
- .ql-editor li::before {
- display: inline-block;
- white-space: nowrap;
- width: 1.2em;
- }
- .ql-editor li:not(.ql-direction-rtl)::before {
- margin-left: -1.5em;
- margin-right: 0.3em;
- text-align: right;
- }
- .ql-editor li.ql-direction-rtl::before {
- margin-left: 0.3em;
- margin-right: -1.5em;
- }
- .ql-editor ol li:not(.ql-direction-rtl),
- .ql-editor ul li:not(.ql-direction-rtl) {
- padding-left: 1.5em;
- }
- .ql-editor ol li.ql-direction-rtl,
- .ql-editor ul li.ql-direction-rtl {
- padding-right: 1.5em;
- }
- .ql-editor ol li {
- counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;
- counter-increment: list-0;
- }
- .ql-editor ol li:before {
- content: counter(list-0, decimal) '. ';
- }
- .ql-editor ol li.ql-indent-1 {
- counter-increment: list-1;
- }
- .ql-editor ol li.ql-indent-1:before {
- content: counter(list-1, lower-alpha) '. ';
- }
- .ql-editor ol li.ql-indent-1 {
- counter-reset: list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;
- }
- .ql-editor ol li.ql-indent-2 {
- counter-increment: list-2;
- }
- .ql-editor ol li.ql-indent-2:before {
- content: counter(list-2, lower-roman) '. ';
- }
- .ql-editor ol li.ql-indent-2 {
- counter-reset: list-3 list-4 list-5 list-6 list-7 list-8 list-9;
- }
- .ql-editor ol li.ql-indent-3 {
- counter-increment: list-3;
- }
- .ql-editor ol li.ql-indent-3:before {
- content: counter(list-3, decimal) '. ';
- }
- .ql-editor ol li.ql-indent-3 {
- counter-reset: list-4 list-5 list-6 list-7 list-8 list-9;
- }
- .ql-editor ol li.ql-indent-4 {
- counter-increment: list-4;
- }
- .ql-editor ol li.ql-indent-4:before {
- content: counter(list-4, lower-alpha) '. ';
- }
- .ql-editor ol li.ql-indent-4 {
- counter-reset: list-5 list-6 list-7 list-8 list-9;
- }
- .ql-editor ol li.ql-indent-5 {
- counter-increment: list-5;
- }
- .ql-editor ol li.ql-indent-5:before {
- content: counter(list-5, lower-roman) '. ';
- }
- .ql-editor ol li.ql-indent-5 {
- counter-reset: list-6 list-7 list-8 list-9;
- }
- .ql-editor ol li.ql-indent-6 {
- counter-increment: list-6;
- }
- .ql-editor ol li.ql-indent-6:before {
- content: counter(list-6, decimal) '. ';
- }
- .ql-editor ol li.ql-indent-6 {
- counter-reset: list-7 list-8 list-9;
- }
- .ql-editor ol li.ql-indent-7 {
- counter-increment: list-7;
- }
- .ql-editor ol li.ql-indent-7:before {
- content: counter(list-7, lower-alpha) '. ';
- }
- .ql-editor ol li.ql-indent-7 {
- counter-reset: list-8 list-9;
- }
- .ql-editor ol li.ql-indent-8 {
- counter-increment: list-8;
- }
- .ql-editor ol li.ql-indent-8:before {
- content: counter(list-8, lower-roman) '. ';
- }
- .ql-editor ol li.ql-indent-8 {
- counter-reset: list-9;
- }
- .ql-editor ol li.ql-indent-9 {
- counter-increment: list-9;
- }
- .ql-editor ol li.ql-indent-9:before {
- content: counter(list-9, decimal) '. ';
- }
- .ql-editor .ql-indent-1:not(.ql-direction-rtl) {
- padding-left: 3em;
- }
- .ql-editor li.ql-indent-1:not(.ql-direction-rtl) {
- padding-left: 4.5em;
- }
- .ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right {
- padding-right: 3em;
- }
- .ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right {
- padding-right: 4.5em;
- }
- .ql-editor .ql-indent-2:not(.ql-direction-rtl) {
- padding-left: 6em;
- }
- .ql-editor li.ql-indent-2:not(.ql-direction-rtl) {
- padding-left: 7.5em;
- }
- .ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right {
- padding-right: 6em;
- }
- .ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right {
- padding-right: 7.5em;
- }
- .ql-editor .ql-indent-3:not(.ql-direction-rtl) {
- padding-left: 9em;
- }
- .ql-editor li.ql-indent-3:not(.ql-direction-rtl) {
- padding-left: 10.5em;
- }
- .ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right {
- padding-right: 9em;
- }
- .ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right {
- padding-right: 10.5em;
- }
- .ql-editor .ql-indent-4:not(.ql-direction-rtl) {
- padding-left: 12em;
- }
- .ql-editor li.ql-indent-4:not(.ql-direction-rtl) {
- padding-left: 13.5em;
- }
- .ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right {
- padding-right: 12em;
- }
- .ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right {
- padding-right: 13.5em;
- }
- .ql-editor .ql-indent-5:not(.ql-direction-rtl) {
- padding-left: 15em;
- }
- .ql-editor li.ql-indent-5:not(.ql-direction-rtl) {
- padding-left: 16.5em;
- }
- .ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right {
- padding-right: 15em;
- }
- .ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right {
- padding-right: 16.5em;
- }
- .ql-editor .ql-indent-6:not(.ql-direction-rtl) {
- padding-left: 18em;
- }
- .ql-editor li.ql-indent-6:not(.ql-direction-rtl) {
- padding-left: 19.5em;
- }
- .ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right {
- padding-right: 18em;
- }
- .ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right {
- padding-right: 19.5em;
- }
- .ql-editor .ql-indent-7:not(.ql-direction-rtl) {
- padding-left: 21em;
- }
- .ql-editor li.ql-indent-7:not(.ql-direction-rtl) {
- padding-left: 22.5em;
- }
- .ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right {
- padding-right: 21em;
- }
- .ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right {
- padding-right: 22.5em;
- }
- .ql-editor .ql-indent-8:not(.ql-direction-rtl) {
- padding-left: 24em;
- }
- .ql-editor li.ql-indent-8:not(.ql-direction-rtl) {
- padding-left: 25.5em;
- }
- .ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right {
- padding-right: 24em;
- }
- .ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right {
- padding-right: 25.5em;
- }
- .ql-editor .ql-indent-9:not(.ql-direction-rtl) {
- padding-left: 27em;
- }
- .ql-editor li.ql-indent-9:not(.ql-direction-rtl) {
- padding-left: 28.5em;
- }
- .ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right {
- padding-right: 27em;
- }
- .ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right {
- padding-right: 28.5em;
- }
- .ql-editor .ql-video {
- display: block;
- max-width: 100%;
- }
- .ql-editor .ql-video.ql-align-center {
- margin: 0 auto;
- }
- .ql-editor .ql-video.ql-align-right {
- margin: 0 0 0 auto;
- }
- .ql-editor .ql-bg-black {
- background-color: #000;
- }
- .ql-editor .ql-bg-red {
- background-color: #e60000;
- }
- .ql-editor .ql-bg-orange {
- background-color: #f90;
- }
- .ql-editor .ql-bg-yellow {
- background-color: #ff0;
- }
- .ql-editor .ql-bg-green {
- background-color: #008a00;
- }
- .ql-editor .ql-bg-blue {
- background-color: #06c;
- }
- .ql-editor .ql-bg-purple {
- background-color: #93f;
- }
- .ql-editor .ql-color-white {
- color: #fff;
- }
- .ql-editor .ql-color-red {
- color: #e60000;
- }
- .ql-editor .ql-color-orange {
- color: #f90;
- }
- .ql-editor .ql-color-yellow {
- color: #ff0;
- }
- .ql-editor .ql-color-green {
- color: #008a00;
- }
- .ql-editor .ql-color-blue {
- color: #06c;
- }
- .ql-editor .ql-color-purple {
- color: #93f;
- }
- .ql-editor .ql-font-serif {
- font-family: Georgia, Times New Roman, serif;
- }
- .ql-editor .ql-font-monospace {
- font-family: Monaco, Courier New, monospace;
- }
- .ql-editor .ql-size-small {
- font-size: 0.75em;
- }
- .ql-editor .ql-size-large {
- font-size: 1.5em;
- }
- .ql-editor .ql-size-huge {
- font-size: 2.5em;
- }
- .ql-editor .ql-direction-rtl {
- direction: rtl;
- text-align: inherit;
- }
- .ql-editor .ql-align-center {
- text-align: center;
- }
- .ql-editor .ql-align-justify {
- text-align: justify;
- }
- .ql-editor .ql-align-right {
- text-align: right;
- }
- .ql-editor.ql-blank::before {
- color: rgba(0,0,0,0.6);
- content: attr(data-placeholder);
- font-style: italic;
- left: 15px;
- pointer-events: none;
- position: absolute;
- right: 15px;
- }
-
- </style>
|