123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <template>
- <view class="container clearfix rich-text-temp">
- <rich-text-template ref="childTemplate"></rich-text-template>
- </view>
- </template>
- <script>
- import richTextTemplate from '@/components/module/listTemplate/richTextTemplate'
- import { queryAfterSale } from "@/api/other.js"
- export default{
- components: {
- richTextTemplate
- },
- data() {
- return{
- serverUrl: '',
- type: 'afterSale'
- }
- },
- onLoad(){
- this.initData();
- },
- methods:{
- initData(){
- queryAfterSale().then(response =>{
- let _data =response.data,
- type = this.type;
- if(type) {
- let html = this.$api.adaptRichTextImg(_data[type]);
- this.$refs.childTemplate.html = html;
- }
- }).catch(response =>{
- this.$util.msg(response.msg,2000);
- })
- }
- }
- }
- </script>
- <style lang="scss">
- </style>
|