zxxq.vue 883 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <template>
  2. <view>
  3. <u-parse :html="content"></u-parse>
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. data() {
  9. return {
  10. id:0 ,
  11. content:''
  12. }
  13. },
  14. onLoad(e) {
  15. this.id = e.id
  16. this.getDetail()
  17. },
  18. methods: {
  19. getDetail(){
  20. this.$post({
  21. data:{
  22. do:'ArticleInfo',
  23. data:{
  24. id:this.id,
  25. user_id:uni.getStorageSync('id'),
  26. pw:375
  27. }
  28. }
  29. }).then(res=>{
  30. console.log(res)
  31. this.content = res.data.article.content
  32. })
  33. }
  34. }
  35. }
  36. </script>
  37. <style>
  38. </style>