Commit 03ad4e65 by liimin

Merge branch 'feature/rework' of http://192.168.3.233:8090/monorepo/venus into feature/rework

2 parents 2c4cba59 934a91e6
......@@ -56,7 +56,7 @@
<ReceptionCenterCenter @show-reception-detail="onShowReceptionDetail" />
</view>
<view v-show="showReceptionDetail" class="reception-detail-inner">
<ReceptionDetail :item="receptionDetailItem" />
<ReceptionDetail :item="receptionDetailItem" @close="onReceptionDetailClose" />
</view>
</view>
</view>
......@@ -110,9 +110,11 @@
<view v-show="!showReceptionDetail" class="reception-center-inner">
<ReceptionCenterCenter :only-right="true" @show-reception-detail="onShowReceptionDetail" />
</view>
<view v-show="showReceptionDetail" class="reception-detail-inner">
<ReceptionDetail :item="receptionDetailItem" />
</view>
<transition name="reception-detail-right-slide">
<view v-if="showReceptionDetail" class="reception-detail-inner">
<ReceptionDetail :item="receptionDetailItem" @close="onReceptionDetailClose" />
</view>
</transition>
</view>
</view>
......@@ -219,6 +221,12 @@ function onShowReceptionDetail(item: UTSJSONObject): void {
showReceptionDetail.value = true;
}
function onReceptionDetailClose(): void {
showReceptionDetail.value = false;
// 复用原 ref 类型:这里用 {} 作为空态,避免模板里读取到 null 引发显示问题
receptionDetailItem.value = {};
}
function onStartClick(): void {
emit("start");
}
......@@ -436,6 +444,23 @@ defineExpose({
flex-direction: column;
}
/* 接待详情:向右滑动进出动画 */
.reception-detail-right-slide-enter-active,
.reception-detail-right-slide-leave-active {
transition: transform 260ms ease;
will-change: transform;
}
.reception-detail-right-slide-enter-from,
.reception-detail-right-slide-leave-to {
transform: translateX(100%);
}
.reception-detail-right-slide-enter-to,
.reception-detail-right-slide-leave-from {
transform: translateX(0);
}
/* 底部门店信息,与旧项目 store-addr 一致:居中、无通栏背景、两侧渐变线 */
.store-addr {
position: absolute;
......
<template>
<view class="page-wrap">
<reception-detail />
<reception-detail @close="onClose" />
</view>
</template>
<script setup lang="uts">
// 接待详情页:使用 receptionDetail 组件统一维护
function onClose(): void {
uni.navigateBack();
}
</script>
<style>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!