index.vue 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <script setup lang="ts">
  2. import AddFeedingPlan from '@/components/AddFeedingPlan.vue'
  3. function goToChooseProductPage() {
  4. uni.navigateTo({
  5. url: '/pages/feed-plan-calculator/choose-product',
  6. })
  7. }
  8. </script>
  9. <template>
  10. <view class="w-full h-full bg-regular flex flex-col items-center">
  11. <view class="mt-[54px] flex flex-col gap-1 mb-[60px] items-center">
  12. <view class="gradient-text text-[48px] font-bold">
  13. 400<text class="text-[24px] font-semibold">
  14. Kcal
  15. </text>
  16. </view>
  17. <view class="font-semibold">
  18. 总热量
  19. </view>
  20. <view class="text-xs text-disabled font-semibold">
  21. (未添加产品)
  22. </view>
  23. </view>
  24. <image src="@/static/svg/plate.svg" class="w-[289px] h-[176px] mb-[50px]" />
  25. <view class="w-full px-4 mb-[52px]">
  26. <AddFeedingPlan @tap="goToChooseProductPage" />
  27. </view>
  28. <BButton disabled>
  29. 确认
  30. </BButton>
  31. </view>
  32. </template>
  33. <style scoped>
  34. .gradient-text {
  35. background: linear-gradient(180deg, #151515 0%, #7B7B7B 100%);
  36. background-clip: text;
  37. -webkit-background-clip: text;
  38. -webkit-text-fill-color: transparent;
  39. }
  40. </style>