index.vue 935 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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" @click="toAdd">立即报名!参与挑战!</button>
  14. </template>
  15. </Container>
  16. </template>
  17. <script setup>
  18. import Container from "../../components/Container/Container.vue";
  19. import { router } from "../../utils/router";
  20. const toAdd = () => {
  21. router.push({
  22. url: "/pages/challenge/addContant",
  23. })
  24. }
  25. </script>
  26. <style lang="scss" scoped>
  27. .bg {
  28. width: 100%;
  29. height: 1734rpx;
  30. background: url("https://openwork-oss.oss-cn-shenzhen.aliyuncs.com/uploads/question/2025/05/IFolqhKEbaTWdBgII6gjvqMKrf8WUbbgEpoeRH5t.png");
  31. background-size: cover;
  32. padding: 32rpx;
  33. box-sizing: border-box;
  34. }
  35. .btn {
  36. width: 660rpx;
  37. position: absolute;
  38. bottom: 3%;
  39. left: 50%;
  40. transform: translateX(-50%);
  41. }
  42. </style>