洛阳学员端
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.

41 lines
828 B

10 months ago
  1. <template>
  2. <view class="pageBgImg ">
  3. <topNavbar title="我的合同"></topNavbar>
  4. <view class="pad">
  5. <view class="card">
  6. <image :src="pdfUrl" mode="widthFix"></image>
  7. <nodata v-if="!pdfUrl" style="margin-bottom: 40rpx;">暂无合同</nodata>
  8. </view>
  9. </view>
  10. </view>
  11. </template>
  12. <script>
  13. import { selectContractPdfBase64 } from '@/config/api.js'
  14. export default {
  15. data() {
  16. return {
  17. pdfUrl: ''
  18. }
  19. },
  20. onLoad() {
  21. this.selectContractPdfBase64Fn()
  22. },
  23. methods: {
  24. async selectContractPdfBase64Fn() {
  25. const {data: res} = await selectContractPdfBase64({studentId: this.studentId})
  26. this.pdfUrl = res
  27. console.log('this.pdfUrl')
  28. console.log(this.pdfUrl)
  29. },
  30. }
  31. }
  32. </script>
  33. <style lang="scss" scoped>
  34. .card {
  35. padding: 8rpx;
  36. margin-bottom: 40rpx;
  37. }
  38. </style>