372effb7 by joe

1

1 parent 54b51ce0
...@@ -24,11 +24,13 @@ ...@@ -24,11 +24,13 @@
24 "mockjs": "^1.0.1-beta3", 24 "mockjs": "^1.0.1-beta3",
25 "postcss-pxtorem": "^4.0.1", 25 "postcss-pxtorem": "^4.0.1",
26 "purecss": "^1.0.1", 26 "purecss": "^1.0.1",
27 "quill": "^1.3.7",
27 "ua-device": "^0.1.10", 28 "ua-device": "^0.1.10",
28 "vant": "^2.2.15", 29 "vant": "^2.2.15",
29 "vue": "^2.6.10", 30 "vue": "^2.6.10",
30 "vue-awesome-swiper": "^3.1.3", 31 "vue-awesome-swiper": "^3.1.3",
31 "vue-i18n": "^8.15.0", 32 "vue-i18n": "^8.15.0",
33 "vue-quill-editor": "^3.0.6",
32 "vue-router": "^3.0.3", 34 "vue-router": "^3.0.3",
33 "vue-video-player": "^5.0.2", 35 "vue-video-player": "^5.0.2",
34 "vuex": "^3.0.1" 36 "vuex": "^3.0.1"
......
...@@ -5,6 +5,8 @@ import { ...@@ -5,6 +5,8 @@ import {
5 httpPost 5 httpPost
6 } from '@/api/fetch-api.js' 6 } from '@/api/fetch-api.js'
7 7
8 import "quill/dist/quill.core.css";
9
8 import { getDateYMD } from "@/utils/biz.js"; 10 import { getDateYMD } from "@/utils/biz.js";
9 import { setTitle } from "@/utils/utils.js"; 11 import { setTitle } from "@/utils/utils.js";
10 12
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
11 <div class="date"> <img class="icon-clock" src="@/assets/images/news-detail/icon-clock.png" alt=""> {{$t('newsDetail.publishAt')}}{{data.dateFormat}}</div> 11 <div class="date"> <img class="icon-clock" src="@/assets/images/news-detail/icon-clock.png" alt=""> {{$t('newsDetail.publishAt')}}{{data.dateFormat}}</div>
12 <div class="pv">{{$t('newsDetail.readers')}}{{data.pv}} {{$t('newsDetail.per')}}</div> 12 <div class="pv">{{$t('newsDetail.readers')}}{{data.pv}} {{$t('newsDetail.per')}}</div>
13 </div> 13 </div>
14 <div class="box desc" v-html="data.content"> 14 <div class="box desc ql-editor" v-html="data.content" >
15 {{data.content}} 15 {{data.content}}
16 </div> 16 </div>
17 </div> 17 </div>
......
...@@ -4,6 +4,8 @@ import { ...@@ -4,6 +4,8 @@ import {
4 httpPost 4 httpPost
5 } from '@/api/fetch-api.js' 5 } from '@/api/fetch-api.js'
6 6
7 import "quill/dist/quill.core.css";
8
7 export default { 9 export default {
8 data() { 10 data() {
9 return { 11 return {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
5 <div> 5 <div>
6 <div class="top-space"></div> 6 <div class="top-space"></div>
7 <h2 class="tit">{{title}}</h2> 7 <h2 class="tit">{{title}}</h2>
8 <div class="box desc" v-html="content"> 8 <div class="box desc ql-editor" v-html="content">
9 </div> 9 </div>
10 </div> 10 </div>
11 11
......