about.vue 713 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <view style="font-size: 14px;line-height: 26px;padding: 32upx;" class="home1">
  3. <view style="font-size: 28upx;" v-html="content"></view>
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. data() {
  9. return {
  10. content: '',
  11. id: 187
  12. }
  13. },
  14. onLoad(d) {
  15. if (d.id) {
  16. this.id = d.id;
  17. }
  18. if (d.name) {
  19. uni.setNavigationBarTitle({
  20. title: d.name
  21. })
  22. }else{
  23. uni.setNavigationBarTitle({
  24. title: '关于我们'
  25. })
  26. }
  27. this.getGuize();
  28. },
  29. methods: {
  30. getGuize() {
  31. this.$Request.getT('/app/common/type/' + this.id).then(res => {
  32. if (res.code === 0) {
  33. this.content = res.data.value;
  34. }
  35. });
  36. }
  37. }
  38. }
  39. </script>
  40. <style>
  41. </style>