完成首页数据模型的统一重构,具体变更如下: 1. 重构公共首页API接口,移除`playRecommendations`字段,将玩法推荐数据统一放入`experiences`字段 2. 更新前后端类型定义、序列化逻辑与前端页面组件,适配新的API响应结构 3. 为微信登录相关接口添加`trust_env=True`配置,支持企业代理环境并新增`socksio`依赖 4. 新增图片画廊上传组件,重构SingleImageUploader组件支持自定义宽高比 5. 重构Toast与Select组件的实现与样式,统一后台UI设计系统 6. 移除个人中心页面不必要的返回事件与顶部标题组件,优化详情卡片布局 7. 新增微信接口单元测试,更新官方文档与测试用例适配变更 8. 删除过期的文档图片资源
25 lines
1.1 KiB
Vue
25 lines
1.1 KiB
Vue
<template>
|
|
<view class="relative z-10 -mt-5 mx-3 rounded-[14px] bg-white px-4 py-5 shadow-[0_8px_24px_rgba(63,48,37,0.08)]">
|
|
<text class="block text-[24px] font-bold leading-8 text-[#24211f]">{{ presentation.title }}</text>
|
|
<text class="mt-2 block text-[13px] leading-6 text-[#756d65]">{{ presentation.subtitle }}</text>
|
|
<view class="mt-4 grid grid-cols-2 gap-2 border-t border-[#f0ebe5] pt-3">
|
|
<view class="rounded-[8px] bg-[#f8f6f2] px-3 py-2.5">
|
|
<text class="block text-[10px] text-[#a39a91]">路线状态</text>
|
|
<text class="mt-1 block text-[12px] font-medium text-[#3d3833]">可咨询规划</text>
|
|
</view>
|
|
<view class="rounded-[8px] bg-[#f8f6f2] px-3 py-2.5">
|
|
<text class="block text-[10px] text-[#a39a91]">详情图片</text>
|
|
<text class="mt-1 block text-[12px] font-medium text-[#3d3833]">{{ presentation.gallery.length }} 张</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import type { DetailPresentation } from "./detailPresentation";
|
|
|
|
defineProps<{
|
|
presentation: DetailPresentation;
|
|
}>();
|
|
</script>
|