about.vue 811 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <template>
  2. <view class="container clearfix rich-text-temp">
  3. <rich-text-template ref="childTemplate"></rich-text-template>
  4. </view>
  5. </template>
  6. <script>
  7. import richTextTemplate from '@/components/cm-module/listTemplate/richTextTemplate'
  8. var self;
  9. export default{
  10. components: {
  11. richTextTemplate
  12. },
  13. data() {
  14. return{
  15. serverUrl: '',
  16. type: 'introduction'
  17. }
  18. },
  19. onLoad(){
  20. this.initData()
  21. },
  22. methods:{
  23. initData(){
  24. this.CommonService.QueryAfterSale().then(response =>{
  25. let _data =response.data,
  26. type = this.type;
  27. if(type) {
  28. let html = this.$api.adaptRichTextImg(_data[type]);
  29. this.$refs.childTemplate.html = html;
  30. }
  31. }).catch(error =>{
  32. this.$util.msg(error.msg,2000);
  33. })
  34. }
  35. }
  36. }
  37. </script>
  38. <style lang="scss">
  39. </style>