bulletinDetail.vue 579 B

1234567891011121314151617181920212223242526272829303132
  1. <template>
  2. <view style="padding: 30rpx"> {{ detailData.Content }} </view>
  3. </template>
  4. <script>
  5. import { Reports } from "@/config/api.js";
  6. export default {
  7. data() {
  8. return {
  9. id: "",
  10. detailData: {},
  11. };
  12. },
  13. methods: {
  14. async getDetail() {
  15. const res = await Reports.collectionApplyDetail({
  16. ApplyCollectionId: this.id,
  17. });
  18. if (res.Ret === 200) {
  19. this.detailData = res.Data.Detail;
  20. }
  21. },
  22. },
  23. onLoad(options) {
  24. this.id = Number(options.id) || "";
  25. this.getDetail();
  26. },
  27. };
  28. </script>
  29. <style></style>