useragree.vue 764 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. export default{
  9. components: {
  10. richTextTemplate
  11. },
  12. data() {
  13. return{
  14. type: ''
  15. }
  16. },
  17. onLoad(){
  18. this.type = 'afterSale';
  19. this.initData();
  20. },
  21. methods:{
  22. initData(){
  23. let self = this;
  24. this.OtherService.QueryClubProtocol({helpPageID:1023}).then(response =>{
  25. let data =response.data.content
  26. self.$refs.childTemplate.html = self.$api.adaptRichTextImg(data);
  27. }).catch(error =>{
  28. this.$util.msg(error.msg,2000)
  29. })
  30. }
  31. }
  32. }
  33. </script>
  34. <style lang="scss">
  35. </style>