|
@@ -0,0 +1,41 @@
|
|
|
+<template name="sellConten">
|
|
|
+ <view class="container clearfix rich-text-temp">
|
|
|
+ <rich-text-template ref="childTemplate"></rich-text-template>
|
|
|
+ </view>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+ import richTextTemplate from '@/components/cm-module/listTemplate/richTextTemplate'
|
|
|
+ import { querySaveClause } from "@/api/other.js"
|
|
|
+
|
|
|
+ export default{
|
|
|
+ components: {
|
|
|
+ richTextTemplate
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ return{
|
|
|
+ type: '',
|
|
|
+ id:''
|
|
|
+ }
|
|
|
+ },
|
|
|
+ onLoad(option){
|
|
|
+ this.type = 'afterSale';
|
|
|
+ this.id= option.clauseId
|
|
|
+ this.initData();
|
|
|
+ },
|
|
|
+ methods:{
|
|
|
+ initData(){
|
|
|
+ let self = this;
|
|
|
+ querySaveClause({clauseId:this.id}).then(response =>{
|
|
|
+ let data =response.data.content
|
|
|
+ self.$refs.childTemplate.html = self.$api.adaptRichTextImg(data);
|
|
|
+ }).catch(error =>{
|
|
|
+ this.$util.msg(error.msg,2000)
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+</script>
|
|
|
+
|
|
|
+<style>
|
|
|
+</style>
|