This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user