Internship-position.vue 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <template>
  2. <view class="flex-common-css iPhone-bottom">
  3. <Nav title="实习岗位" leftColor="#fff" bgckgroundBox='transparent' titleColor="#fff"></Nav>
  4. <image class="bg" src="@/static/img/index/sxgw.png" mode=""></image>
  5. <image class="code-img" :src="codeImg" mode="aspectFit"></image>
  6. <image class="but-img" src="@/static/img/index/bcdxc.png" mode=""></image>
  7. </view>
  8. </template>
  9. <script>
  10. import {
  11. commonPracticeCode
  12. } from "@/api/common.js"
  13. export default {
  14. components: {},
  15. data() {
  16. return {
  17. codeImg: ''
  18. };
  19. },
  20. onLoad(data) {},
  21. mounted() {
  22. this.commonPracticeCode()
  23. },
  24. methods: {
  25. commonPracticeCode() {
  26. commonPracticeCode().then((res) => {
  27. if(res.code == 1) {
  28. this.codeImg = res.data.url
  29. }
  30. })
  31. },
  32. scrolltolower() {
  33. console.log('触底');
  34. },
  35. },
  36. }
  37. </script>
  38. <style lang="scss" scoped>
  39. .bg {
  40. width: 100%;
  41. height: 100vh;
  42. position: fixed;
  43. left: 0;
  44. top: 0;
  45. }
  46. .but-img {
  47. width: 670rpx;
  48. height: 88rpx;
  49. position: absolute;
  50. bottom: 36rpx;
  51. left: 40rpx;
  52. }
  53. .code-img{
  54. width: 340rpx;
  55. height: 340rpx;
  56. position: absolute;
  57. top: 488rpx;
  58. left: 204rpx;
  59. border-radius: 20rpx;
  60. }
  61. </style>