feat: 产品选择列表

This commit is contained in:
ilhamtahir committed 2025-01-20 08:01:53 +08:00
1 parent a55a6d3586
commit dfadf3a8f0
25 files changed
+351 -54

No files matched your search

+43
View File
@@ -0,0 +1,43 @@
<script setup lang="ts">
import AddFeedingPlan from '@/components/AddFeedingPlan.vue'
function goToChooseProductPage() {
uni.navigateTo({
url: '/pages/feed-plan-calculator/choose-product',
})
}
</script>
<template>
<view class="w-full h-full bg-regular flex flex-col items-center">
<view class="mt-[54px] flex flex-col gap-1 mb-[60px] items-center">
<view class="gradient-text text-[48px] font-bold">
400<text class="text-[24px] font-semibold">
Kcal
</text>
</view>
<view class="font-semibold">
总热量
</view>
<view class="text-xs text-disabled font-semibold">
(未添加产品)
</view>
</view>
<image src="@/static/svg/plate.svg" class="w-[289px] h-[176px] mb-[50px]" />
<view class="w-full px-4 mb-[52px]">
<AddFeedingPlan @tap="goToChooseProductPage" />
</view>
<BButton disabled>
确认
</BButton>
</view>
</template>
<style scoped>
.gradient-text {
background: linear-gradient(180deg, #151515 0%, #7B7B7B 100%);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
</style>