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

47 lines
898 B

10 months ago
9 months ago
10 months ago
8 months ago
10 months ago
8 months ago
10 months ago
8 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. uni.showLoading({
  25. title: '正在加载……'
  26. })
  27. const {data: res} = await selectContractPdfBase64({studentId: this.studentId})
  28. this.pdfUrl = res
  29. console.log('this.pdfUrl')
  30. console.log(this.pdfUrl)
  31. setTimeout(()=>{
  32. uni.hideLoading()
  33. },800)
  34. },
  35. }
  36. }
  37. </script>
  38. <style lang="scss" scoped>
  39. .card {
  40. padding: 8rpx;
  41. margin-bottom: 40rpx;
  42. }
  43. </style>