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