球星卡微信小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
529 B

  1. <template>
  2. <view>
  3. <u-parse :content="content"></u-parse>
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. data(){
  9. return {
  10. id: '',
  11. title: '',
  12. article: ''
  13. }
  14. },
  15. onLoad(options){
  16. this.id = options.id || '';
  17. this.title = options.title || '';
  18. // todo 此处根据文章id获取
  19. this.id && this.getDetail();
  20. },
  21. onReady(){
  22. uni.setNavigationBarTitle({
  23. title: this.title
  24. })
  25. },
  26. methods: {
  27. getDetail(){
  28. console.log("this.id", this.id);
  29. }
  30. }
  31. }
  32. </script>
  33. <style>
  34. </style>