physics.uvue 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <script setup lang='ts'>
  2. import { ref } from 'vue'
  3. import { router } from '@/.cool'
  4. import { user } from '@/.cool'
  5. function handleView(url) {
  6. router.push({ path: url })
  7. }
  8. </script>
  9. <template>
  10. <view class="bottom">
  11. <view class=" progress">
  12. <view class="text-[26px] font-bold">学习进度</view>
  13. <view class=" w-full flex flex-row items-center justify-center gap-2">
  14. <cl-progress class="flex-1" color="linear-gradient(0deg, #1FA5F5 37%, #A2D8FF 100%)"
  15. :value="user.info.value?.studyCourseNum" :show-text="false" :strokeWidth="16"
  16. :pt="{ outer: { className: '!rounded-full' }, inner: { className: '!rounded-full' } }"></cl-progress>
  17. </view>
  18. </view>
  19. <view class="flex-1 flex flex-col items-center justify-between gap-2 bg1 py-3">
  20. <cl-image src="https://oss.xiaoxiongcode.com/static/home/17.png" mode="widthFix" width="40%" height="auto" />
  21. <text class="text-[14px]">趣味虚拟实验</text>
  22. </view>
  23. <view class="flex-1 flex flex-col items-center justify-between gap-1 bg2 py-3"
  24. @tap="handleView('/pages/card/index')">
  25. <cl-image src="https://oss.xiaoxiongcode.com/static/home/19.png" mode="widthFix" width="70%" height="auto" />
  26. <text class="text-[14px]">我的收获</text>
  27. </view>
  28. <view class="flex-1 flex flex-col items-center justify-between gap-1 bg3 py-3">
  29. <cl-image src="https://oss.xiaoxiongcode.com/static/home/18.png" mode="widthFix" width="35%" height="auto" />
  30. <text class="text-[14px]">AI问答</text>
  31. </view>
  32. </view>
  33. <view class="content" @tap="handleView('/pages/catalog/index')">
  34. <cl-image src="https://oss.xiaoxiongcode.com/static/home/3.gif" mode="heightFix" height="100%" width="auto" />
  35. <view class="flex-1 flex flex-col items-center justify-center gap-2 ft">
  36. <view class="text-[10vh] font-bold">
  37. 启蒙物理AI课
  38. </view>
  39. <view class="h-[15vh]">
  40. <cl-image src="https://oss.xiaoxiongcode.com/static/home/play.png" mode="heightFix" height="100%"
  41. width="auto" />
  42. </view>
  43. </view>
  44. </view>
  45. </template>
  46. <style lang="scss" scoped>
  47. .bottom {
  48. @apply absolute bottom-[1vh] left-1/2 w-full max-w-[800px] rounded-[20px] px-10 py-1 flex flex-row items-center justify-between gap-5;
  49. transform: translateX(-50%);
  50. .progress {
  51. @apply w-[400px] h-[80px] rounded-[40px] flex justify-center gap-2 px-[30px] gap-3;
  52. background: linear-gradient(0deg, #AAE3FF 0%, #DFF4FD 100%);
  53. width: 40%;
  54. }
  55. .check {
  56. background: linear-gradient(0deg, #FBD00E 0%, #FBEC92 100%);
  57. line-height: 20px;
  58. }
  59. }
  60. .bg1 {
  61. background: linear-gradient(0deg, #7597FA 0%, #C1DAFF 100%);
  62. border-radius: 28px;
  63. height: 80px;
  64. }
  65. .bg2 {
  66. background: linear-gradient(0deg, #3CD3DE 0%, #ADFBFF 100%);
  67. border-radius: 28px;
  68. height: 80px;
  69. }
  70. .bg3 {
  71. background: linear-gradient(0deg, #FFCE4A 0%, #FFEC88 100%);
  72. border-radius: 28px;
  73. height: 80px;
  74. }
  75. .ft {
  76. font-family: eryazhaocaimao;
  77. text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.6), 0 0 30px rgba(255, 255, 255, 0.4), 0 0 40px rgba(62, 166, 238, 0.8);
  78. }
  79. .content {
  80. @apply absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 text-white w-[120vh] border-[3px] border-[#fff] border-solid rounded-[30px] px-10 py-4 h-[40vh] flex flex-row items-center justify-between gap-4;
  81. background: linear-gradient(0deg, #C7F0FE 0%, #30B9FF 100%);
  82. }
  83. </style>