fix scanner popup container

This commit is contained in:
Timi
2026-08-29 16:46:24 +08:00
parent 657781e885
commit aac6989728
+10 -34
View File
@@ -54,23 +54,13 @@
v-model:visible="selectorVisible" v-model:visible="selectorVisible"
@change="handleInviteeSelected" @change="handleInviteeSelected"
/> />
<t-popup v-model="scanPopupVisible" placement="bottom"> <bottom-popup
<div class="scan-popup bg-white"> v-model="scanPopupVisible"
<div class="header"> title="扫码添加邀请客户"
<t-button @left-button-click="closeScanPopup"
variant="text" @right-button-click="confirmScannedInvitee"
size="small" >
@click="closeScanPopup" <div class="scan-popup">
content="取消"
/>
<h3>扫码添加邀请客户</h3>
<t-button
theme="primary"
size="small"
content="确认"
@click="confirmScannedInvitee"
/>
</div>
<code-scanner <code-scanner
v-if="scanPopupVisible" v-if="scanPopupVisible"
:visible="scanPopupVisible" :visible="scanPopupVisible"
@@ -83,10 +73,11 @@
<customer-profile-card :customer="pendingInvitee" /> <customer-profile-card :customer="pendingInvitee" />
</div> </div>
</div> </div>
</t-popup> </bottom-popup>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { BottomPopup } from "timi-tdesign-mobile";
import { Message } from "@/utils/message"; import { Message } from "@/utils/message";
import { useUserStore } from "timi-web-api"; import { useUserStore } from "timi-web-api";
import CustomerAPI from "@/api/CustomerAPI"; import CustomerAPI from "@/api/CustomerAPI";
@@ -333,23 +324,9 @@ watch(() => route.params.id, loadCustomer);
.scan-popup { .scan-popup {
gap: 1rem; gap: 1rem;
padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0)) 1rem; padding: 0 1rem 1rem 1rem;
display: flex; display: flex;
overflow: auto;
max-height: 86vh;
border-radius: 1.25rem 1.25rem 0 0;
flex-direction: column; flex-direction: column;
.header {
display: flex;
align-items: center;
justify-content: space-between;
h3 {
margin: 0;
font-size: 1rem;
}
}
} }
:global(html.theme-dark) { :global(html.theme-dark) {
@@ -363,7 +340,6 @@ watch(() => route.params.id, loadCustomer);
.scan-popup { .scan-popup {
color: #e2e8f0; color: #e2e8f0;
background: rgba(15, 23, 42, .96);
} }
} }
</style> </style>