supplieragree.vue 790 B

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