feat: 页面调整

This commit is contained in:
2026-07-30 17:49:55 +08:00
parent a4e58a780a
commit 7081420384
29 changed files with 946 additions and 432 deletions

View File

@@ -1,14 +1,12 @@
<template>
<view class="h-screen overflow-hidden bg-slate-50 flex flex-col">
<view class="shrink-0 bg-white px-[16px] pb-[12px] pt-[calc(env(safe-area-inset-top)+12px)]">
<view class="flex h-[32px] items-center justify-between">
<view class="flex h-[32px] w-[32px] items-center justify-center" @click="emit('back')">
<uni-icons type="left" size="22" color="#1f2937" />
</view>
<text class="text-[17px] font-semibold text-slate-800">商品详情</text>
<view class="h-[32px] w-[32px]" />
</view>
</view>
<TopNavBar
title="商品详情"
subtitle="费用说明与购买须知"
title-align="left"
background="#ffffff"
@back="emit('back')"
/>
<scroll-view class="min-h-0 flex-1" scroll-y>
<image class="h-[280px] w-full bg-slate-200" :src="product.images && product.images[0]" mode="aspectFill" />
@@ -66,6 +64,8 @@
</template>
<script setup>
import TopNavBar from "@/components/TopNavBar/index.vue"
defineProps({
product: { type: Object, required: true },
})