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

40 lines
777 B

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