index.vue 789 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <template>
  2. <Container
  3. title="挑战"
  4. :scrollStyle="{
  5. padding: 0,
  6. }"
  7. :showBack="false"
  8. >
  9. <view>
  10. <view class="bg"></view>
  11. </view>
  12. <template #stick>
  13. <button class="btn">立即报名!参与挑战!</button>
  14. </template>
  15. </Container>
  16. </template>
  17. <script setup>
  18. import Container from "../../components/Container/Container.vue";
  19. </script>
  20. <style lang="scss" scoped>
  21. .bg {
  22. width: 100%;
  23. height: 1734rpx;
  24. background: url("https://openwork-oss.oss-cn-shenzhen.aliyuncs.com/uploads/question/2025/05/IFolqhKEbaTWdBgII6gjvqMKrf8WUbbgEpoeRH5t.png");
  25. background-size: cover;
  26. padding: 32rpx;
  27. box-sizing: border-box;
  28. }
  29. .btn {
  30. width: 660rpx;
  31. position: absolute;
  32. bottom: 3%;
  33. left: 50%;
  34. transform: translateX(-50%);
  35. }
  36. </style>