fix: 优化换货
All checks were successful
构建并部署前端到生产环境 / build-and-deploy (push) Successful in 54s

This commit is contained in:
sexygoat
2026-05-14 14:18:13 +08:00
parent fded2fe12d
commit 0be325e379

View File

@@ -56,10 +56,15 @@
border="surround"
/>
<view class="form-helper">识别结果可继续手动修改</view>
<button class="btn-apple btn-secondary parse-btn" @tap="fillFromPastedText">
<view class="paste-action-row">
<button class="btn-apple btn-secondary paste-action-btn" @tap="clearPastedText">
清除
</button>
<button class="btn-apple btn-secondary paste-action-btn" @tap="fillFromPastedText">
识别并填充
</button>
</view>
</view>
<view class="form-item">
<view class="form-label">收件人姓名</view>
@@ -280,6 +285,10 @@
uni.showToast({ title: '已识别并填充', icon: 'success' });
};
const clearPastedText = () => {
form.raw_shipping_text = '';
};
const submitExchange = async () => {
if (!form.recipient_name.trim()) {
uni.showToast({ title: '请输入收件人姓名', icon: 'none' });
@@ -409,10 +418,8 @@
.popup-content {
width: 660rpx;
max-height: 80vh;
padding: 30rpx;
box-sizing: border-box;
overflow-y: auto;
.popup-title {
font-size: 32rpx;
@@ -437,9 +444,14 @@
color: var(--text-tertiary);
}
.parse-btn {
width: 100%;
.paste-action-row {
display: flex;
gap: var(--space-md);
margin-top: var(--space-sm);
.paste-action-btn {
flex: 1;
}
}
}