This commit is contained in:
weicw
2023-09-28 21:19:51 +08:00
parent 81ecfd9df0
commit 0256bd355d
21 changed files with 1025 additions and 596 deletions

View File

@@ -54,7 +54,7 @@
<script>
import {
uploadFile
} from '@/websoft/api/upload.js'
} from '@/api/upload'
import {
pageOrder,
removeOrder,
@@ -66,6 +66,7 @@
export default {
data() {
return {
form: {},
order: {},
orderSourceData: [],
// 按钮禁用
@@ -130,13 +131,14 @@
sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
success(chooseImageRes) {
const tempFilePaths = chooseImageRes.tempFilePaths;
uploadFile({
filePath: tempFilePaths[0],
fileType: 'image',
name: 'file'
}).then(res => {
console.log("res: ", res);
app.orderSourceData.push(fileUrl + res.data.path)
app.orderSourceData.push(res.data.url)
receiptOrder({
orderId,
orderSourceData: JSON.stringify(app.orderSourceData)