|
@@ -23,11 +23,15 @@
|
|
|
|
|
|
<!-- <rich-text :nodes="couContent"></rich-text> -->
|
|
|
|
|
|
- <u-parse :content="couContent" @preview="preview" @navigate="navigate" />
|
|
|
+ <!-- <u-parse :content="couContent" @preview="preview" @navigate="navigate" /> -->
|
|
|
|
|
|
- <!-- <view class="html" v-html="detailData.contents"></view> -->
|
|
|
+ <view class="html" v-html="detailData.contents"></view>
|
|
|
|
|
|
<!-- <video src="https://v.qq.com/x/cover/mzc00200owkcck4/x3325xq11bb.html"></video> -->
|
|
|
+
|
|
|
+
|
|
|
+ <!-- <video width="550" height="400" poster="" controls="controls"><source src="https://cdn.0791look.com/data/attachment/2020/0424/20200424101026y0ngjz.mp4" type="video/mp4"> -->
|
|
|
+
|
|
|
|
|
|
<!-- item -->
|
|
|
|
|
@@ -60,9 +64,10 @@
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
-<script>
|
|
|
- import uParse from '@/components/gaoyia-parse/parse.vue'
|
|
|
-
|
|
|
+<script>
|
|
|
+ import {marked} from 'marked'
|
|
|
+ import uParse from '@/components/u-parse/u-parse.vue'
|
|
|
+
|
|
|
export default {
|
|
|
components: {
|
|
|
uParse
|
|
@@ -177,7 +182,7 @@
|
|
|
|
|
|
this.detailData = data
|
|
|
|
|
|
- this.couContent = this.detailData.contents
|
|
|
+ this.couContent = marked(this.detailData.contents)
|
|
|
|
|
|
if (this.detailData.contents) {
|
|
|
var replaceStr = "application/x-shockwave-flash"
|
|
@@ -186,9 +191,7 @@
|
|
|
this.detailData.contents = this.detailData.contents.replace(/<embed([\s\w"-=\/\.:;]+)/ig,
|
|
|
'<embed style="width: 100%;height:500px;" $1');
|
|
|
|
|
|
- var replaceStr = "embed"
|
|
|
- this.detailData.contents = this.detailData.contents.replace(new RegExp(replaceStr, 'gm'),
|
|
|
- 'iframe') //(/''/g,"video/webm")
|
|
|
+
|
|
|
}
|
|
|
|
|
|
if (this.detailData.contents) {
|
|
@@ -236,7 +239,8 @@
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
-<style scoped>
|
|
|
+<style scoped>
|
|
|
+ @import url("@/components/u-parse/u-parse.css");
|
|
|
.content {
|
|
|
min-height: 100vh;
|
|
|
background-color: #FFFFFF;
|