index.vue 914 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <template>
  2. <view class="container">
  3. <!-- 用户须知 -->
  4. <jyf-parser :html="content" class="mar_t50"></jyf-parser>
  5. <!-- 用户须知-end -->
  6. </view>
  7. </template>
  8. <script>
  9. let app=getApp();
  10. var appEv = app.$vm.$options;
  11. import { post } from "@/request/api.js";
  12. import jyfParser from '@/components/jyf-parser/jyf-parser.vue'
  13. export default {
  14. data() {
  15. return {
  16. content:''
  17. };
  18. },
  19. onLoad(){
  20. this.loadData()
  21. },
  22. methods:{
  23. loadData(){
  24. let data = {
  25. type:8
  26. }
  27. post("/my/article",data).then(res => {
  28. if (res.code == 0) {
  29. this.content = res.data.data.content
  30. console.log(this.content)
  31. // this.BannerImg = res.list;
  32. }
  33. });
  34. }
  35. },
  36. components:{
  37. jyfParser
  38. },
  39. }
  40. </script>
  41. <style lang="scss" scoped>
  42. // 用户须知
  43. .container{border-top: 20rpx solid #f5f5f5;padding: 0 20rpx;box-sizing: border-box;}
  44. // 用户须知-end
  45. </style>