Commit a89879cc by chenwq

```

fix(order): 修复支付凭证上传组件文件删除事件和路径获取问题

- 修正uni-file-picker组件删除事件绑定,将@del改为@delete以匹配正确事件名
- 修复文件路径获取逻辑,添加e?.tempFilePath作为首要获取路径,
  确保在不同环境下都能正确获取文件路径
```
1 parent f238925b
......@@ -69,7 +69,7 @@
</view>
<text class="voucher-tip">上传支付凭证截图(1-5张,格式 jpg/png/jpeg)</text>
<uni-file-picker fileMediatype="image" mode="grid" :image-styles="voucherImageStyles"
:limit="voucherLimit" file-extname="png,jpg,jpeg" :value="paymentVouchers" @select="selectVoucherFile" @del="deleteVoucherFile">
:limit="voucherLimit" file-extname="png,jpg,jpeg" :value="paymentVouchers" @select="selectVoucherFile" @delete="deleteVoucherFile">
<view class="upload-placeholder">
<uni-icons type="plusempty" size="28" color="#999" />
<text class="upload-text">上传凭证</text>
......@@ -642,7 +642,7 @@ export default class OrderPaymentInfoPanel extends Vue {
return;
}
const target = e?.tempFile || e?.file;
const targetUrl = target?.url || target?.filePath || target?.thumbUrl;
const targetUrl = e?.tempFilePath || target?.url || target?.filePath || target?.thumbUrl;
if (!targetUrl) return;
this.paymentVouchers = this.paymentVouchers.filter((file) => {
const fileUrl = file.url || file.filePath || file.thumbUrl;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!